From 6ad889e9f5011fa7342803633f98f365b867daa5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 17 Oct 2023 19:03:48 +0000 Subject: [PATCH] feat: add v1alpha public library for discoveryengine PiperOrigin-RevId: 572280880 Source-Link: https://github.com/googleapis/googleapis/commit/f5cacaf0364606541f64c26e87370214f1199907 Source-Link: https://github.com/googleapis/googleapis-gen/commit/036171b68de5829f5cfa92949484cfcb7f00af28 Copy-Tag: eyJwIjoiamF2YS1kaXNjb3ZlcnllbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6IjAzNjE3MWI2OGRlNTgyOWY1Y2ZhOTI5NDk0ODRjZmNiN2YwMGFmMjgifQ== --- .../v1/ConversationalSearchServiceGrpc.java | 1047 - .../v1/DocumentServiceGrpc.java | 1159 - .../discoveryengine/v1/SchemaServiceGrpc.java | 830 - .../ConversationalSearchServiceGrpc.java | 1057 - .../v1beta/DocumentServiceGrpc.java | 1174 - .../v1beta/SchemaServiceGrpc.java | 839 - .../cloud/discoveryengine/v1/CommonProto.java | 124 - .../v1/CompletionServiceProto.java | 135 - .../discoveryengine/v1/ConversationProto.java | 163 - .../v1/ConversationalSearchServiceProto.java | 298 - .../CreateConversationRequestOrBuilder.java | 97 - .../DeleteConversationRequestOrBuilder.java | 56 - .../v1/DeleteSchemaRequestOrBuilder.java | 56 - .../discoveryengine/v1/DocumentProto.java | 120 - .../v1/DocumentServiceProto.java | 246 - .../v1/GetConversationRequestOrBuilder.java | 56 - .../v1/GetSchemaRequestOrBuilder.java | 56 - .../discoveryengine/v1/ImportConfigProto.java | 289 - .../discoveryengine/v1/PurgeConfigProto.java | 118 - .../cloud/discoveryengine/v1/SchemaProto.java | 92 - .../v1/SchemaServiceProto.java | 268 - .../v1/SearchServiceProto.java | 510 - .../discoveryengine/v1/UserEventProto.java | 266 - .../v1/UserEventServiceProto.java | 150 - .../v1/WriteUserEventRequestOrBuilder.java | 97 - .../discoveryengine/v1beta/CommonProto.java | 137 - .../v1beta/CompletionServiceProto.java | 136 - .../v1beta/ConversationProto.java | 183 - .../ConversationalSearchServiceProto.java | 303 - .../CreateConversationRequestOrBuilder.java | 97 - .../DeleteConversationRequestOrBuilder.java | 56 - .../v1beta/DeleteSchemaRequestOrBuilder.java | 56 - .../discoveryengine/v1beta/DocumentProto.java | 123 - .../v1beta/DocumentServiceProto.java | 250 - .../GetConversationRequestOrBuilder.java | 56 - .../v1beta/GetSchemaRequestOrBuilder.java | 56 - .../v1beta/ImportConfigProto.java | 292 - .../v1beta/PurgeConfigProto.java | 119 - .../v1beta/RecommendationServiceProto.java | 210 - .../v1beta/ReplyOrBuilder.java | 161 - .../discoveryengine/v1beta/SchemaProto.java | 93 - .../v1beta/SchemaServiceProto.java | 272 - .../v1beta/SearchServiceProto.java | 636 - .../v1beta/UserEventProto.java | 268 - .../v1beta/UserEventServiceProto.java | 153 - .../WriteUserEventRequestOrBuilder.java | 97 - .../v1/CompletionServiceClient.java | 0 .../v1/CompletionServiceSettings.java | 1 + .../v1/ConversationalSearchServiceClient.java | 0 .../ConversationalSearchServiceSettings.java | 1 + .../v1/DocumentServiceClient.java | 0 .../v1/DocumentServiceSettings.java | 1 + .../v1/SchemaServiceClient.java | 0 .../v1/SchemaServiceSettings.java | 1 + .../v1/SearchServiceClient.java | 0 .../v1/SearchServiceSettings.java | 1 + .../v1/UserEventServiceClient.java | 0 .../v1/UserEventServiceSettings.java | 1 + .../discoveryengine/v1/gapic_metadata.json | 0 .../discoveryengine/v1/package-info.java | 0 .../v1/stub/CompletionServiceStub.java | 0 .../stub/CompletionServiceStubSettings.java | 0 .../stub/ConversationalSearchServiceStub.java | 0 ...nversationalSearchServiceStubSettings.java | 0 .../v1/stub/DocumentServiceStub.java | 0 .../v1/stub/DocumentServiceStubSettings.java | 0 .../GrpcCompletionServiceCallableFactory.java | 0 .../v1/stub/GrpcCompletionServiceStub.java | 1 + ...rsationalSearchServiceCallableFactory.java | 0 .../GrpcConversationalSearchServiceStub.java | 1 + .../GrpcDocumentServiceCallableFactory.java | 0 .../v1/stub/GrpcDocumentServiceStub.java | 1 + .../GrpcSchemaServiceCallableFactory.java | 0 .../v1/stub/GrpcSchemaServiceStub.java | 1 + .../GrpcSearchServiceCallableFactory.java | 0 .../v1/stub/GrpcSearchServiceStub.java | 1 + .../GrpcUserEventServiceCallableFactory.java | 0 .../v1/stub/GrpcUserEventServiceStub.java | 1 + ...pJsonCompletionServiceCallableFactory.java | 0 .../stub/HttpJsonCompletionServiceStub.java | 0 ...rsationalSearchServiceCallableFactory.java | 0 ...tpJsonConversationalSearchServiceStub.java | 0 ...ttpJsonDocumentServiceCallableFactory.java | 0 .../v1/stub/HttpJsonDocumentServiceStub.java | 1 + .../HttpJsonSchemaServiceCallableFactory.java | 0 .../v1/stub/HttpJsonSchemaServiceStub.java | 1 + .../HttpJsonSearchServiceCallableFactory.java | 0 .../v1/stub/HttpJsonSearchServiceStub.java | 0 ...tpJsonUserEventServiceCallableFactory.java | 0 .../v1/stub/HttpJsonUserEventServiceStub.java | 1 + .../v1/stub/SchemaServiceStub.java | 0 .../v1/stub/SchemaServiceStubSettings.java | 0 .../v1/stub/SearchServiceStub.java | 0 .../v1/stub/SearchServiceStubSettings.java | 0 .../v1/stub/UserEventServiceStub.java | 0 .../v1/stub/UserEventServiceStubSettings.java | 0 .../reflect-config.json | 0 .../CompletionServiceClientHttpJsonTest.java | 0 .../v1/CompletionServiceClientTest.java | 0 ...tionalSearchServiceClientHttpJsonTest.java | 0 ...ConversationalSearchServiceClientTest.java | 0 .../v1/DocumentServiceClientHttpJsonTest.java | 0 .../v1/DocumentServiceClientTest.java | 0 .../v1/MockCompletionService.java | 0 .../v1/MockCompletionServiceImpl.java | 0 .../v1/MockConversationalSearchService.java | 0 .../MockConversationalSearchServiceImpl.java | 0 .../v1/MockDocumentService.java | 0 .../v1/MockDocumentServiceImpl.java | 0 .../discoveryengine/v1/MockSchemaService.java | 0 .../v1/MockSchemaServiceImpl.java | 0 .../discoveryengine/v1/MockSearchService.java | 0 .../v1/MockSearchServiceImpl.java | 0 .../v1/MockUserEventService.java | 0 .../v1/MockUserEventServiceImpl.java | 0 .../v1/SchemaServiceClientHttpJsonTest.java | 0 .../v1/SchemaServiceClientTest.java | 0 .../v1/SearchServiceClientHttpJsonTest.java | 0 .../v1/SearchServiceClientTest.java | 0 .../UserEventServiceClientHttpJsonTest.java | 0 .../v1/UserEventServiceClientTest.java | 0 .../v1/CompletionServiceGrpc.java | 217 +- .../v1/ConversationalSearchServiceGrpc.java | 789 + .../v1/DocumentServiceGrpc.java | 917 + .../discoveryengine/v1/SchemaServiceGrpc.java | 667 + .../discoveryengine/v1/SearchServiceGrpc.java | 213 +- .../v1/UserEventServiceGrpc.java | 400 +- .../discoveryengine/v1/BigQuerySource.java | 736 +- .../v1/BigQuerySourceOrBuilder.java | 71 +- .../cloud/discoveryengine/v1/BranchName.java | 0 .../v1/CollectUserEventRequest.java | 540 +- .../v1/CollectUserEventRequestOrBuilder.java | 62 +- .../cloud/discoveryengine/v1/CommonProto.java | 107 + .../v1/CompleteQueryRequest.java | 602 +- .../v1/CompleteQueryRequestOrBuilder.java | 65 +- .../v1/CompleteQueryResponse.java | 998 +- .../v1/CompleteQueryResponseOrBuilder.java | 64 +- .../discoveryengine/v1/CompletionInfo.java | 350 +- .../v1/CompletionInfoOrBuilder.java | 30 +- .../v1/CompletionServiceProto.java | 116 + .../discoveryengine/v1/Conversation.java | 916 +- .../v1/ConversationContext.java | 430 +- .../v1/ConversationContextOrBuilder.java | 45 +- .../v1/ConversationMessage.java | 616 +- .../v1/ConversationMessageOrBuilder.java | 51 +- .../discoveryengine/v1/ConversationName.java | 0 .../v1/ConversationOrBuilder.java | 94 +- .../discoveryengine/v1/ConversationProto.java | 144 + .../v1/ConversationalSearchServiceProto.java | 267 + .../v1/ConverseConversationRequest.java | 1148 +- .../ConverseConversationRequestOrBuilder.java | 128 +- .../v1/ConverseConversationResponse.java | 739 +- ...ConverseConversationResponseOrBuilder.java | 67 +- .../v1/CreateConversationRequest.java | 504 +- .../CreateConversationRequestOrBuilder.java | 58 + .../v1/CreateDocumentRequest.java | 564 +- .../v1/CreateDocumentRequestOrBuilder.java | 64 +- .../v1/CreateSchemaMetadata.java | 431 +- .../v1/CreateSchemaMetadataOrBuilder.java | 34 +- .../v1/CreateSchemaRequest.java | 567 +- .../v1/CreateSchemaRequestOrBuilder.java | 64 +- .../discoveryengine/v1/CustomAttribute.java | 451 +- .../v1/CustomAttributeOrBuilder.java | 45 +- .../discoveryengine/v1/DataStoreName.java | 0 .../v1/DeleteConversationRequest.java | 360 +- .../DeleteConversationRequestOrBuilder.java | 31 + .../v1/DeleteDocumentRequest.java | 350 +- .../v1/DeleteDocumentRequestOrBuilder.java | 35 +- .../v1/DeleteSchemaMetadata.java | 431 +- .../v1/DeleteSchemaMetadataOrBuilder.java | 34 +- .../v1/DeleteSchemaRequest.java | 350 +- .../v1/DeleteSchemaRequestOrBuilder.java | 31 + .../cloud/discoveryengine/v1/Document.java | 1517 +- .../discoveryengine/v1/DocumentInfo.java | 710 +- .../v1/DocumentInfoOrBuilder.java | 81 +- .../discoveryengine/v1/DocumentName.java | 0 .../discoveryengine/v1/DocumentOrBuilder.java | 102 +- .../discoveryengine/v1/DocumentProto.java | 96 + .../v1/DocumentServiceProto.java | 226 + .../cloud/discoveryengine/v1/GcsSource.java | 420 +- .../v1/GcsSourceOrBuilder.java | 45 +- .../v1/GetConversationRequest.java | 350 +- .../v1/GetConversationRequestOrBuilder.java | 31 + .../v1/GetDocumentRequest.java | 350 +- .../v1/GetDocumentRequestOrBuilder.java | 35 +- .../discoveryengine/v1/GetSchemaRequest.java | 347 +- .../v1/GetSchemaRequestOrBuilder.java | 31 + .../discoveryengine/v1/ImportConfigProto.java | 246 + .../v1/ImportDocumentsMetadata.java | 499 +- .../v1/ImportDocumentsMetadataOrBuilder.java | 40 +- .../v1/ImportDocumentsRequest.java | 1703 +- .../v1/ImportDocumentsRequestOrBuilder.java | 108 +- .../v1/ImportDocumentsResponse.java | 513 +- .../v1/ImportDocumentsResponseOrBuilder.java | 45 +- .../discoveryengine/v1/ImportErrorConfig.java | 381 +- .../v1/ImportErrorConfigOrBuilder.java | 30 +- .../v1/ImportUserEventsMetadata.java | 509 +- .../v1/ImportUserEventsMetadataOrBuilder.java | 40 +- .../v1/ImportUserEventsRequest.java | 1482 +- .../v1/ImportUserEventsRequestOrBuilder.java | 79 +- .../v1/ImportUserEventsResponse.java | 591 +- .../v1/ImportUserEventsResponseOrBuilder.java | 51 +- .../cloud/discoveryengine/v1/Interval.java | 545 +- .../discoveryengine/v1/IntervalOrBuilder.java | 42 +- .../v1/ListConversationsRequest.java | 609 +- .../v1/ListConversationsRequestOrBuilder.java | 65 +- .../v1/ListConversationsResponse.java | 472 +- .../ListConversationsResponseOrBuilder.java | 45 +- .../v1/ListDocumentsRequest.java | 453 +- .../v1/ListDocumentsRequestOrBuilder.java | 47 +- .../v1/ListDocumentsResponse.java | 483 +- .../v1/ListDocumentsResponseOrBuilder.java | 45 +- .../v1/ListSchemasRequest.java | 453 +- .../v1/ListSchemasRequestOrBuilder.java | 47 +- .../v1/ListSchemasResponse.java | 483 +- .../v1/ListSchemasResponseOrBuilder.java | 45 +- .../cloud/discoveryengine/v1/MediaInfo.java | 385 +- .../v1/MediaInfoOrBuilder.java | 32 +- .../cloud/discoveryengine/v1/PageInfo.java | 530 +- .../discoveryengine/v1/PageInfoOrBuilder.java | 54 +- .../cloud/discoveryengine/v1/PanelInfo.java | 458 +- .../v1/PanelInfoOrBuilder.java | 48 +- .../discoveryengine/v1/PurgeConfigProto.java | 101 + .../v1/PurgeDocumentsMetadata.java | 499 +- .../v1/PurgeDocumentsMetadataOrBuilder.java | 40 +- .../v1/PurgeDocumentsRequest.java | 456 +- .../v1/PurgeDocumentsRequestOrBuilder.java | 47 +- .../v1/PurgeDocumentsResponse.java | 392 +- .../v1/PurgeDocumentsResponseOrBuilder.java | 39 +- .../cloud/discoveryengine/v1/Reply.java | 342 +- .../discoveryengine/v1/ReplyOrBuilder.java | 26 +- .../cloud/discoveryengine/v1/Schema.java | 540 +- .../cloud/discoveryengine/v1/SchemaName.java | 0 .../discoveryengine/v1/SchemaOrBuilder.java | 47 +- .../cloud/discoveryengine/v1/SchemaProto.java | 77 + .../v1/SchemaServiceProto.java | 245 + .../cloud/discoveryengine/v1/SearchInfo.java | 421 +- .../v1/SearchInfoOrBuilder.java | 42 +- .../discoveryengine/v1/SearchRequest.java | 8338 +++---- .../v1/SearchRequestOrBuilder.java | 266 +- .../discoveryengine/v1/SearchResponse.java | 4767 ++-- .../v1/SearchResponseOrBuilder.java | 121 +- .../v1/SearchServiceProto.java | 404 + .../discoveryengine/v1/ServingConfigName.java | 0 .../cloud/discoveryengine/v1/TextInput.java | 407 +- .../v1/TextInputOrBuilder.java | 35 +- .../discoveryengine/v1/TransactionInfo.java | 551 +- .../v1/TransactionInfoOrBuilder.java | 60 +- .../v1/UpdateConversationRequest.java | 496 +- .../UpdateConversationRequestOrBuilder.java | 46 +- .../v1/UpdateDocumentRequest.java | 429 +- .../v1/UpdateDocumentRequestOrBuilder.java | 41 +- .../v1/UpdateSchemaMetadata.java | 431 +- .../v1/UpdateSchemaMetadataOrBuilder.java | 34 +- .../v1/UpdateSchemaRequest.java | 432 +- .../v1/UpdateSchemaRequestOrBuilder.java | 41 +- .../cloud/discoveryengine/v1/UserEvent.java | 2048 +- .../v1/UserEventOrBuilder.java | 227 +- .../discoveryengine/v1/UserEventProto.java | 210 + .../v1/UserEventServiceProto.java | 134 + .../cloud/discoveryengine/v1/UserInfo.java | 384 +- .../discoveryengine/v1/UserInfoOrBuilder.java | 36 +- .../v1/WriteUserEventRequest.java | 491 +- .../v1/WriteUserEventRequestOrBuilder.java | 58 + .../cloud/discoveryengine/v1/common.proto | 0 .../v1/completion_service.proto | 0 .../discoveryengine/v1/conversation.proto | 0 .../v1/conversational_search_service.proto | 0 .../cloud/discoveryengine/v1/document.proto | 0 .../discoveryengine/v1/document_service.proto | 0 .../discoveryengine/v1/import_config.proto | 0 .../discoveryengine/v1/purge_config.proto | 0 .../cloud/discoveryengine/v1/schema.proto | 0 .../discoveryengine/v1/schema_service.proto | 0 .../discoveryengine/v1/search_service.proto | 0 .../cloud/discoveryengine/v1/user_event.proto | 0 .../v1/user_event_service.proto | 0 .../completequery/AsyncCompleteQuery.java | 0 .../completequery/SyncCompleteQuery.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../completequery/SyncCompleteQuery.java | 0 .../AsyncConverseConversation.java | 0 .../SyncConverseConversation.java | 0 ...ConversationConversationnameTextinput.java | 0 ...ncConverseConversationStringTextinput.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConversation.java | 0 .../SyncCreateConversation.java | 0 ...ConversationDatastorenameConversation.java | 0 ...cCreateConversationStringConversation.java | 0 .../AsyncDeleteConversation.java | 0 .../SyncDeleteConversation.java | 0 ...yncDeleteConversationConversationname.java | 0 .../SyncDeleteConversationString.java | 0 .../getconversation/AsyncGetConversation.java | 0 .../getconversation/SyncGetConversation.java | 0 .../SyncGetConversationConversationname.java | 0 .../SyncGetConversationString.java | 0 .../AsyncListConversations.java | 0 .../AsyncListConversationsPaged.java | 0 .../SyncListConversations.java | 0 .../SyncListConversationsDatastorename.java | 0 .../SyncListConversationsString.java | 0 .../AsyncUpdateConversation.java | 0 .../SyncUpdateConversation.java | 0 ...dateConversationConversationFieldmask.java | 0 .../SyncConverseConversation.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdocument/AsyncCreateDocument.java | 0 .../createdocument/SyncCreateDocument.java | 0 ...reateDocumentBranchnameDocumentString.java | 0 ...yncCreateDocumentStringDocumentString.java | 0 .../deletedocument/AsyncDeleteDocument.java | 0 .../deletedocument/SyncDeleteDocument.java | 0 .../SyncDeleteDocumentDocumentname.java | 0 .../SyncDeleteDocumentString.java | 0 .../getdocument/AsyncGetDocument.java | 0 .../getdocument/SyncGetDocument.java | 0 .../SyncGetDocumentDocumentname.java | 0 .../getdocument/SyncGetDocumentString.java | 0 .../importdocuments/AsyncImportDocuments.java | 0 .../AsyncImportDocumentsLRO.java | 0 .../importdocuments/SyncImportDocuments.java | 0 .../listdocuments/AsyncListDocuments.java | 0 .../AsyncListDocumentsPaged.java | 0 .../listdocuments/SyncListDocuments.java | 0 .../SyncListDocumentsBranchname.java | 0 .../SyncListDocumentsString.java | 0 .../purgedocuments/AsyncPurgeDocuments.java | 0 .../AsyncPurgeDocumentsLRO.java | 0 .../purgedocuments/SyncPurgeDocuments.java | 0 .../updatedocument/AsyncUpdateDocument.java | 0 .../updatedocument/SyncUpdateDocument.java | 0 .../getdocument/SyncGetDocument.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createschema/AsyncCreateSchema.java | 0 .../createschema/AsyncCreateSchemaLRO.java | 0 .../createschema/SyncCreateSchema.java | 0 ...CreateSchemaDatastorenameSchemaString.java | 0 .../SyncCreateSchemaStringSchemaString.java | 0 .../deleteschema/AsyncDeleteSchema.java | 0 .../deleteschema/AsyncDeleteSchemaLRO.java | 0 .../deleteschema/SyncDeleteSchema.java | 0 .../SyncDeleteSchemaSchemaname.java | 0 .../deleteschema/SyncDeleteSchemaString.java | 0 .../getschema/AsyncGetSchema.java | 0 .../getschema/SyncGetSchema.java | 0 .../getschema/SyncGetSchemaSchemaname.java | 0 .../getschema/SyncGetSchemaString.java | 0 .../listschemas/AsyncListSchemas.java | 0 .../listschemas/AsyncListSchemasPaged.java | 0 .../listschemas/SyncListSchemas.java | 0 .../SyncListSchemasDatastorename.java | 0 .../listschemas/SyncListSchemasString.java | 0 .../updateschema/AsyncUpdateSchema.java | 0 .../updateschema/AsyncUpdateSchemaLRO.java | 0 .../updateschema/SyncUpdateSchema.java | 0 .../getschema/SyncGetSchema.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../v1/searchservice/search/AsyncSearch.java | 0 .../search/AsyncSearchPaged.java | 0 .../v1/searchservice/search/SyncSearch.java | 0 .../search/SyncSearch.java | 0 .../completequery/SyncCompleteQuery.java | 0 .../SyncConverseConversation.java | 0 .../getdocument/SyncGetDocument.java | 0 .../getschema/SyncGetSchema.java | 0 .../search/SyncSearch.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 .../AsyncCollectUserEvent.java | 0 .../SyncCollectUserEvent.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncImportUserEvents.java | 0 .../AsyncImportUserEventsLRO.java | 0 .../SyncImportUserEvents.java | 0 .../writeuserevent/AsyncWriteUserEvent.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 .../v1alpha/CompletionServiceClient.java | 281 + .../v1alpha/CompletionServiceSettings.java | 209 + .../ConversationalSearchServiceClient.java | 1193 + .../ConversationalSearchServiceSettings.java | 280 + .../v1alpha/DocumentServiceClient.java | 1257 + .../v1alpha/DocumentServiceSettings.java | 305 + .../v1alpha/RecommendationServiceClient.java | 290 + .../RecommendationServiceSettings.java | 210 + .../v1alpha/SchemaServiceClient.java | 1033 + .../v1alpha/SchemaServiceSettings.java | 292 + .../v1alpha/SearchServiceClient.java | 483 + .../v1alpha/SearchServiceSettings.java | 211 + .../SiteSearchEngineServiceClient.java | 340 + .../SiteSearchEngineServiceSettings.java | 226 + .../v1alpha/UserEventServiceClient.java | 598 + .../v1alpha/UserEventServiceSettings.java | 270 + .../v1alpha/gapic_metadata.json | 159 + .../discoveryengine/v1alpha/package-info.java | 250 + .../v1alpha/stub/CompletionServiceStub.java | 42 + .../stub/CompletionServiceStubSettings.java | 331 + .../stub/ConversationalSearchServiceStub.java | 79 + ...nversationalSearchServiceStubSettings.java | 543 + .../v1alpha/stub/DocumentServiceStub.java | 106 + .../stub/DocumentServiceStubSettings.java | 661 + .../GrpcCompletionServiceCallableFactory.java | 115 + .../stub/GrpcCompletionServiceStub.java | 167 + ...rsationalSearchServiceCallableFactory.java | 115 + .../GrpcConversationalSearchServiceStub.java | 361 + .../GrpcDocumentServiceCallableFactory.java | 115 + .../v1alpha/stub/GrpcDocumentServiceStub.java | 401 + ...cRecommendationServiceCallableFactory.java | 115 + .../stub/GrpcRecommendationServiceStub.java | 165 + .../GrpcSchemaServiceCallableFactory.java | 115 + .../v1alpha/stub/GrpcSchemaServiceStub.java | 339 + .../GrpcSearchServiceCallableFactory.java | 115 + .../v1alpha/stub/GrpcSearchServiceStub.java | 172 + ...iteSearchEngineServiceCallableFactory.java | 115 + .../stub/GrpcSiteSearchEngineServiceStub.java | 182 + .../GrpcUserEventServiceCallableFactory.java | 115 + .../stub/GrpcUserEventServiceStub.java | 297 + ...pJsonCompletionServiceCallableFactory.java | 105 + .../stub/HttpJsonCompletionServiceStub.java | 211 + ...rsationalSearchServiceCallableFactory.java | 105 + ...tpJsonConversationalSearchServiceStub.java | 555 + ...ttpJsonDocumentServiceCallableFactory.java | 105 + .../stub/HttpJsonDocumentServiceStub.java | 782 + ...nRecommendationServiceCallableFactory.java | 105 + .../HttpJsonRecommendationServiceStub.java | 210 + .../HttpJsonSchemaServiceCallableFactory.java | 105 + .../stub/HttpJsonSchemaServiceStub.java | 666 + .../HttpJsonSearchServiceCallableFactory.java | 105 + .../stub/HttpJsonSearchServiceStub.java | 216 + ...iteSearchEngineServiceCallableFactory.java | 105 + .../HttpJsonSiteSearchEngineServiceStub.java | 381 + ...tpJsonUserEventServiceCallableFactory.java | 105 + .../stub/HttpJsonUserEventServiceStub.java | 590 + .../stub/RecommendationServiceStub.java | 42 + .../RecommendationServiceStubSettings.java | 330 + .../v1alpha/stub/SchemaServiceStub.java | 99 + .../stub/SchemaServiceStubSettings.java | 634 + .../v1alpha/stub/SearchServiceStub.java | 48 + .../stub/SearchServiceStubSettings.java | 391 + .../stub/SiteSearchEngineServiceStub.java | 59 + .../SiteSearchEngineServiceStubSettings.java | 371 + .../v1alpha/stub/UserEventServiceStub.java | 84 + .../stub/UserEventServiceStubSettings.java | 525 + .../reflect-config.json | 3305 +++ .../CompletionServiceClientHttpJsonTest.java | 139 + .../v1alpha/CompletionServiceClientTest.java | 145 + ...tionalSearchServiceClientHttpJsonTest.java | 662 + ...ConversationalSearchServiceClientTest.java | 583 + .../DocumentServiceClientHttpJsonTest.java | 724 + .../v1alpha/DocumentServiceClientTest.java | 651 + .../v1alpha/MockCompletionService.java | 59 + .../v1alpha/MockCompletionServiceImpl.java | 81 + .../MockConversationalSearchService.java | 59 + .../MockConversationalSearchServiceImpl.java | 189 + .../v1alpha/MockDocumentService.java | 59 + .../v1alpha/MockDocumentServiceImpl.java | 208 + .../v1alpha/MockLocations.java | 59 + .../v1alpha/MockLocationsImpl.java | 59 + .../v1alpha/MockRecommendationService.java | 59 + .../MockRecommendationServiceImpl.java | 81 + .../v1alpha/MockSchemaService.java | 59 + .../v1alpha/MockSchemaServiceImpl.java | 165 + .../v1alpha/MockSearchService.java | 59 + .../v1alpha/MockSearchServiceImpl.java | 80 + .../v1alpha/MockSiteSearchEngineService.java | 59 + .../MockSiteSearchEngineServiceImpl.java | 81 + .../v1alpha/MockUserEventService.java | 59 + .../v1alpha/MockUserEventServiceImpl.java | 146 + ...commendationServiceClientHttpJsonTest.java | 147 + .../RecommendationServiceClientTest.java | 154 + .../SchemaServiceClientHttpJsonTest.java | 573 + .../v1alpha/SchemaServiceClientTest.java | 528 + .../SearchServiceClientHttpJsonTest.java | 189 + .../v1alpha/SearchServiceClientTest.java | 209 + ...SearchEngineServiceClientHttpJsonTest.java | 140 + .../SiteSearchEngineServiceClientTest.java | 147 + .../UserEventServiceClientHttpJsonTest.java | 350 + .../v1alpha/UserEventServiceClientTest.java | 350 + .../v1alpha/CompletionServiceGrpc.java | 323 + .../ConversationalSearchServiceGrpc.java | 789 + .../v1alpha/DocumentServiceGrpc.java | 927 + .../v1alpha/RecommendationServiceGrpc.java | 323 + .../v1alpha/SchemaServiceGrpc.java | 667 + .../v1alpha/SearchServiceGrpc.java | 323 + .../v1alpha/SiteSearchEngineServiceGrpc.java | 323 + .../v1alpha/UserEventServiceGrpc.java | 625 + .../v1alpha/BigQuerySource.java | 1739 ++ .../v1alpha/BigQuerySourceOrBuilder.java | 188 + .../discoveryengine/v1alpha/BranchName.java | 427 + .../v1alpha/CollectUserEventRequest.java | 1103 + .../CollectUserEventRequestOrBuilder.java | 114 + .../discoveryengine/v1alpha/CommonProto.java | 132 + .../v1alpha/CompleteQueryRequest.java | 1385 ++ .../CompleteQueryRequestOrBuilder.java | 164 + .../v1alpha/CompleteQueryResponse.java | 1910 ++ .../CompleteQueryResponseOrBuilder.java | 71 + .../v1alpha/CompletionInfo.java | 676 + .../v1alpha/CompletionInfoOrBuilder.java | 43 + .../v1alpha/CompletionServiceProto.java | 119 + .../discoveryengine/v1alpha/Conversation.java | 1919 ++ .../v1alpha/ConversationContext.java | 838 + .../v1alpha/ConversationContextOrBuilder.java | 76 + .../v1alpha/ConversationMessage.java | 1229 + .../v1alpha/ConversationMessageOrBuilder.java | 92 + .../v1alpha/ConversationName.java | 432 + .../v1alpha/ConversationOrBuilder.java | 168 + .../v1alpha/ConversationProto.java | 161 + .../ConversationalSearchServiceProto.java | 273 + .../v1alpha/ConverseConversationRequest.java | 2087 ++ .../ConverseConversationRequestOrBuilder.java | 294 + .../v1alpha/ConverseConversationResponse.java | 1562 ++ ...ConverseConversationResponseOrBuilder.java | 148 + .../v1alpha/CreateConversationRequest.java | 813 + .../CreateConversationRequestOrBuilder.java | 58 + .../v1alpha/CreateDocumentRequest.java | 1105 + .../CreateDocumentRequestOrBuilder.java | 113 + .../v1alpha/CreateSchemaMetadata.java | 883 + .../CreateSchemaMetadataOrBuilder.java | 66 + .../v1alpha/CreateSchemaRequest.java | 1042 + .../v1alpha/CreateSchemaRequestOrBuilder.java | 95 + .../v1alpha/CustomAttribute.java | 1068 + .../v1alpha/CustomAttributeOrBuilder.java | 140 + .../v1alpha/DataStoreName.java | 371 + .../v1alpha/DeleteConversationRequest.java | 584 + .../DeleteConversationRequestOrBuilder.java | 31 + .../v1alpha/DeleteDocumentRequest.java | 644 + .../DeleteDocumentRequestOrBuilder.java | 47 + .../v1alpha/DeleteSchemaMetadata.java | 883 + .../DeleteSchemaMetadataOrBuilder.java | 66 + .../v1alpha/DeleteSchemaRequest.java | 588 + .../v1alpha/DeleteSchemaRequestOrBuilder.java | 31 + .../discoveryengine/v1alpha/Document.java | 3428 +++ .../discoveryengine/v1alpha/DocumentInfo.java | 1568 ++ .../v1alpha/DocumentInfoOrBuilder.java | 190 + .../discoveryengine/v1alpha/DocumentName.java | 485 + .../v1alpha/DocumentOrBuilder.java | 246 + .../v1alpha/DocumentProto.java | 97 + .../v1alpha/DocumentServiceProto.java | 231 + .../discoveryengine/v1alpha/DoubleList.java | 625 + .../v1alpha/DoubleListOrBuilder.java | 38 + .../discoveryengine/v1alpha/FieldConfig.java | 3541 +++ .../v1alpha/FieldConfigOrBuilder.java | 428 + .../discoveryengine/v1alpha/GcsSource.java | 1070 + .../v1alpha/GcsSourceOrBuilder.java | 144 + .../v1alpha/GetConversationRequest.java | 584 + .../GetConversationRequestOrBuilder.java | 31 + .../v1alpha/GetDocumentRequest.java | 644 + .../v1alpha/GetDocumentRequestOrBuilder.java | 47 + .../v1alpha/GetSchemaRequest.java | 588 + .../v1alpha/GetSchemaRequestOrBuilder.java | 31 + .../v1alpha/ImportConfigProto.java | 249 + .../v1alpha/ImportDocumentsMetadata.java | 1051 + .../ImportDocumentsMetadataOrBuilder.java | 86 + .../v1alpha/ImportDocumentsRequest.java | 3428 +++ .../ImportDocumentsRequestOrBuilder.java | 272 + .../v1alpha/ImportDocumentsResponse.java | 1094 + .../ImportDocumentsResponseOrBuilder.java | 80 + .../v1alpha/ImportErrorConfig.java | 724 + .../v1alpha/ImportErrorConfigOrBuilder.java | 49 + .../v1alpha/ImportUserEventsMetadata.java | 1051 + .../ImportUserEventsMetadataOrBuilder.java | 86 + .../v1alpha/ImportUserEventsRequest.java | 2570 ++ .../ImportUserEventsRequestOrBuilder.java | 144 + .../v1alpha/ImportUserEventsResponse.java | 1274 + .../ImportUserEventsResponseOrBuilder.java | 104 + .../discoveryengine/v1alpha/Interval.java | 1027 + .../v1alpha/IntervalOrBuilder.java | 89 + .../v1alpha/ListConversationsRequest.java | 1260 + .../ListConversationsRequestOrBuilder.java | 130 + .../v1alpha/ListConversationsResponse.java | 1023 + .../ListConversationsResponseOrBuilder.java | 73 + .../v1alpha/ListDocumentsRequest.java | 966 + .../ListDocumentsRequestOrBuilder.java | 98 + .../v1alpha/ListDocumentsResponse.java | 1048 + .../ListDocumentsResponseOrBuilder.java | 79 + .../v1alpha/ListSchemasRequest.java | 904 + .../v1alpha/ListSchemasRequestOrBuilder.java | 80 + .../v1alpha/ListSchemasResponse.java | 1048 + .../v1alpha/ListSchemasResponseOrBuilder.java | 79 + .../discoveryengine/v1alpha/MediaInfo.java | 849 + .../v1alpha/MediaInfoOrBuilder.java | 81 + .../discoveryengine/v1alpha/PageInfo.java | 1265 + .../v1alpha/PageInfoOrBuilder.java | 145 + .../discoveryengine/v1alpha/PanelInfo.java | 1004 + .../v1alpha/PanelInfoOrBuilder.java | 99 + .../v1alpha/PurgeConfigProto.java | 144 + .../v1alpha/PurgeDocumentsMetadata.java | 1051 + .../PurgeDocumentsMetadataOrBuilder.java | 86 + .../v1alpha/PurgeDocumentsRequest.java | 853 + .../PurgeDocumentsRequestOrBuilder.java | 66 + .../v1alpha/PurgeDocumentsResponse.java | 769 + .../PurgeDocumentsResponseOrBuilder.java | 68 + .../v1alpha/PurgeUserEventsMetadata.java | 1051 + .../PurgeUserEventsMetadataOrBuilder.java | 86 + .../v1alpha/PurgeUserEventsRequest.java | 1026 + .../PurgeUserEventsRequestOrBuilder.java | 116 + .../v1alpha/PurgeUserEventsResponse.java | 500 + .../PurgeUserEventsResponseOrBuilder.java | 19 + .../v1alpha/RecommendRequest.java | 2629 ++ .../v1alpha/RecommendRequestOrBuilder.java | 525 + .../v1alpha/RecommendResponse.java | 2754 +++ .../v1alpha/RecommendResponseOrBuilder.java | 141 + .../v1alpha/RecommendationServiceProto.java | 179 + .../v1alpha/RecrawlUrisMetadata.java | 1488 ++ .../v1alpha/RecrawlUrisMetadataOrBuilder.java | 156 + .../v1alpha/RecrawlUrisRequest.java | 882 + .../v1alpha/RecrawlUrisRequestOrBuilder.java | 88 + .../v1alpha/RecrawlUrisResponse.java | 3076 +++ .../v1alpha/RecrawlUrisResponseOrBuilder.java | 94 + .../cloud/discoveryengine/v1alpha/Reply.java | 2237 ++ .../v1alpha/ReplyOrBuilder.java | 106 + .../cloud/discoveryengine/v1alpha/Schema.java | 1591 ++ .../discoveryengine/v1alpha/SchemaName.java | 427 + .../v1alpha/SchemaOrBuilder.java | 139 + .../discoveryengine/v1alpha/SchemaProto.java | 129 + .../v1alpha/SchemaServiceProto.java | 249 + .../discoveryengine/v1alpha/SearchInfo.java | 1084 + .../v1alpha/SearchInfoOrBuilder.java | 136 + .../v1alpha/SearchRequest.java | 20030 ++++++++++++++++ .../v1alpha/SearchRequestOrBuilder.java | 834 + .../v1alpha/SearchResponse.java | 12868 ++++++++++ .../v1alpha/SearchResponseOrBuilder.java | 373 + .../v1alpha/SearchServiceProto.java | 524 + .../v1alpha/ServingConfigName.java | 566 + .../v1alpha/SiteSearchEngineName.java | 374 + .../v1alpha/SiteSearchEngineServiceProto.java | 163 + .../discoveryengine/v1alpha/SolutionType.java | 167 + .../discoveryengine/v1alpha/TextInput.java | 806 + .../v1alpha/TextInputOrBuilder.java | 56 + .../v1alpha/TransactionInfo.java | 1374 ++ .../v1alpha/TransactionInfoOrBuilder.java | 183 + .../v1alpha/UpdateConversationRequest.java | 943 + .../UpdateConversationRequestOrBuilder.java | 81 + .../v1alpha/UpdateDocumentRequest.java | 849 + .../UpdateDocumentRequestOrBuilder.java | 76 + .../v1alpha/UpdateSchemaMetadata.java | 883 + .../UpdateSchemaMetadataOrBuilder.java | 66 + .../v1alpha/UpdateSchemaRequest.java | 753 + .../v1alpha/UpdateSchemaRequestOrBuilder.java | 52 + .../discoveryengine/v1alpha/UserEvent.java | 5826 +++++ .../v1alpha/UserEventOrBuilder.java | 937 + .../v1alpha/UserEventProto.java | 212 + .../v1alpha/UserEventServiceProto.java | 151 + .../discoveryengine/v1alpha/UserInfo.java | 881 + .../v1alpha/UserInfoOrBuilder.java | 89 + .../v1alpha/WriteUserEventRequest.java | 823 + .../WriteUserEventRequestOrBuilder.java | 58 + .../discoveryengine/v1alpha/common.proto | 155 + .../v1alpha/completion_service.proto | 134 + .../v1alpha/conversation.proto | 138 + .../conversational_search_service.proto | 306 + .../discoveryengine/v1alpha/document.proto | 121 + .../v1alpha/document_service.proto | 318 + .../v1alpha/import_config.proto | 343 + .../v1alpha/purge_config.proto | 159 + .../v1alpha/recommendation_service.proto | 221 + .../discoveryengine/v1alpha/schema.proto | 312 + .../v1alpha/schema_service.proto | 260 + .../v1alpha/search_service.proto | 851 + .../v1alpha/site_search_engine_service.proto | 152 + .../discoveryengine/v1alpha/user_event.proto | 475 + .../v1alpha/user_event_service.proto | 154 + .../completequery/AsyncCompleteQuery.java | 57 + .../completequery/SyncCompleteQuery.java | 53 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../completequery/SyncCompleteQuery.java | 49 + .../AsyncConverseConversation.java | 68 + .../SyncConverseConversation.java | 65 + ...ConversationConversationnameTextinput.java | 48 + ...ncConverseConversationStringTextinput.java | 49 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../AsyncCreateConversation.java | 55 + .../SyncCreateConversation.java | 51 + ...ConversationDatastorenameConversation.java | 46 + ...cCreateConversationStringConversation.java | 47 + .../AsyncDeleteConversation.java | 54 + .../SyncDeleteConversation.java | 50 + ...yncDeleteConversationConversationname.java | 45 + .../SyncDeleteConversationString.java | 46 + .../getconversation/AsyncGetConversation.java | 54 + .../getconversation/SyncGetConversation.java | 50 + .../SyncGetConversationConversationname.java | 45 + .../SyncGetConversationString.java | 46 + .../AsyncListConversations.java | 60 + .../AsyncListConversationsPaged.java | 68 + .../SyncListConversations.java | 57 + .../SyncListConversationsDatastorename.java | 47 + .../SyncListConversationsString.java | 48 + .../AsyncUpdateConversation.java | 52 + .../SyncUpdateConversation.java | 48 + ...dateConversationConversationFieldmask.java | 45 + .../SyncConverseConversation.java | 50 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../createdocument/AsyncCreateDocument.java | 55 + .../createdocument/SyncCreateDocument.java | 51 + ...reateDocumentBranchnameDocumentString.java | 46 + ...yncCreateDocumentStringDocumentString.java | 47 + .../deletedocument/AsyncDeleteDocument.java | 52 + .../deletedocument/SyncDeleteDocument.java | 49 + .../SyncDeleteDocumentDocumentname.java | 44 + .../SyncDeleteDocumentString.java | 45 + .../getdocument/AsyncGetDocument.java | 52 + .../getdocument/SyncGetDocument.java | 49 + .../SyncGetDocumentDocumentname.java | 44 + .../getdocument/SyncGetDocumentString.java | 45 + .../importdocuments/AsyncImportDocuments.java | 57 + .../AsyncImportDocumentsLRO.java | 58 + .../importdocuments/SyncImportDocuments.java | 53 + .../listdocuments/AsyncListDocuments.java | 57 + .../AsyncListDocumentsPaged.java | 65 + .../listdocuments/SyncListDocuments.java | 53 + .../SyncListDocumentsBranchname.java | 46 + .../SyncListDocumentsString.java | 47 + .../purgedocuments/AsyncPurgeDocuments.java | 55 + .../AsyncPurgeDocumentsLRO.java | 56 + .../purgedocuments/SyncPurgeDocuments.java | 51 + .../updatedocument/AsyncUpdateDocument.java | 50 + .../updatedocument/SyncUpdateDocument.java | 46 + .../getdocument/SyncGetDocument.java | 49 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../recommend/AsyncRecommend.java | 63 + .../recommend/SyncRecommend.java | 59 + .../recommend/SyncRecommend.java | 50 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 41 + .../createschema/AsyncCreateSchema.java | 55 + .../createschema/AsyncCreateSchemaLRO.java | 56 + .../createschema/SyncCreateSchema.java | 51 + ...CreateSchemaDatastorenameSchemaString.java | 45 + .../SyncCreateSchemaStringSchemaString.java | 46 + .../deleteschema/AsyncDeleteSchema.java | 52 + .../deleteschema/AsyncDeleteSchemaLRO.java | 54 + .../deleteschema/SyncDeleteSchema.java | 49 + .../SyncDeleteSchemaSchemaname.java | 44 + .../deleteschema/SyncDeleteSchemaString.java | 45 + .../getschema/AsyncGetSchema.java | 52 + .../getschema/SyncGetSchema.java | 49 + .../getschema/SyncGetSchemaSchemaname.java | 44 + .../getschema/SyncGetSchemaString.java | 45 + .../listschemas/AsyncListSchemas.java | 56 + .../listschemas/AsyncListSchemasPaged.java | 64 + .../listschemas/SyncListSchemas.java | 53 + .../SyncListSchemasDatastorename.java | 45 + .../listschemas/SyncListSchemasString.java | 46 + .../updateschema/AsyncUpdateSchema.java | 50 + .../updateschema/AsyncUpdateSchemaLRO.java | 51 + .../updateschema/SyncUpdateSchema.java | 46 + .../getschema/SyncGetSchema.java | 48 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 41 + .../searchservice/search/AsyncSearch.java | 83 + .../search/AsyncSearchPaged.java | 89 + .../searchservice/search/SyncSearch.java | 79 + .../search/SyncSearch.java | 48 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../recrawluris/AsyncRecrawlUris.java | 56 + .../recrawluris/AsyncRecrawlUrisLRO.java | 57 + .../recrawluris/SyncRecrawlUris.java | 52 + .../recrawluris/SyncRecrawlUris.java | 50 + .../completequery/SyncCompleteQuery.java | 50 + .../SyncConverseConversation.java | 50 + .../getdocument/SyncGetDocument.java | 49 + .../recommend/SyncRecommend.java | 50 + .../getschema/SyncGetSchema.java | 49 + .../search/SyncSearch.java | 49 + .../recrawluris/SyncRecrawlUris.java | 50 + .../writeuserevent/SyncWriteUserEvent.java | 49 + .../AsyncCollectUserEvent.java | 56 + .../SyncCollectUserEvent.java | 52 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../AsyncImportUserEvents.java | 55 + .../AsyncImportUserEventsLRO.java | 56 + .../SyncImportUserEvents.java | 52 + .../purgeuserevents/AsyncPurgeUserEvents.java | 55 + .../AsyncPurgeUserEventsLRO.java | 56 + .../purgeuserevents/SyncPurgeUserEvents.java | 51 + .../writeuserevent/AsyncWriteUserEvent.java | 54 + .../writeuserevent/SyncWriteUserEvent.java | 50 + .../writeuserevent/SyncWriteUserEvent.java | 49 + .../v1beta/CompletionServiceClient.java | 0 .../v1beta/CompletionServiceSettings.java | 1 + .../ConversationalSearchServiceClient.java | 0 .../ConversationalSearchServiceSettings.java | 1 + .../v1beta/DocumentServiceClient.java | 0 .../v1beta/DocumentServiceSettings.java | 1 + .../v1beta/RecommendationServiceClient.java | 0 .../v1beta/RecommendationServiceSettings.java | 1 + .../v1beta/SchemaServiceClient.java | 0 .../v1beta/SchemaServiceSettings.java | 1 + .../v1beta/SearchServiceClient.java | 0 .../v1beta/SearchServiceSettings.java | 1 + .../v1beta/UserEventServiceClient.java | 0 .../v1beta/UserEventServiceSettings.java | 1 + .../v1beta/gapic_metadata.json | 0 .../discoveryengine/v1beta/package-info.java | 0 .../v1beta/stub/CompletionServiceStub.java | 0 .../stub/CompletionServiceStubSettings.java | 0 .../stub/ConversationalSearchServiceStub.java | 0 ...nversationalSearchServiceStubSettings.java | 0 .../v1beta/stub/DocumentServiceStub.java | 0 .../stub/DocumentServiceStubSettings.java | 0 .../GrpcCompletionServiceCallableFactory.java | 0 .../stub/GrpcCompletionServiceStub.java | 1 + ...rsationalSearchServiceCallableFactory.java | 0 .../GrpcConversationalSearchServiceStub.java | 1 + .../GrpcDocumentServiceCallableFactory.java | 0 .../v1beta/stub/GrpcDocumentServiceStub.java | 1 + ...cRecommendationServiceCallableFactory.java | 0 .../stub/GrpcRecommendationServiceStub.java | 1 + .../GrpcSchemaServiceCallableFactory.java | 0 .../v1beta/stub/GrpcSchemaServiceStub.java | 1 + .../GrpcSearchServiceCallableFactory.java | 0 .../v1beta/stub/GrpcSearchServiceStub.java | 1 + .../GrpcUserEventServiceCallableFactory.java | 0 .../v1beta/stub/GrpcUserEventServiceStub.java | 1 + ...pJsonCompletionServiceCallableFactory.java | 0 .../stub/HttpJsonCompletionServiceStub.java | 0 ...rsationalSearchServiceCallableFactory.java | 0 ...tpJsonConversationalSearchServiceStub.java | 0 ...ttpJsonDocumentServiceCallableFactory.java | 0 .../stub/HttpJsonDocumentServiceStub.java | 1 + ...nRecommendationServiceCallableFactory.java | 0 .../HttpJsonRecommendationServiceStub.java | 0 .../HttpJsonSchemaServiceCallableFactory.java | 0 .../stub/HttpJsonSchemaServiceStub.java | 1 + .../HttpJsonSearchServiceCallableFactory.java | 0 .../stub/HttpJsonSearchServiceStub.java | 0 ...tpJsonUserEventServiceCallableFactory.java | 0 .../stub/HttpJsonUserEventServiceStub.java | 1 + .../stub/RecommendationServiceStub.java | 0 .../RecommendationServiceStubSettings.java | 0 .../v1beta/stub/SchemaServiceStub.java | 0 .../stub/SchemaServiceStubSettings.java | 0 .../v1beta/stub/SearchServiceStub.java | 0 .../stub/SearchServiceStubSettings.java | 0 .../v1beta/stub/UserEventServiceStub.java | 0 .../stub/UserEventServiceStubSettings.java | 0 .../reflect-config.json | 0 .../CompletionServiceClientHttpJsonTest.java | 0 .../v1beta/CompletionServiceClientTest.java | 0 ...tionalSearchServiceClientHttpJsonTest.java | 0 ...ConversationalSearchServiceClientTest.java | 0 .../DocumentServiceClientHttpJsonTest.java | 0 .../v1beta/DocumentServiceClientTest.java | 0 .../v1beta/MockCompletionService.java | 0 .../v1beta/MockCompletionServiceImpl.java | 0 .../MockConversationalSearchService.java | 0 .../MockConversationalSearchServiceImpl.java | 0 .../v1beta/MockDocumentService.java | 0 .../v1beta/MockDocumentServiceImpl.java | 0 .../v1beta/MockRecommendationService.java | 0 .../v1beta/MockRecommendationServiceImpl.java | 0 .../v1beta/MockSchemaService.java | 0 .../v1beta/MockSchemaServiceImpl.java | 0 .../v1beta/MockSearchService.java | 0 .../v1beta/MockSearchServiceImpl.java | 0 .../v1beta/MockUserEventService.java | 0 .../v1beta/MockUserEventServiceImpl.java | 0 ...commendationServiceClientHttpJsonTest.java | 0 .../RecommendationServiceClientTest.java | 0 .../SchemaServiceClientHttpJsonTest.java | 0 .../v1beta/SchemaServiceClientTest.java | 0 .../SearchServiceClientHttpJsonTest.java | 0 .../v1beta/SearchServiceClientTest.java | 0 .../UserEventServiceClientHttpJsonTest.java | 0 .../v1beta/UserEventServiceClientTest.java | 0 .../v1beta/CompletionServiceGrpc.java | 217 +- .../ConversationalSearchServiceGrpc.java | 789 + .../v1beta/DocumentServiceGrpc.java | 927 + .../v1beta/RecommendationServiceGrpc.java | 210 +- .../v1beta/SchemaServiceGrpc.java | 667 + .../v1beta/SearchServiceGrpc.java | 214 +- .../v1beta/UserEventServiceGrpc.java | 402 +- .../v1beta/BigQuerySource.java | 739 +- .../v1beta/BigQuerySourceOrBuilder.java | 71 +- .../discoveryengine/v1beta/BranchName.java | 0 .../v1beta/CollectUserEventRequest.java | 563 +- .../CollectUserEventRequestOrBuilder.java | 62 +- .../discoveryengine/v1beta/CommonProto.java | 119 + .../v1beta/CompleteQueryRequest.java | 612 +- .../v1beta/CompleteQueryRequestOrBuilder.java | 65 +- .../v1beta/CompleteQueryResponse.java | 1023 +- .../CompleteQueryResponseOrBuilder.java | 65 +- .../v1beta/CompletionInfo.java | 353 +- .../v1beta/CompletionInfoOrBuilder.java | 30 +- .../v1beta/CompletionServiceProto.java | 117 + .../discoveryengine/v1beta/Conversation.java | 935 +- .../v1beta/ConversationContext.java | 430 +- .../v1beta/ConversationContextOrBuilder.java | 45 +- .../v1beta/ConversationMessage.java | 616 +- .../v1beta/ConversationMessageOrBuilder.java | 51 +- .../v1beta/ConversationName.java | 0 .../v1beta/ConversationOrBuilder.java | 91 +- .../v1beta/ConversationProto.java | 161 + .../ConversationalSearchServiceProto.java | 272 + .../v1beta/ConverseConversationRequest.java | 1165 +- .../ConverseConversationRequestOrBuilder.java | 131 +- .../v1beta/ConverseConversationResponse.java | 885 +- ...ConverseConversationResponseOrBuilder.java | 91 +- .../v1beta/CreateConversationRequest.java | 528 +- .../CreateConversationRequestOrBuilder.java | 58 + .../v1beta/CreateDocumentRequest.java | 574 +- .../CreateDocumentRequestOrBuilder.java | 64 +- .../v1beta/CreateSchemaMetadata.java | 441 +- .../v1beta/CreateSchemaMetadataOrBuilder.java | 34 +- .../v1beta/CreateSchemaRequest.java | 564 +- .../v1beta/CreateSchemaRequestOrBuilder.java | 64 +- .../v1beta/CustomAttribute.java | 454 +- .../v1beta/CustomAttributeOrBuilder.java | 45 +- .../discoveryengine/v1beta/DataStoreName.java | 0 .../v1beta/DeleteConversationRequest.java | 381 +- .../DeleteConversationRequestOrBuilder.java | 31 + .../v1beta/DeleteDocumentRequest.java | 360 +- .../DeleteDocumentRequestOrBuilder.java | 35 +- .../v1beta/DeleteSchemaMetadata.java | 441 +- .../v1beta/DeleteSchemaMetadataOrBuilder.java | 34 +- .../v1beta/DeleteSchemaRequest.java | 350 +- .../v1beta/DeleteSchemaRequestOrBuilder.java | 31 + .../discoveryengine/v1beta/Document.java | 1527 +- .../discoveryengine/v1beta/DocumentInfo.java | 710 +- .../v1beta/DocumentInfoOrBuilder.java | 81 +- .../discoveryengine/v1beta/DocumentName.java | 0 .../v1beta/DocumentOrBuilder.java | 102 +- .../discoveryengine/v1beta/DocumentProto.java | 97 + .../v1beta/DocumentServiceProto.java | 230 + .../discoveryengine/v1beta/DoubleList.java | 343 +- .../v1beta/DoubleListOrBuilder.java | 27 +- .../discoveryengine/v1beta/GcsSource.java | 427 +- .../v1beta/GcsSourceOrBuilder.java | 45 +- .../v1beta/GetConversationRequest.java | 370 +- .../GetConversationRequestOrBuilder.java | 31 + .../v1beta/GetDocumentRequest.java | 350 +- .../v1beta/GetDocumentRequestOrBuilder.java | 35 +- .../v1beta/GetSchemaRequest.java | 350 +- .../v1beta/GetSchemaRequestOrBuilder.java | 31 + .../v1beta/ImportConfigProto.java | 249 + .../v1beta/ImportDocumentsMetadata.java | 522 +- .../ImportDocumentsMetadataOrBuilder.java | 40 +- .../v1beta/ImportDocumentsRequest.java | 1805 +- .../ImportDocumentsRequestOrBuilder.java | 111 +- .../v1beta/ImportDocumentsResponse.java | 545 +- .../ImportDocumentsResponseOrBuilder.java | 45 +- .../v1beta/ImportErrorConfig.java | 384 +- .../v1beta/ImportErrorConfigOrBuilder.java | 30 +- .../v1beta/ImportUserEventsMetadata.java | 522 +- .../ImportUserEventsMetadataOrBuilder.java | 40 +- .../v1beta/ImportUserEventsRequest.java | 1537 +- .../ImportUserEventsRequestOrBuilder.java | 82 +- .../v1beta/ImportUserEventsResponse.java | 613 +- .../ImportUserEventsResponseOrBuilder.java | 51 +- .../discoveryengine/v1beta/Interval.java | 552 +- .../v1beta/IntervalOrBuilder.java | 42 +- .../v1beta/ListConversationsRequest.java | 622 +- .../ListConversationsRequestOrBuilder.java | 65 +- .../v1beta/ListConversationsResponse.java | 500 +- .../ListConversationsResponseOrBuilder.java | 42 +- .../v1beta/ListDocumentsRequest.java | 463 +- .../v1beta/ListDocumentsRequestOrBuilder.java | 47 +- .../v1beta/ListDocumentsResponse.java | 488 +- .../ListDocumentsResponseOrBuilder.java | 45 +- .../v1beta/ListSchemasRequest.java | 453 +- .../v1beta/ListSchemasRequestOrBuilder.java | 47 +- .../v1beta/ListSchemasResponse.java | 483 +- .../v1beta/ListSchemasResponseOrBuilder.java | 45 +- .../discoveryengine/v1beta/MediaInfo.java | 392 +- .../v1beta/MediaInfoOrBuilder.java | 32 +- .../discoveryengine/v1beta/PageInfo.java | 537 +- .../v1beta/PageInfoOrBuilder.java | 54 +- .../discoveryengine/v1beta/PanelInfo.java | 465 +- .../v1beta/PanelInfoOrBuilder.java | 48 +- .../v1beta/PurgeConfigProto.java | 102 + .../v1beta/PurgeDocumentsMetadata.java | 519 +- .../PurgeDocumentsMetadataOrBuilder.java | 40 +- .../v1beta/PurgeDocumentsRequest.java | 466 +- .../PurgeDocumentsRequestOrBuilder.java | 47 +- .../v1beta/PurgeDocumentsResponse.java | 412 +- .../PurgeDocumentsResponseOrBuilder.java | 39 +- .../v1beta/RecommendRequest.java | 1104 +- .../v1beta/RecommendRequestOrBuilder.java | 130 +- .../v1beta/RecommendResponse.java | 1570 +- .../v1beta/RecommendResponseOrBuilder.java | 92 +- .../v1beta/RecommendationServiceProto.java | 176 + .../cloud/discoveryengine/v1beta/Reply.java | 1239 +- .../v1beta/ReplyOrBuilder.java | 106 + .../cloud/discoveryengine/v1beta/Schema.java | 540 +- .../discoveryengine/v1beta/SchemaName.java | 0 .../v1beta/SchemaOrBuilder.java | 47 +- .../discoveryengine/v1beta/SchemaProto.java | 78 + .../v1beta/SchemaServiceProto.java | 249 + .../discoveryengine/v1beta/SearchInfo.java | 428 +- .../v1beta/SearchInfoOrBuilder.java | 42 +- .../discoveryengine/v1beta/SearchRequest.java | 10940 +++------ .../v1beta/SearchRequestOrBuilder.java | 315 +- .../v1beta/SearchResponse.java | 7021 ++---- .../v1beta/SearchResponseOrBuilder.java | 174 +- .../v1beta/SearchServiceProto.java | 504 + .../v1beta/ServingConfigName.java | 0 .../discoveryengine/v1beta/TextInput.java | 421 +- .../v1beta/TextInputOrBuilder.java | 35 +- .../v1beta/TransactionInfo.java | 554 +- .../v1beta/TransactionInfoOrBuilder.java | 60 +- .../v1beta/UpdateConversationRequest.java | 520 +- .../UpdateConversationRequestOrBuilder.java | 46 +- .../v1beta/UpdateDocumentRequest.java | 439 +- .../UpdateDocumentRequestOrBuilder.java | 41 +- .../v1beta/UpdateSchemaMetadata.java | 441 +- .../v1beta/UpdateSchemaMetadataOrBuilder.java | 34 +- .../v1beta/UpdateSchemaRequest.java | 429 +- .../v1beta/UpdateSchemaRequestOrBuilder.java | 41 +- .../discoveryengine/v1beta/UserEvent.java | 2079 +- .../v1beta/UserEventOrBuilder.java | 224 +- .../v1beta/UserEventProto.java | 212 + .../v1beta/UserEventServiceProto.java | 137 + .../discoveryengine/v1beta/UserInfo.java | 391 +- .../v1beta/UserInfoOrBuilder.java | 36 +- .../v1beta/WriteUserEventRequest.java | 502 +- .../WriteUserEventRequestOrBuilder.java | 58 + .../cloud/discoveryengine/v1beta/common.proto | 0 .../v1beta/completion_service.proto | 0 .../discoveryengine/v1beta/conversation.proto | 0 .../conversational_search_service.proto | 0 .../discoveryengine/v1beta/document.proto | 0 .../v1beta/document_service.proto | 0 .../v1beta/import_config.proto | 0 .../discoveryengine/v1beta/purge_config.proto | 0 .../v1beta/recommendation_service.proto | 0 .../cloud/discoveryengine/v1beta/schema.proto | 0 .../v1beta/schema_service.proto | 0 .../v1beta/search_service.proto | 0 .../discoveryengine/v1beta/user_event.proto | 0 .../v1beta/user_event_service.proto | 0 .../completequery/AsyncCompleteQuery.java | 0 .../completequery/SyncCompleteQuery.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../completequery/SyncCompleteQuery.java | 0 .../AsyncConverseConversation.java | 0 .../SyncConverseConversation.java | 0 ...ConversationConversationnameTextinput.java | 0 ...ncConverseConversationStringTextinput.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConversation.java | 0 .../SyncCreateConversation.java | 0 ...ConversationDatastorenameConversation.java | 0 ...cCreateConversationStringConversation.java | 0 .../AsyncDeleteConversation.java | 0 .../SyncDeleteConversation.java | 0 ...yncDeleteConversationConversationname.java | 0 .../SyncDeleteConversationString.java | 0 .../getconversation/AsyncGetConversation.java | 0 .../getconversation/SyncGetConversation.java | 0 .../SyncGetConversationConversationname.java | 0 .../SyncGetConversationString.java | 0 .../AsyncListConversations.java | 0 .../AsyncListConversationsPaged.java | 0 .../SyncListConversations.java | 0 .../SyncListConversationsDatastorename.java | 0 .../SyncListConversationsString.java | 0 .../AsyncUpdateConversation.java | 0 .../SyncUpdateConversation.java | 0 ...dateConversationConversationFieldmask.java | 0 .../SyncConverseConversation.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdocument/AsyncCreateDocument.java | 0 .../createdocument/SyncCreateDocument.java | 0 ...reateDocumentBranchnameDocumentString.java | 0 ...yncCreateDocumentStringDocumentString.java | 0 .../deletedocument/AsyncDeleteDocument.java | 0 .../deletedocument/SyncDeleteDocument.java | 0 .../SyncDeleteDocumentDocumentname.java | 0 .../SyncDeleteDocumentString.java | 0 .../getdocument/AsyncGetDocument.java | 0 .../getdocument/SyncGetDocument.java | 0 .../SyncGetDocumentDocumentname.java | 0 .../getdocument/SyncGetDocumentString.java | 0 .../importdocuments/AsyncImportDocuments.java | 0 .../AsyncImportDocumentsLRO.java | 0 .../importdocuments/SyncImportDocuments.java | 0 .../listdocuments/AsyncListDocuments.java | 0 .../AsyncListDocumentsPaged.java | 0 .../listdocuments/SyncListDocuments.java | 0 .../SyncListDocumentsBranchname.java | 0 .../SyncListDocumentsString.java | 0 .../purgedocuments/AsyncPurgeDocuments.java | 0 .../AsyncPurgeDocumentsLRO.java | 0 .../purgedocuments/SyncPurgeDocuments.java | 0 .../updatedocument/AsyncUpdateDocument.java | 0 .../updatedocument/SyncUpdateDocument.java | 0 .../getdocument/SyncGetDocument.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../recommend/AsyncRecommend.java | 0 .../recommend/SyncRecommend.java | 0 .../recommend/SyncRecommend.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createschema/AsyncCreateSchema.java | 0 .../createschema/AsyncCreateSchemaLRO.java | 0 .../createschema/SyncCreateSchema.java | 0 ...CreateSchemaDatastorenameSchemaString.java | 0 .../SyncCreateSchemaStringSchemaString.java | 0 .../deleteschema/AsyncDeleteSchema.java | 0 .../deleteschema/AsyncDeleteSchemaLRO.java | 0 .../deleteschema/SyncDeleteSchema.java | 0 .../SyncDeleteSchemaSchemaname.java | 0 .../deleteschema/SyncDeleteSchemaString.java | 0 .../getschema/AsyncGetSchema.java | 0 .../getschema/SyncGetSchema.java | 0 .../getschema/SyncGetSchemaSchemaname.java | 0 .../getschema/SyncGetSchemaString.java | 0 .../listschemas/AsyncListSchemas.java | 0 .../listschemas/AsyncListSchemasPaged.java | 0 .../listschemas/SyncListSchemas.java | 0 .../SyncListSchemasDatastorename.java | 0 .../listschemas/SyncListSchemasString.java | 0 .../updateschema/AsyncUpdateSchema.java | 0 .../updateschema/AsyncUpdateSchemaLRO.java | 0 .../updateschema/SyncUpdateSchema.java | 0 .../getschema/SyncGetSchema.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../searchservice/search/AsyncSearch.java | 0 .../search/AsyncSearchPaged.java | 0 .../searchservice/search/SyncSearch.java | 0 .../search/SyncSearch.java | 0 .../completequery/SyncCompleteQuery.java | 0 .../SyncConverseConversation.java | 0 .../getdocument/SyncGetDocument.java | 0 .../recommend/SyncRecommend.java | 0 .../getschema/SyncGetSchema.java | 0 .../search/SyncSearch.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 .../AsyncCollectUserEvent.java | 0 .../SyncCollectUserEvent.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncImportUserEvents.java | 0 .../AsyncImportUserEventsLRO.java | 0 .../SyncImportUserEvents.java | 0 .../writeuserevent/AsyncWriteUserEvent.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 1178 files changed, 234745 insertions(+), 84434 deletions(-) delete mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java delete mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java delete mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java delete mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java delete mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java delete mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java delete mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java (53%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java (53%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java (53%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java (83%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java (81%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java (52%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java (76%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java (80%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java (60%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java (66%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java (84%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java (63%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java (64%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java (75%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java (74%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java (80%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java (81%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java (79%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java (86%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java (64%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java (65%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java (84%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java (75%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java (66%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java (74%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java (75%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java (79%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java (82%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java (59%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java (66%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java (61%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java (77%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java (83%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java (85%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java (63%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java (78%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java (86%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java (65%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java (65%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java (53%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java (80%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java (93%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java (74%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java (78%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java (61%) create mode 100644 owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/AsyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/SyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservicesettings/completequery/SyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/AsyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/AsyncCreateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/AsyncGetConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversations.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversations.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/AsyncCreateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/AsyncDeleteDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/AsyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocumentsLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/SyncImportDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocumentsPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsBranchname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/SyncPurgeDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/AsyncUpdateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/SyncUpdateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservicesettings/getdocument/SyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchemaLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/AsyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemas.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemasPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemas.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasDatastorename.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchemaLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/SyncUpdateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservicesettings/getschema/SyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservicesettings/search/SyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/documentservicestubsettings/getdocument/SyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/schemaservicestubsettings/getschema/SyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/searchservicestubsettings/search/SyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/AsyncCollectUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/SyncCollectUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEvents.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEventsLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/SyncImportUserEvents.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/AsyncWriteUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/SyncWriteUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1}/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java (100%) create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceCallableFactory.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocations.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocationsImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventService.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventServiceImpl.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientTest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySource.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySourceOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Conversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContext.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContextOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessage.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessageOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttribute.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttributeOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DoubleList.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DoubleListOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfigOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSource.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSourceOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfig.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfigOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Interval.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IntervalOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Reply.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ReplyOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Schema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponseOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SolutionType.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInput.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInputOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadata.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserInfo.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserInfoOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequest.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversation.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event_service.proto create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/AsyncCompleteQuery.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/SyncCompleteQuery.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservicesettings/completequery/SyncCompleteQuery.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/AsyncCreateConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/AsyncGetConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversations.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversations.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/AsyncCreateDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/AsyncDeleteDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/AsyncGetDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentDocumentname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocuments.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocumentsLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/SyncImportDocuments.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocuments.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocumentsPaged.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocuments.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsBranchname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservicesettings/getdocument/SyncGetDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/AsyncRecommend.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/SyncRecommend.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservicesettings/recommend/SyncRecommend.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchemaLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/AsyncGetSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaSchemaname.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemas.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemasPaged.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemas.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasDatastorename.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasString.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchemaLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/SyncUpdateSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservicesettings/getschema/SyncGetSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservicesettings/search/SyncSearch.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/SyncRecrawlUris.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservicesettings/recrawluris/SyncRecrawlUris.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/documentservicestubsettings/getdocument/SyncGetDocument.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/recommendationservicestubsettings/recommend/SyncRecommend.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/schemaservicestubsettings/getschema/SyncGetSchema.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/searchservicestubsettings/search/SyncSearch.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/sitesearchengineservicestubsettings/recrawluris/SyncRecrawlUris.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/AsyncCollectUserEvent.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/SyncCollectUserEvent.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEvents.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEventsLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/SyncImportUserEvents.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/SyncPurgeUserEvents.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/AsyncWriteUserEvent.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/SyncWriteUserEvent.java create mode 100644 owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceCallableFactory.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java (99%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventService.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java (53%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java (56%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java (53%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java (53%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java (83%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java (81%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java (60%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java (52%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Conversation.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java (76%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java (79%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java (65%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java (59%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java (66%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java (84%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java (61%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java (64%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java (75%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java (75%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java (81%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java (81%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java (65%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java (57%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java (79%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java (86%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java (62%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java (62%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java (64%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java (82%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java (63%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java (75%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java (72%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java (80%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java (76%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java (82%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java (73%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java (59%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java (77%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java (88%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java (66%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java (65%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java (71%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfo.java (77%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java (84%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java (85%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java (66%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java (78%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java (67%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java (78%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java (86%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java (65%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java (69%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java (68%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java (70%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java (64%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java (54%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java (80%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java (93%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfo.java (74%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java (78%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java (61%) create mode 100644 owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/AsyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/SyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservicesettings/completequery/SyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/AsyncCreateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/AsyncGetConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversations.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversations.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/AsyncCreateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/AsyncDeleteDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/AsyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentDocumentname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocumentsPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsBranchname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/SyncPurgeDocuments.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/AsyncUpdateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/SyncUpdateDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservicesettings/getdocument/SyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/AsyncRecommend.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/SyncRecommend.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservicesettings/recommend/SyncRecommend.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchemaLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/AsyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaSchemaname.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemas.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemasPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemas.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasDatastorename.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasString.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchemaLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/SyncUpdateSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservicesettings/getschema/SyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservicesettings/search/SyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/documentservicestubsettings/getdocument/SyncGetDocument.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/recommendationservicestubsettings/recommend/SyncRecommend.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/schemaservicestubsettings/getschema/SyncGetSchema.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchservicestubsettings/search/SyncSearch.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/AsyncCollectUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/SyncCollectUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetEndpoint.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEvents.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEventsLRO.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/SyncImportUserEvents.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/AsyncWriteUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/SyncWriteUserEvent.java (100%) rename {java-discoveryengine => owl-bot-staging/java-discoveryengine/v1beta}/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java (100%) diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java deleted file mode 100644 index 6b410938457a..000000000000 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java +++ /dev/null @@ -1,1047 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.discoveryengine.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for conversational search.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/conversational_search_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConversationalSearchServiceGrpc { - - private ConversationalSearchServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1.ConversationalSearchService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1.ConverseConversationResponse> - getConverseConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConverseConversation", - requestType = com.google.cloud.discoveryengine.v1.ConverseConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1.ConverseConversationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1.ConverseConversationResponse> - getConverseConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1.ConverseConversationResponse> - getConverseConversationMethod; - if ((getConverseConversationMethod = - ConversationalSearchServiceGrpc.getConverseConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getConverseConversationMethod = - ConversationalSearchServiceGrpc.getConverseConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getConverseConversationMethod = - getConverseConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConverseConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ConverseConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ConverseConversationResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "ConverseConversation")) - .build(); - } - } - } - return getConverseConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getCreateConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversation", - requestType = com.google.cloud.discoveryengine.v1.CreateConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getCreateConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getCreateConversationMethod; - if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getCreateConversationMethod = - ConversationalSearchServiceGrpc.getCreateConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getCreateConversationMethod = - getCreateConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.CreateConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "CreateConversation")) - .build(); - } - } - } - return getCreateConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteConversationRequest, com.google.protobuf.Empty> - getDeleteConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", - requestType = com.google.cloud.discoveryengine.v1.DeleteConversationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteConversationRequest, com.google.protobuf.Empty> - getDeleteConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteConversationRequest, - com.google.protobuf.Empty> - getDeleteConversationMethod; - if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getDeleteConversationMethod = - ConversationalSearchServiceGrpc.getDeleteConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getDeleteConversationMethod = - getDeleteConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "DeleteConversation")) - .build(); - } - } - } - return getDeleteConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getUpdateConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConversation", - requestType = com.google.cloud.discoveryengine.v1.UpdateConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getUpdateConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getUpdateConversationMethod; - if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getUpdateConversationMethod = - ConversationalSearchServiceGrpc.getUpdateConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getUpdateConversationMethod = - getUpdateConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "UpdateConversation")) - .build(); - } - } - } - return getUpdateConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getGetConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversation", - requestType = com.google.cloud.discoveryengine.v1.GetConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getGetConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation> - getGetConversationMethod; - if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getGetConversationMethod = - getGetConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.GetConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "GetConversation")) - .build(); - } - } - } - return getGetConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListConversationsRequest, - com.google.cloud.discoveryengine.v1.ListConversationsResponse> - getListConversationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversations", - requestType = com.google.cloud.discoveryengine.v1.ListConversationsRequest.class, - responseType = com.google.cloud.discoveryengine.v1.ListConversationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListConversationsRequest, - com.google.cloud.discoveryengine.v1.ListConversationsResponse> - getListConversationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListConversationsRequest, - com.google.cloud.discoveryengine.v1.ListConversationsResponse> - getListConversationsMethod; - if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getListConversationsMethod = - ConversationalSearchServiceGrpc.getListConversationsMethod) - == null) { - ConversationalSearchServiceGrpc.getListConversationsMethod = - getListConversationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ListConversationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ListConversationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "ListConversations")) - .build(); - } - } - } - return getListConversationsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationalSearchServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceStub(channel, callOptions); - } - }; - return ConversationalSearchServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConversationalSearchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationalSearchServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceBlockingStub(channel, callOptions); - } - }; - return ConversationalSearchServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConversationalSearchServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationalSearchServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceFutureStub(channel, callOptions); - } - }; - return ConversationalSearchServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for conversational search.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - default void converseConversation( - com.google.cloud.discoveryengine.v1.ConverseConversationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1.ConverseConversationResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConverseConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - default void createConversation( - com.google.cloud.discoveryengine.v1.CreateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - default void deleteConversation( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
-     * cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
-     * not exist, a NOT_FOUND error is returned.
-     * 
- */ - default void updateConversation( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - default void getConversation( - com.google.cloud.discoveryengine.v1.GetConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
-     * 
- */ - default void listConversations( - com.google.cloud.discoveryengine.v1.ListConversationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversationsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public abstract static class ConversationalSearchServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ConversationalSearchServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public static final class ConversationalSearchServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ConversationalSearchServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationalSearchServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - public void converseConversation( - com.google.cloud.discoveryengine.v1.ConverseConversationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1.ConverseConversationResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConverseConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - public void createConversation( - com.google.cloud.discoveryengine.v1.CreateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public void deleteConversation( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
-     * cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
-     * not exist, a NOT_FOUND error is returned.
-     * 
- */ - public void updateConversation( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - public void getConversation( - com.google.cloud.discoveryengine.v1.GetConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
-     * 
- */ - public void listConversations( - com.google.cloud.discoveryengine.v1.ListConversationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public static final class ConversationalSearchServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConversationalSearchServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationalSearchServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - public com.google.cloud.discoveryengine.v1.ConverseConversationResponse converseConversation( - com.google.cloud.discoveryengine.v1.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConverseConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Conversation createConversation( - com.google.cloud.discoveryengine.v1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.protobuf.Empty deleteConversation( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
-     * cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
-     * not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Conversation updateConversation( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Conversation getConversation( - com.google.cloud.discoveryengine.v1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
-     * 
- */ - public com.google.cloud.discoveryengine.v1.ListConversationsResponse listConversations( - com.google.cloud.discoveryengine.v1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversationsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public static final class ConversationalSearchServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConversationalSearchServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationalSearchServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.ConverseConversationResponse> - converseConversation( - com.google.cloud.discoveryengine.v1.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Conversation> - createConversation(com.google.cloud.discoveryengine.v1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConversation(com.google.cloud.discoveryengine.v1.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
-     * cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
-     * not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Conversation> - updateConversation(com.google.cloud.discoveryengine.v1.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Conversation> - getConversation(com.google.cloud.discoveryengine.v1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.ListConversationsResponse> - listConversations(com.google.cloud.discoveryengine.v1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CONVERSE_CONVERSATION = 0; - private static final int METHODID_CREATE_CONVERSATION = 1; - private static final int METHODID_DELETE_CONVERSATION = 2; - private static final int METHODID_UPDATE_CONVERSATION = 3; - private static final int METHODID_GET_CONVERSATION = 4; - private static final int METHODID_LIST_CONVERSATIONS = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CONVERSE_CONVERSATION: - serviceImpl.converseConversation( - (com.google.cloud.discoveryengine.v1.ConverseConversationRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1.ConverseConversationResponse>) - responseObserver); - break; - case METHODID_CREATE_CONVERSATION: - serviceImpl.createConversation( - (com.google.cloud.discoveryengine.v1.CreateConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONVERSATION: - serviceImpl.deleteConversation( - (com.google.cloud.discoveryengine.v1.DeleteConversationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONVERSATION: - serviceImpl.updateConversation( - (com.google.cloud.discoveryengine.v1.UpdateConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CONVERSATION: - serviceImpl.getConversation( - (com.google.cloud.discoveryengine.v1.GetConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONVERSATIONS: - serviceImpl.listConversations( - (com.google.cloud.discoveryengine.v1.ListConversationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1.ListConversationsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getConverseConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1.ConverseConversationResponse>( - service, METHODID_CONVERSE_CONVERSATION))) - .addMethod( - getCreateConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.CreateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation>( - service, METHODID_CREATE_CONVERSATION))) - .addMethod( - getDeleteConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.DeleteConversationRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_CONVERSATION))) - .addMethod( - getUpdateConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation>( - service, METHODID_UPDATE_CONVERSATION))) - .addMethod( - getGetConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.GetConversationRequest, - com.google.cloud.discoveryengine.v1.Conversation>( - service, METHODID_GET_CONVERSATION))) - .addMethod( - getListConversationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.ListConversationsRequest, - com.google.cloud.discoveryengine.v1.ListConversationsResponse>( - service, METHODID_LIST_CONVERSATIONS))) - .build(); - } - - private abstract static class ConversationalSearchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConversationalSearchServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConversationalSearchService"); - } - } - - private static final class ConversationalSearchServiceFileDescriptorSupplier - extends ConversationalSearchServiceBaseDescriptorSupplier { - ConversationalSearchServiceFileDescriptorSupplier() {} - } - - private static final class ConversationalSearchServiceMethodDescriptorSupplier - extends ConversationalSearchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ConversationalSearchServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) - .addMethod(getConverseConversationMethod()) - .addMethod(getCreateConversationMethod()) - .addMethod(getDeleteConversationMethod()) - .addMethod(getUpdateConversationMethod()) - .addMethod(getGetConversationMethod()) - .addMethod(getListConversationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java deleted file mode 100644 index 6a7182d74c3b..000000000000 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java +++ /dev/null @@ -1,1159 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.discoveryengine.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
- * information of the customer's website.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/document_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentServiceGrpc { - - private DocumentServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1.DocumentService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getGetDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDocument", - requestType = com.google.cloud.discoveryengine.v1.GetDocumentRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getGetDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getGetDocumentMethod; - if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { - DocumentServiceGrpc.getGetDocumentMethod = - getGetDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.GetDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Document.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("GetDocument")) - .build(); - } - } - } - return getGetDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1.ListDocumentsResponse> - getListDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDocuments", - requestType = com.google.cloud.discoveryengine.v1.ListDocumentsRequest.class, - responseType = com.google.cloud.discoveryengine.v1.ListDocumentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1.ListDocumentsResponse> - getListDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1.ListDocumentsResponse> - getListDocumentsMethod; - if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { - DocumentServiceGrpc.getListDocumentsMethod = - getListDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ListDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ListDocumentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("ListDocuments")) - .build(); - } - } - } - return getListDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getCreateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocument", - requestType = com.google.cloud.discoveryengine.v1.CreateDocumentRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getCreateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getCreateDocumentMethod; - if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { - DocumentServiceGrpc.getCreateDocumentMethod = - getCreateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.CreateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Document.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("CreateDocument")) - .build(); - } - } - } - return getCreateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getUpdateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", - requestType = com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getUpdateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document> - getUpdateDocumentMethod; - if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { - DocumentServiceGrpc.getUpdateDocumentMethod = - getUpdateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Document.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) - .build(); - } - } - } - return getUpdateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", - requestType = com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod; - if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { - DocumentServiceGrpc.getDeleteDocumentMethod = - getDeleteDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("DeleteDocument")) - .build(); - } - } - } - return getDeleteDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest, - com.google.longrunning.Operation> - getImportDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportDocuments", - requestType = com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest, - com.google.longrunning.Operation> - getImportDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest, - com.google.longrunning.Operation> - getImportDocumentsMethod; - if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { - DocumentServiceGrpc.getImportDocumentsMethod = - getImportDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("ImportDocuments")) - .build(); - } - } - } - return getImportDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest, - com.google.longrunning.Operation> - getPurgeDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeDocuments", - requestType = com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest, - com.google.longrunning.Operation> - getPurgeDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest, - com.google.longrunning.Operation> - getPurgeDocumentsMethod; - if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { - DocumentServiceGrpc.getPurgeDocumentsMethod = - getPurgeDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("PurgeDocuments")) - .build(); - } - } - } - return getPurgeDocumentsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DocumentServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceStub(channel, callOptions); - } - }; - return DocumentServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceBlockingStub(channel, callOptions); - } - }; - return DocumentServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DocumentServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceFutureStub(channel, callOptions); - } - }; - return DocumentServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
-   * information of the customer's website.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - default void getDocument( - com.google.cloud.discoveryengine.v1.GetDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
-     * 
- */ - default void listDocuments( - com.google.cloud.discoveryengine.v1.ListDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDocumentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - default void createDocument( - com.google.cloud.discoveryengine.v1.CreateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - default void updateDocument( - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - default void deleteDocument( - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
-     * may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
-     * updated.
-     * 
- */ - default void importDocuments( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportDocumentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
-     * operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
-     * still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
-     * to be deleted, set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - default void purgeDocuments( - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPurgeDocumentsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentService. - * - *
-   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
-   * information of the customer's website.
-   * 
- */ - public abstract static class DocumentServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DocumentServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DocumentService. - * - *
-   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
-   * information of the customer's website.
-   * 
- */ - public static final class DocumentServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public void getDocument( - com.google.cloud.discoveryengine.v1.GetDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
-     * 
- */ - public void listDocuments( - com.google.cloud.discoveryengine.v1.ListDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public void createDocument( - com.google.cloud.discoveryengine.v1.CreateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public void updateDocument( - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public void deleteDocument( - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
-     * may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
-     * updated.
-     * 
- */ - public void importDocuments( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
-     * operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
-     * still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
-     * to be deleted, set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - public void purgeDocuments( - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentService. - * - *
-   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
-   * information of the customer's website.
-   * 
- */ - public static final class DocumentServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Document getDocument( - com.google.cloud.discoveryengine.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
-     * 
- */ - public com.google.cloud.discoveryengine.v1.ListDocumentsResponse listDocuments( - com.google.cloud.discoveryengine.v1.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDocumentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Document createDocument( - com.google.cloud.discoveryengine.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Document updateDocument( - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.protobuf.Empty deleteDocument( - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
-     * may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
-     * updated.
-     * 
- */ - public com.google.longrunning.Operation importDocuments( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDocumentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
-     * operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
-     * still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
-     * to be deleted, set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - public com.google.longrunning.Operation purgeDocuments( - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. - * - *
-   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
-   * information of the customer's website.
-   * 
- */ - public static final class DocumentServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Document> - getDocument(com.google.cloud.discoveryengine.v1.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.ListDocumentsResponse> - listDocuments(com.google.cloud.discoveryengine.v1.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Document> - createDocument(com.google.cloud.discoveryengine.v1.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Document> - updateDocument(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDocument(com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
-     * may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
-     * updated.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importDocuments(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
-     * operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
-     * still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
-     * to be deleted, set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - purgeDocuments(com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_DOCUMENT = 0; - private static final int METHODID_LIST_DOCUMENTS = 1; - private static final int METHODID_CREATE_DOCUMENT = 2; - private static final int METHODID_UPDATE_DOCUMENT = 3; - private static final int METHODID_DELETE_DOCUMENT = 4; - private static final int METHODID_IMPORT_DOCUMENTS = 5; - private static final int METHODID_PURGE_DOCUMENTS = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_DOCUMENT: - serviceImpl.getDocument( - (com.google.cloud.discoveryengine.v1.GetDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_DOCUMENTS: - serviceImpl.listDocuments( - (com.google.cloud.discoveryengine.v1.ListDocumentsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1.ListDocumentsResponse>) - responseObserver); - break; - case METHODID_CREATE_DOCUMENT: - serviceImpl.createDocument( - (com.google.cloud.discoveryengine.v1.CreateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_DOCUMENT: - serviceImpl.updateDocument( - (com.google.cloud.discoveryengine.v1.UpdateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_DOCUMENT: - serviceImpl.deleteDocument( - (com.google.cloud.discoveryengine.v1.DeleteDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DOCUMENTS: - serviceImpl.importDocuments( - (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PURGE_DOCUMENTS: - serviceImpl.purgeDocuments( - (com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.GetDocumentRequest, - com.google.cloud.discoveryengine.v1.Document>(service, METHODID_GET_DOCUMENT))) - .addMethod( - getListDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1.ListDocumentsResponse>( - service, METHODID_LIST_DOCUMENTS))) - .addMethod( - getCreateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document>( - service, METHODID_CREATE_DOCUMENT))) - .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1.Document>( - service, METHODID_UPDATE_DOCUMENT))) - .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT))) - .addMethod( - getImportDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest, - com.google.longrunning.Operation>(service, METHODID_IMPORT_DOCUMENTS))) - .addMethod( - getPurgeDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest, - com.google.longrunning.Operation>(service, METHODID_PURGE_DOCUMENTS))) - .build(); - } - - private abstract static class DocumentServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.discoveryengine.v1.DocumentServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentService"); - } - } - - private static final class DocumentServiceFileDescriptorSupplier - extends DocumentServiceBaseDescriptorSupplier { - DocumentServiceFileDescriptorSupplier() {} - } - - private static final class DocumentServiceMethodDescriptorSupplier - extends DocumentServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - DocumentServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DocumentServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentServiceFileDescriptorSupplier()) - .addMethod(getGetDocumentMethod()) - .addMethod(getListDocumentsMethod()) - .addMethod(getCreateDocumentMethod()) - .addMethod(getUpdateDocumentMethod()) - .addMethod(getDeleteDocumentMethod()) - .addMethod(getImportDocumentsMethod()) - .addMethod(getPurgeDocumentsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java deleted file mode 100644 index 96e2ffe00885..000000000000 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java +++ /dev/null @@ -1,830 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.discoveryengine.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1/schema_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SchemaServiceGrpc { - - private SchemaServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1.SchemaService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetSchemaRequest, - com.google.cloud.discoveryengine.v1.Schema> - getGetSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSchema", - requestType = com.google.cloud.discoveryengine.v1.GetSchemaRequest.class, - responseType = com.google.cloud.discoveryengine.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetSchemaRequest, - com.google.cloud.discoveryengine.v1.Schema> - getGetSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.GetSchemaRequest, - com.google.cloud.discoveryengine.v1.Schema> - getGetSchemaMethod; - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - SchemaServiceGrpc.getGetSchemaMethod = - getGetSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.GetSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) - .build(); - } - } - } - return getGetSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListSchemasRequest, - com.google.cloud.discoveryengine.v1.ListSchemasResponse> - getListSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSchemas", - requestType = com.google.cloud.discoveryengine.v1.ListSchemasRequest.class, - responseType = com.google.cloud.discoveryengine.v1.ListSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListSchemasRequest, - com.google.cloud.discoveryengine.v1.ListSchemasResponse> - getListSchemasMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ListSchemasRequest, - com.google.cloud.discoveryengine.v1.ListSchemasResponse> - getListSchemasMethod; - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - SchemaServiceGrpc.getListSchemasMethod = - getListSchemasMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ListSchemasRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.ListSchemasResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) - .build(); - } - } - } - return getListSchemasMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateSchemaRequest, com.google.longrunning.Operation> - getCreateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSchema", - requestType = com.google.cloud.discoveryengine.v1.CreateSchemaRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateSchemaRequest, com.google.longrunning.Operation> - getCreateSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CreateSchemaRequest, - com.google.longrunning.Operation> - getCreateSchemaMethod; - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - SchemaServiceGrpc.getCreateSchemaMethod = - getCreateSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.CreateSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("CreateSchema")) - .build(); - } - } - } - return getCreateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest, com.google.longrunning.Operation> - getUpdateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSchema", - requestType = com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest, com.google.longrunning.Operation> - getUpdateSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest, - com.google.longrunning.Operation> - getUpdateSchemaMethod; - if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { - SchemaServiceGrpc.getUpdateSchemaMethod = - getUpdateSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("UpdateSchema")) - .build(); - } - } - } - return getUpdateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest, com.google.longrunning.Operation> - getDeleteSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", - requestType = com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest, com.google.longrunning.Operation> - getDeleteSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest, - com.google.longrunning.Operation> - getDeleteSchemaMethod; - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - SchemaServiceGrpc.getDeleteSchemaMethod = - getDeleteSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) - .build(); - } - } - } - return getDeleteSchemaMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SchemaServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - }; - return SchemaServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - }; - return SchemaServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - }; - return SchemaServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - default void getSchema( - com.google.cloud.discoveryengine.v1.GetSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
-     * 
- */ - default void listSchemas( - com.google.cloud.discoveryengine.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSchemasMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - default void createSchema( - com.google.cloud.discoveryengine.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - default void updateSchema( - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - default void deleteSchema( - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSchemaMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
-   * 
- */ - public abstract static class SchemaServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return SchemaServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
-   * 
- */ - public static final class SchemaServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public void getSchema( - com.google.cloud.discoveryengine.v1.GetSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
-     * 
- */ - public void listSchemas( - com.google.cloud.discoveryengine.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public void createSchema( - com.google.cloud.discoveryengine.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public void updateSchema( - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public void deleteSchema( - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
-   * 
- */ - public static final class SchemaServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.cloud.discoveryengine.v1.Schema getSchema( - com.google.cloud.discoveryengine.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
-     * 
- */ - public com.google.cloud.discoveryengine.v1.ListSchemasResponse listSchemas( - com.google.cloud.discoveryengine.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSchemasMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.longrunning.Operation createSchema( - com.google.cloud.discoveryengine.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.longrunning.Operation updateSchema( - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.longrunning.Operation deleteSchema( - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
-   * 
- */ - public static final class SchemaServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.Schema> - getSchema(com.google.cloud.discoveryengine.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.ListSchemasResponse> - listSchemas(com.google.cloud.discoveryengine.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSchema(com.google.cloud.discoveryengine.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSchema(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSchema(com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_SCHEMA = 0; - private static final int METHODID_LIST_SCHEMAS = 1; - private static final int METHODID_CREATE_SCHEMA = 2; - private static final int METHODID_UPDATE_SCHEMA = 3; - private static final int METHODID_DELETE_SCHEMA = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_SCHEMA: - serviceImpl.getSchema( - (com.google.cloud.discoveryengine.v1.GetSchemaRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCHEMAS: - serviceImpl.listSchemas( - (com.google.cloud.discoveryengine.v1.ListSchemasRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SCHEMA: - serviceImpl.createSchema( - (com.google.cloud.discoveryengine.v1.CreateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SCHEMA: - serviceImpl.updateSchema( - (com.google.cloud.discoveryengine.v1.UpdateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCHEMA: - serviceImpl.deleteSchema( - (com.google.cloud.discoveryengine.v1.DeleteSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.GetSchemaRequest, - com.google.cloud.discoveryengine.v1.Schema>(service, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.ListSchemasRequest, - com.google.cloud.discoveryengine.v1.ListSchemasResponse>( - service, METHODID_LIST_SCHEMAS))) - .addMethod( - getCreateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.CreateSchemaRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_SCHEMA))) - .addMethod( - getUpdateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_SCHEMA))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_SCHEMA))) - .build(); - } - - private abstract static class SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SchemaServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SchemaService"); - } - } - - private static final class SchemaServiceFileDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier { - SchemaServiceFileDescriptorSupplier() {} - } - - private static final class SchemaServiceMethodDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SchemaServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) - .addMethod(getGetSchemaMethod()) - .addMethod(getListSchemasMethod()) - .addMethod(getCreateSchemaMethod()) - .addMethod(getUpdateSchemaMethod()) - .addMethod(getDeleteSchemaMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java deleted file mode 100644 index 9f40fcab8048..000000000000 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java +++ /dev/null @@ -1,1057 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.discoveryengine.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for conversational search.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConversationalSearchServiceGrpc { - - private ConversationalSearchServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.ConversationalSearchService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse> - getConverseConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ConverseConversation", - requestType = com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse> - getConverseConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse> - getConverseConversationMethod; - if ((getConverseConversationMethod = - ConversationalSearchServiceGrpc.getConverseConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getConverseConversationMethod = - ConversationalSearchServiceGrpc.getConverseConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getConverseConversationMethod = - getConverseConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ConverseConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "ConverseConversation")) - .build(); - } - } - } - return getConverseConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getCreateConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversation", - requestType = com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getCreateConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getCreateConversationMethod; - if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getCreateConversationMethod = - ConversationalSearchServiceGrpc.getCreateConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getCreateConversationMethod = - getCreateConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "CreateConversation")) - .build(); - } - } - } - return getCreateConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest, - com.google.protobuf.Empty> - getDeleteConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", - requestType = com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest, - com.google.protobuf.Empty> - getDeleteConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest, - com.google.protobuf.Empty> - getDeleteConversationMethod; - if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getDeleteConversationMethod = - ConversationalSearchServiceGrpc.getDeleteConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getDeleteConversationMethod = - getDeleteConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "DeleteConversation")) - .build(); - } - } - } - return getDeleteConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getUpdateConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConversation", - requestType = com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getUpdateConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getUpdateConversationMethod; - if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getUpdateConversationMethod = - ConversationalSearchServiceGrpc.getUpdateConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getUpdateConversationMethod = - getUpdateConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "UpdateConversation")) - .build(); - } - } - } - return getUpdateConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getGetConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversation", - requestType = com.google.cloud.discoveryengine.v1beta.GetConversationRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getGetConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation> - getGetConversationMethod; - if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) - == null) { - ConversationalSearchServiceGrpc.getGetConversationMethod = - getGetConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "GetConversation")) - .build(); - } - } - } - return getGetConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest, - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse> - getListConversationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversations", - requestType = com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest, - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse> - getListConversationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest, - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse> - getListConversationsMethod; - if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) - == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - if ((getListConversationsMethod = - ConversationalSearchServiceGrpc.getListConversationsMethod) - == null) { - ConversationalSearchServiceGrpc.getListConversationsMethod = - getListConversationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationalSearchServiceMethodDescriptorSupplier( - "ListConversations")) - .build(); - } - } - } - return getListConversationsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationalSearchServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceStub(channel, callOptions); - } - }; - return ConversationalSearchServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConversationalSearchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationalSearchServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceBlockingStub(channel, callOptions); - } - }; - return ConversationalSearchServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConversationalSearchServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationalSearchServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceFutureStub(channel, callOptions); - } - }; - return ConversationalSearchServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for conversational search.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - default void converseConversation( - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getConverseConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - default void createConversation( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - default void deleteConversation( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
-     * type cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
-     * does not exist, a NOT_FOUND error is returned.
-     * 
- */ - default void updateConversation( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - default void getConversation( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
-     * 
- */ - default void listConversations( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversationsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public abstract static class ConversationalSearchServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ConversationalSearchServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public static final class ConversationalSearchServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ConversationalSearchServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationalSearchServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - public void converseConversation( - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getConverseConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - public void createConversation( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public void deleteConversation( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
-     * type cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
-     * does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public void updateConversation( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - public void getConversation( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
-     * 
- */ - public void listConversations( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public static final class ConversationalSearchServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConversationalSearchServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationalSearchServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse - converseConversation( - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getConverseConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Conversation createConversation( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.protobuf.Empty deleteConversation( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
-     * type cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
-     * does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Conversation updateConversation( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Conversation getConversation( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse listConversations( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversationsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * ConversationalSearchService. - * - *
-   * Service for conversational search.
-   * 
- */ - public static final class ConversationalSearchServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConversationalSearchServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationalSearchServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationalSearchServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Converses a conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse> - converseConversation( - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * create already exists, an ALREADY_EXISTS error is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Conversation> - createConversation( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Conversation.
-     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
-     * delete does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConversation( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a Conversation.
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
-     * type cannot be changed. If the
-     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
-     * does not exist, a NOT_FOUND error is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Conversation> - updateConversation( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Conversation> - getConversation(com.google.cloud.discoveryengine.v1beta.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all Conversations by their parent
-     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse> - listConversations( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CONVERSE_CONVERSATION = 0; - private static final int METHODID_CREATE_CONVERSATION = 1; - private static final int METHODID_DELETE_CONVERSATION = 2; - private static final int METHODID_UPDATE_CONVERSATION = 3; - private static final int METHODID_GET_CONVERSATION = 4; - private static final int METHODID_LIST_CONVERSATIONS = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CONVERSE_CONVERSATION: - serviceImpl.converseConversation( - (com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse>) - responseObserver); - break; - case METHODID_CREATE_CONVERSATION: - serviceImpl.createConversation( - (com.google.cloud.discoveryengine.v1beta.CreateConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONVERSATION: - serviceImpl.deleteConversation( - (com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONVERSATION: - serviceImpl.updateConversation( - (com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CONVERSATION: - serviceImpl.getConversation( - (com.google.cloud.discoveryengine.v1beta.GetConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONVERSATIONS: - serviceImpl.listConversations( - (com.google.cloud.discoveryengine.v1beta.ListConversationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getConverseConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest, - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse>( - service, METHODID_CONVERSE_CONVERSATION))) - .addMethod( - getCreateConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation>( - service, METHODID_CREATE_CONVERSATION))) - .addMethod( - getDeleteConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_CONVERSATION))) - .addMethod( - getUpdateConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation>( - service, METHODID_UPDATE_CONVERSATION))) - .addMethod( - getGetConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.GetConversationRequest, - com.google.cloud.discoveryengine.v1beta.Conversation>( - service, METHODID_GET_CONVERSATION))) - .addMethod( - getListConversationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest, - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse>( - service, METHODID_LIST_CONVERSATIONS))) - .build(); - } - - private abstract static class ConversationalSearchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConversationalSearchServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConversationalSearchService"); - } - } - - private static final class ConversationalSearchServiceFileDescriptorSupplier - extends ConversationalSearchServiceBaseDescriptorSupplier { - ConversationalSearchServiceFileDescriptorSupplier() {} - } - - private static final class ConversationalSearchServiceMethodDescriptorSupplier - extends ConversationalSearchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ConversationalSearchServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConversationalSearchServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) - .addMethod(getConverseConversationMethod()) - .addMethod(getCreateConversationMethod()) - .addMethod(getDeleteConversationMethod()) - .addMethod(getUpdateConversationMethod()) - .addMethod(getGetConversationMethod()) - .addMethod(getListConversationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java deleted file mode 100644 index ebc151bf1c87..000000000000 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java +++ /dev/null @@ -1,1174 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.discoveryengine.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for ingesting
- * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
- * customer's website.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/document_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentServiceGrpc { - - private DocumentServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.DocumentService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getGetDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDocument", - requestType = com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getGetDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getGetDocumentMethod; - if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { - DocumentServiceGrpc.getGetDocumentMethod = - getGetDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Document - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("GetDocument")) - .build(); - } - } - } - return getGetDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse> - getListDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDocuments", - requestType = com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse> - getListDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse> - getListDocumentsMethod; - if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { - DocumentServiceGrpc.getListDocumentsMethod = - getListDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("ListDocuments")) - .build(); - } - } - } - return getListDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getCreateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDocument", - requestType = com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getCreateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getCreateDocumentMethod; - if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { - DocumentServiceGrpc.getCreateDocumentMethod = - getCreateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Document - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("CreateDocument")) - .build(); - } - } - } - return getCreateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getUpdateDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", - requestType = com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Document.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getUpdateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document> - getUpdateDocumentMethod; - if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { - DocumentServiceGrpc.getUpdateDocumentMethod = - getUpdateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Document - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) - .build(); - } - } - } - return getUpdateDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", - requestType = com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest, com.google.protobuf.Empty> - getDeleteDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest, - com.google.protobuf.Empty> - getDeleteDocumentMethod; - if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { - DocumentServiceGrpc.getDeleteDocumentMethod = - getDeleteDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("DeleteDocument")) - .build(); - } - } - } - return getDeleteDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest, - com.google.longrunning.Operation> - getImportDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportDocuments", - requestType = com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest, - com.google.longrunning.Operation> - getImportDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest, - com.google.longrunning.Operation> - getImportDocumentsMethod; - if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { - DocumentServiceGrpc.getImportDocumentsMethod = - getImportDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("ImportDocuments")) - .build(); - } - } - } - return getImportDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest, - com.google.longrunning.Operation> - getPurgeDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeDocuments", - requestType = com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest, - com.google.longrunning.Operation> - getPurgeDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest, - com.google.longrunning.Operation> - getPurgeDocumentsMethod; - if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { - synchronized (DocumentServiceGrpc.class) { - if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { - DocumentServiceGrpc.getPurgeDocumentsMethod = - getPurgeDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentServiceMethodDescriptorSupplier("PurgeDocuments")) - .build(); - } - } - } - return getPurgeDocumentsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DocumentServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceStub(channel, callOptions); - } - }; - return DocumentServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceBlockingStub(channel, callOptions); - } - }; - return DocumentServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DocumentServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceFutureStub(channel, callOptions); - } - }; - return DocumentServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for ingesting
-   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
-   * customer's website.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - default void getDocument( - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
-     * 
- */ - default void listDocuments( - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDocumentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - default void createDocument( - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - default void updateDocument( - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - default void deleteDocument( - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
-     * processing may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
-     * successfully updated.
-     * 
- */ - default void importDocuments( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportDocumentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * this operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
-     * might still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
-     * To get a list of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - default void purgeDocuments( - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPurgeDocumentsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DocumentService. - * - *
-   * Service for ingesting
-   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
-   * customer's website.
-   * 
- */ - public abstract static class DocumentServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DocumentServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DocumentService. - * - *
-   * Service for ingesting
-   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
-   * customer's website.
-   * 
- */ - public static final class DocumentServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public void getDocument( - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
-     * 
- */ - public void listDocuments( - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public void createDocument( - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public void updateDocument( - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public void deleteDocument( - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
-     * processing may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
-     * successfully updated.
-     * 
- */ - public void importDocuments( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * this operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
-     * might still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
-     * To get a list of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - public void purgeDocuments( - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DocumentService. - * - *
-   * Service for ingesting
-   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
-   * customer's website.
-   * 
- */ - public static final class DocumentServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Document getDocument( - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse listDocuments( - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDocumentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Document createDocument( - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Document updateDocument( - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.protobuf.Empty deleteDocument( - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
-     * processing may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
-     * successfully updated.
-     * 
- */ - public com.google.longrunning.Operation importDocuments( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDocumentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * this operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
-     * might still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
-     * To get a list of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - public com.google.longrunning.Operation purgeDocuments( - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. - * - *
-   * Service for ingesting
-   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
-   * customer's website.
-   * 
- */ - public static final class DocumentServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Document> - getDocument(com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse> - listDocuments(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Document> - createDocument(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Document> - updateDocument(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDocument(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Bulk import of multiple
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
-     * processing may be synchronous. Non-existing items will be created.
-     * Note: It is possible for a subset of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
-     * successfully updated.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importDocuments(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Permanently deletes all selected
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
-     * This process is asynchronous. Depending on the number of
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * this operation can take hours to complete. Before the delete operation
-     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
-     * might still be returned by
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
-     * To get a list of the
-     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
-     * set
-     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
-     * to false.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - purgeDocuments(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_DOCUMENT = 0; - private static final int METHODID_LIST_DOCUMENTS = 1; - private static final int METHODID_CREATE_DOCUMENT = 2; - private static final int METHODID_UPDATE_DOCUMENT = 3; - private static final int METHODID_DELETE_DOCUMENT = 4; - private static final int METHODID_IMPORT_DOCUMENTS = 5; - private static final int METHODID_PURGE_DOCUMENTS = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_DOCUMENT: - serviceImpl.getDocument( - (com.google.cloud.discoveryengine.v1beta.GetDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_DOCUMENTS: - serviceImpl.listDocuments( - (com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse>) - responseObserver); - break; - case METHODID_CREATE_DOCUMENT: - serviceImpl.createDocument( - (com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_DOCUMENT: - serviceImpl.updateDocument( - (com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_DOCUMENT: - serviceImpl.deleteDocument( - (com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DOCUMENTS: - serviceImpl.importDocuments( - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PURGE_DOCUMENTS: - serviceImpl.purgeDocuments( - (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document>( - service, METHODID_GET_DOCUMENT))) - .addMethod( - getListDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest, - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse>( - service, METHODID_LIST_DOCUMENTS))) - .addMethod( - getCreateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document>( - service, METHODID_CREATE_DOCUMENT))) - .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest, - com.google.cloud.discoveryengine.v1beta.Document>( - service, METHODID_UPDATE_DOCUMENT))) - .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_DOCUMENT))) - .addMethod( - getImportDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest, - com.google.longrunning.Operation>(service, METHODID_IMPORT_DOCUMENTS))) - .addMethod( - getPurgeDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest, - com.google.longrunning.Operation>(service, METHODID_PURGE_DOCUMENTS))) - .build(); - } - - private abstract static class DocumentServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentService"); - } - } - - private static final class DocumentServiceFileDescriptorSupplier - extends DocumentServiceBaseDescriptorSupplier { - DocumentServiceFileDescriptorSupplier() {} - } - - private static final class DocumentServiceMethodDescriptorSupplier - extends DocumentServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - DocumentServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DocumentServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentServiceFileDescriptorSupplier()) - .addMethod(getGetDocumentMethod()) - .addMethod(getListDocumentsMethod()) - .addMethod(getCreateDocumentMethod()) - .addMethod(getUpdateDocumentMethod()) - .addMethod(getDeleteDocumentMethod()) - .addMethod(getImportDocumentsMethod()) - .addMethod(getPurgeDocumentsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java deleted file mode 100644 index fda8b433ec4c..000000000000 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java +++ /dev/null @@ -1,839 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.discoveryengine.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/discoveryengine/v1beta/schema_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SchemaServiceGrpc { - - private SchemaServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.SchemaService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest, - com.google.cloud.discoveryengine.v1beta.Schema> - getGetSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSchema", - requestType = com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest, - com.google.cloud.discoveryengine.v1beta.Schema> - getGetSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest, - com.google.cloud.discoveryengine.v1beta.Schema> - getGetSchemaMethod; - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - SchemaServiceGrpc.getGetSchemaMethod = - getGetSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) - .build(); - } - } - } - return getGetSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest, - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse> - getListSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSchemas", - requestType = com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.class, - responseType = com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest, - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse> - getListSchemasMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest, - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse> - getListSchemasMethod; - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - SchemaServiceGrpc.getListSchemasMethod = - getListSchemasMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) - .build(); - } - } - } - return getListSchemasMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest, - com.google.longrunning.Operation> - getCreateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSchema", - requestType = com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest, - com.google.longrunning.Operation> - getCreateSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest, - com.google.longrunning.Operation> - getCreateSchemaMethod; - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - SchemaServiceGrpc.getCreateSchemaMethod = - getCreateSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("CreateSchema")) - .build(); - } - } - } - return getCreateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest, - com.google.longrunning.Operation> - getUpdateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSchema", - requestType = com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest, - com.google.longrunning.Operation> - getUpdateSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest, - com.google.longrunning.Operation> - getUpdateSchemaMethod; - if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { - SchemaServiceGrpc.getUpdateSchemaMethod = - getUpdateSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("UpdateSchema")) - .build(); - } - } - } - return getUpdateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest, - com.google.longrunning.Operation> - getDeleteSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", - requestType = com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest, - com.google.longrunning.Operation> - getDeleteSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest, - com.google.longrunning.Operation> - getDeleteSchemaMethod; - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - SchemaServiceGrpc.getDeleteSchemaMethod = - getDeleteSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) - .build(); - } - } - } - return getDeleteSchemaMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SchemaServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - }; - return SchemaServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - }; - return SchemaServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - }; - return SchemaServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - default void getSchema( - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-     * 
- */ - default void listSchemas( - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSchemasMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - default void createSchema( - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - default void updateSchema( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - default void deleteSchema( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSchemaMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-   * 
- */ - public abstract static class SchemaServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return SchemaServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-   * 
- */ - public static final class SchemaServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public void getSchema( - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-     * 
- */ - public void listSchemas( - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public void createSchema( - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public void updateSchema( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public void deleteSchema( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-   * 
- */ - public static final class SchemaServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.Schema getSchema( - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-     * 
- */ - public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse listSchemas( - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSchemasMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.longrunning.Operation createSchema( - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.longrunning.Operation updateSchema( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.longrunning.Operation deleteSchema( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. - * - *
-   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-   * 
- */ - public static final class SchemaServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.Schema> - getSchema(com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse> - listSchemas(com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSchema(com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSchema(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSchema(com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_SCHEMA = 0; - private static final int METHODID_LIST_SCHEMAS = 1; - private static final int METHODID_CREATE_SCHEMA = 2; - private static final int METHODID_UPDATE_SCHEMA = 3; - private static final int METHODID_DELETE_SCHEMA = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_SCHEMA: - serviceImpl.getSchema( - (com.google.cloud.discoveryengine.v1beta.GetSchemaRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCHEMAS: - serviceImpl.listSchemas( - (com.google.cloud.discoveryengine.v1beta.ListSchemasRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse>) - responseObserver); - break; - case METHODID_CREATE_SCHEMA: - serviceImpl.createSchema( - (com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SCHEMA: - serviceImpl.updateSchema( - (com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCHEMA: - serviceImpl.deleteSchema( - (com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest, - com.google.cloud.discoveryengine.v1beta.Schema>(service, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest, - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse>( - service, METHODID_LIST_SCHEMAS))) - .addMethod( - getCreateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_SCHEMA))) - .addMethod( - getUpdateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_SCHEMA))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_SCHEMA))) - .build(); - } - - private abstract static class SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SchemaServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SchemaService"); - } - } - - private static final class SchemaServiceFileDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier { - SchemaServiceFileDescriptorSupplier() {} - } - - private static final class SchemaServiceMethodDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SchemaServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) - .addMethod(getGetSchemaMethod()) - .addMethod(getListSchemasMethod()) - .addMethod(getCreateSchemaMethod()) - .addMethod(getUpdateSchemaMethod()) - .addMethod(getDeleteSchemaMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java deleted file mode 100644 index 4bcc8a3b8804..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/common.proto - -package com.google.cloud.discoveryengine.v1; - -public final class CommonProto { - private CommonProto() {} - - 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_discoveryengine_v1_Interval_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UserInfo_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/discoveryengine/v1/common" - + ".proto\022\037google.cloud.discoveryengine.v1\032" - + "\031google/api/resource.proto\"x\n\010Interval\022\021" - + "\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive_minimum\030\002" - + " \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_m" - + "aximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"0\n\017CustomAt" - + "tribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\"/" - + "\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nuser_agen" - + "t\030\002 \001(\tB\276\007\n#com.google.cloud.discoveryen" - + "gine.v1B\013CommonProtoP\001ZMcloud.google.com" - + "/go/discoveryengine/apiv1/discoveryengin" - + "epb;discoveryenginepb\242\002\017DISCOVERYENGINE\252" - + "\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Goog" - + "le\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cl" - + "oud::DiscoveryEngine::V1\352A\346\001\n%discoverye" - + "ngine.googleapis.com/Branch\022Qprojects/{p" - + "roject}/locations/{location}/dataStores/" - + "{data_store}/branches/{branch}\022jprojects" - + "/{project}/locations/{location}/collecti" - + "ons/{collection}/dataStores/{data_store}" - + "/branches/{branch}\352A\305\001\n(discoveryengine." - + "googleapis.com/DataStore\022?projects/{proj" - + "ect}/locations/{location}/dataStores/{da" - + "ta_store}\022Xprojects/{project}/locations/" - + "{location}/collections/{collection}/data" - + "Stores/{data_store}\352A\211\002\n,discoveryengine" - + ".googleapis.com/ServingConfig\022_projects/" - + "{project}/locations/{location}/dataStore" - + "s/{data_store}/servingConfigs/{serving_c" - + "onfig}\022xprojects/{project}/locations/{lo" - + "cation}/collections/{collection}/dataSto" - + "res/{data_store}/servingConfigs/{serving" - + "_config}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_Interval_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_Interval_descriptor, - new java.lang.String[] { - "Minimum", "ExclusiveMinimum", "Maximum", "ExclusiveMaximum", "Min", "Max", - }); - internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor, - new java.lang.String[] { - "Text", "Numbers", - }); - internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor, - new java.lang.String[] { - "UserId", "UserAgent", - }); - 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java deleted file mode 100644 index 9aa6e96ee6d4..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/completion_service.proto - -package com.google.cloud.discoveryengine.v1; - -public final class CompletionServiceProto { - private CompletionServiceProto() {} - - 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_discoveryengine_v1_CompleteQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/discoveryengine/v1/comple" - + "tion_service.proto\022\037google.cloud.discove" - + "ryengine.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\"\301\001\n\024CompleteQueryRequest\022E\n\ndata_" - + "store\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.go" - + "ogleapis.com/DataStore\022\023\n\005query\030\002 \001(\tB\004\342" - + "A\001\002\022\023\n\013query_model\030\003 \001(\t\022\026\n\016user_pseudo_" - + "id\030\004 \001(\t\022 \n\030include_tail_suggestions\030\005 \001" - + "(\010\"\277\001\n\025CompleteQueryResponse\022a\n\021query_su" - + "ggestions\030\001 \003(\0132F.google.cloud.discovery" - + "engine.v1.CompleteQueryResponse.QuerySug" - + "gestion\022\034\n\024tail_match_triggered\030\002 \001(\010\032%\n" - + "\017QuerySuggestion\022\022\n\nsuggestion\030\001 \001(\t2\212\003\n" - + "\021CompletionService\022\240\002\n\rCompleteQuery\0225.g" - + "oogle.cloud.discoveryengine.v1.CompleteQ" - + "ueryRequest\0326.google.cloud.discoveryengi" - + "ne.v1.CompleteQueryResponse\"\237\001\202\323\344\223\002\230\001\022B/" - + "v1/{data_store=projects/*/locations/*/da" - + "taStores/*}:completeQueryZR\022P/v1/{data_s" - + "tore=projects/*/locations/*/collections/" - + "*/dataStores/*}:completeQuery\032R\312A\036discov" - + "eryengine.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\211\002\n#co" - + "m.google.cloud.discoveryengine.v1B\026Compl" - + "etionServiceProtoP\001ZMcloud.google.com/go" - + "/discoveryengine/apiv1/discoveryenginepb" - + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037G" - + "oogle.Cloud.DiscoveryEngine.V1\312\002\037Google\\" - + "Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cloud" - + "::DiscoveryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor, - new java.lang.String[] { - "DataStore", "Query", "QueryModel", "UserPseudoId", "IncludeTailSuggestions", - }); - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor, - new java.lang.String[] { - "QuerySuggestions", "TailMatchTriggered", - }); - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor = - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor, - new java.lang.String[] { - "Suggestion", - }); - 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.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java deleted file mode 100644 index d1140f931d53..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/conversation.proto - -package com.google.cloud.discoveryengine.v1; - -public final class ConversationProto { - private ConversationProto() {} - - 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_discoveryengine_v1_Conversation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/discoveryengine/v1/conver" - + "sation.proto\022\037google.cloud.discoveryengi" - + "ne.v1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\0324google/cloud/" - + "discoveryengine/v1/search_service.proto\032" - + "\037google/protobuf/timestamp.proto\"\371\004\n\014Con" - + "versation\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022B\n\005state\030\002" - + " \001(\01623.google.cloud.discoveryengine.v1.C" - + "onversation.State\022\026\n\016user_pseudo_id\030\003 \001(" - + "\t\022F\n\010messages\030\004 \003(\01324.google.cloud.disco" - + "veryengine.v1.ConversationMessage\0224\n\nsta" - + "rt_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\0222\n\010end_time\030\006 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\003\">\n\005State\022\025\n\021STATE_UN" - + "SPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tCOMPLETE" - + "D\020\002:\206\002\352A\202\002\n+discoveryengine.googleapis.c" - + "om/Conversation\022\\projects/{project}/loca" - + "tions/{location}/dataStores/{data_store}" - + "/conversations/{conversation}\022uprojects/" - + "{project}/locations/{location}/collectio" - + "ns/{collection}/dataStores/{data_store}/" - + "conversations/{conversation}\"Q\n\005Reply\022H\n" - + "\007summary\030\003 \001(\01327.google.cloud.discoverye" - + "ngine.v1.SearchResponse.Summary\"I\n\023Conve" - + "rsationContext\022\031\n\021context_documents\030\001 \003(" - + "\t\022\027\n\017active_document\030\002 \001(\t\"a\n\tTextInput\022" - + "\r\n\005input\030\001 \001(\t\022E\n\007context\030\002 \001(\01324.google" - + ".cloud.discoveryengine.v1.ConversationCo" - + "ntext\"\322\001\n\023ConversationMessage\022@\n\nuser_in" - + "put\030\001 \001(\0132*.google.cloud.discoveryengine" - + ".v1.TextInputH\000\0227\n\005reply\030\002 \001(\0132&.google." - + "cloud.discoveryengine.v1.ReplyH\000\0225\n\013crea" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003B\t\n\007messageB\204\002\n#com.google.cloud." - + "discoveryengine.v1B\021ConversationProtoP\001Z" - + "Mcloud.google.com/go/discoveryengine/api" - + "v1/discoveryenginepb;discoveryenginepb\242\002" - + "\017DISCOVERYENGINE\252\002\037Google.Cloud.Discover" - + "yEngine.V1\312\002\037Google\\Cloud\\DiscoveryEngin" - + "e\\V1\352\002\"Google::Cloud::DiscoveryEngine::V" - + "1b\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.discoveryengine.v1.SearchServiceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor, - new java.lang.String[] { - "Name", "State", "UserPseudoId", "Messages", "StartTime", "EndTime", - }); - internal_static_google_cloud_discoveryengine_v1_Reply_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_Reply_descriptor, - new java.lang.String[] { - "Summary", - }); - internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor, - new java.lang.String[] { - "ContextDocuments", "ActiveDocument", - }); - internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor, - new java.lang.String[] { - "Input", "Context", - }); - internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor, - new java.lang.String[] { - "UserInput", "Reply", "CreateTime", "Message", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java deleted file mode 100644 index ba23c7f8b37d..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1; - -public final class ConversationalSearchServiceProto { - private ConversationalSearchServiceProto() {} - - 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_discoveryengine_v1_ConverseConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nCgoogle/cloud/discoveryengine/v1/conver" - + "sational_search_service.proto\022\037google.cl" - + "oud.discoveryengine.v1\032\034google/api/annot" - + "ations.proto\032\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\0322google/cloud/discover" - + "yengine/v1/conversation.proto\0324google/cl" - + "oud/discoveryengine/v1/search_service.pr" - + "oto\032\033google/protobuf/empty.proto\032 google" - + "/protobuf/field_mask.proto\"\301\004\n\033ConverseC" - + "onversationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A" - + "-\n+discoveryengine.googleapis.com/Conver" - + "sation\022?\n\005query\030\002 \001(\0132*.google.cloud.dis" - + "coveryengine.v1.TextInputB\004\342A\001\002\022I\n\016servi" - + "ng_config\030\003 \001(\tB1\372A.\n,discoveryengine.go" - + "ogleapis.com/ServingConfig\022C\n\014conversati" - + "on\030\005 \001(\0132-.google.cloud.discoveryengine." - + "v1.Conversation\022\023\n\013safe_search\030\006 \001(\010\022a\n\013" - + "user_labels\030\007 \003(\0132L.google.cloud.discove" - + "ryengine.v1.ConverseConversationRequest." - + "UserLabelsEntry\022b\n\014summary_spec\030\010 \001(\0132L." - + "google.cloud.discoveryengine.v1.SearchRe" - + "quest.ContentSearchSpec.SummarySpec\0321\n\017U" - + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"\360\001\n\034ConverseConversationResponse\022" - + "5\n\005reply\030\001 \001(\0132&.google.cloud.discoverye" - + "ngine.v1.Reply\022C\n\014conversation\030\002 \001(\0132-.g" - + "oogle.cloud.discoveryengine.v1.Conversat" - + "ion\022T\n\016search_results\030\003 \003(\0132<.google.clo" - + "ud.discoveryengine.v1.SearchResponse.Sea" - + "rchResult\"\251\001\n\031CreateConversationRequest\022" - + "A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengin" - + "e.googleapis.com/DataStore\022I\n\014conversati" - + "on\030\002 \001(\0132-.google.cloud.discoveryengine." - + "v1.ConversationB\004\342A\001\002\"\227\001\n\031UpdateConversa" - + "tionRequest\022I\n\014conversation\030\001 \001(\0132-.goog" - + "le.cloud.discoveryengine.v1.Conversation" - + "B\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMask\"_\n\031DeleteConversationReq" - + "uest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryen" - + "gine.googleapis.com/Conversation\"\\\n\026GetC" - + "onversationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A" - + "-\n+discoveryengine.googleapis.com/Conver" - + "sation\"\246\001\n\030ListConversationsRequest\022A\n\006p" - + "arent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.go" - + "ogleapis.com/DataStore\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"z\n\031ListConversationsResp" - + "onse\022D\n\rconversations\030\001 \003(\0132-.google.clo" - + "ud.discoveryengine.v1.Conversation\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t2\332\017\n\033ConversationalSe" - + "archService\022\322\002\n\024ConverseConversation\022<.g" - + "oogle.cloud.discoveryengine.v1.ConverseC" - + "onversationRequest\032=.google.cloud.discov" - + "eryengine.v1.ConverseConversationRespons" - + "e\"\274\001\332A\nname,query\202\323\344\223\002\250\001\"G/v1/{name=proj" - + "ects/*/locations/*/dataStores/*/conversa" - + "tions/*}:converse:\001*ZZ\"U/v1/{name=projec" - + "ts/*/locations/*/collections/*/dataStore" - + "s/*/conversations/*}:converse:\001*\022\313\002\n\022Cre" - + "ateConversation\022:.google.cloud.discovery" - + "engine.v1.CreateConversationRequest\032-.go" - + "ogle.cloud.discoveryengine.v1.Conversati" - + "on\"\311\001\332A\023parent,conversation\202\323\344\223\002\254\001\">/v1/" - + "{parent=projects/*/locations/*/dataStore" - + "s/*}/conversations:\014conversationZ\\\"L/v1/" - + "{parent=projects/*/locations/*/collectio" - + "ns/*/dataStores/*}/conversations:\014conver" - + "sation\022\211\002\n\022DeleteConversation\022:.google.c" - + "loud.discoveryengine.v1.DeleteConversati" - + "onRequest\032\026.google.protobuf.Empty\"\236\001\332A\004n" - + "ame\202\323\344\223\002\220\001*>/v1/{name=projects/*/locatio" - + "ns/*/dataStores/*/conversations/*}ZN*L/v" - + "1/{name=projects/*/locations/*/collectio" - + "ns/*/dataStores/*/conversations/*}\022\352\002\n\022U" - + "pdateConversation\022:.google.cloud.discove" - + "ryengine.v1.UpdateConversationRequest\032-." - + "google.cloud.discoveryengine.v1.Conversa" - + "tion\"\350\001\332A\030conversation,update_mask\202\323\344\223\002\306" - + "\0012K/v1/{conversation.name=projects/*/loc" - + "ations/*/dataStores/*/conversations/*}:\014" - + "conversationZi2Y/v1/{conversation.name=p" - + "rojects/*/locations/*/collections/*/data" - + "Stores/*/conversations/*}:\014conversation\022" - + "\232\002\n\017GetConversation\0227.google.cloud.disco" - + "veryengine.v1.GetConversationRequest\032-.g" - + "oogle.cloud.discoveryengine.v1.Conversat" - + "ion\"\236\001\332A\004name\202\323\344\223\002\220\001\022>/v1/{name=projects" - + "/*/locations/*/dataStores/*/conversation" - + "s/*}ZN\022L/v1/{name=projects/*/locations/*" - + "/collections/*/dataStores/*/conversation" - + "s/*}\022\255\002\n\021ListConversations\0229.google.clou" - + "d.discoveryengine.v1.ListConversationsRe" - + "quest\032:.google.cloud.discoveryengine.v1." - + "ListConversationsResponse\"\240\001\332A\006parent\202\323\344" - + "\223\002\220\001\022>/v1/{parent=projects/*/locations/*" - + "/dataStores/*}/conversationsZN\022L/v1/{par" - + "ent=projects/*/locations/*/collections/*" - + "/dataStores/*}/conversations\032R\312A\036discove" - + "ryengine.googleapis.com\322A.https://www.go" - + "ogleapis.com/auth/cloud-platformB\223\002\n#com" - + ".google.cloud.discoveryengine.v1B Conver" - + "sationalSearchServiceProtoP\001ZMcloud.goog" - + "le.com/go/discoveryengine/apiv1/discover" - + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" - + "NGINE\252\002\037Google.Cloud.DiscoveryEngine.V1\312" - + "\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Goog" - + "le::Cloud::DiscoveryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.ConversationProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor, - new java.lang.String[] { - "Name", - "Query", - "ServingConfig", - "Conversation", - "SafeSearch", - "UserLabels", - "SummarySpec", - }); - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor, - new java.lang.String[] { - "Reply", "Conversation", "SearchResults", - }); - internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor, - new java.lang.String[] { - "Parent", "Conversation", - }); - internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor, - new java.lang.String[] { - "Conversation", "UpdateMask", - }); - internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor, - new java.lang.String[] { - "Conversations", "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); - 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.discoveryengine.v1.ConversationProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java deleted file mode 100644 index f3f9f99a7a60..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1; - -public interface CreateConversationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateConversationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The conversation to create.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the conversation field is set. - */ - boolean hasConversation(); - /** - * - * - *
-   * Required. The conversation to create.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The conversation. - */ - com.google.cloud.discoveryengine.v1.Conversation getConversation(); - /** - * - * - *
-   * Required. The conversation to create.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java deleted file mode 100644 index d6df9b313f63..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1; - -public interface DeleteConversationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteConversationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java deleted file mode 100644 index 3729d1cc80c2..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/schema_service.proto - -package com.google.cloud.discoveryengine.v1; - -public interface DeleteSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java deleted file mode 100644 index dadd24968d8f..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/document.proto - -package com.google.cloud.discoveryengine.v1; - -public final class DocumentProto { - private DocumentProto() {} - - 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_discoveryengine_v1_Document_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_Document_Content_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/discoveryengine/v1/docume" - + "nt.proto\022\037google.cloud.discoveryengine.v" - + "1\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032\034google/protobuf/s" - + "truct.proto\"\222\005\n\010Document\022.\n\013struct_data\030" - + "\004 \001(\0132\027.google.protobuf.StructH\000\022\023\n\tjson" - + "_data\030\005 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\020\n\002id\030" - + "\002 \001(\tB\004\342A\001\005\022\021\n\tschema_id\030\003 \001(\t\022B\n\007conten" - + "t\030\n \001(\01321.google.cloud.discoveryengine.v" - + "1.Document.Content\022\032\n\022parent_document_id" - + "\030\007 \001(\t\022:\n\023derived_struct_data\030\006 \001(\0132\027.go" - + "ogle.protobuf.StructB\004\342A\001\003\032K\n\007Content\022\023\n" - + "\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri\030\003 \001(\tH\000\022\021\n\tmim" - + "e_type\030\001 \001(\tB\t\n\007content:\226\002\352A\222\002\n\'discover" - + "yengine.googleapis.com/Document\022fproject" - + "s/{project}/locations/{location}/dataSto" - + "res/{data_store}/branches/{branch}/docum" - + "ents/{document}\022\177projects/{project}/loca" - + "tions/{location}/collections/{collection" - + "}/dataStores/{data_store}/branches/{bran" - + "ch}/documents/{document}B\006\n\004dataB\200\002\n#com" - + ".google.cloud.discoveryengine.v1B\rDocume" - + "ntProtoP\001ZMcloud.google.com/go/discovery" - + "engine/apiv1/discoveryenginepb;discovery" - + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" - + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" - + "overyEngine\\V1\352\002\"Google::Cloud::Discover" - + "yEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_Document_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_Document_descriptor, - new java.lang.String[] { - "StructData", - "JsonData", - "Name", - "Id", - "SchemaId", - "Content", - "ParentDocumentId", - "DerivedStructData", - "Data", - }); - internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor = - internal_static_google_cloud_discoveryengine_v1_Document_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_Document_Content_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor, - new java.lang.String[] { - "RawBytes", "Uri", "MimeType", "Content", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java deleted file mode 100644 index eafdc593e684..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/document_service.proto - -package com.google.cloud.discoveryengine.v1; - -public final class DocumentServiceProto { - private DocumentServiceProto() {} - - 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_discoveryengine_v1_GetDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_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/discoveryengine/v1/docume" - + "nt_service.proto\022\037google.cloud.discovery" - + "engine.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032.google/cloud/discoveryengine/v1/do" - + "cument.proto\0323google/cloud/discoveryengi" - + "ne/v1/import_config.proto\0322google/cloud/" - + "discoveryengine/v1/purge_config.proto\032#g" - + "oogle/longrunning/operations.proto\032\033goog" - + "le/protobuf/empty.proto\"T\n\022GetDocumentRe" - + "quest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'discoverye" - + "ngine.googleapis.com/Document\"}\n\024ListDoc" - + "umentsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%" - + "discoveryengine.googleapis.com/Branch\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025" - + "ListDocumentsResponse\022<\n\tdocuments\030\001 \003(\013" - + "2).google.cloud.discoveryengine.v1.Docum" - + "ent\022\027\n\017next_page_token\030\002 \001(\t\"\265\001\n\025CreateD" - + "ocumentRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n" - + "%discoveryengine.googleapis.com/Branch\022A" - + "\n\010document\030\002 \001(\0132).google.cloud.discover" - + "yengine.v1.DocumentB\004\342A\001\002\022\031\n\013document_id" - + "\030\003 \001(\tB\004\342A\001\002\"q\n\025UpdateDocumentRequest\022A\n" - + "\010document\030\001 \001(\0132).google.cloud.discovery" - + "engine.v1.DocumentB\004\342A\001\002\022\025\n\rallow_missin" - + "g\030\002 \001(\010\"W\n\025DeleteDocumentRequest\022>\n\004name" - + "\030\001 \001(\tB0\342A\001\002\372A)\n\'discoveryengine.googlea" - + "pis.com/Document2\220\023\n\017DocumentService\022\234\002\n" - + "\013GetDocument\0223.google.cloud.discoveryeng" - + "ine.v1.GetDocumentRequest\032).google.cloud" - + ".discoveryengine.v1.Document\"\254\001\332A\004name\202\323" - + "\344\223\002\236\001\022E/v1/{name=projects/*/locations/*/" - + "dataStores/*/branches/*/documents/*}ZU\022S" - + "/v1/{name=projects/*/locations/*/collect" - + "ions/*/dataStores/*/branches/*/documents" - + "/*}\022\257\002\n\rListDocuments\0225.google.cloud.dis" - + "coveryengine.v1.ListDocumentsRequest\0326.g" - + "oogle.cloud.discoveryengine.v1.ListDocum" - + "entsResponse\"\256\001\332A\006parent\202\323\344\223\002\236\001\022E/v1/{pa" - + "rent=projects/*/locations/*/dataStores/*" - + "/branches/*}/documentsZU\022S/v1/{parent=pr" - + "ojects/*/locations/*/collections/*/dataS" - + "tores/*/branches/*}/documents\022\315\002\n\016Create" - + "Document\0226.google.cloud.discoveryengine." - + "v1.CreateDocumentRequest\032).google.cloud." - + "discoveryengine.v1.Document\"\327\001\332A\033parent," - + "document,document_id\202\323\344\223\002\262\001\"E/v1/{parent" - + "=projects/*/locations/*/dataStores/*/bra" - + "nches/*}/documents:\010documentZ_\"S/v1/{par" - + "ent=projects/*/locations/*/collections/*" - + "/dataStores/*/branches/*}/documents:\010doc" - + "ument\022\301\002\n\016UpdateDocument\0226.google.cloud." - + "discoveryengine.v1.UpdateDocumentRequest" - + "\032).google.cloud.discoveryengine.v1.Docum" - + "ent\"\313\001\202\323\344\223\002\304\0012N/v1/{document.name=projec" - + "ts/*/locations/*/dataStores/*/branches/*" - + "/documents/*}:\010documentZh2\\/v1/{document" - + ".name=projects/*/locations/*/collections" - + "/*/dataStores/*/branches/*/documents/*}:" - + "\010document\022\217\002\n\016DeleteDocument\0226.google.cl" - + "oud.discoveryengine.v1.DeleteDocumentReq" - + "uest\032\026.google.protobuf.Empty\"\254\001\332A\004name\202\323" - + "\344\223\002\236\001*E/v1/{name=projects/*/locations/*/" - + "dataStores/*/branches/*/documents/*}ZU*S" - + "/v1/{name=projects/*/locations/*/collect" - + "ions/*/dataStores/*/branches/*/documents" - + "/*}\022\232\003\n\017ImportDocuments\0227.google.cloud.d" - + "iscoveryengine.v1.ImportDocumentsRequest" - + "\032\035.google.longrunning.Operation\"\256\002\312Ar\n7g" - + "oogle.cloud.discoveryengine.v1.ImportDoc" - + "umentsResponse\0227google.cloud.discoveryen" - + "gine.v1.ImportDocumentsMetadata\202\323\344\223\002\262\001\"L" - + "/v1/{parent=projects/*/locations/*/dataS" - + "tores/*/branches/*}/documents:import:\001*Z" - + "_\"Z/v1/{parent=projects/*/locations/*/co" - + "llections/*/dataStores/*/branches/*}/doc" - + "uments:import:\001*\022\224\003\n\016PurgeDocuments\0226.go" - + "ogle.cloud.discoveryengine.v1.PurgeDocum" - + "entsRequest\032\035.google.longrunning.Operati" - + "on\"\252\002\312Ap\n6google.cloud.discoveryengine.v" - + "1.PurgeDocumentsResponse\0226google.cloud.d" - + "iscoveryengine.v1.PurgeDocumentsMetadata" - + "\202\323\344\223\002\260\001\"K/v1/{parent=projects/*/location" - + "s/*/dataStores/*/branches/*}/documents:p" - + "urge:\001*Z^\"Y/v1/{parent=projects/*/locati" - + "ons/*/collections/*/dataStores/*/branche" - + "s/*}/documents:purge:\001*\032R\312A\036discoveryeng" - + "ine.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\207\002\n#com.goog" - + "le.cloud.discoveryengine.v1B\024DocumentSer" - + "viceProtoP\001ZMcloud.google.com/go/discove" - + "ryengine/apiv1/discoveryenginepb;discove" - + "ryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cl" - + "oud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Di" - + "scoveryEngine\\V1\352\002\"Google::Cloud::Discov" - + "eryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.PurgeConfigProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor, - new java.lang.String[] { - "Documents", "NextPageToken", - }); - internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", "Document", "DocumentId", - }); - internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor, - new java.lang.String[] { - "Document", "AllowMissing", - }); - internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_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.discoveryengine.v1.DocumentProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.PurgeConfigProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java deleted file mode 100644 index 7018e290845b..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1; - -public interface GetConversationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetConversationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java deleted file mode 100644 index 582da48ab5b7..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/schema_service.proto - -package com.google.cloud.discoveryengine.v1; - -public interface GetSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java deleted file mode 100644 index a586fa80cceb..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/import_config.proto - -package com.google.cloud.discoveryengine.v1; - -public final class ImportConfigProto { - private ImportConfigProto() {} - - 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_discoveryengine_v1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/discoveryengine/v1/import" - + "_config.proto\022\037google.cloud.discoveryeng" - + "ine.v1\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032.google/cloud" - + "/discoveryengine/v1/document.proto\0320goog" - + "le/cloud/discoveryengine/v1/user_event.p" - + "roto\032\037google/protobuf/timestamp.proto\032\027g" - + "oogle/rpc/status.proto\032\026google/type/date" - + ".proto\":\n\tGcsSource\022\030\n\ninput_uris\030\001 \003(\tB" - + "\004\342A\001\002\022\023\n\013data_schema\030\002 \001(\t\"\276\001\n\016BigQueryS" - + "ource\022+\n\016partition_date\030\005 \001(\0132\021.google.t" - + "ype.DateH\000\022\022\n\nproject_id\030\001 \001(\t\022\030\n\ndatase" - + "t_id\030\002 \001(\tB\004\342A\001\002\022\026\n\010table_id\030\003 \001(\tB\004\342A\001\002" - + "\022\027\n\017gcs_staging_dir\030\004 \001(\t\022\023\n\013data_schema" - + "\030\006 \001(\tB\013\n\tpartition\"8\n\021ImportErrorConfig" - + "\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\365\003" - + "\n\027ImportUserEventsRequest\022^\n\rinline_sour" - + "ce\030\002 \001(\0132E.google.cloud.discoveryengine." - + "v1.ImportUserEventsRequest.InlineSourceH" - + "\000\022@\n\ngcs_source\030\003 \001(\0132*.google.cloud.dis" - + "coveryengine.v1.GcsSourceH\000\022J\n\017bigquery_" - + "source\030\004 \001(\0132/.google.cloud.discoveryeng" - + "ine.v1.BigQuerySourceH\000\022A\n\006parent\030\001 \001(\tB" - + "1\342A\001\002\372A*\n(discoveryengine.googleapis.com" - + "/DataStore\022H\n\014error_config\030\005 \001(\01322.googl" - + "e.cloud.discoveryengine.v1.ImportErrorCo" - + "nfig\032U\n\014InlineSource\022E\n\013user_events\030\001 \003(" - + "\0132*.google.cloud.discoveryengine.v1.User" - + "EventB\004\342A\001\002B\010\n\006source\"\313\001\n\030ImportUserEven" - + "tsResponse\022)\n\rerror_samples\030\001 \003(\0132\022.goog" - + "le.rpc.Status\022H\n\014error_config\030\002 \001(\01322.go" - + "ogle.cloud.discoveryengine.v1.ImportErro" - + "rConfig\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025" - + "unjoined_events_count\030\004 \001(\003\"\252\001\n\030ImportUs" - + "erEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022/\n\013update_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsu" - + "ccess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003" - + "\"\251\001\n\027ImportDocumentsMetadata\022/\n\013create_t" - + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure" - + "_count\030\004 \001(\003\"\331\005\n\026ImportDocumentsRequest\022" - + "]\n\rinline_source\030\002 \001(\0132D.google.cloud.di" - + "scoveryengine.v1.ImportDocumentsRequest." - + "InlineSourceH\000\022@\n\ngcs_source\030\003 \001(\0132*.goo" - + "gle.cloud.discoveryengine.v1.GcsSourceH\000" - + "\022J\n\017bigquery_source\030\004 \001(\0132/.google.cloud" - + ".discoveryengine.v1.BigQuerySourceH\000\022>\n\006" - + "parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.g" - + "oogleapis.com/Branch\022H\n\014error_config\030\005 \001" - + "(\01322.google.cloud.discoveryengine.v1.Imp" - + "ortErrorConfig\022g\n\023reconciliation_mode\030\006 " - + "\001(\0162J.google.cloud.discoveryengine.v1.Im" - + "portDocumentsRequest.ReconciliationMode\022" - + "\031\n\021auto_generate_ids\030\010 \001(\010\022\020\n\010id_field\030\t" - + " \001(\t\032R\n\014InlineSource\022B\n\tdocuments\030\001 \003(\0132" - + ").google.cloud.discoveryengine.v1.Docume" - + "ntB\004\342A\001\002\"T\n\022ReconciliationMode\022#\n\037RECONC" - + "ILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013INCREMENT" - + "AL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"\216\001\n\027ImportDocum" - + "entsResponse\022)\n\rerror_samples\030\001 \003(\0132\022.go" - + "ogle.rpc.Status\022H\n\014error_config\030\002 \001(\01322." - + "google.cloud.discoveryengine.v1.ImportEr" - + "rorConfigB\204\002\n#com.google.cloud.discovery" - + "engine.v1B\021ImportConfigProtoP\001ZMcloud.go" - + "ogle.com/go/discoveryengine/apiv1/discov" - + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" - + "YENGINE\252\002\037Google.Cloud.DiscoveryEngine.V" - + "1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Go" - + "ogle::Cloud::DiscoveryEngine::V1b\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.discoveryengine.v1.DocumentProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor, - new java.lang.String[] { - "InputUris", "DataSchema", - }); - internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor, - new java.lang.String[] { - "PartitionDate", - "ProjectId", - "DatasetId", - "TableId", - "GcsStagingDir", - "DataSchema", - "Partition", - }); - internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor, - new java.lang.String[] { - "GcsPrefix", "Destination", - }); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor, - new java.lang.String[] { - "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", - }); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor = - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor, - new java.lang.String[] { - "UserEvents", - }); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor, - new java.lang.String[] { - "ErrorSamples", "ErrorConfig", "JoinedEventsCount", "UnjoinedEventsCount", - }); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", - }); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", - }); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor, - new java.lang.String[] { - "InlineSource", - "GcsSource", - "BigquerySource", - "Parent", - "ErrorConfig", - "ReconciliationMode", - "AutoGenerateIds", - "IdField", - "Source", - }); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor = - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor, - new java.lang.String[] { - "Documents", - }); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor, - new java.lang.String[] { - "ErrorSamples", "ErrorConfig", - }); - 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.discoveryengine.v1.DocumentProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java deleted file mode 100644 index 2c8d57b076a9..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/purge_config.proto - -package com.google.cloud.discoveryengine.v1; - -public final class PurgeConfigProto { - private PurgeConfigProto() {} - - 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_discoveryengine_v1_PurgeDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/discoveryengine/v1/purge_" - + "config.proto\022\037google.cloud.discoveryengi" - + "ne.v1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\"|\n\025PurgeDocumentsRequ" - + "est\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoverye" - + "ngine.googleapis.com/Branch\022\024\n\006filter\030\002 " - + "\001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"q\n\026PurgeDocumen" - + "tsResponse\022\023\n\013purge_count\030\001 \001(\003\022B\n\014purge" - + "_sample\030\002 \003(\tB,\372A)\n\'discoveryengine.goog" - + "leapis.com/Document\"\250\001\n\026PurgeDocumentsMe" - + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\025\n\rsuccess_coun" - + "t\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003B\203\002\n#com.g" - + "oogle.cloud.discoveryengine.v1B\020PurgeCon" - + "figProtoP\001ZMcloud.google.com/go/discover" - + "yengine/apiv1/discoveryenginepb;discover" - + "yenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clo" - + "ud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Dis" - + "coveryEngine\\V1\352\002\"Google::Cloud::Discove" - + "ryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "Force", - }); - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor, - new java.lang.String[] { - "PurgeCount", "PurgeSample", - }); - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", - }); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java deleted file mode 100644 index 48aa9b77cd39..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/schema.proto - -package com.google.cloud.discoveryengine.v1; - -public final class SchemaProto { - private SchemaProto() {} - - 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_discoveryengine_v1_Schema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_Schema_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/discoveryengine/v1/schema" - + ".proto\022\037google.cloud.discoveryengine.v1\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032\034google/protobuf/str" - + "uct.proto\"\332\002\n\006Schema\0220\n\rstruct_schema\030\002 " - + "\001(\0132\027.google.protobuf.StructH\000\022\025\n\013json_s" - + "chema\030\003 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005:\350\001\352A\344\001" - + "\n%discoveryengine.googleapis.com/Schema\022" - + "Pprojects/{project}/locations/{location}" - + "/dataStores/{data_store}/schemas/{schema" - + "}\022iprojects/{project}/locations/{locatio" - + "n}/collections/{collection}/dataStores/{" - + "data_store}/schemas/{schema}B\010\n\006schemaB\376" - + "\001\n#com.google.cloud.discoveryengine.v1B\013" - + "SchemaProtoP\001ZMcloud.google.com/go/disco" - + "veryengine/apiv1/discoveryenginepb;disco" - + "veryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google." - + "Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\" - + "DiscoveryEngine\\V1\352\002\"Google::Cloud::Disc" - + "overyEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_Schema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_Schema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_Schema_descriptor, - new java.lang.String[] { - "StructSchema", "JsonSchema", "Name", "Schema", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java deleted file mode 100644 index 97b70139b73c..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/schema_service.proto - -package com.google.cloud.discoveryengine.v1; - -public final class SchemaServiceProto { - private SchemaServiceProto() {} - - 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_discoveryengine_v1_GetSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/discoveryengine/v1/schema" - + "_service.proto\022\037google.cloud.discoveryen" - + "gine.v1\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032,google/cloud/discoveryengine/v1/sche" - + "ma.proto\032#google/longrunning/operations." - + "proto\032\033google/protobuf/empty.proto\032\037goog" - + "le/protobuf/timestamp.proto\"P\n\020GetSchema" - + "Request\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%discover" - + "yengine.googleapis.com/Schema\"~\n\022ListSch" - + "emasRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(di" - + "scoveryengine.googleapis.com/DataStore\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n" - + "\023ListSchemasResponse\0228\n\007schemas\030\001 \003(\0132\'." - + "google.cloud.discoveryengine.v1.Schema\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\260\001\n\023CreateSchema" - + "Request\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discov" - + "eryengine.googleapis.com/DataStore\022=\n\006sc" - + "hema\030\002 \001(\0132\'.google.cloud.discoveryengin" - + "e.v1.SchemaB\004\342A\001\002\022\027\n\tschema_id\030\003 \001(\tB\004\342A" - + "\001\002\"k\n\023UpdateSchemaRequest\022=\n\006schema\030\001 \001(" - + "\0132\'.google.cloud.discoveryengine.v1.Sche" - + "maB\004\342A\001\002\022\025\n\rallow_missing\030\003 \001(\010\"S\n\023Delet" - + "eSchemaRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%d" - + "iscoveryengine.googleapis.com/Schema\"x\n\024" - + "CreateSchemaMetadata\022/\n\013create_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"x" - + "\n\024UpdateSchemaMetadata\022/\n\013create_time\030\001 " - + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "\"x\n\024DeleteSchemaMetadata\022/\n\013create_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" - + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp2\261\r\n\rSchemaService\022\374\001\n\tGetSchema\0221.goo" - + "gle.cloud.discoveryengine.v1.GetSchemaRe" - + "quest\032\'.google.cloud.discoveryengine.v1." - + "Schema\"\222\001\332A\004name\202\323\344\223\002\204\001\0228/v1/{name=proje" - + "cts/*/locations/*/dataStores/*/schemas/*" - + "}ZH\022F/v1/{name=projects/*/locations/*/co" - + "llections/*/dataStores/*/schemas/*}\022\217\002\n\013" - + "ListSchemas\0223.google.cloud.discoveryengi" - + "ne.v1.ListSchemasRequest\0324.google.cloud." - + "discoveryengine.v1.ListSchemasResponse\"\224" - + "\001\332A\006parent\202\323\344\223\002\204\001\0228/v1/{parent=projects/" - + "*/locations/*/dataStores/*}/schemasZH\022F/" - + "v1/{parent=projects/*/locations/*/collec" - + "tions/*/dataStores/*}/schemas\022\374\002\n\014Create" - + "Schema\0224.google.cloud.discoveryengine.v1" - + ".CreateSchemaRequest\032\035.google.longrunnin" - + "g.Operation\"\226\002\312A^\n&google.cloud.discover" - + "yengine.v1.Schema\0224google.cloud.discover" - + "yengine.v1.CreateSchemaMetadata\332A\027parent" - + ",schema,schema_id\202\323\344\223\002\224\001\"8/v1/{parent=pr" - + "ojects/*/locations/*/dataStores/*}/schem" - + "as:\006schemaZP\"F/v1/{parent=projects/*/loc" - + "ations/*/collections/*/dataStores/*}/sch" - + "emas:\006schema\022\360\002\n\014UpdateSchema\0224.google.c" - + "loud.discoveryengine.v1.UpdateSchemaRequ" - + "est\032\035.google.longrunning.Operation\"\212\002\312A^" - + "\n&google.cloud.discoveryengine.v1.Schema" - + "\0224google.cloud.discoveryengine.v1.Update" - + "SchemaMetadata\202\323\344\223\002\242\0012?/v1/{schema.name=" - + "projects/*/locations/*/dataStores/*/sche" - + "mas/*}:\006schemaZW2M/v1/{schema.name=proje" - + "cts/*/locations/*/collections/*/dataStor" - + "es/*/schemas/*}:\006schema\022\310\002\n\014DeleteSchema" - + "\0224.google.cloud.discoveryengine.v1.Delet" - + "eSchemaRequest\032\035.google.longrunning.Oper" - + "ation\"\342\001\312AM\n\025google.protobuf.Empty\0224goog" - + "le.cloud.discoveryengine.v1.DeleteSchema" - + "Metadata\332A\004name\202\323\344\223\002\204\001*8/v1/{name=projec" - + "ts/*/locations/*/dataStores/*/schemas/*}" - + "ZH*F/v1/{name=projects/*/locations/*/col" - + "lections/*/dataStores/*/schemas/*}\032R\312A\036d" - + "iscoveryengine.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\205" - + "\002\n#com.google.cloud.discoveryengine.v1B\022" - + "SchemaServiceProtoP\001ZMcloud.google.com/g" - + "o/discoveryengine/apiv1/discoveryenginep" - + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037" - + "Google.Cloud.DiscoveryEngine.V1\312\002\037Google" - + "\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Clou" - + "d::DiscoveryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.SchemaProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor, - new java.lang.String[] { - "Schemas", "NextPageToken", - }); - internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor, - new java.lang.String[] { - "Parent", "Schema", "SchemaId", - }); - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor, - new java.lang.String[] { - "Schema", "AllowMissing", - }); - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", - }); - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", - }); - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", - }); - 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.discoveryengine.v1.SchemaProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java deleted file mode 100644 index e6b3cbcd5eae..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java +++ /dev/null @@ -1,510 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/search_service.proto - -package com.google.cloud.discoveryengine.v1; - -public final class SearchServiceProto { - private SearchServiceProto() {} - - 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_discoveryengine_v1_SearchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/discoveryengine/v1/search" - + "_service.proto\022\037google.cloud.discoveryen" - + "gine.v1\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032,google/cloud/discoveryengine/v1/comm" - + "on.proto\032.google/cloud/discoveryengine/v" - + "1/document.proto\032\034google/protobuf/struct" - + ".proto\"\350\024\n\rSearchRequest\022M\n\016serving_conf" - + "ig\030\001 \001(\tB5\342A\001\002\372A.\n,discoveryengine.googl" - + "eapis.com/ServingConfig\022:\n\006branch\030\002 \001(\tB" - + "*\372A\'\n%discoveryengine.googleapis.com/Bra" - + "nch\022\r\n\005query\030\003 \001(\t\022N\n\013image_query\030\023 \001(\0132" - + "9.google.cloud.discoveryengine.v1.Search" - + "Request.ImageQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n" - + "\npage_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022\016\n\006fil" - + "ter\030\007 \001(\t\022\020\n\010order_by\030\010 \001(\t\022<\n\tuser_info" - + "\030\025 \001(\0132).google.cloud.discoveryengine.v1" - + ".UserInfo\022M\n\013facet_specs\030\t \003(\01328.google." - + "cloud.discoveryengine.v1.SearchRequest.F" - + "acetSpec\022L\n\nboost_spec\030\n \001(\01328.google.cl" - + "oud.discoveryengine.v1.SearchRequest.Boo" - + "stSpec\022J\n\006params\030\013 \003(\0132:.google.cloud.di" - + "scoveryengine.v1.SearchRequest.ParamsEnt" - + "ry\022_\n\024query_expansion_spec\030\r \001(\0132A.googl" - + "e.cloud.discoveryengine.v1.SearchRequest" - + ".QueryExpansionSpec\022a\n\025spell_correction_" - + "spec\030\016 \001(\0132B.google.cloud.discoveryengin" - + "e.v1.SearchRequest.SpellCorrectionSpec\022\026" - + "\n\016user_pseudo_id\030\017 \001(\t\022]\n\023content_search" - + "_spec\030\030 \001(\0132@.google.cloud.discoveryengi" - + "ne.v1.SearchRequest.ContentSearchSpec\022\023\n" - + "\013safe_search\030\024 \001(\010\022S\n\013user_labels\030\026 \003(\0132" - + ">.google.cloud.discoveryengine.v1.Search" - + "Request.UserLabelsEntry\032,\n\nImageQuery\022\025\n" - + "\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032\376\002\n\tFacetS" - + "pec\022Z\n\tfacet_key\030\001 \001(\0132A.google.cloud.di" - + "scoveryengine.v1.SearchRequest.FacetSpec" - + ".FacetKeyB\004\342A\001\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024exclud" - + "ed_filter_keys\030\003 \003(\t\022\037\n\027enable_dynamic_p" - + "osition\030\004 \001(\010\032\306\001\n\010FacetKey\022\021\n\003key\030\001 \001(\tB" - + "\004\342A\001\002\022<\n\tintervals\030\002 \003(\0132).google.cloud." - + "discoveryengine.v1.Interval\022\031\n\021restricte" - + "d_values\030\003 \003(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010cont" - + "ains\030\005 \003(\t\022\030\n\020case_insensitive\030\006 \001(\010\022\020\n\010" - + "order_by\030\007 \001(\t\032\257\001\n\tBoostSpec\022j\n\025conditio" - + "n_boost_specs\030\001 \003(\0132K.google.cloud.disco" - + "veryengine.v1.SearchRequest.BoostSpec.Co" - + "nditionBoostSpec\0326\n\022ConditionBoostSpec\022\021" - + "\n\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\032\324\001\n\022Que" - + "ryExpansionSpec\022^\n\tcondition\030\001 \001(\0162K.goo" - + "gle.cloud.discoveryengine.v1.SearchReque" - + "st.QueryExpansionSpec.Condition\022\036\n\026pin_u" - + "nexpanded_results\030\002 \001(\010\">\n\tCondition\022\031\n\025" - + "CONDITION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n" - + "\004AUTO\020\002\032\251\001\n\023SpellCorrectionSpec\022U\n\004mode\030" - + "\001 \001(\0162G.google.cloud.discoveryengine.v1." - + "SearchRequest.SpellCorrectionSpec.Mode\";" - + "\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTI" - + "ON_ONLY\020\001\022\010\n\004AUTO\020\002\032\351\003\n\021ContentSearchSpe" - + "c\022b\n\014snippet_spec\030\001 \001(\0132L.google.cloud.d" - + "iscoveryengine.v1.SearchRequest.ContentS" - + "earchSpec.SnippetSpec\022b\n\014summary_spec\030\002 " - + "\001(\0132L.google.cloud.discoveryengine.v1.Se" - + "archRequest.ContentSearchSpec.SummarySpe" - + "c\032`\n\013SnippetSpec\022\035\n\021max_snippet_count\030\001 " - + "\001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001\022\026\n\016r" - + "eturn_snippet\030\003 \001(\010\032\251\001\n\013SummarySpec\022\034\n\024s" - + "ummary_result_count\030\001 \001(\005\022\031\n\021include_cit" - + "ations\030\002 \001(\010\022 \n\030ignore_adversarial_query" - + "\030\003 \001(\010\022(\n ignore_non_summary_seeking_que" - + "ry\030\004 \001(\010\022\025\n\rlanguage_code\030\006 \001(\t\032E\n\013Param" - + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value:\0028\001\0321\n\017UserLabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\372\n\n\016Se" - + "archResponse\022M\n\007results\030\001 \003(\0132<.google.c" - + "loud.discoveryengine.v1.SearchResponse.S" - + "earchResult\022E\n\006facets\030\002 \003(\01325.google.clo" - + "ud.discoveryengine.v1.SearchResponse.Fac" - + "et\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021attribution_to" - + "ken\030\004 \001(\t\022\024\n\014redirect_uri\030\014 \001(\t\022\027\n\017next_" - + "page_token\030\005 \001(\t\022\027\n\017corrected_query\030\007 \001(" - + "\t\022H\n\007summary\030\t \001(\01327.google.cloud.discov" - + "eryengine.v1.SearchResponse.Summary\022`\n\024q" - + "uery_expansion_info\030\016 \001(\0132B.google.cloud" - + ".discoveryengine.v1.SearchResponse.Query" - + "ExpansionInfo\032W\n\014SearchResult\022\n\n\002id\030\001 \001(" - + "\t\022;\n\010document\030\002 \001(\0132).google.cloud.disco" - + "veryengine.v1.Document\032\371\001\n\005Facet\022\013\n\003key\030" - + "\001 \001(\t\022P\n\006values\030\002 \003(\0132@.google.cloud.dis" - + "coveryengine.v1.SearchResponse.Facet.Fac" - + "etValue\022\025\n\rdynamic_facet\030\003 \001(\010\032z\n\nFacetV" - + "alue\022\017\n\005value\030\001 \001(\tH\000\022=\n\010interval\030\002 \001(\0132" - + ").google.cloud.discoveryengine.v1.Interv" - + "alH\000\022\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032\216\004\n\007S" - + "ummary\022\024\n\014summary_text\030\001 \001(\t\022m\n\027summary_" - + "skipped_reasons\030\002 \003(\0162L.google.cloud.dis" - + "coveryengine.v1.SearchResponse.Summary.S" - + "ummarySkippedReason\022c\n\021safety_attributes" - + "\030\003 \001(\0132H.google.cloud.discoveryengine.v1" - + ".SearchResponse.Summary.SafetyAttributes" - + "\0326\n\020SafetyAttributes\022\022\n\ncategories\030\001 \003(\t" - + "\022\016\n\006scores\030\002 \003(\002\"\340\001\n\024SummarySkippedReaso" - + "n\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020" - + "\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!NON_" - + "SUMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OUT_O" - + "F_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_PO" - + "LICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_ENABLE" - + "D\020\005\032I\n\022QueryExpansionInfo\022\026\n\016expanded_qu" - + "ery\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001(\0032\223" - + "\003\n\rSearchService\022\255\002\n\006Search\022..google.clo" - + "ud.discoveryengine.v1.SearchRequest\032/.go" - + "ogle.cloud.discoveryengine.v1.SearchResp" - + "onse\"\301\001\202\323\344\223\002\272\001\"P/v1/{serving_config=proj" - + "ects/*/locations/*/dataStores/*/servingC" - + "onfigs/*}:search:\001*Zc\"^/v1/{serving_conf" - + "ig=projects/*/locations/*/collections/*/" - + "dataStores/*/servingConfigs/*}:search:\001*" - + "\032R\312A\036discoveryengine.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\205\002\n#com.google.cloud.discoveryengin" - + "e.v1B\022SearchServiceProtoP\001ZMcloud.google" - + ".com/go/discoveryengine/apiv1/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037" - + "Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Google" - + "::Cloud::DiscoveryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor, - new java.lang.String[] { - "ServingConfig", - "Branch", - "Query", - "ImageQuery", - "PageSize", - "PageToken", - "Offset", - "Filter", - "OrderBy", - "UserInfo", - "FacetSpecs", - "BoostSpec", - "Params", - "QueryExpansionSpec", - "SpellCorrectionSpec", - "UserPseudoId", - "ContentSearchSpec", - "SafeSearch", - "UserLabels", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor, - new java.lang.String[] { - "ImageBytes", "Image", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor, - new java.lang.String[] { - "FacetKey", "Limit", "ExcludedFilterKeys", "EnableDynamicPosition", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor, - new java.lang.String[] { - "Key", - "Intervals", - "RestrictedValues", - "Prefixes", - "Contains", - "CaseInsensitive", - "OrderBy", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor, - new java.lang.String[] { - "ConditionBoostSpecs", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor, - new java.lang.String[] { - "Condition", "Boost", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor, - new java.lang.String[] { - "Condition", "PinUnexpandedResults", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor, - new java.lang.String[] { - "Mode", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor, - new java.lang.String[] { - "SnippetSpec", "SummarySpec", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor, - new java.lang.String[] { - "MaxSnippetCount", "ReferenceOnly", "ReturnSnippet", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor, - new java.lang.String[] { - "SummaryResultCount", - "IncludeCitations", - "IgnoreAdversarialQuery", - "IgnoreNonSummarySeekingQuery", - "LanguageCode", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor, - new java.lang.String[] { - "Results", - "Facets", - "TotalSize", - "AttributionToken", - "RedirectUri", - "NextPageToken", - "CorrectedQuery", - "Summary", - "QueryExpansionInfo", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor, - new java.lang.String[] { - "Id", "Document", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor, - new java.lang.String[] { - "Key", "Values", "DynamicFacet", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor, - new java.lang.String[] { - "Value", "Interval", "Count", "FacetValue", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor, - new java.lang.String[] { - "SummaryText", "SummarySkippedReasons", "SafetyAttributes", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor, - new java.lang.String[] { - "Categories", "Scores", - }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor, - new java.lang.String[] { - "ExpandedQuery", "PinnedResultCount", - }); - 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.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java deleted file mode 100644 index a9af22312fd6..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/user_event.proto - -package com.google.cloud.discoveryengine.v1; - -public final class UserEventProto { - private UserEventProto() {} - - 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_discoveryengine_v1_UserEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/discoveryengine/v1/user_e" - + "vent.proto\022\037google.cloud.discoveryengine" - + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032,google/cloud/di" - + "scoveryengine/v1/common.proto\032\036google/pr" - + "otobuf/duration.proto\032\037google/protobuf/t" - + "imestamp.proto\"\275\007\n\tUserEvent\022\030\n\nevent_ty" - + "pe\030\001 \001(\tB\004\342A\001\002\022\034\n\016user_pseudo_id\030\002 \001(\tB\004" - + "\342A\001\002\022.\n\nevent_time\030\003 \001(\0132\032.google.protob" - + "uf.Timestamp\022<\n\tuser_info\030\004 \001(\0132).google" - + ".cloud.discoveryengine.v1.UserInfo\022\033\n\023di" - + "rect_user_request\030\005 \001(\010\022\022\n\nsession_id\030\006 " - + "\001(\t\022<\n\tpage_info\030\007 \001(\0132).google.cloud.di" - + "scoveryengine.v1.PageInfo\022\031\n\021attribution" - + "_token\030\010 \001(\t\022\016\n\006filter\030\t \001(\t\022@\n\tdocument" - + "s\030\n \003(\0132-.google.cloud.discoveryengine.v" - + "1.DocumentInfo\0229\n\005panel\030\013 \001(\0132*.google.c" - + "loud.discoveryengine.v1.PanelInfo\022@\n\013sea" - + "rch_info\030\014 \001(\0132+.google.cloud.discoverye" - + "ngine.v1.SearchInfo\022H\n\017completion_info\030\r" - + " \001(\0132/.google.cloud.discoveryengine.v1.C" - + "ompletionInfo\022J\n\020transaction_info\030\016 \001(\0132" - + "0.google.cloud.discoveryengine.v1.Transa" - + "ctionInfo\022\017\n\007tag_ids\030\017 \003(\t\022\025\n\rpromotion_" - + "ids\030\020 \003(\t\022N\n\nattributes\030\021 \003(\0132:.google.c" - + "loud.discoveryengine.v1.UserEvent.Attrib" - + "utesEntry\022>\n\nmedia_info\030\022 \001(\0132*.google.c" - + "loud.discoveryengine.v1.MediaInfo\032c\n\017Att" - + "ributesEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\013" - + "20.google.cloud.discoveryengine.v1.Custo" - + "mAttribute:\0028\001\"Y\n\010PageInfo\022\023\n\013pageview_i" - + "d\030\001 \001(\t\022\025\n\rpage_category\030\002 \001(\t\022\013\n\003uri\030\003 " - + "\001(\t\022\024\n\014referrer_uri\030\004 \001(\t\"T\n\nSearchInfo\022" - + "\024\n\014search_query\030\001 \001(\t\022\020\n\010order_by\030\002 \001(\t\022" - + "\023\n\006offset\030\003 \001(\005H\000\210\001\001B\t\n\007_offset\"H\n\016Compl" - + "etionInfo\022\033\n\023selected_suggestion\030\001 \001(\t\022\031" - + "\n\021selected_position\030\002 \001(\005\"\313\001\n\017Transactio" - + "nInfo\022\030\n\005value\030\001 \001(\002B\004\342A\001\002H\000\210\001\001\022\026\n\010curre" - + "ncy\030\002 \001(\tB\004\342A\001\002\022\026\n\016transaction_id\030\003 \001(\t\022" - + "\020\n\003tax\030\004 \001(\002H\001\210\001\001\022\021\n\004cost\030\005 \001(\002H\002\210\001\001\022\033\n\016" - + "discount_value\030\006 \001(\002H\003\210\001\001B\010\n\006_valueB\006\n\004_" - + "taxB\007\n\005_costB\021\n\017_discount_value\"\273\001\n\014Docu" - + "mentInfo\022\014\n\002id\030\001 \001(\tH\000\022<\n\004name\030\002 \001(\tB,\372A" - + ")\n\'discoveryengine.googleapis.com/Docume" - + "ntH\000\022\r\n\003uri\030\006 \001(\tH\000\022\025\n\010quantity\030\003 \001(\005H\001\210" - + "\001\001\022\025\n\rpromotion_ids\030\004 \003(\tB\025\n\023document_de" - + "scriptorB\013\n\t_quantity\"\225\001\n\tPanelInfo\022\026\n\010p" - + "anel_id\030\002 \001(\tB\004\342A\001\002\022\024\n\014display_name\030\003 \001(" - + "\t\022\033\n\016panel_position\030\004 \001(\005H\000\210\001\001\022\031\n\014total_" - + "panels\030\005 \001(\005H\001\210\001\001B\021\n\017_panel_positionB\017\n\r" - + "_total_panels\"\215\001\n\tMediaInfo\022:\n\027media_pro" - + "gress_duration\030\001 \001(\0132\031.google.protobuf.D" - + "uration\022&\n\031media_progress_percentage\030\002 \001" - + "(\002H\000\210\001\001B\034\n\032_media_progress_percentageB\201\002" - + "\n#com.google.cloud.discoveryengine.v1B\016U" - + "serEventProtoP\001ZMcloud.google.com/go/dis" - + "coveryengine/apiv1/discoveryenginepb;dis" - + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Googl" - + "e.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clou" - + "d\\DiscoveryEngine\\V1\352\002\"Google::Cloud::Di" - + "scoveryEngine::V1b\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.discoveryengine.v1.CommonProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor, - new java.lang.String[] { - "EventType", - "UserPseudoId", - "EventTime", - "UserInfo", - "DirectUserRequest", - "SessionId", - "PageInfo", - "AttributionToken", - "Filter", - "Documents", - "Panel", - "SearchInfo", - "CompletionInfo", - "TransactionInfo", - "TagIds", - "PromotionIds", - "Attributes", - "MediaInfo", - }); - internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor, - new java.lang.String[] { - "PageviewId", "PageCategory", "Uri", "ReferrerUri", - }); - internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor, - new java.lang.String[] { - "SearchQuery", "OrderBy", "Offset", "Offset", - }); - internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor, - new java.lang.String[] { - "SelectedSuggestion", "SelectedPosition", - }); - internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor, - new java.lang.String[] { - "Value", - "Currency", - "TransactionId", - "Tax", - "Cost", - "DiscountValue", - "Value", - "Tax", - "Cost", - "DiscountValue", - }); - internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor, - new java.lang.String[] { - "Id", "Name", "Uri", "Quantity", "PromotionIds", "DocumentDescriptor", "Quantity", - }); - internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor, - new java.lang.String[] { - "PanelId", - "DisplayName", - "PanelPosition", - "TotalPanels", - "PanelPosition", - "TotalPanels", - }); - internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor, - new java.lang.String[] { - "MediaProgressDuration", "MediaProgressPercentage", "MediaProgressPercentage", - }); - 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.discoveryengine.v1.CommonProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java deleted file mode 100644 index 9aa148f7fe3b..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/user_event_service.proto - -package com.google.cloud.discoveryengine.v1; - -public final class UserEventServiceProto { - private UserEventServiceProto() {} - - 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_discoveryengine_v1_WriteUserEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/discoveryengine/v1/user_e" - + "vent_service.proto\022\037google.cloud.discove" - + "ryengine.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/httpbody" - + ".proto\032\031google/api/resource.proto\0323googl" - + "e/cloud/discoveryengine/v1/import_config" - + ".proto\0320google/cloud/discoveryengine/v1/" - + "user_event.proto\032#google/longrunning/ope" - + "rations.proto\"\264\001\n\025WriteUserEventRequest\022" - + "A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengin" - + "e.googleapis.com/DataStore\022I\n\nuser_event" - + "\030\002 \001(\0132*.google.cloud.discoveryengine.v1" - + ".UserEventB\004\342A\001\002H\000\210\001\001B\r\n\013_user_event\"\252\001\n" - + "\027CollectUserEventRequest\022A\n\006parent\030\001 \001(\t" - + "B1\342A\001\002\372A*\n(discoveryengine.googleapis.co" - + "m/DataStore\022\030\n\nuser_event\030\002 \001(\tB\004\342A\001\002\022\020\n" - + "\003uri\030\003 \001(\tH\000\210\001\001\022\020\n\003ets\030\004 \001(\003H\001\210\001\001B\006\n\004_ur" - + "iB\006\n\004_ets2\253\010\n\020UserEventService\022\254\002\n\016Write" - + "UserEvent\0226.google.cloud.discoveryengine" - + ".v1.WriteUserEventRequest\032*.google.cloud" - + ".discoveryengine.v1.UserEvent\"\265\001\202\323\344\223\002\256\001\"" - + "A/v1/{parent=projects/*/locations/*/data" - + "Stores/*}/userEvents:write:\nuser_eventZ]" - + "\"O/v1/{parent=projects/*/locations/*/col" - + "lections/*/dataStores/*}/userEvents:writ" - + "e:\nuser_event\022\206\002\n\020CollectUserEvent\0228.goo" - + "gle.cloud.discoveryengine.v1.CollectUser" - + "EventRequest\032\024.google.api.HttpBody\"\241\001\202\323\344" - + "\223\002\232\001\022C/v1/{parent=projects/*/locations/*" - + "/dataStores/*}/userEvents:collectZS\022Q/v1" - + "/{parent=projects/*/locations/*/collecti" - + "ons/*/dataStores/*}/userEvents:collect\022\212" - + "\003\n\020ImportUserEvents\0228.google.cloud.disco" - + "veryengine.v1.ImportUserEventsRequest\032\035." - + "google.longrunning.Operation\"\234\002\312At\n8goog" - + "le.cloud.discoveryengine.v1.ImportUserEv" - + "entsResponse\0228google.cloud.discoveryengi" - + "ne.v1.ImportUserEventsMetadata\202\323\344\223\002\236\001\"B/" - + "v1/{parent=projects/*/locations/*/dataSt" - + "ores/*}/userEvents:import:\001*ZU\"P/v1/{par" - + "ent=projects/*/locations/*/collections/*" - + "/dataStores/*}/userEvents:import:\001*\032R\312A\036" - + "discoveryengine.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\210\002\n#com.google.cloud.discoveryengine.v1B" - + "\025UserEventServiceProtoP\001ZMcloud.google.c" - + "om/go/discoveryengine/apiv1/discoveryeng" - + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" - + "E\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Go" - + "ogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::" - + "Cloud::DiscoveryEngine::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.HttpBodyProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(), - com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor, - new java.lang.String[] { - "Parent", "UserEvent", "UserEvent", - }); - internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor, - new java.lang.String[] { - "Parent", "UserEvent", "Uri", "Ets", "Uri", "Ets", - }); - 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.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.HttpBodyProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(); - com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java deleted file mode 100644 index e57fb13235f7..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1/user_event_service.proto - -package com.google.cloud.discoveryengine.v1; - -public interface WriteUserEventRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WriteUserEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent DataStore resource name, such as
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent DataStore resource name, such as
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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.
-   * 
- * - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userEvent field is set. - */ - boolean hasUserEvent(); - /** - * - * - *
-   * Required. User event to write.
-   * 
- * - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userEvent. - */ - com.google.cloud.discoveryengine.v1.UserEvent getUserEvent(); - /** - * - * - *
-   * Required. User event to write.
-   * 
- * - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventOrBuilder(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java deleted file mode 100644 index cf83d89afe4a..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/common.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class CommonProto { - private CommonProto() {} - - 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_discoveryengine_v1beta_Interval_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/discoveryengine/v1beta/co" - + "mmon.proto\022#google.cloud.discoveryengine" - + ".v1beta\032\031google/api/resource.proto\"x\n\010In" - + "terval\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive_m" - + "inimum\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exc" - + "lusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"0\n\017" - + "CustomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers" - + "\030\002 \003(\001\"/\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nu" - + "ser_agent\030\002 \001(\t\"\034\n\nDoubleList\022\016\n\006values\030" - + "\001 \003(\001B\322\007\n\'com.google.cloud.discoveryengi" - + "ne.v1betaB\013CommonProtoP\001ZQcloud.google.c" - + "om/go/discoveryengine/apiv1beta/discover" - + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" - + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" - + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" - + "a\352\002&Google::Cloud::DiscoveryEngine::V1be" - + "ta\352A\346\001\n%discoveryengine.googleapis.com/B" - + "ranch\022Qprojects/{project}/locations/{loc" - + "ation}/dataStores/{data_store}/branches/" - + "{branch}\022jprojects/{project}/locations/{" - + "location}/collections/{collection}/dataS" - + "tores/{data_store}/branches/{branch}\352A\305\001" - + "\n(discoveryengine.googleapis.com/DataSto" - + "re\022?projects/{project}/locations/{locati" - + "on}/dataStores/{data_store}\022Xprojects/{p" - + "roject}/locations/{location}/collections" - + "/{collection}/dataStores/{data_store}\352A\211" - + "\002\n,discoveryengine.googleapis.com/Servin" - + "gConfig\022_projects/{project}/locations/{l" - + "ocation}/dataStores/{data_store}/serving" - + "Configs/{serving_config}\022xprojects/{proj" - + "ect}/locations/{location}/collections/{c" - + "ollection}/dataStores/{data_store}/servi" - + "ngConfigs/{serving_config}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor, - new java.lang.String[] { - "Minimum", "ExclusiveMinimum", "Maximum", "ExclusiveMaximum", "Min", "Max", - }); - internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor, - new java.lang.String[] { - "Text", "Numbers", - }); - internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor, - new java.lang.String[] { - "UserId", "UserAgent", - }); - internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor, - new java.lang.String[] { - "Values", - }); - 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java deleted file mode 100644 index 8d0ddbce532f..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/completion_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class CompletionServiceProto { - private CompletionServiceProto() {} - - 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_discoveryengine_v1beta_CompleteQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_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\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_PR" - + "OGRESS\020\001\022\r\n\tCOMPLETED\020\002:\206\002\352A\202\002\n+discover" - + "yengine.googleapis.com/Conversation\022\\pro" - + "jects/{project}/locations/{location}/dat" - + "aStores/{data_store}/conversations/{conv" - + "ersation}\022uprojects/{project}/locations/" - + "{location}/collections/{collection}/data" - + "Stores/{data_store}/conversations/{conve" - + "rsation}\"\205\002\n\005Reply\022\021\n\005reply\030\001 \001(\tB\002\030\001\022L\n" - + "\nreferences\030\002 \003(\01324.google.cloud.discove" - + "ryengine.v1beta.Reply.ReferenceB\002\030\001\022L\n\007s" - + "ummary\030\003 \001(\0132;.google.cloud.discoveryeng" - + "ine.v1beta.SearchResponse.Summary\032M\n\tRef" - + "erence\022\013\n\003uri\030\001 \001(\t\022\023\n\013anchor_text\030\002 \001(\t" - + "\022\r\n\005start\030\003 \001(\005\022\013\n\003end\030\004 \001(\005:\002\030\001\"I\n\023Conv" - + "ersationContext\022\031\n\021context_documents\030\001 \003" - + "(\t\022\027\n\017active_document\030\002 \001(\t\"e\n\tTextInput" - + "\022\r\n\005input\030\001 \001(\t\022I\n\007context\030\002 \001(\01328.googl" - + "e.cloud.discoveryengine.v1beta.Conversat" - + "ionContext\"\332\001\n\023ConversationMessage\022D\n\nus" - + "er_input\030\001 \001(\0132..google.cloud.discoverye" - + "ngine.v1beta.TextInputH\000\022;\n\005reply\030\002 \001(\0132" - + "*.google.cloud.discoveryengine.v1beta.Re" - + "plyH\000\0225\n\013create_time\030\003 \001(\0132\032.google.prot" - + "obuf.TimestampB\004\342A\001\003B\t\n\007messageB\230\002\n\'com." - + "google.cloud.discoveryengine.v1betaB\021Con" - + "versationProtoP\001ZQcloud.google.com/go/di" - + "scoveryengine/apiv1beta/discoveryenginep" - + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" - + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" - + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" - + "le::Cloud::DiscoveryEngine::V1betab\006prot" - + "o3" - }; - 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.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor, - new java.lang.String[] { - "Name", "State", "UserPseudoId", "Messages", "StartTime", "EndTime", - }); - internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor, - new java.lang.String[] { - "Reply", "References", "Summary", - }); - internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor, - new java.lang.String[] { - "Uri", "AnchorText", "Start", "End", - }); - internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor, - new java.lang.String[] { - "ContextDocuments", "ActiveDocument", - }); - internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor, - new java.lang.String[] { - "Input", "Context", - }); - internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor, - new java.lang.String[] { - "UserInput", "Reply", "CreateTime", "Message", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java deleted file mode 100644 index 1bd279860bb8..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class ConversationalSearchServiceProto { - private ConversationalSearchServiceProto() {} - - 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_discoveryengine_v1beta_ConverseConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nGgoogle/cloud/discoveryengine/v1beta/co" - + "nversational_search_service.proto\022#googl" - + "e.cloud.discoveryengine.v1beta\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\0326google/cloud/" - + "discoveryengine/v1beta/conversation.prot" - + "o\0328google/cloud/discoveryengine/v1beta/s" - + "earch_service.proto\032\033google/protobuf/emp" - + "ty.proto\032 google/protobuf/field_mask.pro" - + "to\"\321\004\n\033ConverseConversationRequest\022B\n\004na" - + "me\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryengine.googl" - + "eapis.com/Conversation\022C\n\005query\030\002 \001(\0132.." - + "google.cloud.discoveryengine.v1beta.Text" - + "InputB\004\342A\001\002\022I\n\016serving_config\030\003 \001(\tB1\372A." - + "\n,discoveryengine.googleapis.com/Serving" - + "Config\022G\n\014conversation\030\005 \001(\01321.google.cl" - + "oud.discoveryengine.v1beta.Conversation\022" - + "\023\n\013safe_search\030\006 \001(\010\022e\n\013user_labels\030\007 \003(" - + "\0132P.google.cloud.discoveryengine.v1beta." - + "ConverseConversationRequest.UserLabelsEn" - + "try\022f\n\014summary_spec\030\010 \001(\0132P.google.cloud" - + ".discoveryengine.v1beta.SearchRequest.Co" - + "ntentSearchSpec.SummarySpec\0321\n\017UserLabel" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\227" - + "\002\n\034ConverseConversationResponse\0229\n\005reply" - + "\030\001 \001(\0132*.google.cloud.discoveryengine.v1" - + "beta.Reply\022G\n\014conversation\030\002 \001(\01321.googl" - + "e.cloud.discoveryengine.v1beta.Conversat" - + "ion\022\031\n\021related_questions\030\006 \003(\t\022X\n\016search" - + "_results\030\003 \003(\0132@.google.cloud.discoverye" - + "ngine.v1beta.SearchResponse.SearchResult" - + "\"\255\001\n\031CreateConversationRequest\022A\n\006parent" - + "\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.googlea" - + "pis.com/DataStore\022M\n\014conversation\030\002 \001(\0132" - + "1.google.cloud.discoveryengine.v1beta.Co" - + "nversationB\004\342A\001\002\"\233\001\n\031UpdateConversationR" - + "equest\022M\n\014conversation\030\001 \001(\01321.google.cl" - + "oud.discoveryengine.v1beta.ConversationB" - + "\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"_\n\031DeleteConversationRequ" - + "est\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryeng" - + "ine.googleapis.com/Conversation\"\\\n\026GetCo" - + "nversationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" - + "\n+discoveryengine.googleapis.com/Convers" - + "ation\"\246\001\n\030ListConversationsRequest\022A\n\006pa" - + "rent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.goo" - + "gleapis.com/DataStore\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010" - + "order_by\030\005 \001(\t\"~\n\031ListConversationsRespo" - + "nse\022H\n\rconversations\030\001 \003(\01321.google.clou" - + "d.discoveryengine.v1beta.Conversation\022\027\n" - + "\017next_page_token\030\002 \001(\t2\266\020\n\033Conversationa" - + "lSearchService\022\342\002\n\024ConverseConversation\022" - + "@.google.cloud.discoveryengine.v1beta.Co" - + "nverseConversationRequest\032A.google.cloud" - + ".discoveryengine.v1beta.ConverseConversa" - + "tionResponse\"\304\001\332A\nname,query\202\323\344\223\002\260\001\"K/v1" - + "beta/{name=projects/*/locations/*/dataSt" - + "ores/*/conversations/*}:converse:\001*Z^\"Y/" - + "v1beta/{name=projects/*/locations/*/coll" - + "ections/*/dataStores/*/conversations/*}:" - + "converse:\001*\022\333\002\n\022CreateConversation\022>.goo" - + "gle.cloud.discoveryengine.v1beta.CreateC" - + "onversationRequest\0321.google.cloud.discov" - + "eryengine.v1beta.Conversation\"\321\001\332A\023paren" - + "t,conversation\202\323\344\223\002\264\001\"B/v1beta/{parent=p" - + "rojects/*/locations/*/dataStores/*}/conv" - + "ersations:\014conversationZ`\"P/v1beta/{pare" - + "nt=projects/*/locations/*/collections/*/" - + "dataStores/*}/conversations:\014conversatio" - + "n\022\225\002\n\022DeleteConversation\022>.google.cloud." - + "discoveryengine.v1beta.DeleteConversatio" - + "nRequest\032\026.google.protobuf.Empty\"\246\001\332A\004na" - + "me\202\323\344\223\002\230\001*B/v1beta/{name=projects/*/loca" - + "tions/*/dataStores/*/conversations/*}ZR*" - + "P/v1beta/{name=projects/*/locations/*/co" - + "llections/*/dataStores/*/conversations/*" - + "}\022\372\002\n\022UpdateConversation\022>.google.cloud." - + "discoveryengine.v1beta.UpdateConversatio" - + "nRequest\0321.google.cloud.discoveryengine." - + "v1beta.Conversation\"\360\001\332A\030conversation,up" - + "date_mask\202\323\344\223\002\316\0012O/v1beta/{conversation." - + "name=projects/*/locations/*/dataStores/*" - + "/conversations/*}:\014conversationZm2]/v1be" - + "ta/{conversation.name=projects/*/locatio" - + "ns/*/collections/*/dataStores/*/conversa" - + "tions/*}:\014conversation\022\252\002\n\017GetConversati" - + "on\022;.google.cloud.discoveryengine.v1beta" - + ".GetConversationRequest\0321.google.cloud.d" - + "iscoveryengine.v1beta.Conversation\"\246\001\332A\004" - + "name\202\323\344\223\002\230\001\022B/v1beta/{name=projects/*/lo" - + "cations/*/dataStores/*/conversations/*}Z" - + "R\022P/v1beta/{name=projects/*/locations/*/" - + "collections/*/dataStores/*/conversations" - + "/*}\022\275\002\n\021ListConversations\022=.google.cloud" - + ".discoveryengine.v1beta.ListConversation" - + "sRequest\032>.google.cloud.discoveryengine." - + "v1beta.ListConversationsResponse\"\250\001\332A\006pa" - + "rent\202\323\344\223\002\230\001\022B/v1beta/{parent=projects/*/" - + "locations/*/dataStores/*}/conversationsZ" - + "R\022P/v1beta/{parent=projects/*/locations/" - + "*/collections/*/dataStores/*}/conversati" - + "ons\032R\312A\036discoveryengine.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\247\002\n\'com.google.cloud.discoveryen" - + "gine.v1betaB ConversationalSearchService" - + "ProtoP\001ZQcloud.google.com/go/discoveryen" - + "gine/apiv1beta/discoveryenginepb;discove" - + "ryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cl" - + "oud.DiscoveryEngine.V1Beta\312\002#Google\\Clou" - + "d\\DiscoveryEngine\\V1beta\352\002&Google::Cloud" - + "::DiscoveryEngine::V1betab\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.discoveryengine.v1beta.ConversationProto.getDescriptor(), - com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor, - new java.lang.String[] { - "Name", - "Query", - "ServingConfig", - "Conversation", - "SafeSearch", - "UserLabels", - "SummarySpec", - }); - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor, - new java.lang.String[] { - "Reply", "Conversation", "RelatedQuestions", "SearchResults", - }); - internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor, - new java.lang.String[] { - "Parent", "Conversation", - }); - internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor, - new java.lang.String[] { - "Conversation", "UpdateMask", - }); - internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor, - new java.lang.String[] { - "Conversations", "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); - 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.discoveryengine.v1beta.ConversationProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java deleted file mode 100644 index e49f695c6b7f..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public interface CreateConversationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateConversationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Full resource name of parent data store. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The conversation to create.
-   * 
- * - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the conversation field is set. - */ - boolean hasConversation(); - /** - * - * - *
-   * Required. The conversation to create.
-   * 
- * - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The conversation. - */ - com.google.cloud.discoveryengine.v1beta.Conversation getConversation(); - /** - * - * - *
-   * Required. The conversation to create.
-   * 
- * - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java deleted file mode 100644 index b8c5f95973ea..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public interface DeleteConversationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteConversationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Conversation to delete. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java deleted file mode 100644 index f76beb6d9130..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/schema_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public interface DeleteSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java deleted file mode 100644 index aa8f61a72c53..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/document.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class DocumentProto { - private DocumentProto() {} - - 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_discoveryengine_v1beta_Document_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/discoveryengine/v1beta/do" - + "cument.proto\022#google.cloud.discoveryengi" - + "ne.v1beta\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\034google/pr" - + "otobuf/struct.proto\"\226\005\n\010Document\022.\n\013stru" - + "ct_data\030\004 \001(\0132\027.google.protobuf.StructH\000" - + "\022\023\n\tjson_data\030\005 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001" - + "\005\022\020\n\002id\030\002 \001(\tB\004\342A\001\005\022\021\n\tschema_id\030\003 \001(\t\022F" - + "\n\007content\030\n \001(\01325.google.cloud.discovery" - + "engine.v1beta.Document.Content\022\032\n\022parent" - + "_document_id\030\007 \001(\t\022:\n\023derived_struct_dat" - + "a\030\006 \001(\0132\027.google.protobuf.StructB\004\342A\001\003\032K" - + "\n\007Content\022\023\n\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri\030\003 " - + "\001(\tH\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007content:\226\002\352A" - + "\222\002\n\'discoveryengine.googleapis.com/Docum" - + "ent\022fprojects/{project}/locations/{locat" - + "ion}/dataStores/{data_store}/branches/{b" - + "ranch}/documents/{document}\022\177projects/{p" - + "roject}/locations/{location}/collections" - + "/{collection}/dataStores/{data_store}/br" - + "anches/{branch}/documents/{document}B\006\n\004" - + "dataB\224\002\n\'com.google.cloud.discoveryengin" - + "e.v1betaB\rDocumentProtoP\001ZQcloud.google." - + "com/go/discoveryengine/apiv1beta/discove" - + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" - + "ENGINE\252\002#Google.Cloud.DiscoveryEngine.V1" - + "Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1be" - + "ta\352\002&Google::Cloud::DiscoveryEngine::V1b" - + "etab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor, - new java.lang.String[] { - "StructData", - "JsonData", - "Name", - "Id", - "SchemaId", - "Content", - "ParentDocumentId", - "DerivedStructData", - "Data", - }); - internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor, - new java.lang.String[] { - "RawBytes", "Uri", "MimeType", "Content", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java deleted file mode 100644 index 8576f30a0dac..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/document_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class DocumentServiceProto { - private DocumentServiceProto() {} - - 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_discoveryengine_v1beta_GetDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_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/discoveryengine/v1beta/do" - + "cument_service.proto\022#google.cloud.disco" - + "veryengine.v1beta\032\034google/api/annotation" - + "s.proto\032\027google/api/client.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\0322google/cloud/discoveryengi" - + "ne/v1beta/document.proto\0327google/cloud/d" - + "iscoveryengine/v1beta/import_config.prot" - + "o\0326google/cloud/discoveryengine/v1beta/p" - + "urge_config.proto\032#google/longrunning/op" - + "erations.proto\032\033google/protobuf/empty.pr" - + "oto\"T\n\022GetDocumentRequest\022>\n\004name\030\001 \001(\tB" - + "0\342A\001\002\372A)\n\'discoveryengine.googleapis.com" - + "/Document\"}\n\024ListDocumentsRequest\022>\n\006par" - + "ent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.goog" - + "leapis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"r\n\025ListDocumentsRespons" - + "e\022@\n\tdocuments\030\001 \003(\0132-.google.cloud.disc" - + "overyengine.v1beta.Document\022\027\n\017next_page" - + "_token\030\002 \001(\t\"\271\001\n\025CreateDocumentRequest\022>" - + "\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine" - + ".googleapis.com/Branch\022E\n\010document\030\002 \001(\013" - + "2-.google.cloud.discoveryengine.v1beta.D" - + "ocumentB\004\342A\001\002\022\031\n\013document_id\030\003 \001(\tB\004\342A\001\002" - + "\"u\n\025UpdateDocumentRequest\022E\n\010document\030\001 " - + "\001(\0132-.google.cloud.discoveryengine.v1bet" - + "a.DocumentB\004\342A\001\002\022\025\n\rallow_missing\030\002 \001(\010\"" - + "W\n\025DeleteDocumentRequest\022>\n\004name\030\001 \001(\tB0" - + "\342A\001\002\372A)\n\'discoveryengine.googleapis.com/" - + "Document2\204\024\n\017DocumentService\022\254\002\n\013GetDocu" - + "ment\0227.google.cloud.discoveryengine.v1be" - + "ta.GetDocumentRequest\032-.google.cloud.dis" - + "coveryengine.v1beta.Document\"\264\001\332A\004name\202\323" - + "\344\223\002\246\001\022I/v1beta/{name=projects/*/location" - + "s/*/dataStores/*/branches/*/documents/*}" - + "ZY\022W/v1beta/{name=projects/*/locations/*" - + "/collections/*/dataStores/*/branches/*/d" - + "ocuments/*}\022\277\002\n\rListDocuments\0229.google.c" - + "loud.discoveryengine.v1beta.ListDocument" - + "sRequest\032:.google.cloud.discoveryengine." - + "v1beta.ListDocumentsResponse\"\266\001\332A\006parent" - + "\202\323\344\223\002\246\001\022I/v1beta/{parent=projects/*/loca" - + "tions/*/dataStores/*/branches/*}/documen" - + "tsZY\022W/v1beta/{parent=projects/*/locatio" - + "ns/*/collections/*/dataStores/*/branches" - + "/*}/documents\022\335\002\n\016CreateDocument\022:.googl" - + "e.cloud.discoveryengine.v1beta.CreateDoc" - + "umentRequest\032-.google.cloud.discoveryeng" - + "ine.v1beta.Document\"\337\001\332A\033parent,document" - + ",document_id\202\323\344\223\002\272\001\"I/v1beta/{parent=pro" - + "jects/*/locations/*/dataStores/*/branche" - + "s/*}/documents:\010documentZc\"W/v1beta/{par" - + "ent=projects/*/locations/*/collections/*" - + "/dataStores/*/branches/*}/documents:\010doc" - + "ument\022\321\002\n\016UpdateDocument\022:.google.cloud." - + "discoveryengine.v1beta.UpdateDocumentReq" - + "uest\032-.google.cloud.discoveryengine.v1be" - + "ta.Document\"\323\001\202\323\344\223\002\314\0012R/v1beta/{document" - + ".name=projects/*/locations/*/dataStores/" - + "*/branches/*/documents/*}:\010documentZl2`/" - + "v1beta/{document.name=projects/*/locatio" - + "ns/*/collections/*/dataStores/*/branches" - + "/*/documents/*}:\010document\022\233\002\n\016DeleteDocu" - + "ment\022:.google.cloud.discoveryengine.v1be" - + "ta.DeleteDocumentRequest\032\026.google.protob" - + "uf.Empty\"\264\001\332A\004name\202\323\344\223\002\246\001*I/v1beta/{name" - + "=projects/*/locations/*/dataStores/*/bra" - + "nches/*/documents/*}ZY*W/v1beta/{name=pr" - + "ojects/*/locations/*/collections/*/dataS" - + "tores/*/branches/*/documents/*}\022\256\003\n\017Impo" - + "rtDocuments\022;.google.cloud.discoveryengi" - + "ne.v1beta.ImportDocumentsRequest\032\035.googl" - + "e.longrunning.Operation\"\276\002\312Az\n;google.cl" - + "oud.discoveryengine.v1beta.ImportDocumen" - + "tsResponse\022;google.cloud.discoveryengine" - + ".v1beta.ImportDocumentsMetadata\202\323\344\223\002\272\001\"P" - + "/v1beta/{parent=projects/*/locations/*/d" - + "ataStores/*/branches/*}/documents:import" - + ":\001*Zc\"^/v1beta/{parent=projects/*/locati" - + "ons/*/collections/*/dataStores/*/branche" - + "s/*}/documents:import:\001*\022\250\003\n\016PurgeDocume" - + "nts\022:.google.cloud.discoveryengine.v1bet" - + "a.PurgeDocumentsRequest\032\035.google.longrun" - + "ning.Operation\"\272\002\312Ax\n:google.cloud.disco" - + "veryengine.v1beta.PurgeDocumentsResponse" - + "\022:google.cloud.discoveryengine.v1beta.Pu" - + "rgeDocumentsMetadata\202\323\344\223\002\270\001\"O/v1beta/{pa" - + "rent=projects/*/locations/*/dataStores/*" - + "/branches/*}/documents:purge:\001*Zb\"]/v1be" - + "ta/{parent=projects/*/locations/*/collec" - + "tions/*/dataStores/*/branches/*}/documen" - + "ts:purge:\001*\032R\312A\036discoveryengine.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\233\002\n\'com.google.cloud.dis" - + "coveryengine.v1betaB\024DocumentServiceProt" - + "oP\001ZQcloud.google.com/go/discoveryengine" - + "/apiv1beta/discoveryenginepb;discoveryen" - + "ginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud." - + "DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\Di" - + "scoveryEngine\\V1beta\352\002&Google::Cloud::Di" - + "scoveryEngine::V1betab\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.discoveryengine.v1beta.DocumentProto.getDescriptor(), - com.google.cloud.discoveryengine.v1beta.ImportConfigProto.getDescriptor(), - com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor, - new java.lang.String[] { - "Documents", "NextPageToken", - }); - internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor, - new java.lang.String[] { - "Parent", "Document", "DocumentId", - }); - internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor, - new java.lang.String[] { - "Document", "AllowMissing", - }); - internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_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.discoveryengine.v1beta.DocumentProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.ImportConfigProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java deleted file mode 100644 index b049032bdd95..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public interface GetConversationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetConversationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Conversation to get. Format:
-   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java deleted file mode 100644 index 2b6cf34b85d5..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/schema_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public interface GetSchemaRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The full resource name of the schema, in the format of
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java deleted file mode 100644 index 406a3eedfee5..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/import_config.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class ImportConfigProto { - private ImportConfigProto() {} - - 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_discoveryengine_v1beta_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_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/discoveryengine/v1beta/im" - + "port_config.proto\022#google.cloud.discover" - + "yengine.v1beta\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\0322goog" - + "le/cloud/discoveryengine/v1beta/document" - + ".proto\0324google/cloud/discoveryengine/v1b" - + "eta/user_event.proto\032\037google/protobuf/ti" - + "mestamp.proto\032\027google/rpc/status.proto\032\026" - + "google/type/date.proto\":\n\tGcsSource\022\030\n\ni" - + "nput_uris\030\001 \003(\tB\004\342A\001\002\022\023\n\013data_schema\030\002 \001" - + "(\t\"\276\001\n\016BigQuerySource\022+\n\016partition_date\030" - + "\005 \001(\0132\021.google.type.DateH\000\022\022\n\nproject_id" - + "\030\001 \001(\t\022\030\n\ndataset_id\030\002 \001(\tB\004\342A\001\002\022\026\n\010tabl" - + "e_id\030\003 \001(\tB\004\342A\001\002\022\027\n\017gcs_staging_dir\030\004 \001(" - + "\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpartition\"8\n\021I" - + "mportErrorConfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r" - + "\n\013destination\"\211\004\n\027ImportUserEventsReques" - + "t\022b\n\rinline_source\030\002 \001(\0132I.google.cloud." - + "discoveryengine.v1beta.ImportUserEventsR" - + "equest.InlineSourceH\000\022D\n\ngcs_source\030\003 \001(" - + "\0132..google.cloud.discoveryengine.v1beta." - + "GcsSourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.g" - + "oogle.cloud.discoveryengine.v1beta.BigQu" - + "erySourceH\000\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(di" - + "scoveryengine.googleapis.com/DataStore\022L" - + "\n\014error_config\030\005 \001(\01326.google.cloud.disc" - + "overyengine.v1beta.ImportErrorConfig\032Y\n\014" - + "InlineSource\022I\n\013user_events\030\001 \003(\0132..goog" - + "le.cloud.discoveryengine.v1beta.UserEven" - + "tB\004\342A\001\002B\010\n\006source\"\317\001\n\030ImportUserEventsRe" - + "sponse\022)\n\rerror_samples\030\001 \003(\0132\022.google.r" - + "pc.Status\022L\n\014error_config\030\002 \001(\01326.google" - + ".cloud.discoveryengine.v1beta.ImportErro" - + "rConfig\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025" - + "unjoined_events_count\030\004 \001(\003\"\252\001\n\030ImportUs" - + "erEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022/\n\013update_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsu" - + "ccess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003" - + "\"\251\001\n\027ImportDocumentsMetadata\022/\n\013create_t" - + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure" - + "_count\030\004 \001(\003\"\361\005\n\026ImportDocumentsRequest\022" - + "a\n\rinline_source\030\002 \001(\0132H.google.cloud.di" - + "scoveryengine.v1beta.ImportDocumentsRequ" - + "est.InlineSourceH\000\022D\n\ngcs_source\030\003 \001(\0132." - + ".google.cloud.discoveryengine.v1beta.Gcs" - + "SourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.goog" - + "le.cloud.discoveryengine.v1beta.BigQuery" - + "SourceH\000\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%disco" - + "veryengine.googleapis.com/Branch\022L\n\014erro" - + "r_config\030\005 \001(\01326.google.cloud.discoverye" - + "ngine.v1beta.ImportErrorConfig\022k\n\023reconc" - + "iliation_mode\030\006 \001(\0162N.google.cloud.disco" - + "veryengine.v1beta.ImportDocumentsRequest" - + ".ReconciliationMode\022\031\n\021auto_generate_ids" - + "\030\010 \001(\010\022\020\n\010id_field\030\t \001(\t\032V\n\014InlineSource" - + "\022F\n\tdocuments\030\001 \003(\0132-.google.cloud.disco" - + "veryengine.v1beta.DocumentB\004\342A\001\002\"T\n\022Reco" - + "nciliationMode\022#\n\037RECONCILIATION_MODE_UN" - + "SPECIFIED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002B\010" - + "\n\006source\"\222\001\n\027ImportDocumentsResponse\022)\n\r" - + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022" - + "L\n\014error_config\030\002 \001(\01326.google.cloud.dis" - + "coveryengine.v1beta.ImportErrorConfigB\230\002" - + "\n\'com.google.cloud.discoveryengine.v1bet" - + "aB\021ImportConfigProtoP\001ZQcloud.google.com" - + "/go/discoveryengine/apiv1beta/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" - + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" - + "\002&Google::Cloud::DiscoveryEngine::V1beta" - + "b\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.discoveryengine.v1beta.DocumentProto.getDescriptor(), - com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor, - new java.lang.String[] { - "InputUris", "DataSchema", - }); - internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor, - new java.lang.String[] { - "PartitionDate", - "ProjectId", - "DatasetId", - "TableId", - "GcsStagingDir", - "DataSchema", - "Partition", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor, - new java.lang.String[] { - "GcsPrefix", "Destination", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor, - new java.lang.String[] { - "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor, - new java.lang.String[] { - "UserEvents", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor, - new java.lang.String[] { - "ErrorSamples", "ErrorConfig", "JoinedEventsCount", "UnjoinedEventsCount", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor, - new java.lang.String[] { - "InlineSource", - "GcsSource", - "BigquerySource", - "Parent", - "ErrorConfig", - "ReconciliationMode", - "AutoGenerateIds", - "IdField", - "Source", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor, - new java.lang.String[] { - "Documents", - }); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor, - new java.lang.String[] { - "ErrorSamples", "ErrorConfig", - }); - 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.discoveryengine.v1beta.DocumentProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java deleted file mode 100644 index 11cb75d54634..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/purge_config.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class PurgeConfigProto { - private PurgeConfigProto() {} - - 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_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_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/discoveryengine/v1beta/pu" - + "rge_config.proto\022#google.cloud.discovery" - + "engine.v1beta\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032\037googl" - + "e/protobuf/timestamp.proto\"|\n\025PurgeDocum" - + "entsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%di" - + "scoveryengine.googleapis.com/Branch\022\024\n\006f" - + "ilter\030\002 \001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"q\n\026Purg" - + "eDocumentsResponse\022\023\n\013purge_count\030\001 \001(\003\022" - + "B\n\014purge_sample\030\002 \003(\tB,\372A)\n\'discoveryeng" - + "ine.googleapis.com/Document\"\250\001\n\026PurgeDoc" - + "umentsMetadata\022/\n\013create_time\030\001 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022/\n\013update_time\030\002" - + " \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsucc" - + "ess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003B\227" - + "\002\n\'com.google.cloud.discoveryengine.v1be" - + "taB\020PurgeConfigProtoP\001ZQcloud.google.com" - + "/go/discoveryengine/apiv1beta/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" - + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" - + "\002&Google::Cloud::DiscoveryEngine::V1beta" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "Force", - }); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor, - new java.lang.String[] { - "PurgeCount", "PurgeSample", - }); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", - }); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java deleted file mode 100644 index d35bcfbd7985..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/recommendation_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class RecommendationServiceProto { - private RecommendationServiceProto() {} - - 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_discoveryengine_v1beta_RecommendRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_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 = { - "\n@google/cloud/discoveryengine/v1beta/re" - + "commendation_service.proto\022#google.cloud" - + ".discoveryengine.v1beta\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\0322google/cloud/discove" - + "ryengine/v1beta/document.proto\0324google/c" - + "loud/discoveryengine/v1beta/user_event.p" - + "roto\032\034google/protobuf/struct.proto\"\216\004\n\020R" - + "ecommendRequest\022M\n\016serving_config\030\001 \001(\tB" - + "5\342A\001\002\372A.\n,discoveryengine.googleapis.com" - + "/ServingConfig\022H\n\nuser_event\030\002 \001(\0132..goo" - + "gle.cloud.discoveryengine.v1beta.UserEve" - + "ntB\004\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022\016\n\006filter\030\004 " - + "\001(\t\022\025\n\rvalidate_only\030\005 \001(\010\022Q\n\006params\030\006 \003" - + "(\0132A.google.cloud.discoveryengine.v1beta" - + ".RecommendRequest.ParamsEntry\022Z\n\013user_la" - + "bels\030\010 \003(\0132E.google.cloud.discoveryengin" - + "e.v1beta.RecommendRequest.UserLabelsEntr" - + "y\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002" - + " \001(\0132\026.google.protobuf.Value:\0028\001\0321\n\017User" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"\324\003\n\021RecommendResponse\022\\\n\007results\030\001 \003" - + "(\0132K.google.cloud.discoveryengine.v1beta" - + ".RecommendResponse.RecommendationResult\022" - + "\031\n\021attribution_token\030\002 \001(\t\022\023\n\013missing_id" - + "s\030\003 \003(\t\022\025\n\rvalidate_only\030\004 \001(\010\032\231\002\n\024Recom" - + "mendationResult\022\n\n\002id\030\001 \001(\t\022?\n\010document\030" - + "\002 \001(\0132-.google.cloud.discoveryengine.v1b" - + "eta.Document\022k\n\010metadata\030\003 \003(\0132Y.google." - + "cloud.discoveryengine.v1beta.RecommendRe" - + "sponse.RecommendationResult.MetadataEntr" - + "y\032G\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" - + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\272\003\n\025R" - + "ecommendationService\022\314\002\n\tRecommend\0225.goo" - + "gle.cloud.discoveryengine.v1beta.Recomme" - + "ndRequest\0326.google.cloud.discoveryengine" - + ".v1beta.RecommendResponse\"\317\001\202\323\344\223\002\310\001\"W/v1" - + "beta/{serving_config=projects/*/location" - + "s/*/dataStores/*/servingConfigs/*}:recom" - + "mend:\001*Zj\"e/v1beta/{serving_config=proje" - + "cts/*/locations/*/collections/*/dataStor" - + "es/*/servingConfigs/*}:recommend:\001*\032R\312A\036" - + "discoveryengine.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\241\002\n\'com.google.cloud.discoveryengine.v1b" - + "etaB\032RecommendationServiceProtoP\001ZQcloud" - + ".google.com/go/discoveryengine/apiv1beta" - + "/discoveryenginepb;discoveryenginepb\242\002\017D" - + "ISCOVERYENGINE\252\002#Google.Cloud.DiscoveryE" - + "ngine.V1Beta\312\002#Google\\Cloud\\DiscoveryEng" - + "ine\\V1beta\352\002&Google::Cloud::DiscoveryEng" - + "ine::V1betab\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.discoveryengine.v1beta.DocumentProto.getDescriptor(), - com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor, - new java.lang.String[] { - "ServingConfig", - "UserEvent", - "PageSize", - "Filter", - "ValidateOnly", - "Params", - "UserLabels", - }); - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor, - new java.lang.String[] { - "Results", "AttributionToken", "MissingIds", "ValidateOnly", - }); - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor, - new java.lang.String[] { - "Id", "Document", "Metadata", - }); - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_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.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java deleted file mode 100644 index 59e45276704a..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/conversation.proto - -package com.google.cloud.discoveryengine.v1beta; - -public interface ReplyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Reply) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * DEPRECATED: use `summary` instead.
-   * Text reply.
-   * 
- * - * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 - * @return The reply. - */ - @java.lang.Deprecated - java.lang.String getReply(); - /** - * - * - *
-   * DEPRECATED: use `summary` instead.
-   * Text reply.
-   * 
- * - * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 - * @return The bytes for reply. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getReplyBytes(); - - /** - * - * - *
-   * References in the reply.
-   * 
- * - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List getReferencesList(); - /** - * - * - *
-   * References in the reply.
-   * 
- * - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int index); - /** - * - * - *
-   * References in the reply.
-   * 
- * - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * - */ - @java.lang.Deprecated - int getReferencesCount(); - /** - * - * - *
-   * References in the reply.
-   * 
- * - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List - getReferencesOrBuilderList(); - /** - * - * - *
-   * References in the reply.
-   * 
- * - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getReferencesOrBuilder( - int index); - - /** - * - * - *
-   * Summary based on search results.
-   * 
- * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - * - * @return Whether the summary field is set. - */ - boolean hasSummary(); - /** - * - * - *
-   * Summary based on search results.
-   * 
- * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - * - * @return The summary. - */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary(); - /** - * - * - *
-   * Summary based on search results.
-   * 
- * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder(); -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java deleted file mode 100644 index 8a56cf14b600..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/schema.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class SchemaProto { - private SchemaProto() {} - - 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_discoveryengine_v1beta_Schema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/discoveryengine/v1beta/sc" - + "hema.proto\022#google.cloud.discoveryengine" - + ".v1beta\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\032\034google/prot" - + "obuf/struct.proto\"\332\002\n\006Schema\0220\n\rstruct_s" - + "chema\030\002 \001(\0132\027.google.protobuf.StructH\000\022\025" - + "\n\013json_schema\030\003 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001" - + "\005:\350\001\352A\344\001\n%discoveryengine.googleapis.com" - + "/Schema\022Pprojects/{project}/locations/{l" - + "ocation}/dataStores/{data_store}/schemas" - + "/{schema}\022iprojects/{project}/locations/" - + "{location}/collections/{collection}/data" - + "Stores/{data_store}/schemas/{schema}B\010\n\006" - + "schemaB\222\002\n\'com.google.cloud.discoveryeng" - + "ine.v1betaB\013SchemaProtoP\001ZQcloud.google." - + "com/go/discoveryengine/apiv1beta/discove" - + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" - + "ENGINE\252\002#Google.Cloud.DiscoveryEngine.V1" - + "Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1be" - + "ta\352\002&Google::Cloud::DiscoveryEngine::V1b" - + "etab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor, - new java.lang.String[] { - "StructSchema", "JsonSchema", "Name", "Schema", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java deleted file mode 100644 index 7c3d6d1d9e35..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/schema_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class SchemaServiceProto { - private SchemaServiceProto() {} - - 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_discoveryengine_v1beta_GetSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/discoveryengine/v1beta/sc" - + "hema_service.proto\022#google.cloud.discove" - + "ryengine.v1beta\032\034google/api/annotations." - + "proto\032\027google/api/client.proto\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\0320google/cloud/discoveryengine" - + "/v1beta/schema.proto\032#google/longrunning" - + "/operations.proto\032\033google/protobuf/empty" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "P\n\020GetSchemaRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372" - + "A\'\n%discoveryengine.googleapis.com/Schem" - + "a\"~\n\022ListSchemasRequest\022A\n\006parent\030\001 \001(\tB" - + "1\342A\001\002\372A*\n(discoveryengine.googleapis.com" - + "/DataStore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"l\n\023ListSchemasResponse\022<\n\007sche" - + "mas\030\001 \003(\0132+.google.cloud.discoveryengine" - + ".v1beta.Schema\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\264\001\n\023CreateSchemaRequest\022A\n\006parent\030\001 \001(\tB" - + "1\342A\001\002\372A*\n(discoveryengine.googleapis.com" - + "/DataStore\022A\n\006schema\030\002 \001(\0132+.google.clou" - + "d.discoveryengine.v1beta.SchemaB\004\342A\001\002\022\027\n" - + "\tschema_id\030\003 \001(\tB\004\342A\001\002\"o\n\023UpdateSchemaRe" - + "quest\022A\n\006schema\030\001 \001(\0132+.google.cloud.dis" - + "coveryengine.v1beta.SchemaB\004\342A\001\002\022\025\n\rallo" - + "w_missing\030\003 \001(\010\"S\n\023DeleteSchemaRequest\022<" - + "\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.g" - + "oogleapis.com/Schema\"x\n\024CreateSchemaMeta" - + "data\022/\n\013create_time\030\001 \001(\0132\032.google.proto" - + "buf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\"x\n\024UpdateSchemaMe" - + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\"x\n\024DeleteSchema" - + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032" - + ".google.protobuf.Timestamp2\211\016\n\rSchemaSer" - + "vice\022\214\002\n\tGetSchema\0225.google.cloud.discov" - + "eryengine.v1beta.GetSchemaRequest\032+.goog" - + "le.cloud.discoveryengine.v1beta.Schema\"\232" - + "\001\332A\004name\202\323\344\223\002\214\001\022.google.cloud.discoverye" - + "ngine.v1beta.SearchRequest.ParamsEntry\022c" - + "\n\024query_expansion_spec\030\r \001(\0132E.google.cl" - + "oud.discoveryengine.v1beta.SearchRequest" - + ".QueryExpansionSpec\022e\n\025spell_correction_" - + "spec\030\016 \001(\0132F.google.cloud.discoveryengin" - + "e.v1beta.SearchRequest.SpellCorrectionSp" - + "ec\022\026\n\016user_pseudo_id\030\017 \001(\t\022a\n\023content_se" - + "arch_spec\030\030 \001(\0132D.google.cloud.discovery" - + "engine.v1beta.SearchRequest.ContentSearc" - + "hSpec\022X\n\016embedding_spec\030\027 \001(\0132@.google.c" - + "loud.discoveryengine.v1beta.SearchReques" - + "t.EmbeddingSpec\022\032\n\022ranking_expression\030\032 " - + "\001(\t\022\023\n\013safe_search\030\024 \001(\010\022W\n\013user_labels\030" - + "\026 \003(\0132B.google.cloud.discoveryengine.v1b" - + "eta.SearchRequest.UserLabelsEntry\032,\n\nIma" - + "geQuery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032" - + "\206\003\n\tFacetSpec\022^\n\tfacet_key\030\001 \001(\0132E.googl" - + "e.cloud.discoveryengine.v1beta.SearchReq" - + "uest.FacetSpec.FacetKeyB\004\342A\001\002\022\r\n\005limit\030\002" - + " \001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n\027en" - + "able_dynamic_position\030\004 \001(\010\032\312\001\n\010FacetKey" - + "\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\022@\n\tintervals\030\002 \003(\0132-" - + ".google.cloud.discoveryengine.v1beta.Int" - + "erval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010pref" - + "ixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030\n\020case_ins" - + "ensitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001(\t\032\263\001\n\tBoo" - + "stSpec\022n\n\025condition_boost_specs\030\001 \003(\0132O." - + "google.cloud.discoveryengine.v1beta.Sear" - + "chRequest.BoostSpec.ConditionBoostSpec\0326" - + "\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 \001(\t\022" - + "\r\n\005boost\030\002 \001(\002\032\330\001\n\022QueryExpansionSpec\022b\n" - + "\tcondition\030\001 \001(\0162O.google.cloud.discover" - + "yengine.v1beta.SearchRequest.QueryExpans" - + "ionSpec.Condition\022\036\n\026pin_unexpanded_resu" - + "lts\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION_UNSP" - + "ECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\255\001\n\023Sp" - + "ellCorrectionSpec\022Y\n\004mode\030\001 \001(\0162K.google" - + ".cloud.discoveryengine.v1beta.SearchRequ" - + "est.SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n\020" - + "MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001\022" - + "\010\n\004AUTO\020\002\032\266\006\n\021ContentSearchSpec\022f\n\014snipp" - + "et_spec\030\001 \001(\0132P.google.cloud.discoveryen" - + "gine.v1beta.SearchRequest.ContentSearchS" - + "pec.SnippetSpec\022f\n\014summary_spec\030\002 \001(\0132P." - + "google.cloud.discoveryengine.v1beta.Sear" - + "chRequest.ContentSearchSpec.SummarySpec\022" - + "{\n\027extractive_content_spec\030\003 \001(\0132Z.googl" - + "e.cloud.discoveryengine.v1beta.SearchReq" - + "uest.ContentSearchSpec.ExtractiveContent" - + "Spec\032`\n\013SnippetSpec\022\035\n\021max_snippet_count" - + "\030\001 \001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001\022\026" - + "\n\016return_snippet\030\003 \001(\010\032\251\001\n\013SummarySpec\022\034" - + "\n\024summary_result_count\030\001 \001(\005\022\031\n\021include_" - + "citations\030\002 \001(\010\022 \n\030ignore_adversarial_qu" - + "ery\030\003 \001(\010\022(\n ignore_non_summary_seeking_" - + "query\030\004 \001(\010\022\025\n\rlanguage_code\030\006 \001(\t\032\305\001\n\025E" - + "xtractiveContentSpec\022#\n\033max_extractive_a" - + "nswer_count\030\001 \001(\005\022$\n\034max_extractive_segm" - + "ent_count\030\002 \001(\005\022\'\n\037return_extractive_seg" - + "ment_score\030\003 \001(\010\022\035\n\025num_previous_segment" - + "s\030\004 \001(\005\022\031\n\021num_next_segments\030\005 \001(\005\032\263\001\n\rE" - + "mbeddingSpec\022k\n\021embedding_vectors\030\001 \003(\0132" - + "P.google.cloud.discoveryengine.v1beta.Se" - + "archRequest.EmbeddingSpec.EmbeddingVecto" - + "r\0325\n\017EmbeddingVector\022\022\n\nfield_path\030\001 \001(\t" - + "\022\016\n\006vector\030\002 \003(\002\032E\n\013ParamsEntry\022\013\n\003key\030\001" - + " \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Va" - + "lue:\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"\343\017\n\016SearchResponse\022Q\n" - + "\007results\030\001 \003(\0132@.google.cloud.discoverye" - + "ngine.v1beta.SearchResponse.SearchResult" - + "\022I\n\006facets\030\002 \003(\01329.google.cloud.discover" - + "yengine.v1beta.SearchResponse.Facet\022d\n\024g" - + "uided_search_result\030\010 \001(\0132F.google.cloud" - + ".discoveryengine.v1beta.SearchResponse.G" - + "uidedSearchResult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n" - + "\021attribution_token\030\004 \001(\t\022\024\n\014redirect_uri" - + "\030\014 \001(\t\022\027\n\017next_page_token\030\005 \001(\t\022\027\n\017corre" - + "cted_query\030\007 \001(\t\022L\n\007summary\030\t \001(\0132;.goog" - + "le.cloud.discoveryengine.v1beta.SearchRe" - + "sponse.Summary\022\030\n\020applied_controls\030\n \003(\t" - + "\022d\n\024query_expansion_info\030\016 \001(\0132F.google." - + "cloud.discoveryengine.v1beta.SearchRespo" - + "nse.QueryExpansionInfo\032\251\002\n\014SearchResult\022" - + "\n\n\002id\030\001 \001(\t\022?\n\010document\030\002 \001(\0132-.google.c" - + "loud.discoveryengine.v1beta.Document\022g\n\014" - + "model_scores\030\004 \003(\0132Q.google.cloud.discov" - + "eryengine.v1beta.SearchResponse.SearchRe" - + "sult.ModelScoresEntry\032c\n\020ModelScoresEntr" - + "y\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.c" - + "loud.discoveryengine.v1beta.DoubleList:\002" - + "8\001\032\201\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006values\030\002 \003(" - + "\0132D.google.cloud.discoveryengine.v1beta." - + "SearchResponse.Facet.FacetValue\022\025\n\rdynam" - + "ic_facet\030\003 \001(\010\032~\n\nFacetValue\022\017\n\005value\030\001 " - + "\001(\tH\000\022A\n\010interval\030\002 \001(\0132-.google.cloud.d" - + "iscoveryengine.v1beta.IntervalH\000\022\r\n\005coun" - + "t\030\003 \001(\003B\r\n\013facet_value\032\363\001\n\022GuidedSearchR" - + "esult\022y\n\025refinement_attributes\030\001 \003(\0132Z.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hResponse.GuidedSearchResult.RefinementA" - + "ttribute\022\033\n\023follow_up_questions\030\002 \003(\t\032E\n" - + "\023RefinementAttribute\022\025\n\rattribute_key\030\001 " - + "\001(\t\022\027\n\017attribute_value\030\002 \001(\t\032\226\004\n\007Summary" - + "\022\024\n\014summary_text\030\001 \001(\t\022q\n\027summary_skippe" - + "d_reasons\030\002 \003(\0162P.google.cloud.discovery" - + "engine.v1beta.SearchResponse.Summary.Sum" - + "marySkippedReason\022g\n\021safety_attributes\030\003" - + " \001(\0132L.google.cloud.discoveryengine.v1be" - + "ta.SearchResponse.Summary.SafetyAttribut" - + "es\0326\n\020SafetyAttributes\022\022\n\ncategories\030\001 \003" - + "(\t\022\016\n\006scores\030\002 \003(\002\"\340\001\n\024SummarySkippedRea" - + "son\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIFIE" - + "D\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!NO" - + "N_SUMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OUT" - + "_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_" - + "POLICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_ENAB" - + "LED\020\005\032I\n\022QueryExpansionInfo\022\026\n\016expanded_" - + "query\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001(\003" - + "2\243\003\n\rSearchService\022\275\002\n\006Search\0222.google.c" - + "loud.discoveryengine.v1beta.SearchReques" - + "t\0323.google.cloud.discoveryengine.v1beta." - + "SearchResponse\"\311\001\202\323\344\223\002\302\001\"T/v1beta/{servi" - + "ng_config=projects/*/locations/*/dataSto" - + "res/*/servingConfigs/*}:search:\001*Zg\"b/v1" - + "beta/{serving_config=projects/*/location" - + "s/*/collections/*/dataStores/*/servingCo" - + "nfigs/*}:search:\001*\032R\312A\036discoveryengine.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\231\002\n\'com.google.cl" - + "oud.discoveryengine.v1betaB\022SearchServic" - + "eProtoP\001ZQcloud.google.com/go/discoverye" - + "ngine/apiv1beta/discoveryenginepb;discov" - + "eryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.C" - + "loud.DiscoveryEngine.V1Beta\312\002#Google\\Clo" - + "ud\\DiscoveryEngine\\V1beta\352\002&Google::Clou" - + "d::DiscoveryEngine::V1betab\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.discoveryengine.v1beta.CommonProto.getDescriptor(), - com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor, - new java.lang.String[] { - "ServingConfig", - "Branch", - "Query", - "ImageQuery", - "PageSize", - "PageToken", - "Offset", - "Filter", - "OrderBy", - "UserInfo", - "FacetSpecs", - "BoostSpec", - "Params", - "QueryExpansionSpec", - "SpellCorrectionSpec", - "UserPseudoId", - "ContentSearchSpec", - "EmbeddingSpec", - "RankingExpression", - "SafeSearch", - "UserLabels", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor, - new java.lang.String[] { - "ImageBytes", "Image", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor, - new java.lang.String[] { - "FacetKey", "Limit", "ExcludedFilterKeys", "EnableDynamicPosition", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor, - new java.lang.String[] { - "Key", - "Intervals", - "RestrictedValues", - "Prefixes", - "Contains", - "CaseInsensitive", - "OrderBy", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor, - new java.lang.String[] { - "ConditionBoostSpecs", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor, - new java.lang.String[] { - "Condition", "Boost", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor, - new java.lang.String[] { - "Condition", "PinUnexpandedResults", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor, - new java.lang.String[] { - "Mode", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor, - new java.lang.String[] { - "SnippetSpec", "SummarySpec", "ExtractiveContentSpec", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor, - new java.lang.String[] { - "MaxSnippetCount", "ReferenceOnly", "ReturnSnippet", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor, - new java.lang.String[] { - "SummaryResultCount", - "IncludeCitations", - "IgnoreAdversarialQuery", - "IgnoreNonSummarySeekingQuery", - "LanguageCode", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor, - new java.lang.String[] { - "MaxExtractiveAnswerCount", - "MaxExtractiveSegmentCount", - "ReturnExtractiveSegmentScore", - "NumPreviousSegments", - "NumNextSegments", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor, - new java.lang.String[] { - "EmbeddingVectors", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor, - new java.lang.String[] { - "FieldPath", "Vector", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor - .getNestedTypes() - .get(8); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor, - new java.lang.String[] { - "Results", - "Facets", - "GuidedSearchResult", - "TotalSize", - "AttributionToken", - "RedirectUri", - "NextPageToken", - "CorrectedQuery", - "Summary", - "AppliedControls", - "QueryExpansionInfo", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor, - new java.lang.String[] { - "Id", "Document", "ModelScores", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor, - new java.lang.String[] { - "Key", "Values", "DynamicFacet", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor, - new java.lang.String[] { - "Value", "Interval", "Count", "FacetValue", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor, - new java.lang.String[] { - "RefinementAttributes", "FollowUpQuestions", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor, - new java.lang.String[] { - "AttributeKey", "AttributeValue", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor, - new java.lang.String[] { - "SummaryText", "SummarySkippedReasons", "SafetyAttributes", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor, - new java.lang.String[] { - "Categories", "Scores", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor, - new java.lang.String[] { - "ExpandedQuery", "PinnedResultCount", - }); - 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.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); - com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java deleted file mode 100644 index ef92750aa9ac..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/user_event.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class UserEventProto { - private UserEventProto() {} - - 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_discoveryengine_v1beta_UserEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/discoveryengine/v1beta/us" - + "er_event.proto\022#google.cloud.discoveryen" - + "gine.v1beta\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\0320google/" - + "cloud/discoveryengine/v1beta/common.prot" - + "o\032\036google/protobuf/duration.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\345\007\n\tUserEvent" - + "\022\030\n\nevent_type\030\001 \001(\tB\004\342A\001\002\022\034\n\016user_pseud" - + "o_id\030\002 \001(\tB\004\342A\001\002\022.\n\nevent_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022@\n\tuser_info\030\004 " - + "\001(\0132-.google.cloud.discoveryengine.v1bet" - + "a.UserInfo\022\033\n\023direct_user_request\030\005 \001(\010\022" - + "\022\n\nsession_id\030\006 \001(\t\022@\n\tpage_info\030\007 \001(\0132-" - + ".google.cloud.discoveryengine.v1beta.Pag" - + "eInfo\022\031\n\021attribution_token\030\010 \001(\t\022\016\n\006filt" - + "er\030\t \001(\t\022D\n\tdocuments\030\n \003(\01321.google.clo" - + "ud.discoveryengine.v1beta.DocumentInfo\022=" - + "\n\005panel\030\013 \001(\0132..google.cloud.discoveryen" - + "gine.v1beta.PanelInfo\022D\n\013search_info\030\014 \001" - + "(\0132/.google.cloud.discoveryengine.v1beta" - + ".SearchInfo\022L\n\017completion_info\030\r \001(\01323.g" - + "oogle.cloud.discoveryengine.v1beta.Compl" - + "etionInfo\022N\n\020transaction_info\030\016 \001(\01324.go" - + "ogle.cloud.discoveryengine.v1beta.Transa" - + "ctionInfo\022\017\n\007tag_ids\030\017 \003(\t\022\025\n\rpromotion_" - + "ids\030\020 \003(\t\022R\n\nattributes\030\021 \003(\0132>.google.c" - + "loud.discoveryengine.v1beta.UserEvent.At" - + "tributesEntry\022B\n\nmedia_info\030\022 \001(\0132..goog" - + "le.cloud.discoveryengine.v1beta.MediaInf" - + "o\032g\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022C\n\005val" - + "ue\030\002 \001(\01324.google.cloud.discoveryengine." - + "v1beta.CustomAttribute:\0028\001\"Y\n\010PageInfo\022\023" - + "\n\013pageview_id\030\001 \001(\t\022\025\n\rpage_category\030\002 \001" - + "(\t\022\013\n\003uri\030\003 \001(\t\022\024\n\014referrer_uri\030\004 \001(\t\"T\n" - + "\nSearchInfo\022\024\n\014search_query\030\001 \001(\t\022\020\n\010ord" - + "er_by\030\002 \001(\t\022\023\n\006offset\030\003 \001(\005H\000\210\001\001B\t\n\007_off" - + "set\"H\n\016CompletionInfo\022\033\n\023selected_sugges" - + "tion\030\001 \001(\t\022\031\n\021selected_position\030\002 \001(\005\"\313\001" - + "\n\017TransactionInfo\022\030\n\005value\030\001 \001(\002B\004\342A\001\002H\000" - + "\210\001\001\022\026\n\010currency\030\002 \001(\tB\004\342A\001\002\022\026\n\016transacti" - + "on_id\030\003 \001(\t\022\020\n\003tax\030\004 \001(\002H\001\210\001\001\022\021\n\004cost\030\005 " - + "\001(\002H\002\210\001\001\022\033\n\016discount_value\030\006 \001(\002H\003\210\001\001B\010\n" - + "\006_valueB\006\n\004_taxB\007\n\005_costB\021\n\017_discount_va" - + "lue\"\273\001\n\014DocumentInfo\022\014\n\002id\030\001 \001(\tH\000\022<\n\004na" - + "me\030\002 \001(\tB,\372A)\n\'discoveryengine.googleapi" - + "s.com/DocumentH\000\022\r\n\003uri\030\006 \001(\tH\000\022\025\n\010quant" - + "ity\030\003 \001(\005H\001\210\001\001\022\025\n\rpromotion_ids\030\004 \003(\tB\025\n" - + "\023document_descriptorB\013\n\t_quantity\"\225\001\n\tPa" - + "nelInfo\022\026\n\010panel_id\030\002 \001(\tB\004\342A\001\002\022\024\n\014displ" - + "ay_name\030\003 \001(\t\022\033\n\016panel_position\030\004 \001(\005H\000\210" - + "\001\001\022\031\n\014total_panels\030\005 \001(\005H\001\210\001\001B\021\n\017_panel_" - + "positionB\017\n\r_total_panels\"\215\001\n\tMediaInfo\022" - + ":\n\027media_progress_duration\030\001 \001(\0132\031.googl" - + "e.protobuf.Duration\022&\n\031media_progress_pe" - + "rcentage\030\002 \001(\002H\000\210\001\001B\034\n\032_media_progress_p" - + "ercentageB\225\002\n\'com.google.cloud.discovery" - + "engine.v1betaB\016UserEventProtoP\001ZQcloud.g" - + "oogle.com/go/discoveryengine/apiv1beta/d" - + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" - + "COVERYENGINE\252\002#Google.Cloud.DiscoveryEng" - + "ine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngin" - + "e\\V1beta\352\002&Google::Cloud::DiscoveryEngin" - + "e::V1betab\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.discoveryengine.v1beta.CommonProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor, - new java.lang.String[] { - "EventType", - "UserPseudoId", - "EventTime", - "UserInfo", - "DirectUserRequest", - "SessionId", - "PageInfo", - "AttributionToken", - "Filter", - "Documents", - "Panel", - "SearchInfo", - "CompletionInfo", - "TransactionInfo", - "TagIds", - "PromotionIds", - "Attributes", - "MediaInfo", - }); - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor, - new java.lang.String[] { - "PageviewId", "PageCategory", "Uri", "ReferrerUri", - }); - internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor, - new java.lang.String[] { - "SearchQuery", "OrderBy", "Offset", "Offset", - }); - internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor, - new java.lang.String[] { - "SelectedSuggestion", "SelectedPosition", - }); - internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor, - new java.lang.String[] { - "Value", - "Currency", - "TransactionId", - "Tax", - "Cost", - "DiscountValue", - "Value", - "Tax", - "Cost", - "DiscountValue", - }); - internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor, - new java.lang.String[] { - "Id", "Name", "Uri", "Quantity", "PromotionIds", "DocumentDescriptor", "Quantity", - }); - internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor, - new java.lang.String[] { - "PanelId", - "DisplayName", - "PanelPosition", - "TotalPanels", - "PanelPosition", - "TotalPanels", - }); - internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor, - new java.lang.String[] { - "MediaProgressDuration", "MediaProgressPercentage", "MediaProgressPercentage", - }); - 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.discoveryengine.v1beta.CommonProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java deleted file mode 100644 index d3409e439ff3..000000000000 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/discoveryengine/v1beta/user_event_service.proto - -package com.google.cloud.discoveryengine.v1beta; - -public final class UserEventServiceProto { - private UserEventServiceProto() {} - - 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_discoveryengine_v1beta_WriteUserEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_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 - * Required. The parent DataStore resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent DataStore resource name, such as
-   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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.
-   * 
- * - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userEvent field is set. - */ - boolean hasUserEvent(); - /** - * - * - *
-   * Required. User event to write.
-   * 
- * - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userEvent. - */ - com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent(); - /** - * - * - *
-   * Required. User event to write.
-   * 
- * - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder(); -} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java index 7701bd617abb..82892bd957e3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java @@ -25,6 +25,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.CompletionServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java index 8aef0f972443..6900193f6727 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java @@ -28,6 +28,7 @@ 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.discoveryengine.v1.stub.ConversationalSearchServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java index af57b806c90a..8b4344c02541 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.DocumentServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java index 84d553e37b00..32fb80d1ab53 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.SchemaServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java index 2b35d12d4cb7..77c40ac276e8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java @@ -28,6 +28,7 @@ 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.discoveryengine.v1.stub.SearchServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java index 6107a27e0683..50ed25e03709 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java @@ -27,6 +27,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.UserEventServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java index 553a5bc46efd..d2bff3a68c5c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java @@ -29,6 +29,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java index 5bbb8117ba04..1072a62d8d62 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcConversationalSearchServiceStub.java @@ -39,6 +39,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java index 012cdce12154..78c8c461f65f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDocumentServiceStub.java @@ -45,6 +45,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java index a74ac70b3075..8c02864bc907 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSchemaServiceStub.java @@ -42,6 +42,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java index ac0b8cfeb8d0..39473ad5dd7c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcSearchServiceStub.java @@ -31,6 +31,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.java index 2bdfe6743fde..314569566bf5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserEventServiceStub.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/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java index 1165b4e1e325..e845d1499d82 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java index ea9240cc5e49..69874d0eb4ae 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java index ce187ae768ef..449298726872 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DocumentServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionService.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionService.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchService.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchService.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockConversationalSearchServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentService.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentService.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDocumentServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaService.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaService.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSchemaServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchService.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchService.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockSearchServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventService.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventService.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserEventServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SchemaServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java similarity index 53% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java index 2c941cc24672..775979494373 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for Auto-Completion.
  * 
@@ -32,101 +15,85 @@ public final class CompletionServiceGrpc { private CompletionServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1.CompletionService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1.CompletionService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse> - getCompleteQueryMethod; + private static volatile io.grpc.MethodDescriptor getCompleteQueryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CompleteQuery", requestType = com.google.cloud.discoveryengine.v1.CompleteQueryRequest.class, responseType = com.google.cloud.discoveryengine.v1.CompleteQueryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse> - getCompleteQueryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse> - getCompleteQueryMethod; + public static io.grpc.MethodDescriptor getCompleteQueryMethod() { + io.grpc.MethodDescriptor getCompleteQueryMethod; if ((getCompleteQueryMethod = CompletionServiceGrpc.getCompleteQueryMethod) == null) { synchronized (CompletionServiceGrpc.class) { if ((getCompleteQueryMethod = CompletionServiceGrpc.getCompleteQueryMethod) == null) { - CompletionServiceGrpc.getCompleteQueryMethod = - getCompleteQueryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.CompleteQueryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CompletionServiceMethodDescriptorSupplier("CompleteQuery")) - .build(); + CompletionServiceGrpc.getCompleteQueryMethod = getCompleteQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.getDefaultInstance())) + .setSchemaDescriptor(new CompletionServiceMethodDescriptorSupplier("CompleteQuery")) + .build(); } } } return getCompleteQueryMethod; } - /** 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 CompletionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CompletionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CompletionServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceStub(channel, callOptions); + } + }; return CompletionServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static CompletionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static CompletionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CompletionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CompletionServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceBlockingStub(channel, callOptions); + } + }; return CompletionServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CompletionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CompletionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CompletionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CompletionServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceFutureStub(channel, callOptions); + } + }; return CompletionServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for Auto-Completion.
    * 
@@ -134,47 +101,40 @@ public CompletionServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - default void completeQuery( - com.google.cloud.discoveryengine.v1.CompleteQueryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteQueryMethod(), responseObserver); + default void completeQuery(com.google.cloud.discoveryengine.v1.CompleteQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteQueryMethod(), responseObserver); } } /** * Base class for the server implementation of the service CompletionService. - * *
    * Service for Auto-Completion.
    * 
*/ - public abstract static class CompletionServiceImplBase + public static abstract class CompletionServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return CompletionServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service CompletionService. - * *
    * Service for Auto-Completion.
    * 
*/ public static final class CompletionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CompletionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CompletionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -185,26 +145,19 @@ protected CompletionServiceStub build( } /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - public void completeQuery( - com.google.cloud.discoveryengine.v1.CompleteQueryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void completeQuery(com.google.cloud.discoveryengine.v1.CompleteQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service CompletionService. - * *
    * Service for Auto-Completion.
    * 
@@ -223,14 +176,11 @@ protected CompletionServiceBlockingStub build( } /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery( - com.google.cloud.discoveryengine.v1.CompleteQueryRequest request) { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery(com.google.cloud.discoveryengine.v1.CompleteQueryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -238,14 +188,14 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service CompletionService. - * *
    * Service for Auto-Completion.
    * 
*/ public static final class CompletionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private CompletionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CompletionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -256,15 +206,12 @@ protected CompletionServiceFutureStub build( } /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.CompleteQueryResponse> - completeQuery(com.google.cloud.discoveryengine.v1.CompleteQueryRequest request) { + public com.google.common.util.concurrent.ListenableFuture completeQuery( + com.google.cloud.discoveryengine.v1.CompleteQueryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request); } @@ -272,11 +219,11 @@ protected CompletionServiceFutureStub build( private static final int METHODID_COMPLETE_QUERY = 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 AsyncService serviceImpl; private final int methodId; @@ -290,11 +237,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COMPLETE_QUERY: - serviceImpl.completeQuery( - (com.google.cloud.discoveryengine.v1.CompleteQueryRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1.CompleteQueryResponse>) - responseObserver); + serviceImpl.completeQuery((com.google.cloud.discoveryengine.v1.CompleteQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -315,18 +259,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCompleteQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse>( - service, METHODID_COMPLETE_QUERY))) + getCompleteQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CompleteQueryRequest, + com.google.cloud.discoveryengine.v1.CompleteQueryResponse>( + service, METHODID_COMPLETE_QUERY))) .build(); } - private abstract static class CompletionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CompletionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CompletionServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -368,12 +311,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CompletionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) - .addMethod(getCompleteQueryMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) + .addMethod(getCompleteQueryMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java new file mode 100644 index 000000000000..d66cda1d1063 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceGrpc.java @@ -0,0 +1,789 @@ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for conversational search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1/conversational_search_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConversationalSearchServiceGrpc { + + private ConversationalSearchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1.ConversationalSearchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getConverseConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConverseConversation", + requestType = com.google.cloud.discoveryengine.v1.ConverseConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ConverseConversationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getConverseConversationMethod() { + io.grpc.MethodDescriptor getConverseConversationMethod; + if ((getConverseConversationMethod = ConversationalSearchServiceGrpc.getConverseConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getConverseConversationMethod = ConversationalSearchServiceGrpc.getConverseConversationMethod) == null) { + ConversationalSearchServiceGrpc.getConverseConversationMethod = getConverseConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConverseConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ConverseConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ConverseConversationResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("ConverseConversation")) + .build(); + } + } + } + return getConverseConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversation", + requestType = com.google.cloud.discoveryengine.v1.CreateConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConversationMethod() { + io.grpc.MethodDescriptor getCreateConversationMethod; + if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) == null) { + ConversationalSearchServiceGrpc.getCreateConversationMethod = getCreateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CreateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("CreateConversation")) + .build(); + } + } + } + return getCreateConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", + requestType = com.google.cloud.discoveryengine.v1.DeleteConversationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConversationMethod() { + io.grpc.MethodDescriptor getDeleteConversationMethod; + if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) == null) { + ConversationalSearchServiceGrpc.getDeleteConversationMethod = getDeleteConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DeleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("DeleteConversation")) + .build(); + } + } + } + return getDeleteConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversation", + requestType = com.google.cloud.discoveryengine.v1.UpdateConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConversationMethod() { + io.grpc.MethodDescriptor getUpdateConversationMethod; + if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) == null) { + ConversationalSearchServiceGrpc.getUpdateConversationMethod = getUpdateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("UpdateConversation")) + .build(); + } + } + } + return getUpdateConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversation", + requestType = com.google.cloud.discoveryengine.v1.GetConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConversationMethod() { + io.grpc.MethodDescriptor getGetConversationMethod; + if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) == null) { + ConversationalSearchServiceGrpc.getGetConversationMethod = getGetConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("GetConversation")) + .build(); + } + } + } + return getGetConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversations", + requestType = com.google.cloud.discoveryengine.v1.ListConversationsRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListConversationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConversationsMethod() { + io.grpc.MethodDescriptor getListConversationsMethod; + if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) == null) { + ConversationalSearchServiceGrpc.getListConversationsMethod = getListConversationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListConversationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("ListConversations")) + .build(); + } + } + } + return getListConversationsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + }; + return ConversationalSearchServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConversationalSearchServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConversationalSearchServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + }; + return ConversationalSearchServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for conversational search.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Converses a conversation.
+     * 
+ */ + default void converseConversation(com.google.cloud.discoveryengine.v1.ConverseConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConverseConversationMethod(), responseObserver); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + default void createConversation(com.google.cloud.discoveryengine.v1.CreateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversationMethod(), responseObserver); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + default void deleteConversation(com.google.cloud.discoveryengine.v1.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConversationMethod(), responseObserver); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
+     * cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
+     * not exist, a NOT_FOUND error is returned.
+     * 
+ */ + default void updateConversation(com.google.cloud.discoveryengine.v1.UpdateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConversationMethod(), responseObserver); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + default void getConversation(com.google.cloud.discoveryengine.v1.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversationMethod(), responseObserver); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
+     * 
+ */ + default void listConversations(com.google.cloud.discoveryengine.v1.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversationsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static abstract class ConversationalSearchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ConversationalSearchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConversationalSearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public void converseConversation(com.google.cloud.discoveryengine.v1.ConverseConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public void createConversation(com.google.cloud.discoveryengine.v1.CreateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public void deleteConversation(com.google.cloud.discoveryengine.v1.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
+     * cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
+     * not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public void updateConversation(com.google.cloud.discoveryengine.v1.UpdateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public void getConversation(com.google.cloud.discoveryengine.v1.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
+     * 
+ */ + public void listConversations(com.google.cloud.discoveryengine.v1.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ConverseConversationResponse converseConversation(com.google.cloud.discoveryengine.v1.ConverseConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getConverseConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Conversation createConversation(com.google.cloud.discoveryengine.v1.CreateConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversation(com.google.cloud.discoveryengine.v1.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
+     * cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
+     * not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Conversation updateConversation(com.google.cloud.discoveryengine.v1.UpdateConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Conversation getConversation(com.google.cloud.discoveryengine.v1.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListConversationsResponse listConversations(com.google.cloud.discoveryengine.v1.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversationsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConversationalSearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture converseConversation( + com.google.cloud.discoveryengine.v1.ConverseConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConversation( + com.google.cloud.discoveryengine.v1.CreateConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConversation( + com.google.cloud.discoveryengine.v1.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type
+     * cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does
+     * not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConversation( + com.google.cloud.discoveryengine.v1.UpdateConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConversation( + com.google.cloud.discoveryengine.v1.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConversations( + com.google.cloud.discoveryengine.v1.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CONVERSE_CONVERSATION = 0; + private static final int METHODID_CREATE_CONVERSATION = 1; + private static final int METHODID_DELETE_CONVERSATION = 2; + private static final int METHODID_UPDATE_CONVERSATION = 3; + private static final int METHODID_GET_CONVERSATION = 4; + private static final int METHODID_LIST_CONVERSATIONS = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CONVERSE_CONVERSATION: + serviceImpl.converseConversation((com.google.cloud.discoveryengine.v1.ConverseConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONVERSATION: + serviceImpl.createConversation((com.google.cloud.discoveryengine.v1.CreateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONVERSATION: + serviceImpl.deleteConversation((com.google.cloud.discoveryengine.v1.DeleteConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONVERSATION: + serviceImpl.updateConversation((com.google.cloud.discoveryengine.v1.UpdateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONVERSATION: + serviceImpl.getConversation((com.google.cloud.discoveryengine.v1.GetConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSATIONS: + serviceImpl.listConversations((com.google.cloud.discoveryengine.v1.ListConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getConverseConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ConverseConversationRequest, + com.google.cloud.discoveryengine.v1.ConverseConversationResponse>( + service, METHODID_CONVERSE_CONVERSATION))) + .addMethod( + getCreateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CreateConversationRequest, + com.google.cloud.discoveryengine.v1.Conversation>( + service, METHODID_CREATE_CONVERSATION))) + .addMethod( + getDeleteConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DeleteConversationRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_CONVERSATION))) + .addMethod( + getUpdateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateConversationRequest, + com.google.cloud.discoveryengine.v1.Conversation>( + service, METHODID_UPDATE_CONVERSATION))) + .addMethod( + getGetConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetConversationRequest, + com.google.cloud.discoveryengine.v1.Conversation>( + service, METHODID_GET_CONVERSATION))) + .addMethod( + getListConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListConversationsRequest, + com.google.cloud.discoveryengine.v1.ListConversationsResponse>( + service, METHODID_LIST_CONVERSATIONS))) + .build(); + } + + private static abstract class ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConversationalSearchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConversationalSearchService"); + } + } + + private static final class ConversationalSearchServiceFileDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier { + ConversationalSearchServiceFileDescriptorSupplier() {} + } + + private static final class ConversationalSearchServiceMethodDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ConversationalSearchServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) + .addMethod(getConverseConversationMethod()) + .addMethod(getCreateConversationMethod()) + .addMethod(getDeleteConversationMethod()) + .addMethod(getUpdateConversationMethod()) + .addMethod(getGetConversationMethod()) + .addMethod(getListConversationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java new file mode 100644 index 000000000000..d6123aacc595 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceGrpc.java @@ -0,0 +1,917 @@ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
+ * information of the customer's website.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1/document_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentServiceGrpc { + + private DocumentServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1.DocumentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocument", + requestType = com.google.cloud.discoveryengine.v1.GetDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDocumentMethod() { + io.grpc.MethodDescriptor getGetDocumentMethod; + if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { + DocumentServiceGrpc.getGetDocumentMethod = getGetDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("GetDocument")) + .build(); + } + } + } + return getGetDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDocuments", + requestType = com.google.cloud.discoveryengine.v1.ListDocumentsRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListDocumentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDocumentsMethod() { + io.grpc.MethodDescriptor getListDocumentsMethod; + if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { + DocumentServiceGrpc.getListDocumentsMethod = getListDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListDocumentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("ListDocuments")) + .build(); + } + } + } + return getListDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocument", + requestType = com.google.cloud.discoveryengine.v1.CreateDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDocumentMethod() { + io.grpc.MethodDescriptor getCreateDocumentMethod; + if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { + DocumentServiceGrpc.getCreateDocumentMethod = getCreateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CreateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("CreateDocument")) + .build(); + } + } + } + return getCreateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", + requestType = com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDocumentMethod() { + io.grpc.MethodDescriptor getUpdateDocumentMethod; + if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { + DocumentServiceGrpc.getUpdateDocumentMethod = getUpdateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) + .build(); + } + } + } + return getUpdateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", + requestType = com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDocumentMethod() { + io.grpc.MethodDescriptor getDeleteDocumentMethod; + if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { + DocumentServiceGrpc.getDeleteDocumentMethod = getDeleteDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("DeleteDocument")) + .build(); + } + } + } + return getDeleteDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportDocuments", + requestType = com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportDocumentsMethod() { + io.grpc.MethodDescriptor getImportDocumentsMethod; + if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { + DocumentServiceGrpc.getImportDocumentsMethod = getImportDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("ImportDocuments")) + .build(); + } + } + } + return getImportDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getPurgeDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeDocuments", + requestType = com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPurgeDocumentsMethod() { + io.grpc.MethodDescriptor getPurgeDocumentsMethod; + if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { + DocumentServiceGrpc.getPurgeDocumentsMethod = getPurgeDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("PurgeDocuments")) + .build(); + } + } + } + return getPurgeDocumentsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DocumentServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + }; + return DocumentServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + }; + return DocumentServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DocumentServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + }; + return DocumentServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
+   * information of the customer's website.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + default void getDocument(com.google.cloud.discoveryengine.v1.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
+     * 
+ */ + default void listDocuments(com.google.cloud.discoveryengine.v1.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentsMethod(), responseObserver); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + default void createDocument(com.google.cloud.discoveryengine.v1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + default void updateDocument(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + default void deleteDocument(com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
+     * may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
+     * updated.
+     * 
+ */ + default void importDocuments(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDocumentsMethod(), responseObserver); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
+     * operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
+     * still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
+     * to be deleted, set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + default void purgeDocuments(com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeDocumentsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentService. + *
+   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
+   * information of the customer's website.
+   * 
+ */ + public static abstract class DocumentServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DocumentServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentService. + *
+   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
+   * information of the customer's website.
+   * 
+ */ + public static final class DocumentServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public void getDocument(com.google.cloud.discoveryengine.v1.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
+     * 
+ */ + public void listDocuments(com.google.cloud.discoveryengine.v1.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public void createDocument(com.google.cloud.discoveryengine.v1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public void updateDocument(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public void deleteDocument(com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
+     * may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
+     * updated.
+     * 
+ */ + public void importDocuments(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
+     * operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
+     * still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
+     * to be deleted, set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public void purgeDocuments(com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentService. + *
+   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
+   * information of the customer's website.
+   * 
+ */ + public static final class DocumentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Document getDocument(com.google.cloud.discoveryengine.v1.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListDocumentsResponse listDocuments(com.google.cloud.discoveryengine.v1.ListDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Document createDocument(com.google.cloud.discoveryengine.v1.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Document updateDocument(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.protobuf.Empty deleteDocument(com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
+     * may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
+     * updated.
+     * 
+ */ + public com.google.longrunning.Operation importDocuments(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
+     * operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
+     * still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
+     * to be deleted, set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.longrunning.Operation purgeDocuments(com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. + *
+   * Service for ingesting [Document][google.cloud.discoveryengine.v1.Document]
+   * information of the customer's website.
+   * 
+ */ + public static final class DocumentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDocument( + com.google.cloud.discoveryengine.v1.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDocuments( + com.google.cloud.discoveryengine.v1.ListDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDocument( + com.google.cloud.discoveryengine.v1.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDocument( + com.google.cloud.discoveryengine.v1.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDocument( + com.google.cloud.discoveryengine.v1.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing
+     * may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully
+     * updated.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importDocuments( + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this
+     * operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might
+     * still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s
+     * to be deleted, set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture purgeDocuments( + com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DOCUMENT = 0; + private static final int METHODID_LIST_DOCUMENTS = 1; + private static final int METHODID_CREATE_DOCUMENT = 2; + private static final int METHODID_UPDATE_DOCUMENT = 3; + private static final int METHODID_DELETE_DOCUMENT = 4; + private static final int METHODID_IMPORT_DOCUMENTS = 5; + private static final int METHODID_PURGE_DOCUMENTS = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_DOCUMENT: + serviceImpl.getDocument((com.google.cloud.discoveryengine.v1.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DOCUMENTS: + serviceImpl.listDocuments((com.google.cloud.discoveryengine.v1.ListDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DOCUMENT: + serviceImpl.createDocument((com.google.cloud.discoveryengine.v1.CreateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DOCUMENT: + serviceImpl.updateDocument((com.google.cloud.discoveryengine.v1.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DOCUMENT: + serviceImpl.deleteDocument((com.google.cloud.discoveryengine.v1.DeleteDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DOCUMENTS: + serviceImpl.importDocuments((com.google.cloud.discoveryengine.v1.ImportDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_DOCUMENTS: + serviceImpl.purgeDocuments((com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetDocumentRequest, + com.google.cloud.discoveryengine.v1.Document>( + service, METHODID_GET_DOCUMENT))) + .addMethod( + getListDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListDocumentsRequest, + com.google.cloud.discoveryengine.v1.ListDocumentsResponse>( + service, METHODID_LIST_DOCUMENTS))) + .addMethod( + getCreateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CreateDocumentRequest, + com.google.cloud.discoveryengine.v1.Document>( + service, METHODID_CREATE_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateDocumentRequest, + com.google.cloud.discoveryengine.v1.Document>( + service, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DeleteDocumentRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DOCUMENT))) + .addMethod( + getImportDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_DOCUMENTS))) + .addMethod( + getPurgeDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest, + com.google.longrunning.Operation>( + service, METHODID_PURGE_DOCUMENTS))) + .build(); + } + + private static abstract class DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.DocumentServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentService"); + } + } + + private static final class DocumentServiceFileDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier { + DocumentServiceFileDescriptorSupplier() {} + } + + private static final class DocumentServiceMethodDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DocumentServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DocumentServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentServiceFileDescriptorSupplier()) + .addMethod(getGetDocumentMethod()) + .addMethod(getListDocumentsMethod()) + .addMethod(getCreateDocumentMethod()) + .addMethod(getUpdateDocumentMethod()) + .addMethod(getDeleteDocumentMethod()) + .addMethod(getImportDocumentsMethod()) + .addMethod(getPurgeDocumentsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java new file mode 100644 index 000000000000..6ada5d1d1084 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceGrpc.java @@ -0,0 +1,667 @@ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1/schema_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SchemaServiceGrpc { + + private SchemaServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1.SchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchema", + requestType = com.google.cloud.discoveryengine.v1.GetSchemaRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSchemaMethod() { + io.grpc.MethodDescriptor getGetSchemaMethod; + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + SchemaServiceGrpc.getGetSchemaMethod = getGetSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) + .build(); + } + } + } + return getGetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemas", + requestType = com.google.cloud.discoveryengine.v1.ListSchemasRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSchemasMethod() { + io.grpc.MethodDescriptor getListSchemasMethod; + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + SchemaServiceGrpc.getListSchemasMethod = getListSchemasMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) + .build(); + } + } + } + return getListSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchema", + requestType = com.google.cloud.discoveryengine.v1.CreateSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSchemaMethod() { + io.grpc.MethodDescriptor getCreateSchemaMethod; + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + SchemaServiceGrpc.getCreateSchemaMethod = getCreateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("CreateSchema")) + .build(); + } + } + } + return getCreateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSchema", + requestType = com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSchemaMethod() { + io.grpc.MethodDescriptor getUpdateSchemaMethod; + if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { + SchemaServiceGrpc.getUpdateSchemaMethod = getUpdateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("UpdateSchema")) + .build(); + } + } + } + return getUpdateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", + requestType = com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSchemaMethod() { + io.grpc.MethodDescriptor getDeleteSchemaMethod; + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + SchemaServiceGrpc.getDeleteSchemaMethod = getDeleteSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) + .build(); + } + } + } + return getDeleteSchemaMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + }; + return SchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SchemaServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + }; + return SchemaServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SchemaServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + }; + return SchemaServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + default void getSchema(com.google.cloud.discoveryengine.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
+     * 
+ */ + default void listSchemas(com.google.cloud.discoveryengine.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + default void createSchema(com.google.cloud.discoveryengine.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + default void updateSchema(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSchemaMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + default void deleteSchema(com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
+   * 
+ */ + public static abstract class SchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SchemaServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
+   * 
+ */ + public static final class SchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SchemaServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public void getSchema(com.google.cloud.discoveryengine.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
+     * 
+ */ + public void listSchemas(com.google.cloud.discoveryengine.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public void createSchema(com.google.cloud.discoveryengine.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public void updateSchema(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public void deleteSchema(com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
+   * 
+ */ + public static final class SchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Schema getSchema(com.google.cloud.discoveryengine.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListSchemasResponse listSchemas(com.google.cloud.discoveryengine.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.longrunning.Operation createSchema(com.google.cloud.discoveryengine.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.longrunning.Operation updateSchema(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.longrunning.Operation deleteSchema(com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1.Schema]s.
+   * 
+ */ + public static final class SchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SchemaServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSchema( + com.google.cloud.discoveryengine.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSchemas( + com.google.cloud.discoveryengine.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSchema( + com.google.cloud.discoveryengine.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSchema( + com.google.cloud.discoveryengine.v1.UpdateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSchema( + com.google.cloud.discoveryengine.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SCHEMA = 0; + private static final int METHODID_LIST_SCHEMAS = 1; + private static final int METHODID_CREATE_SCHEMA = 2; + private static final int METHODID_UPDATE_SCHEMA = 3; + private static final int METHODID_DELETE_SCHEMA = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SCHEMA: + serviceImpl.getSchema((com.google.cloud.discoveryengine.v1.GetSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEMAS: + serviceImpl.listSchemas((com.google.cloud.discoveryengine.v1.ListSchemasRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCHEMA: + serviceImpl.createSchema((com.google.cloud.discoveryengine.v1.CreateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCHEMA: + serviceImpl.updateSchema((com.google.cloud.discoveryengine.v1.UpdateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA: + serviceImpl.deleteSchema((com.google.cloud.discoveryengine.v1.DeleteSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetSchemaRequest, + com.google.cloud.discoveryengine.v1.Schema>( + service, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListSchemasRequest, + com.google.cloud.discoveryengine.v1.ListSchemasResponse>( + service, METHODID_LIST_SCHEMAS))) + .addMethod( + getCreateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CreateSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_SCHEMA))) + .addMethod( + getUpdateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SCHEMA))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DeleteSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_SCHEMA))) + .build(); + } + + private static abstract class SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SchemaService"); + } + } + + private static final class SchemaServiceFileDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier { + SchemaServiceFileDescriptorSupplier() {} + } + + private static final class SchemaServiceMethodDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) + .addMethod(getGetSchemaMethod()) + .addMethod(getListSchemasMethod()) + .addMethod(getCreateSchemaMethod()) + .addMethod(getUpdateSchemaMethod()) + .addMethod(getDeleteSchemaMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java similarity index 53% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java index 014a91e5e1c5..9431c4f3ae65 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for search.
  * 
@@ -32,100 +15,85 @@ public final class SearchServiceGrpc { private SearchServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1.SearchService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1.SearchService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.SearchRequest, - com.google.cloud.discoveryengine.v1.SearchResponse> - getSearchMethod; + private static volatile io.grpc.MethodDescriptor getSearchMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Search", requestType = com.google.cloud.discoveryengine.v1.SearchRequest.class, responseType = com.google.cloud.discoveryengine.v1.SearchResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.SearchRequest, - com.google.cloud.discoveryengine.v1.SearchResponse> - getSearchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.SearchRequest, - com.google.cloud.discoveryengine.v1.SearchResponse> - getSearchMethod; + public static io.grpc.MethodDescriptor getSearchMethod() { + io.grpc.MethodDescriptor getSearchMethod; if ((getSearchMethod = SearchServiceGrpc.getSearchMethod) == null) { synchronized (SearchServiceGrpc.class) { if ((getSearchMethod = SearchServiceGrpc.getSearchMethod) == null) { - SearchServiceGrpc.getSearchMethod = - getSearchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.SearchRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.SearchResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SearchServiceMethodDescriptorSupplier("Search")) - .build(); + SearchServiceGrpc.getSearchMethod = getSearchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.SearchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.SearchResponse.getDefaultInstance())) + .setSchemaDescriptor(new SearchServiceMethodDescriptorSupplier("Search")) + .build(); } } } return getSearchMethod; } - /** 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 SearchServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceStub(channel, callOptions); + } + }; return SearchServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SearchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static SearchServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceBlockingStub(channel, callOptions); + } + }; return SearchServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SearchServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SearchServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceFutureStub(channel, callOptions); + } + }; return SearchServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for search.
    * 
@@ -133,65 +101,56 @@ public SearchServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Performs a search.
      * 
*/ - default void search( - com.google.cloud.discoveryengine.v1.SearchRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void search(com.google.cloud.discoveryengine.v1.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); } } /** * Base class for the server implementation of the service SearchService. - * *
    * Service for search.
    * 
*/ - public abstract static class SearchServiceImplBase + public static abstract class SearchServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SearchServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SearchService. - * *
    * Service for search.
    * 
*/ public static final class SearchServiceStub extends io.grpc.stub.AbstractAsyncStub { - private SearchServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SearchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SearchServiceStub(channel, callOptions); } /** - * - * *
      * Performs a search.
      * 
*/ - public void search( - com.google.cloud.discoveryengine.v1.SearchRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void search(com.google.cloud.discoveryengine.v1.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); } @@ -199,14 +158,14 @@ public void search( /** * A stub to allow clients to do synchronous rpc calls to service SearchService. - * *
    * Service for search.
    * 
*/ public static final class SearchServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SearchServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -217,14 +176,11 @@ protected SearchServiceBlockingStub build( } /** - * - * *
      * Performs a search.
      * 
*/ - public com.google.cloud.discoveryengine.v1.SearchResponse search( - com.google.cloud.discoveryengine.v1.SearchRequest request) { + public com.google.cloud.discoveryengine.v1.SearchResponse search(com.google.cloud.discoveryengine.v1.SearchRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } @@ -232,14 +188,14 @@ public com.google.cloud.discoveryengine.v1.SearchResponse search( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SearchService. - * *
    * Service for search.
    * 
*/ public static final class SearchServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private SearchServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -250,15 +206,12 @@ protected SearchServiceFutureStub build( } /** - * - * *
      * Performs a search.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.SearchResponse> - search(com.google.cloud.discoveryengine.v1.SearchRequest request) { + public com.google.common.util.concurrent.ListenableFuture search( + com.google.cloud.discoveryengine.v1.SearchRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchMethod(), getCallOptions()), request); } @@ -266,11 +219,11 @@ protected SearchServiceFutureStub build( private static final int METHODID_SEARCH = 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 AsyncService serviceImpl; private final int methodId; @@ -284,10 +237,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SEARCH: - serviceImpl.search( - (com.google.cloud.discoveryengine.v1.SearchRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.search((com.google.cloud.discoveryengine.v1.SearchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -308,17 +259,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.SearchRequest, - com.google.cloud.discoveryengine.v1.SearchResponse>(service, METHODID_SEARCH))) + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.SearchRequest, + com.google.cloud.discoveryengine.v1.SearchResponse>( + service, METHODID_SEARCH))) .build(); } - private abstract static class SearchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SearchServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -360,12 +311,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SearchServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SearchServiceFileDescriptorSupplier()) - .addMethod(getSearchMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SearchServiceFileDescriptorSupplier()) + .addMethod(getSearchMethod()) + .build(); } } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java similarity index 53% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java index 4379f674a84b..bebd564a8dc5 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for ingesting end user actions on a website to Discovery Engine API.
  * 
@@ -32,189 +15,147 @@ public final class UserEventServiceGrpc { private UserEventServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1.UserEventService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1.UserEventService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1.UserEvent> - getWriteUserEventMethod; + private static volatile io.grpc.MethodDescriptor getWriteUserEventMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "WriteUserEvent", requestType = com.google.cloud.discoveryengine.v1.WriteUserEventRequest.class, responseType = com.google.cloud.discoveryengine.v1.UserEvent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1.UserEvent> - getWriteUserEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1.UserEvent> - getWriteUserEventMethod; + 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.discoveryengine.v1.WriteUserEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) - .build(); + 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.discoveryengine.v1.WriteUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) + .build(); } } } return getWriteUserEventMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CollectUserEventRequest, com.google.api.HttpBody> - getCollectUserEventMethod; + private static volatile io.grpc.MethodDescriptor getCollectUserEventMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CollectUserEvent", requestType = com.google.cloud.discoveryengine.v1.CollectUserEventRequest.class, responseType = com.google.api.HttpBody.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CollectUserEventRequest, com.google.api.HttpBody> - getCollectUserEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.CollectUserEventRequest, com.google.api.HttpBody> - getCollectUserEventMethod; + 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.discoveryengine.v1.CollectUserEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.HttpBody.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("CollectUserEvent")) - .build(); + 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.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod; + private static volatile io.grpc.MethodDescriptor getImportUserEventsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportUserEvents", requestType = com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod; + 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.discoveryengine.v1.ImportUserEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("ImportUserEvents")) - .build(); + 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.discoveryengine.v1.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 */ + /** + * 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** + * 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); - } - }; + 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 a website to Discovery Engine API.
    * 
@@ -222,23 +163,16 @@ public UserEventServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Writes a single user event.
      * 
*/ - default void writeUserEvent( - com.google.cloud.discoveryengine.v1.WriteUserEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getWriteUserEventMethod(), responseObserver); + default void writeUserEvent(com.google.cloud.discoveryengine.v1.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 third-party domain.
@@ -246,16 +180,12 @@ default void writeUserEvent(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - default void collectUserEvent( - com.google.cloud.discoveryengine.v1.CollectUserEventRequest request, + default void collectUserEvent(com.google.cloud.discoveryengine.v1.CollectUserEventRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCollectUserEventMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectUserEventMethod(), responseObserver); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -265,68 +195,57 @@ default void collectUserEvent(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - default void importUserEvents( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request, + default void importUserEvents(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportUserEventsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportUserEventsMethod(), responseObserver); } } /** * Base class for the server implementation of the service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ - public abstract static class UserEventServiceImplBase + public static abstract class UserEventServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return UserEventServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ public static final class UserEventServiceStub extends io.grpc.stub.AbstractAsyncStub { - private UserEventServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + 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) { + 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.discoveryengine.v1.WriteUserEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void writeUserEvent(com.google.cloud.discoveryengine.v1.WriteUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), - request, - responseObserver); + 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 third-party domain.
@@ -334,18 +253,13 @@ public void writeUserEvent(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - public void collectUserEvent( - com.google.cloud.discoveryengine.v1.CollectUserEventRequest request, + public void collectUserEvent(com.google.cloud.discoveryengine.v1.CollectUserEventRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -355,26 +269,23 @@ public void collectUserEvent(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - public void importUserEvents( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request, + public void importUserEvents(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ public static final class UserEventServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private UserEventServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private UserEventServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -385,21 +296,16 @@ protected UserEventServiceBlockingStub build( } /** - * - * *
      * Writes a single user event.
      * 
*/ - public com.google.cloud.discoveryengine.v1.UserEvent writeUserEvent( - com.google.cloud.discoveryengine.v1.WriteUserEventRequest request) { + public com.google.cloud.discoveryengine.v1.UserEvent writeUserEvent(com.google.cloud.discoveryengine.v1.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 third-party domain.
@@ -407,15 +313,12 @@ public com.google.cloud.discoveryengine.v1.UserEvent writeUserEvent(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - public com.google.api.HttpBody collectUserEvent( - com.google.cloud.discoveryengine.v1.CollectUserEventRequest request) { + public com.google.api.HttpBody collectUserEvent(com.google.cloud.discoveryengine.v1.CollectUserEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -425,8 +328,7 @@ public com.google.api.HttpBody collectUserEvent(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - public com.google.longrunning.Operation importUserEvents( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request) { + public com.google.longrunning.Operation importUserEvents(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } @@ -434,14 +336,14 @@ public com.google.longrunning.Operation importUserEvents( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ public static final class UserEventServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private UserEventServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private UserEventServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -452,22 +354,17 @@ protected UserEventServiceFutureStub build( } /** - * - * *
      * Writes a single user event.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1.UserEvent> - writeUserEvent(com.google.cloud.discoveryengine.v1.WriteUserEventRequest request) { + public com.google.common.util.concurrent.ListenableFuture writeUserEvent( + com.google.cloud.discoveryengine.v1.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 third-party domain.
@@ -475,15 +372,13 @@ protected UserEventServiceFutureStub build(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - collectUserEvent(com.google.cloud.discoveryengine.v1.CollectUserEventRequest request) { + public com.google.common.util.concurrent.ListenableFuture collectUserEvent( + com.google.cloud.discoveryengine.v1.CollectUserEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -493,8 +388,8 @@ protected UserEventServiceFutureStub build(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importUserEvents(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request) { + public com.google.common.util.concurrent.ListenableFuture importUserEvents( + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request); } @@ -504,11 +399,11 @@ protected UserEventServiceFutureStub build( private static final int METHODID_COLLECT_USER_EVENT = 1; private static final int METHODID_IMPORT_USER_EVENTS = 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 static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -522,19 +417,15 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_WRITE_USER_EVENT: - serviceImpl.writeUserEvent( - (com.google.cloud.discoveryengine.v1.WriteUserEventRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.writeUserEvent((com.google.cloud.discoveryengine.v1.WriteUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COLLECT_USER_EVENT: - serviceImpl.collectUserEvent( - (com.google.cloud.discoveryengine.v1.CollectUserEventRequest) request, + serviceImpl.collectUserEvent((com.google.cloud.discoveryengine.v1.CollectUserEventRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_USER_EVENTS: - serviceImpl.importUserEvents( - (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest) request, + serviceImpl.importUserEvents((com.google.cloud.discoveryengine.v1.ImportUserEventsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -556,30 +447,31 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getWriteUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1.UserEvent>( - service, METHODID_WRITE_USER_EVENT))) + getWriteUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.WriteUserEventRequest, + com.google.cloud.discoveryengine.v1.UserEvent>( + service, METHODID_WRITE_USER_EVENT))) .addMethod( - getCollectUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.CollectUserEventRequest, - com.google.api.HttpBody>(service, METHODID_COLLECT_USER_EVENT))) + getCollectUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CollectUserEventRequest, + com.google.api.HttpBody>( + service, METHODID_COLLECT_USER_EVENT))) .addMethod( - getImportUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest, - com.google.longrunning.Operation>(service, METHODID_IMPORT_USER_EVENTS))) + getImportUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_USER_EVENTS))) .build(); } - private abstract static class UserEventServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class UserEventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { UserEventServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -621,14 +513,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (UserEventServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) - .addMethod(getWriteUserEventMethod()) - .addMethod(getCollectUserEventMethod()) - .addMethod(getImportUserEventsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) + .addMethod(getWriteUserEventMethod()) + .addMethod(getCollectUserEventMethod()) + .addMethod(getImportUserEventsMethod()) + .build(); } } } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java index 14520444ed1f..b754cd587886 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * BigQuery source import data from.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.BigQuerySource} */ -public final class BigQuerySource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQuerySource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.BigQuerySource) BigQuerySourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQuerySource.newBuilder() to construct. private BigQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQuerySource() { projectId_ = ""; datasetId_ = ""; @@ -47,38 +29,33 @@ private BigQuerySource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQuerySource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.BigQuerySource.class, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder.class); + com.google.cloud.discoveryengine.v1.BigQuerySource.class, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder.class); } private int partitionCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object partition_; - public enum PartitionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PARTITION_DATE(5), PARTITION_NOT_SET(0); private final int value; - private PartitionCase(int value) { this.value = value; } @@ -94,34 +71,29 @@ public static PartitionCase valueOf(int value) { public static PartitionCase forNumber(int value) { switch (value) { - case 5: - return PARTITION_DATE; - case 0: - return PARTITION_NOT_SET; - default: - return null; + case 5: return PARTITION_DATE; + case 0: return PARTITION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PartitionCase getPartitionCase() { - return PartitionCase.forNumber(partitionCase_); + public PartitionCase + getPartitionCase() { + return PartitionCase.forNumber( + partitionCase_); } public static final int PARTITION_DATE_FIELD_NUMBER = 5; /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return Whether the partitionDate field is set. */ @java.lang.Override @@ -129,26 +101,21 @@ public boolean hasPartitionDate() { return partitionCase_ == 5; } /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return The partitionDate. */ @java.lang.Override public com.google.type.Date getPartitionDate() { if (partitionCase_ == 5) { - return (com.google.type.Date) partition_; + return (com.google.type.Date) partition_; } return com.google.type.Date.getDefaultInstance(); } /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
@@ -158,18 +125,15 @@ public com.google.type.Date getPartitionDate() { @java.lang.Override public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { if (partitionCase_ == 5) { - return (com.google.type.Date) partition_; + return (com.google.type.Date) partition_; } return com.google.type.Date.getDefaultInstance(); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -177,7 +141,6 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() {
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -186,15 +149,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -202,15 +164,16 @@ public java.lang.String getProjectId() {
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -219,19 +182,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATASET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ @java.lang.Override @@ -240,30 +199,30 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -272,19 +231,15 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } public static final int TABLE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object tableId_ = ""; /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tableId. */ @java.lang.Override @@ -293,30 +248,30 @@ public java.lang.String getTableId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; } } /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tableId. */ @java.lang.Override - public com.google.protobuf.ByteString getTableIdBytes() { + public com.google.protobuf.ByteString + getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableId_ = b; return b; } else { @@ -325,12 +280,9 @@ public com.google.protobuf.ByteString getTableIdBytes() { } public static final int GCS_STAGING_DIR_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object gcsStagingDir_ = ""; /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -338,7 +290,6 @@ public com.google.protobuf.ByteString getTableIdBytes() {
    * 
* * string gcs_staging_dir = 4; - * * @return The gcsStagingDir. */ @java.lang.Override @@ -347,15 +298,14 @@ public java.lang.String getGcsStagingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsStagingDir_ = s; return s; } } /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -363,15 +313,16 @@ public java.lang.String getGcsStagingDir() {
    * 
* * string gcs_staging_dir = 4; - * * @return The bytes for gcsStagingDir. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsStagingDirBytes() { + public com.google.protobuf.ByteString + getGcsStagingDirBytes() { java.lang.Object ref = gcsStagingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsStagingDir_ = b; return b; } else { @@ -380,12 +331,9 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() { } public static final int DATA_SCHEMA_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object dataSchema_ = ""; /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -409,7 +357,6 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() {
    * 
* * string data_schema = 6; - * * @return The dataSchema. */ @java.lang.Override @@ -418,15 +365,14 @@ public java.lang.String getDataSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; } } /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -450,15 +396,16 @@ public java.lang.String getDataSchema() {
    * 
* * string data_schema = 6; - * * @return The bytes for dataSchema. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -467,7 +414,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -479,7 +425,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -520,9 +467,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gcsStagingDir_); } if (partitionCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.type.Date) partition_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.type.Date) partition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchema_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dataSchema_); @@ -535,23 +481,28 @@ 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.discoveryengine.v1.BigQuerySource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.BigQuerySource other = - (com.google.cloud.discoveryengine.v1.BigQuerySource) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getDatasetId().equals(other.getDatasetId())) return false; - if (!getTableId().equals(other.getTableId())) return false; - if (!getGcsStagingDir().equals(other.getGcsStagingDir())) return false; - if (!getDataSchema().equals(other.getDataSchema())) return false; + com.google.cloud.discoveryengine.v1.BigQuerySource other = (com.google.cloud.discoveryengine.v1.BigQuerySource) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + if (!getTableId() + .equals(other.getTableId())) return false; + if (!getGcsStagingDir() + .equals(other.getGcsStagingDir())) return false; + if (!getDataSchema() + .equals(other.getDataSchema())) return false; if (!getPartitionCase().equals(other.getPartitionCase())) return false; switch (partitionCase_) { case 5: - if (!getPartitionDate().equals(other.getPartitionDate())) return false; + if (!getPartitionDate() + .equals(other.getPartitionDate())) return false; break; case 0: default: @@ -591,135 +542,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.BigQuerySource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.BigQuerySource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.BigQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.BigQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource 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.discoveryengine.v1.BigQuerySource 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; } /** - * - * *
    * BigQuery source import data from.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.BigQuerySource} */ - 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.discoveryengine.v1.BigQuerySource) com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.BigQuerySource.class, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder.class); + com.google.cloud.discoveryengine.v1.BigQuerySource.class, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.BigQuerySource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -738,9 +685,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; } @java.lang.Override @@ -759,11 +706,8 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.BigQuerySource buildPartial() { - com.google.cloud.discoveryengine.v1.BigQuerySource result = - new com.google.cloud.discoveryengine.v1.BigQuerySource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.BigQuerySource result = new com.google.cloud.discoveryengine.v1.BigQuerySource(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -791,7 +735,8 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.BigQuerySource re private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.BigQuerySource result) { result.partitionCase_ = partitionCase_; result.partition_ = this.partition_; - if (partitionCase_ == 5 && partitionDateBuilder_ != null) { + if (partitionCase_ == 5 && + partitionDateBuilder_ != null) { result.partition_ = partitionDateBuilder_.build(); } } @@ -800,39 +745,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.BigQuerySour 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.discoveryengine.v1.BigQuerySource) { - return mergeFrom((com.google.cloud.discoveryengine.v1.BigQuerySource) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.BigQuerySource)other); } else { super.mergeFrom(other); return this; @@ -840,8 +784,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.BigQuerySource other) { - if (other == com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000002; @@ -868,15 +811,13 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.BigQuerySource othe onChanged(); } switch (other.getPartitionCase()) { - case PARTITION_DATE: - { - mergePartitionDate(other.getPartitionDate()); - break; - } - case PARTITION_NOT_SET: - { - break; - } + case PARTITION_DATE: { + mergePartitionDate(other.getPartitionDate()); + break; + } + case PARTITION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -904,49 +845,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - tableId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - gcsStagingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - input.readMessage(getPartitionDateFieldBuilder().getBuilder(), extensionRegistry); - partitionCase_ = 5; - break; - } // case 42 - case 50: - { - dataSchema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + tableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + gcsStagingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + input.readMessage( + getPartitionDateFieldBuilder().getBuilder(), + extensionRegistry); + partitionCase_ = 5; + break; + } // case 42 + case 50: { + dataSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -956,12 +892,12 @@ public Builder mergeFrom( } // finally return this; } - private int partitionCase_ = 0; private java.lang.Object partition_; - - public PartitionCase getPartitionCase() { - return PartitionCase.forNumber(partitionCase_); + public PartitionCase + getPartitionCase() { + return PartitionCase.forNumber( + partitionCase_); } public Builder clearPartition() { @@ -974,17 +910,13 @@ public Builder clearPartition() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - partitionDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> partitionDateBuilder_; /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
* * .google.type.Date partition_date = 5; - * * @return Whether the partitionDate field is set. */ @java.lang.Override @@ -992,14 +924,11 @@ public boolean hasPartitionDate() { return partitionCase_ == 5; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
* * .google.type.Date partition_date = 5; - * * @return The partitionDate. */ @java.lang.Override @@ -1017,8 +946,6 @@ public com.google.type.Date getPartitionDate() { } } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1039,15 +966,14 @@ public Builder setPartitionDate(com.google.type.Date value) { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
* * .google.type.Date partition_date = 5; */ - public Builder setPartitionDate(com.google.type.Date.Builder builderForValue) { + public Builder setPartitionDate( + com.google.type.Date.Builder builderForValue) { if (partitionDateBuilder_ == null) { partition_ = builderForValue.build(); onChanged(); @@ -1058,8 +984,6 @@ public Builder setPartitionDate(com.google.type.Date.Builder builderForValue) { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1068,11 +992,10 @@ public Builder setPartitionDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergePartitionDate(com.google.type.Date value) { if (partitionDateBuilder_ == null) { - if (partitionCase_ == 5 && partition_ != com.google.type.Date.getDefaultInstance()) { - partition_ = - com.google.type.Date.newBuilder((com.google.type.Date) partition_) - .mergeFrom(value) - .buildPartial(); + if (partitionCase_ == 5 && + partition_ != com.google.type.Date.getDefaultInstance()) { + partition_ = com.google.type.Date.newBuilder((com.google.type.Date) partition_) + .mergeFrom(value).buildPartial(); } else { partition_ = value; } @@ -1088,8 +1011,6 @@ public Builder mergePartitionDate(com.google.type.Date value) { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1113,8 +1034,6 @@ public Builder clearPartitionDate() { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1125,8 +1044,6 @@ public com.google.type.Date.Builder getPartitionDateBuilder() { return getPartitionDateFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1145,8 +1062,6 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { } } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1154,16 +1069,17 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { * .google.type.Date partition_date = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getPartitionDateFieldBuilder() { if (partitionDateBuilder_ == null) { if (!(partitionCase_ == 5)) { partition_ = com.google.type.Date.getDefaultInstance(); } - partitionDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - (com.google.type.Date) partition_, getParentForChildren(), isClean()); + partitionDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + (com.google.type.Date) partition_, + getParentForChildren(), + isClean()); partition_ = null; } partitionCase_ = 5; @@ -1173,8 +1089,6 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { private java.lang.Object projectId_ = ""; /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1182,13 +1096,13 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() {
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1197,8 +1111,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1206,14 +1118,15 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1221,8 +1134,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1230,22 +1141,18 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1253,7 +1160,6 @@ public Builder setProjectId(java.lang.String value) {
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1263,8 +1169,6 @@ public Builder clearProjectId() { return this; } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1272,14 +1176,12 @@ public Builder clearProjectId() {
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -1289,21 +1191,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object datasetId_ = ""; /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -1312,22 +1212,21 @@ public java.lang.String getDatasetId() { } } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -1335,37 +1234,30 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } datasetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -1375,22 +1267,18 @@ public Builder clearDatasetId() { return this; } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000004; @@ -1400,21 +1288,19 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object tableId_ = ""; /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tableId. */ public java.lang.String getTableId() { java.lang.Object ref = tableId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; @@ -1423,22 +1309,21 @@ public java.lang.String getTableId() { } } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tableId. */ - public com.google.protobuf.ByteString getTableIdBytes() { + public com.google.protobuf.ByteString + getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableId_ = b; return b; } else { @@ -1446,37 +1331,30 @@ public com.google.protobuf.ByteString getTableIdBytes() { } } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The tableId to set. * @return This builder for chaining. */ - public Builder setTableId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tableId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTableId() { @@ -1486,22 +1364,18 @@ public Builder clearTableId() { return this; } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for tableId to set. * @return This builder for chaining. */ - public Builder setTableIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableId_ = value; bitField0_ |= 0x00000008; @@ -1511,8 +1385,6 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcsStagingDir_ = ""; /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1520,13 +1392,13 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string gcs_staging_dir = 4; - * * @return The gcsStagingDir. */ public java.lang.String getGcsStagingDir() { java.lang.Object ref = gcsStagingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsStagingDir_ = s; return s; @@ -1535,8 +1407,6 @@ public java.lang.String getGcsStagingDir() { } } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1544,14 +1414,15 @@ public java.lang.String getGcsStagingDir() {
      * 
* * string gcs_staging_dir = 4; - * * @return The bytes for gcsStagingDir. */ - public com.google.protobuf.ByteString getGcsStagingDirBytes() { + public com.google.protobuf.ByteString + getGcsStagingDirBytes() { java.lang.Object ref = gcsStagingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsStagingDir_ = b; return b; } else { @@ -1559,8 +1430,6 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() { } } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1568,22 +1437,18 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() {
      * 
* * string gcs_staging_dir = 4; - * * @param value The gcsStagingDir to set. * @return This builder for chaining. */ - public Builder setGcsStagingDir(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsStagingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } gcsStagingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1591,7 +1456,6 @@ public Builder setGcsStagingDir(java.lang.String value) {
      * 
* * string gcs_staging_dir = 4; - * * @return This builder for chaining. */ public Builder clearGcsStagingDir() { @@ -1601,8 +1465,6 @@ public Builder clearGcsStagingDir() { return this; } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1610,14 +1472,12 @@ public Builder clearGcsStagingDir() {
      * 
* * string gcs_staging_dir = 4; - * * @param value The bytes for gcsStagingDir to set. * @return This builder for chaining. */ - public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsStagingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gcsStagingDir_ = value; bitField0_ |= 0x00000010; @@ -1627,8 +1487,6 @@ public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataSchema_ = ""; /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1652,13 +1510,13 @@ public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) {
      * 
* * string data_schema = 6; - * * @return The dataSchema. */ public java.lang.String getDataSchema() { java.lang.Object ref = dataSchema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; @@ -1667,8 +1525,6 @@ public java.lang.String getDataSchema() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1692,14 +1548,15 @@ public java.lang.String getDataSchema() {
      * 
* * string data_schema = 6; - * * @return The bytes for dataSchema. */ - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -1707,8 +1564,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1732,22 +1587,18 @@ public com.google.protobuf.ByteString getDataSchemaBytes() {
      * 
* * string data_schema = 6; - * * @param value The dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataSchema_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1771,7 +1622,6 @@ public Builder setDataSchema(java.lang.String value) {
      * 
* * string data_schema = 6; - * * @return This builder for chaining. */ public Builder clearDataSchema() { @@ -1781,8 +1631,6 @@ public Builder clearDataSchema() { return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1806,23 +1654,21 @@ public Builder clearDataSchema() {
      * 
* * string data_schema = 6; - * * @param value The bytes for dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSchema_ = value; bitField0_ |= 0x00000020; 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); } @@ -1832,12 +1678,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.BigQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.BigQuerySource) private static final com.google.cloud.discoveryengine.v1.BigQuerySource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.BigQuerySource(); } @@ -1846,27 +1692,27 @@ public static com.google.cloud.discoveryengine.v1.BigQuerySource getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQuerySource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1881,4 +1727,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.BigQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java similarity index 83% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java index 95537e16167d..fc7055e152fa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BigQuerySourceOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface BigQuerySourceOrBuilder - extends +public interface BigQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.BigQuerySource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return Whether the partitionDate field is set. */ boolean hasPartitionDate(); /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return The partitionDate. */ com.google.type.Date getPartitionDate(); /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
@@ -59,8 +35,6 @@ public interface BigQuerySourceOrBuilder com.google.type.DateOrBuilder getPartitionDateOrBuilder(); /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -68,13 +42,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -82,68 +53,56 @@ public interface BigQuerySourceOrBuilder
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ java.lang.String getDatasetId(); /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tableId. */ java.lang.String getTableId(); /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tableId. */ - com.google.protobuf.ByteString getTableIdBytes(); + com.google.protobuf.ByteString + getTableIdBytes(); /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -151,13 +110,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string gcs_staging_dir = 4; - * * @return The gcsStagingDir. */ java.lang.String getGcsStagingDir(); /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -165,14 +121,12 @@ public interface BigQuerySourceOrBuilder
    * 
* * string gcs_staging_dir = 4; - * * @return The bytes for gcsStagingDir. */ - com.google.protobuf.ByteString getGcsStagingDirBytes(); + com.google.protobuf.ByteString + getGcsStagingDirBytes(); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -196,13 +150,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string data_schema = 6; - * * @return The dataSchema. */ java.lang.String getDataSchema(); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -226,10 +177,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string data_schema = 6; - * * @return The bytes for dataSchema. */ - com.google.protobuf.ByteString getDataSchemaBytes(); + com.google.protobuf.ByteString + getDataSchemaBytes(); com.google.cloud.discoveryengine.v1.BigQuerySource.PartitionCase getPartitionCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java index 4f2c663179ec..7d7e2369e196 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for CollectUserEvent method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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,42 +27,35 @@ private CollectUserEventRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CollectUserEventRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CollectUserEventRequest.class, - com.google.cloud.discoveryengine.v1.CollectUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1.CollectUserEventRequest.class, com.google.cloud.discoveryengine.v1.CollectUserEventRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -89,32 +64,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 DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -123,19 +96,15 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int USER_EVENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object userEvent_ = ""; /** - * - * *
    * Required. URL encoded UserEvent proto with a length limit of 2,000,000
    * characters.
    * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ @java.lang.Override @@ -144,30 +113,30 @@ 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 with a length limit of 2,000,000
    * characters.
    * 
* * 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 { @@ -176,12 +145,9 @@ public com.google.protobuf.ByteString getUserEventBytes() { } public static final int URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getUserEventBytes() {
    * 
* * optional string uri = 3; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -198,8 +163,6 @@ public boolean hasUri() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -208,7 +171,6 @@ public boolean hasUri() {
    * 
* * optional string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -217,15 +179,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; } } /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -234,15 +195,16 @@ public java.lang.String getUri() {
    * 
* * optional string uri = 3; - * * @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 { @@ -253,8 +215,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int ETS_FIELD_NUMBER = 4; private long ets_ = 0L; /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -262,7 +222,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * optional int64 ets = 4; - * * @return Whether the ets field is set. */ @java.lang.Override @@ -270,8 +229,6 @@ public boolean hasEts() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -279,7 +236,6 @@ public boolean hasEts() {
    * 
* * optional int64 ets = 4; - * * @return The ets. */ @java.lang.Override @@ -288,7 +244,6 @@ public long getEts() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,7 +255,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_); } @@ -332,7 +288,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ets_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ets_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -342,23 +299,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.discoveryengine.v1.CollectUserEventRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CollectUserEventRequest other = - (com.google.cloud.discoveryengine.v1.CollectUserEventRequest) obj; + com.google.cloud.discoveryengine.v1.CollectUserEventRequest other = (com.google.cloud.discoveryengine.v1.CollectUserEventRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getUserEvent().equals(other.getUserEvent())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getUserEvent() + .equals(other.getUserEvent())) return false; if (hasUri() != other.hasUri()) return false; if (hasUri()) { - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; } if (hasEts() != other.hasEts()) return false; if (hasEts()) { - if (getEts() != other.getEts()) return false; + if (getEts() + != other.getEts()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -381,7 +341,8 @@ public int hashCode() { } if (hasEts()) { 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -389,136 +350,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.CollectUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.CollectUserEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.CollectUserEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CollectUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.CollectUserEventRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CollectUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CollectUserEventRequest 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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.CollectUserEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.CollectUserEventRequest) com.google.cloud.discoveryengine.v1.CollectUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CollectUserEventRequest.class, - com.google.cloud.discoveryengine.v1.CollectUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1.CollectUserEventRequest.class, com.google.cloud.discoveryengine.v1.CollectUserEventRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.CollectUserEventRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -531,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; } @java.lang.Override @@ -552,11 +508,8 @@ public com.google.cloud.discoveryengine.v1.CollectUserEventRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.CollectUserEventRequest buildPartial() { - com.google.cloud.discoveryengine.v1.CollectUserEventRequest result = - new com.google.cloud.discoveryengine.v1.CollectUserEventRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.CollectUserEventRequest result = new com.google.cloud.discoveryengine.v1.CollectUserEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -585,39 +538,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CollectUserEventR 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.discoveryengine.v1.CollectUserEventRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.CollectUserEventRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.CollectUserEventRequest)other); } else { super.mergeFrom(other); return this; @@ -625,8 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CollectUserEventRequest other) { - if (other == com.google.cloud.discoveryengine.v1.CollectUserEventRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.CollectUserEventRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -671,37 +622,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - userEvent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - ets_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userEvent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + ets_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,28 +657,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -741,24 +682,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -766,41 +704,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -810,24 +737,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -837,21 +758,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object userEvent_ = ""; /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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; @@ -860,22 +779,21 @@ public java.lang.String getUserEvent() { } } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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 { @@ -883,37 +801,30 @@ public com.google.protobuf.ByteString getUserEventBytes() { } } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserEvent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userEvent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUserEvent() { @@ -923,22 +834,18 @@ public Builder clearUserEvent() { return this; } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserEventBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userEvent_ = value; bitField0_ |= 0x00000002; @@ -948,8 +855,6 @@ public Builder setUserEventBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -958,15 +863,12 @@ public Builder setUserEventBytes(com.google.protobuf.ByteString value) {
      * 
* * optional string uri = 3; - * * @return Whether the uri field is set. */ public boolean hasUri() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -975,13 +877,13 @@ public boolean hasUri() {
      * 
* * optional string uri = 3; - * * @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; @@ -990,8 +892,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1000,14 +900,15 @@ public java.lang.String getUri() {
      * 
* * optional string uri = 3; - * * @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 { @@ -1015,8 +916,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1025,22 +924,18 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * optional string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1049,7 +944,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * optional string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1059,8 +953,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1069,14 +961,12 @@ public Builder clearUri() {
      * 
* * optional string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; @@ -1084,10 +974,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private long ets_; + private long ets_ ; /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1095,7 +983,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int64 ets = 4; - * * @return Whether the ets field is set. */ @java.lang.Override @@ -1103,8 +990,6 @@ public boolean hasEts() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1112,7 +997,6 @@ public boolean hasEts() {
      * 
* * optional int64 ets = 4; - * * @return The ets. */ @java.lang.Override @@ -1120,8 +1004,6 @@ public long getEts() { return ets_; } /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1129,7 +1011,6 @@ public long getEts() {
      * 
* * optional int64 ets = 4; - * * @param value The ets to set. * @return This builder for chaining. */ @@ -1141,8 +1022,6 @@ public Builder setEts(long value) { return this; } /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1150,7 +1029,6 @@ public Builder setEts(long value) {
      * 
* * optional int64 ets = 4; - * * @return This builder for chaining. */ public Builder clearEts() { @@ -1159,9 +1037,9 @@ public Builder clearEts() { 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); } @@ -1171,12 +1049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CollectUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CollectUserEventRequest) private static final com.google.cloud.discoveryengine.v1.CollectUserEventRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CollectUserEventRequest(); } @@ -1185,27 +1063,27 @@ public static com.google.cloud.discoveryengine.v1.CollectUserEventRequest getDef 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,4 +1098,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CollectUserEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java index 676dd22e9c11..d033ebcc6eb3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectUserEventRequestOrBuilder.java @@ -1,89 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event_service.proto package com.google.cloud.discoveryengine.v1; -public interface CollectUserEventRequestOrBuilder - extends +public interface CollectUserEventRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CollectUserEventRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 with a length limit of 2,000,000
    * characters.
    * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ java.lang.String getUserEvent(); /** - * - * *
    * Required. URL encoded UserEvent proto with a length limit of 2,000,000
    * characters.
    * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userEvent. */ - com.google.protobuf.ByteString getUserEventBytes(); + com.google.protobuf.ByteString + getUserEventBytes(); /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -92,13 +60,10 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional string uri = 3; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -107,13 +72,10 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -122,14 +84,12 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -137,13 +97,10 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional int64 ets = 4; - * * @return Whether the ets field is set. */ boolean hasEts(); /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -151,7 +108,6 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional int64 ets = 4; - * * @return The ets. */ long getEts(); diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java new file mode 100644 index 000000000000..109a91507e54 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/common.proto + +package com.google.cloud.discoveryengine.v1; + +public final class CommonProto { + private CommonProto() {} + 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_discoveryengine_v1_Interval_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UserInfo_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/discoveryengine/v1/common" + + ".proto\022\037google.cloud.discoveryengine.v1\032" + + "\031google/api/resource.proto\"x\n\010Interval\022\021" + + "\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive_minimum\030\002" + + " \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_m" + + "aximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"0\n\017CustomAt" + + "tribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\"/" + + "\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nuser_agen" + + "t\030\002 \001(\tB\276\007\n#com.google.cloud.discoveryen" + + "gine.v1B\013CommonProtoP\001ZMcloud.google.com" + + "/go/discoveryengine/apiv1/discoveryengin" + + "epb;discoveryenginepb\242\002\017DISCOVERYENGINE\252" + + "\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Goog" + + "le\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cl" + + "oud::DiscoveryEngine::V1\352A\346\001\n%discoverye" + + "ngine.googleapis.com/Branch\022Qprojects/{p" + + "roject}/locations/{location}/dataStores/" + + "{data_store}/branches/{branch}\022jprojects" + + "/{project}/locations/{location}/collecti" + + "ons/{collection}/dataStores/{data_store}" + + "/branches/{branch}\352A\305\001\n(discoveryengine." + + "googleapis.com/DataStore\022?projects/{proj" + + "ect}/locations/{location}/dataStores/{da" + + "ta_store}\022Xprojects/{project}/locations/" + + "{location}/collections/{collection}/data" + + "Stores/{data_store}\352A\211\002\n,discoveryengine" + + ".googleapis.com/ServingConfig\022_projects/" + + "{project}/locations/{location}/dataStore" + + "s/{data_store}/servingConfigs/{serving_c" + + "onfig}\022xprojects/{project}/locations/{lo" + + "cation}/collections/{collection}/dataSto" + + "res/{data_store}/servingConfigs/{serving" + + "_config}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_Interval_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Interval_descriptor, + new java.lang.String[] { "Minimum", "ExclusiveMinimum", "Maximum", "ExclusiveMaximum", "Min", "Max", }); + internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor, + new java.lang.String[] { "Text", "Numbers", }); + internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor, + new java.lang.String[] { "UserId", "UserAgent", }); + 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java index 70096c39a86b..d31642cc766e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/completion_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.CompleteQueryRequest}
  */
-public final class CompleteQueryRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CompleteQueryRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CompleteQueryRequest)
     CompleteQueryRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CompleteQueryRequest.newBuilder() to construct.
   private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CompleteQueryRequest() {
     dataStore_ = "";
     query_ = "";
@@ -48,42 +30,35 @@ private CompleteQueryRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CompleteQueryRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.CompleteQueryRequest.class,
-            com.google.cloud.discoveryengine.v1.CompleteQueryRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.CompleteQueryRequest.class, com.google.cloud.discoveryengine.v1.CompleteQueryRequest.Builder.class);
   }
 
   public static final int DATA_STORE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object dataStore_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataStore. */ @java.lang.Override @@ -92,33 +67,31 @@ public java.lang.String getDataStore() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataStore_ = s; return s; } } /** - * - * *
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataStore. */ @java.lang.Override - public com.google.protobuf.ByteString getDataStoreBytes() { + public com.google.protobuf.ByteString + getDataStoreBytes() { java.lang.Object ref = dataStore_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataStore_ = b; return b; } else { @@ -127,19 +100,15 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } public static final int QUERY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ @java.lang.Override @@ -148,30 +117,30 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -180,12 +149,9 @@ public com.google.protobuf.ByteString getQueryBytes() { } public static final int QUERY_MODEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object queryModel_ = ""; /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -207,7 +173,6 @@ public com.google.protobuf.ByteString getQueryBytes() {
    * 
* * string query_model = 3; - * * @return The queryModel. */ @java.lang.Override @@ -216,15 +181,14 @@ public java.lang.String getQueryModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryModel_ = s; return s; } } /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -246,15 +210,16 @@ public java.lang.String getQueryModel() {
    * 
* * string query_model = 3; - * * @return The bytes for queryModel. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryModelBytes() { + public com.google.protobuf.ByteString + getQueryModelBytes() { java.lang.Object ref = queryModel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryModel_ = b; return b; } else { @@ -263,12 +228,9 @@ public com.google.protobuf.ByteString getQueryModelBytes() { } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -287,7 +249,6 @@ public com.google.protobuf.ByteString getQueryModelBytes() {
    * 
* * string user_pseudo_id = 4; - * * @return The userPseudoId. */ @java.lang.Override @@ -296,15 +257,14 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -323,15 +283,16 @@ public java.lang.String getUserPseudoId() {
    * 
* * string user_pseudo_id = 4; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -342,8 +303,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { public static final int INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER = 5; private boolean includeTailSuggestions_ = false; /** - * - * *
    * Indicates if tail suggestions should be returned if there are no
    * suggestions that match the full query. Even if set to true, if there are
@@ -352,7 +311,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
    * 
* * bool include_tail_suggestions = 5; - * * @return The includeTailSuggestions. */ @java.lang.Override @@ -361,7 +319,6 @@ public boolean getIncludeTailSuggestions() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,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(dataStore_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); } @@ -411,7 +369,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userPseudoId_); } if (includeTailSuggestions_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeTailSuggestions_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, includeTailSuggestions_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -421,19 +380,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.discoveryengine.v1.CompleteQueryRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CompleteQueryRequest other = - (com.google.cloud.discoveryengine.v1.CompleteQueryRequest) obj; - - if (!getDataStore().equals(other.getDataStore())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (!getQueryModel().equals(other.getQueryModel())) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; - if (getIncludeTailSuggestions() != other.getIncludeTailSuggestions()) return false; + com.google.cloud.discoveryengine.v1.CompleteQueryRequest other = (com.google.cloud.discoveryengine.v1.CompleteQueryRequest) obj; + + if (!getDataStore() + .equals(other.getDataStore())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getQueryModel() + .equals(other.getQueryModel())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (getIncludeTailSuggestions() + != other.getIncludeTailSuggestions()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -454,111 +417,106 @@ public int hashCode() { hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; hash = (53 * hash) + getUserPseudoId().hashCode(); hash = (37 * hash) + INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeTailSuggestions()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeTailSuggestions()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest 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.discoveryengine.v1.CompleteQueryRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CompleteQueryRequest 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
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
@@ -567,32 +525,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.CompleteQueryRequest}
    */
-  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.discoveryengine.v1.CompleteQueryRequest)
       com.google.cloud.discoveryengine.v1.CompleteQueryRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.CompleteQueryRequest.class,
-              com.google.cloud.discoveryengine.v1.CompleteQueryRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.CompleteQueryRequest.class, com.google.cloud.discoveryengine.v1.CompleteQueryRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.CompleteQueryRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -606,9 +565,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor;
     }
 
     @java.lang.Override
@@ -627,11 +586,8 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.CompleteQueryRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.CompleteQueryRequest result =
-          new com.google.cloud.discoveryengine.v1.CompleteQueryRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.CompleteQueryRequest result = new com.google.cloud.discoveryengine.v1.CompleteQueryRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -659,39 +615,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CompleteQueryRequ
     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.discoveryengine.v1.CompleteQueryRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.CompleteQueryRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.CompleteQueryRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -699,8 +654,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CompleteQueryRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.CompleteQueryRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.CompleteQueryRequest.getDefaultInstance()) return this;
       if (!other.getDataStore().isEmpty()) {
         dataStore_ = other.dataStore_;
         bitField0_ |= 0x00000001;
@@ -750,43 +704,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                dataStore_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                query_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                queryModel_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                userPseudoId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                includeTailSuggestions_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              dataStore_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              query_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              queryModel_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              userPseudoId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              includeTailSuggestions_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -796,29 +744,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object dataStore_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataStore. */ public java.lang.String getDataStore() { java.lang.Object ref = dataStore_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataStore_ = s; return s; @@ -827,25 +770,22 @@ public java.lang.String getDataStore() { } } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataStore. */ - public com.google.protobuf.ByteString getDataStoreBytes() { + public com.google.protobuf.ByteString + getDataStoreBytes() { java.lang.Object ref = dataStore_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataStore_ = b; return b; } else { @@ -853,43 +793,32 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The dataStore to set. * @return This builder for chaining. */ - public Builder setDataStore(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataStore( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataStore_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDataStore() { @@ -899,25 +828,19 @@ public Builder clearDataStore() { return this; } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for dataStore to set. * @return This builder for chaining. */ - public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataStoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataStore_ = value; bitField0_ |= 0x00000001; @@ -927,21 +850,19 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -950,22 +871,21 @@ public java.lang.String getQuery() { } } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -973,37 +893,30 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearQuery() { @@ -1013,22 +926,18 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000002; @@ -1038,8 +947,6 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { private java.lang.Object queryModel_ = ""; /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1061,13 +968,13 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * string query_model = 3; - * * @return The queryModel. */ public java.lang.String getQueryModel() { java.lang.Object ref = queryModel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryModel_ = s; return s; @@ -1076,8 +983,6 @@ public java.lang.String getQueryModel() { } } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1099,14 +1004,15 @@ public java.lang.String getQueryModel() {
      * 
* * string query_model = 3; - * * @return The bytes for queryModel. */ - public com.google.protobuf.ByteString getQueryModelBytes() { + public com.google.protobuf.ByteString + getQueryModelBytes() { java.lang.Object ref = queryModel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryModel_ = b; return b; } else { @@ -1114,8 +1020,6 @@ public com.google.protobuf.ByteString getQueryModelBytes() { } } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1137,22 +1041,18 @@ public com.google.protobuf.ByteString getQueryModelBytes() {
      * 
* * string query_model = 3; - * * @param value The queryModel to set. * @return This builder for chaining. */ - public Builder setQueryModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } queryModel_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1174,7 +1074,6 @@ public Builder setQueryModel(java.lang.String value) {
      * 
* * string query_model = 3; - * * @return This builder for chaining. */ public Builder clearQueryModel() { @@ -1184,8 +1083,6 @@ public Builder clearQueryModel() { return this; } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1207,14 +1104,12 @@ public Builder clearQueryModel() {
      * 
* * string query_model = 3; - * * @param value The bytes for queryModel to set. * @return This builder for chaining. */ - public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryModel_ = value; bitField0_ |= 0x00000004; @@ -1224,8 +1119,6 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1244,13 +1137,13 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string user_pseudo_id = 4; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -1259,8 +1152,6 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1279,14 +1170,15 @@ public java.lang.String getUserPseudoId() {
      * 
* * string user_pseudo_id = 4; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -1294,8 +1186,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1314,22 +1204,18 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * 
* * string user_pseudo_id = 4; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1348,7 +1234,6 @@ public Builder setUserPseudoId(java.lang.String value) {
      * 
* * string user_pseudo_id = 4; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -1358,8 +1243,6 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1378,14 +1261,12 @@ public Builder clearUserPseudoId() {
      * 
* * string user_pseudo_id = 4; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00000008; @@ -1393,10 +1274,8 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean includeTailSuggestions_; + private boolean includeTailSuggestions_ ; /** - * - * *
      * Indicates if tail suggestions should be returned if there are no
      * suggestions that match the full query. Even if set to true, if there are
@@ -1405,7 +1284,6 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool include_tail_suggestions = 5; - * * @return The includeTailSuggestions. */ @java.lang.Override @@ -1413,8 +1291,6 @@ public boolean getIncludeTailSuggestions() { return includeTailSuggestions_; } /** - * - * *
      * Indicates if tail suggestions should be returned if there are no
      * suggestions that match the full query. Even if set to true, if there are
@@ -1423,7 +1299,6 @@ public boolean getIncludeTailSuggestions() {
      * 
* * bool include_tail_suggestions = 5; - * * @param value The includeTailSuggestions to set. * @return This builder for chaining. */ @@ -1435,8 +1310,6 @@ public Builder setIncludeTailSuggestions(boolean value) { return this; } /** - * - * *
      * Indicates if tail suggestions should be returned if there are no
      * suggestions that match the full query. Even if set to true, if there are
@@ -1445,7 +1318,6 @@ public Builder setIncludeTailSuggestions(boolean value) {
      * 
* * bool include_tail_suggestions = 5; - * * @return This builder for chaining. */ public Builder clearIncludeTailSuggestions() { @@ -1454,9 +1326,9 @@ public Builder clearIncludeTailSuggestions() { 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); } @@ -1466,12 +1338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CompleteQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CompleteQueryRequest) private static final com.google.cloud.discoveryengine.v1.CompleteQueryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CompleteQueryRequest(); } @@ -1480,27 +1352,27 @@ public static com.google.cloud.discoveryengine.v1.CompleteQueryRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1515,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CompleteQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java similarity index 81% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java index 804094108a3f..890e0edabf56 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java @@ -1,91 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/completion_service.proto package com.google.cloud.discoveryengine.v1; -public interface CompleteQueryRequestOrBuilder - extends +public interface CompleteQueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CompleteQueryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataStore. */ java.lang.String getDataStore(); /** - * - * *
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataStore. */ - com.google.protobuf.ByteString getDataStoreBytes(); + com.google.protobuf.ByteString + getDataStoreBytes(); /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -107,13 +75,10 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string query_model = 3; - * * @return The queryModel. */ java.lang.String getQueryModel(); /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -135,14 +100,12 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string query_model = 3; - * * @return The bytes for queryModel. */ - com.google.protobuf.ByteString getQueryModelBytes(); + com.google.protobuf.ByteString + getQueryModelBytes(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -161,13 +124,10 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string user_pseudo_id = 4; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -186,14 +146,12 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string user_pseudo_id = 4; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * Indicates if tail suggestions should be returned if there are no
    * suggestions that match the full query. Even if set to true, if there are
@@ -202,7 +160,6 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * bool include_tail_suggestions = 5; - * * @return The includeTailSuggestions. */ boolean getIncludeTailSuggestions(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java index ae4b9b340a05..ba44faecaf91 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/completion_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response message for
  * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
@@ -29,129 +12,112 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.CompleteQueryResponse}
  */
-public final class CompleteQueryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CompleteQueryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CompleteQueryResponse)
     CompleteQueryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CompleteQueryResponse.newBuilder() to construct.
   private CompleteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CompleteQueryResponse() {
     querySuggestions_ = 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 CompleteQueryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.class,
-            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.class, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.Builder.class);
   }
 
-  public interface QuerySuggestionOrBuilder
-      extends
+  public interface QuerySuggestionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The suggestion. */ java.lang.String getSuggestion(); /** - * - * *
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The bytes for suggestion. */ - com.google.protobuf.ByteString getSuggestionBytes(); + com.google.protobuf.ByteString + getSuggestionBytes(); } /** - * - * *
    * Suggestions as search queries.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion} */ - public static final class QuerySuggestion extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QuerySuggestion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) QuerySuggestionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QuerySuggestion.newBuilder() to construct. private QuerySuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QuerySuggestion() { suggestion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QuerySuggestion(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.class, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - .class); + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.class, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder.class); } public static final int SUGGESTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object suggestion_ = ""; /** - * - * *
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The suggestion. */ @java.lang.Override @@ -160,29 +126,29 @@ public java.lang.String getSuggestion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); suggestion_ = s; return s; } } /** - * - * *
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The bytes for suggestion. */ @java.lang.Override - public com.google.protobuf.ByteString getSuggestionBytes() { + public com.google.protobuf.ByteString + getSuggestionBytes() { java.lang.Object ref = suggestion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); suggestion_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getSuggestionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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(suggestion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); } @@ -227,16 +193,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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion other = - (com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) obj; + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion other = (com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) obj; - if (!getSuggestion().equals(other.getSuggestion())) return false; + if (!getSuggestion() + .equals(other.getSuggestion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,101 +220,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - 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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - 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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion 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 @@ -359,43 +313,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Suggestions as search queries.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion} */ - 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.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.class, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - .class); + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.class, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,22 +355,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion build() { - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion result = - buildPartial(); + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -428,19 +375,14 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion } @java.lang.Override - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - buildPartial() { - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion result = - new com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion buildPartial() { + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion result = new com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.suggestion_ = suggestion_; @@ -451,54 +393,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) other); + if (other instanceof com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) { + return mergeFrom((com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion other) { - if (other - == com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion other) { + if (other == com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()) return this; if (!other.getSuggestion().isEmpty()) { suggestion_ = other.suggestion_; bitField0_ |= 0x00000001; @@ -530,19 +464,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - suggestion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,25 +484,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object suggestion_ = ""; /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @return The suggestion. */ public java.lang.String getSuggestion() { java.lang.Object ref = suggestion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); suggestion_ = s; return s; @@ -579,21 +508,20 @@ public java.lang.String getSuggestion() { } } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @return The bytes for suggestion. */ - public com.google.protobuf.ByteString getSuggestionBytes() { + public com.google.protobuf.ByteString + getSuggestionBytes() { java.lang.Object ref = suggestion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); suggestion_ = b; return b; } else { @@ -601,35 +529,28 @@ public com.google.protobuf.ByteString getSuggestionBytes() { } } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @param value The suggestion to set. * @return This builder for chaining. */ - public Builder setSuggestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSuggestion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } suggestion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @return This builder for chaining. */ public Builder clearSuggestion() { @@ -639,28 +560,23 @@ public Builder clearSuggestion() { return this; } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @param value The bytes for suggestion to set. * @return This builder for chaining. */ - public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSuggestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); suggestion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -673,45 +589,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion) - private static final com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion(); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySuggestion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuerySuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,109 +635,81 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int QUERY_SUGGESTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - querySuggestions_; + private java.util.List querySuggestions_; /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public java.util.List - getQuerySuggestionsList() { + public java.util.List getQuerySuggestionsList() { return querySuggestions_; } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder> + public java.util.List getQuerySuggestionsOrBuilderList() { return querySuggestions_; } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override public int getQuerySuggestionsCount() { return querySuggestions_.size(); } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - getQuerySuggestions(int index) { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index) { return querySuggestions_.get(index); } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder - getQuerySuggestionsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index) { return querySuggestions_.get(index); } public static final int TAIL_MATCH_TRIGGERED_FIELD_NUMBER = 2; private boolean tailMatchTriggered_ = false; /** - * - * *
    * True if the returned suggestions are all tail suggestions.
    *
@@ -834,7 +718,6 @@ public int getQuerySuggestionsCount() {
    * 
* * bool tail_match_triggered = 2; - * * @return The tailMatchTriggered. */ @java.lang.Override @@ -843,7 +726,6 @@ public boolean getTailMatchTriggered() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -855,7 +737,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 < querySuggestions_.size(); i++) { output.writeMessage(1, querySuggestions_.get(i)); } @@ -872,10 +755,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < querySuggestions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, querySuggestions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, querySuggestions_.get(i)); } if (tailMatchTriggered_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, tailMatchTriggered_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, tailMatchTriggered_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -885,16 +770,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.discoveryengine.v1.CompleteQueryResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CompleteQueryResponse other = - (com.google.cloud.discoveryengine.v1.CompleteQueryResponse) obj; + com.google.cloud.discoveryengine.v1.CompleteQueryResponse other = (com.google.cloud.discoveryengine.v1.CompleteQueryResponse) obj; - if (!getQuerySuggestionsList().equals(other.getQuerySuggestionsList())) return false; - if (getTailMatchTriggered() != other.getTailMatchTriggered()) return false; + if (!getQuerySuggestionsList() + .equals(other.getQuerySuggestionsList())) return false; + if (getTailMatchTriggered() + != other.getTailMatchTriggered()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -911,111 +797,106 @@ public int hashCode() { hash = (53 * hash) + getQuerySuggestionsList().hashCode(); } hash = (37 * hash) + TAIL_MATCH_TRIGGERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTailMatchTriggered()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTailMatchTriggered()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse 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.discoveryengine.v1.CompleteQueryResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CompleteQueryResponse 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
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
@@ -1024,32 +905,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.CompleteQueryResponse}
    */
-  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.discoveryengine.v1.CompleteQueryResponse)
       com.google.cloud.discoveryengine.v1.CompleteQueryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.CompleteQueryResponse.class,
-              com.google.cloud.discoveryengine.v1.CompleteQueryResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.CompleteQueryResponse.class, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.CompleteQueryResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1066,9 +948,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor;
     }
 
     @java.lang.Override
@@ -1087,18 +969,14 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.CompleteQueryResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.CompleteQueryResponse result =
-          new com.google.cloud.discoveryengine.v1.CompleteQueryResponse(this);
+      com.google.cloud.discoveryengine.v1.CompleteQueryResponse result = new com.google.cloud.discoveryengine.v1.CompleteQueryResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.CompleteQueryResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.CompleteQueryResponse result) {
       if (querySuggestionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           querySuggestions_ = java.util.Collections.unmodifiableList(querySuggestions_);
@@ -1121,39 +999,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CompleteQueryResp
     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.discoveryengine.v1.CompleteQueryResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.CompleteQueryResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.CompleteQueryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1161,8 +1038,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CompleteQueryResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1.CompleteQueryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.CompleteQueryResponse.getDefaultInstance()) return this;
       if (querySuggestionsBuilder_ == null) {
         if (!other.querySuggestions_.isEmpty()) {
           if (querySuggestions_.isEmpty()) {
@@ -1181,10 +1057,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CompleteQueryRespon
             querySuggestionsBuilder_ = null;
             querySuggestions_ = other.querySuggestions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            querySuggestionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getQuerySuggestionsFieldBuilder()
-                    : null;
+            querySuggestionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getQuerySuggestionsFieldBuilder() : null;
           } else {
             querySuggestionsBuilder_.addAllMessages(other.querySuggestions_);
           }
@@ -1219,34 +1094,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion
-                            .parser(),
-                        extensionRegistry);
-                if (querySuggestionsBuilder_ == null) {
-                  ensureQuerySuggestionsIsMutable();
-                  querySuggestions_.add(m);
-                } else {
-                  querySuggestionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                tailMatchTriggered_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.parser(),
+                      extensionRegistry);
+              if (querySuggestionsBuilder_ == null) {
+                ensureQuerySuggestionsIsMutable();
+                querySuggestions_.add(m);
+              } else {
+                querySuggestionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              tailMatchTriggered_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1256,43 +1127,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List<
-            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion>
-        querySuggestions_ = java.util.Collections.emptyList();
-
+    private java.util.List querySuggestions_ =
+      java.util.Collections.emptyList();
     private void ensureQuerySuggestionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        querySuggestions_ =
-            new java.util.ArrayList<
-                com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion>(
-                querySuggestions_);
+        querySuggestions_ = new java.util.ArrayList(querySuggestions_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion,
-            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder,
-            com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder>
-        querySuggestionsBuilder_;
+        com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder> querySuggestionsBuilder_;
 
     /**
-     *
-     *
      * 
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public java.util.List - getQuerySuggestionsList() { + public java.util.List getQuerySuggestionsList() { if (querySuggestionsBuilder_ == null) { return java.util.Collections.unmodifiableList(querySuggestions_); } else { @@ -1300,16 +1157,12 @@ private void ensureQuerySuggestionsIsMutable() { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public int getQuerySuggestionsCount() { if (querySuggestionsBuilder_ == null) { @@ -1319,19 +1172,14 @@ public int getQuerySuggestionsCount() { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - getQuerySuggestions(int index) { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index) { if (querySuggestionsBuilder_ == null) { return querySuggestions_.get(index); } else { @@ -1339,20 +1187,15 @@ public int getQuerySuggestionsCount() { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder setQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion value) { + int index, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion value) { if (querySuggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1366,21 +1209,15 @@ public Builder setQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder setQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); querySuggestions_.set(index, builderForValue.build()); @@ -1391,19 +1228,14 @@ public Builder setQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public Builder addQuerySuggestions( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion value) { + public Builder addQuerySuggestions(com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion value) { if (querySuggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1417,20 +1249,15 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion value) { + int index, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion value) { if (querySuggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1444,20 +1271,15 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addQuerySuggestions( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); querySuggestions_.add(builderForValue.build()); @@ -1468,21 +1290,15 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); querySuggestions_.add(index, builderForValue.build()); @@ -1493,24 +1309,19 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addAllQuerySuggestions( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion> - values) { + java.lang.Iterable values) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, querySuggestions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, querySuggestions_); onChanged(); } else { querySuggestionsBuilder_.addAllMessages(values); @@ -1518,16 +1329,12 @@ public Builder addAllQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder clearQuerySuggestions() { if (querySuggestionsBuilder_ == null) { @@ -1540,16 +1347,12 @@ public Builder clearQuerySuggestions() { return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder removeQuerySuggestions(int index) { if (querySuggestionsBuilder_ == null) { @@ -1562,57 +1365,42 @@ public Builder removeQuerySuggestions(int index) { return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - getQuerySuggestionsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder getQuerySuggestionsBuilder( + int index) { return getQuerySuggestionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder - getQuerySuggestionsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index) { if (querySuggestionsBuilder_ == null) { - return querySuggestions_.get(index); - } else { + return querySuggestions_.get(index); } else { return querySuggestionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder> - getQuerySuggestionsOrBuilderList() { + public java.util.List + getQuerySuggestionsOrBuilderList() { if (querySuggestionsBuilder_ != null) { return querySuggestionsBuilder_.getMessageOrBuilderList(); } else { @@ -1620,73 +1408,48 @@ public Builder removeQuerySuggestions(int index) { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - addQuerySuggestionsBuilder() { - return getQuerySuggestionsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder() { + return getQuerySuggestionsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()); } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder - addQuerySuggestionsBuilder(int index) { - return getQuerySuggestionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder( + int index) { + return getQuerySuggestionsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()); } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder> - getQuerySuggestionsBuilderList() { + public java.util.List + getQuerySuggestionsBuilderList() { return getQuerySuggestionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder> + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder> getQuerySuggestionsFieldBuilder() { if (querySuggestionsBuilder_ == null) { - querySuggestionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder, - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder>( + querySuggestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder>( querySuggestions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1696,10 +1459,8 @@ public Builder removeQuerySuggestions(int index) { return querySuggestionsBuilder_; } - private boolean tailMatchTriggered_; + private boolean tailMatchTriggered_ ; /** - * - * *
      * True if the returned suggestions are all tail suggestions.
      *
@@ -1708,7 +1469,6 @@ public Builder removeQuerySuggestions(int index) {
      * 
* * bool tail_match_triggered = 2; - * * @return The tailMatchTriggered. */ @java.lang.Override @@ -1716,8 +1476,6 @@ public boolean getTailMatchTriggered() { return tailMatchTriggered_; } /** - * - * *
      * True if the returned suggestions are all tail suggestions.
      *
@@ -1726,7 +1484,6 @@ public boolean getTailMatchTriggered() {
      * 
* * bool tail_match_triggered = 2; - * * @param value The tailMatchTriggered to set. * @return This builder for chaining. */ @@ -1738,8 +1495,6 @@ public Builder setTailMatchTriggered(boolean value) { return this; } /** - * - * *
      * True if the returned suggestions are all tail suggestions.
      *
@@ -1748,7 +1503,6 @@ public Builder setTailMatchTriggered(boolean value) {
      * 
* * bool tail_match_triggered = 2; - * * @return This builder for chaining. */ public Builder clearTailMatchTriggered() { @@ -1757,9 +1511,9 @@ public Builder clearTailMatchTriggered() { 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); } @@ -1769,12 +1523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CompleteQueryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CompleteQueryResponse) private static final com.google.cloud.discoveryengine.v1.CompleteQueryResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CompleteQueryResponse(); } @@ -1783,27 +1537,27 @@ public static com.google.cloud.discoveryengine.v1.CompleteQueryResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteQueryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1818,4 +1572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CompleteQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java similarity index 52% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java index a5fa3af97e82..284102b97e64 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryResponseOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/completion_service.proto package com.google.cloud.discoveryengine.v1; -public interface CompleteQueryResponseOrBuilder - extends +public interface CompleteQueryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CompleteQueryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - java.util.List + java.util.List getQuerySuggestionsList(); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getQuerySuggestions( - int index); + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ int getQuerySuggestionsCount(); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder> + java.util.List getQuerySuggestionsOrBuilderList(); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder - getQuerySuggestionsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index); /** - * - * *
    * True if the returned suggestions are all tail suggestions.
    *
@@ -106,7 +65,6 @@ com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getQue
    * 
* * bool tail_match_triggered = 2; - * * @return The tailMatchTriggered. */ boolean getTailMatchTriggered(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java index ace0d801e2e4..50ac4c031325 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Detailed completion information including completion attribution token and
  * clicked completion info.
@@ -28,55 +11,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.CompletionInfo}
  */
-public final class CompletionInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CompletionInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CompletionInfo)
     CompletionInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CompletionInfo.newBuilder() to construct.
   private CompletionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CompletionInfo() {
     selectedSuggestion_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CompletionInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.CompletionInfo.class,
-            com.google.cloud.discoveryengine.v1.CompletionInfo.Builder.class);
+            com.google.cloud.discoveryengine.v1.CompletionInfo.class, com.google.cloud.discoveryengine.v1.CompletionInfo.Builder.class);
   }
 
   public static final int SELECTED_SUGGESTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object selectedSuggestion_ = "";
   /**
-   *
-   *
    * 
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The selectedSuggestion. */ @java.lang.Override @@ -85,30 +62,30 @@ public java.lang.String getSelectedSuggestion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selectedSuggestion_ = s; return s; } } /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The bytes for selectedSuggestion. */ @java.lang.Override - public com.google.protobuf.ByteString getSelectedSuggestionBytes() { + public com.google.protobuf.ByteString + getSelectedSuggestionBytes() { java.lang.Object ref = selectedSuggestion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); selectedSuggestion_ = b; return b; } else { @@ -119,8 +96,6 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() { public static final int SELECTED_POSITION_FIELD_NUMBER = 2; private int selectedPosition_ = 0; /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -128,7 +103,6 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() {
    * 
* * int32 selected_position = 2; - * * @return The selectedPosition. */ @java.lang.Override @@ -137,7 +111,6 @@ public int getSelectedPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +122,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(selectedSuggestion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedSuggestion_); } @@ -169,7 +143,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selectedSuggestion_); } if (selectedPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, selectedPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, selectedPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,16 +154,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.discoveryengine.v1.CompletionInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CompletionInfo other = - (com.google.cloud.discoveryengine.v1.CompletionInfo) obj; + com.google.cloud.discoveryengine.v1.CompletionInfo other = (com.google.cloud.discoveryengine.v1.CompletionInfo) obj; - if (!getSelectedSuggestion().equals(other.getSelectedSuggestion())) return false; - if (getSelectedPosition() != other.getSelectedPosition()) return false; + if (!getSelectedSuggestion() + .equals(other.getSelectedSuggestion())) return false; + if (getSelectedPosition() + != other.getSelectedPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,103 +186,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CompletionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CompletionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompletionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CompletionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo 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.discoveryengine.v1.CompletionInfo 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 completion information including completion attribution token and
    * clicked completion info.
@@ -314,32 +285,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.CompletionInfo}
    */
-  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.discoveryengine.v1.CompletionInfo)
       com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.CompletionInfo.class,
-              com.google.cloud.discoveryengine.v1.CompletionInfo.Builder.class);
+              com.google.cloud.discoveryengine.v1.CompletionInfo.class, com.google.cloud.discoveryengine.v1.CompletionInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.CompletionInfo.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,9 +322,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor;
     }
 
     @java.lang.Override
@@ -371,11 +343,8 @@ public com.google.cloud.discoveryengine.v1.CompletionInfo build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.CompletionInfo buildPartial() {
-      com.google.cloud.discoveryengine.v1.CompletionInfo result =
-          new com.google.cloud.discoveryengine.v1.CompletionInfo(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.CompletionInfo result = new com.google.cloud.discoveryengine.v1.CompletionInfo(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -394,39 +363,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CompletionInfo re
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.CompletionInfo) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.CompletionInfo) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.CompletionInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -434,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CompletionInfo other) {
-      if (other == com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance()) return this;
       if (!other.getSelectedSuggestion().isEmpty()) {
         selectedSuggestion_ = other.selectedSuggestion_;
         bitField0_ |= 0x00000001;
@@ -470,25 +437,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                selectedSuggestion_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                selectedPosition_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              selectedSuggestion_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              selectedPosition_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -498,26 +462,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object selectedSuggestion_ = "";
     /**
-     *
-     *
      * 
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @return The selectedSuggestion. */ public java.lang.String getSelectedSuggestion() { java.lang.Object ref = selectedSuggestion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selectedSuggestion_ = s; return s; @@ -526,22 +487,21 @@ public java.lang.String getSelectedSuggestion() { } } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @return The bytes for selectedSuggestion. */ - public com.google.protobuf.ByteString getSelectedSuggestionBytes() { + public com.google.protobuf.ByteString + getSelectedSuggestionBytes() { java.lang.Object ref = selectedSuggestion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); selectedSuggestion_ = b; return b; } else { @@ -549,37 +509,30 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() { } } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @param value The selectedSuggestion to set. * @return This builder for chaining. */ - public Builder setSelectedSuggestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedSuggestion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } selectedSuggestion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @return This builder for chaining. */ public Builder clearSelectedSuggestion() { @@ -589,22 +542,18 @@ public Builder clearSelectedSuggestion() { return this; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @param value The bytes for selectedSuggestion to set. * @return This builder for chaining. */ - public Builder setSelectedSuggestionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedSuggestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selectedSuggestion_ = value; bitField0_ |= 0x00000001; @@ -612,10 +561,8 @@ public Builder setSelectedSuggestionBytes(com.google.protobuf.ByteString value) return this; } - private int selectedPosition_; + private int selectedPosition_ ; /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -623,7 +570,6 @@ public Builder setSelectedSuggestionBytes(com.google.protobuf.ByteString value)
      * 
* * int32 selected_position = 2; - * * @return The selectedPosition. */ @java.lang.Override @@ -631,8 +577,6 @@ public int getSelectedPosition() { return selectedPosition_; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -640,7 +584,6 @@ public int getSelectedPosition() {
      * 
* * int32 selected_position = 2; - * * @param value The selectedPosition to set. * @return This builder for chaining. */ @@ -652,8 +595,6 @@ public Builder setSelectedPosition(int value) { return this; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -661,7 +602,6 @@ public Builder setSelectedPosition(int value) {
      * 
* * int32 selected_position = 2; - * * @return This builder for chaining. */ public Builder clearSelectedPosition() { @@ -670,9 +610,9 @@ public Builder clearSelectedPosition() { 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); } @@ -682,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CompletionInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CompletionInfo) private static final com.google.cloud.discoveryengine.v1.CompletionInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CompletionInfo(); } @@ -696,27 +636,27 @@ public static com.google.cloud.discoveryengine.v1.CompletionInfo getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompletionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -731,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CompletionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java similarity index 63% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java index 1eb58fbd6952..2d78c6d131ae 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface CompletionInfoOrBuilder - extends +public interface CompletionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CompletionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The selectedSuggestion. */ java.lang.String getSelectedSuggestion(); /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The bytes for selectedSuggestion. */ - com.google.protobuf.ByteString getSelectedSuggestionBytes(); + com.google.protobuf.ByteString + getSelectedSuggestionBytes(); /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -60,7 +37,6 @@ public interface CompletionInfoOrBuilder
    * 
* * int32 selected_position = 2; - * * @return The selectedPosition. */ int getSelectedPosition(); diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java new file mode 100644 index 000000000000..643743d2988f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/completion_service.proto + +package com.google.cloud.discoveryengine.v1; + +public final class CompletionServiceProto { + private CompletionServiceProto() {} + 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_discoveryengine_v1_CompleteQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1/comple" + + "tion_service.proto\022\037google.cloud.discove" + + "ryengine.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\"\301\001\n\024CompleteQueryRequest\022E\n\ndata_" + + "store\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.go" + + "ogleapis.com/DataStore\022\023\n\005query\030\002 \001(\tB\004\342" + + "A\001\002\022\023\n\013query_model\030\003 \001(\t\022\026\n\016user_pseudo_" + + "id\030\004 \001(\t\022 \n\030include_tail_suggestions\030\005 \001" + + "(\010\"\277\001\n\025CompleteQueryResponse\022a\n\021query_su" + + "ggestions\030\001 \003(\0132F.google.cloud.discovery" + + "engine.v1.CompleteQueryResponse.QuerySug" + + "gestion\022\034\n\024tail_match_triggered\030\002 \001(\010\032%\n" + + "\017QuerySuggestion\022\022\n\nsuggestion\030\001 \001(\t2\212\003\n" + + "\021CompletionService\022\240\002\n\rCompleteQuery\0225.g" + + "oogle.cloud.discoveryengine.v1.CompleteQ" + + "ueryRequest\0326.google.cloud.discoveryengi" + + "ne.v1.CompleteQueryResponse\"\237\001\202\323\344\223\002\230\001\022B/" + + "v1/{data_store=projects/*/locations/*/da" + + "taStores/*}:completeQueryZR\022P/v1/{data_s" + + "tore=projects/*/locations/*/collections/" + + "*/dataStores/*}:completeQuery\032R\312A\036discov" + + "eryengine.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\211\002\n#co" + + "m.google.cloud.discoveryengine.v1B\026Compl" + + "etionServiceProtoP\001ZMcloud.google.com/go" + + "/discoveryengine/apiv1/discoveryenginepb" + + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037G" + + "oogle.Cloud.DiscoveryEngine.V1\312\002\037Google\\" + + "Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cloud" + + "::DiscoveryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor, + new java.lang.String[] { "DataStore", "Query", "QueryModel", "UserPseudoId", "IncludeTailSuggestions", }); + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor, + new java.lang.String[] { "QuerySuggestions", "TailMatchTriggered", }); + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor = + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor, + new java.lang.String[] { "Suggestion", }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java index dbe9d1b1d20a..4fe2a10542ab 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Conversation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * External conversation proto definition.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Conversation} */ -public final class Conversation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Conversation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Conversation) ConversationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Conversation.newBuilder() to construct. private Conversation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Conversation() { name_ = ""; state_ = 0; @@ -46,38 +28,34 @@ private Conversation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Conversation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Conversation.class, - com.google.cloud.discoveryengine.v1.Conversation.Builder.class); + com.google.cloud.discoveryengine.v1.Conversation.class, com.google.cloud.discoveryengine.v1.Conversation.Builder.class); } /** - * - * *
    * Enumeration of the state of the conversation.
    * 
* * Protobuf enum {@code google.cloud.discoveryengine.v1.Conversation.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Conversation is currently open.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ IN_PROGRESS(1), /** - * - * *
      * Conversation has been completed.
      * 
@@ -109,8 +83,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown.
      * 
@@ -119,8 +91,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Conversation is currently open.
      * 
@@ -129,8 +99,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_PROGRESS_VALUE = 1; /** - * - * *
      * Conversation has been completed.
      * 
@@ -139,6 +107,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -163,49 +132,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return IN_PROGRESS; - case 2: - return COMPLETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return IN_PROGRESS; + case 2: return COMPLETED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.discoveryengine.v1.Conversation.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -223,19 +192,15 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -244,30 +209,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; } } /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -278,53 +243,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Conversation.State getState() { - com.google.cloud.discoveryengine.v1.Conversation.State result = - com.google.cloud.discoveryengine.v1.Conversation.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1.Conversation.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation.State getState() { + com.google.cloud.discoveryengine.v1.Conversation.State result = com.google.cloud.discoveryengine.v1.Conversation.State.forNumber(state_); + return result == null ? com.google.cloud.discoveryengine.v1.Conversation.State.UNRECOGNIZED : result; } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The userPseudoId. */ @java.lang.Override @@ -333,29 +283,29 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -364,12 +314,9 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } public static final int MESSAGES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List messages_; /** - * - * *
    * Conversation messages.
    * 
@@ -381,8 +328,6 @@ public java.util.List g return messages_; } /** - * - * *
    * Conversation messages.
    * 
@@ -390,13 +335,11 @@ public java.util.List g * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * Conversation messages.
    * 
@@ -408,8 +351,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Conversation messages.
    * 
@@ -421,8 +362,6 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage getMessages(int i return messages_.get(index); } /** - * - * *
    * Conversation messages.
    * 
@@ -438,15 +377,11 @@ public com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder getMessa public static final int START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -454,15 +389,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -470,14 +401,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -487,15 +415,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -503,15 +427,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -519,14 +439,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -534,7 +451,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -546,12 +462,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.discoveryengine.v1.Conversation.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.discoveryengine.v1.Conversation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { @@ -578,21 +494,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.discoveryengine.v1.Conversation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.discoveryengine.v1.Conversation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userPseudoId_); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, messages_.get(i)); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -602,25 +521,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.discoveryengine.v1.Conversation)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.Conversation other = - (com.google.cloud.discoveryengine.v1.Conversation) obj; + com.google.cloud.discoveryengine.v1.Conversation other = (com.google.cloud.discoveryengine.v1.Conversation) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -656,136 +579,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.Conversation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.Conversation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Conversation 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.discoveryengine.v1.Conversation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Conversation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Conversation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Conversation 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.discoveryengine.v1.Conversation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Conversation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Conversation 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.discoveryengine.v1.Conversation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Conversation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.Conversation 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.discoveryengine.v1.Conversation 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.discoveryengine.v1.Conversation 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.discoveryengine.v1.Conversation 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; } /** - * - * *
    * External conversation proto definition.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Conversation} */ - 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.discoveryengine.v1.Conversation) com.google.cloud.discoveryengine.v1.ConversationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Conversation.class, - com.google.cloud.discoveryengine.v1.Conversation.Builder.class); + com.google.cloud.discoveryengine.v1.Conversation.class, com.google.cloud.discoveryengine.v1.Conversation.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.Conversation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -814,9 +733,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor; } @java.lang.Override @@ -835,18 +754,14 @@ public com.google.cloud.discoveryengine.v1.Conversation build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation buildPartial() { - com.google.cloud.discoveryengine.v1.Conversation result = - new com.google.cloud.discoveryengine.v1.Conversation(this); + com.google.cloud.discoveryengine.v1.Conversation result = new com.google.cloud.discoveryengine.v1.Conversation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.Conversation result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.Conversation result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -870,10 +785,14 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Conversation resu result.userPseudoId_ = userPseudoId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } @@ -881,39 +800,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Conversation resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.Conversation) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Conversation) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.Conversation)other); } else { super.mergeFrom(other); return this; @@ -921,8 +839,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Conversation other) { - if (other == com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -954,10 +871,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Conversation other) messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000008); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessagesFieldBuilder() - : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -995,57 +911,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1.ConversationMessage m = - input.readMessage( - com.google.cloud.discoveryengine.v1.ConversationMessage.parser(), - extensionRegistry); - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(m); - } else { - messagesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.cloud.discoveryengine.v1.ConversationMessage m = + input.readMessage( + com.google.cloud.discoveryengine.v1.ConversationMessage.parser(), + extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1055,26 +968,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1083,22 +993,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1106,37 +1015,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1146,22 +1048,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1171,29 +1069,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1204,33 +1095,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation.State getState() { - com.google.cloud.discoveryengine.v1.Conversation.State result = - com.google.cloud.discoveryengine.v1.Conversation.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1.Conversation.State.UNRECOGNIZED - : result; + com.google.cloud.discoveryengine.v1.Conversation.State result = com.google.cloud.discoveryengine.v1.Conversation.State.forNumber(state_); + return result == null ? com.google.cloud.discoveryengine.v1.Conversation.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1244,14 +1126,11 @@ public Builder setState(com.google.cloud.discoveryengine.v1.Conversation.State v return this; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1263,20 +1142,18 @@ public Builder clearState() { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -1285,21 +1162,20 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -1307,35 +1183,28 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -1345,21 +1214,17 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00000004; @@ -1368,34 +1233,25 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } private java.util.List messages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - messages_ = - new java.util.ArrayList( - messages_); + messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ConversationMessage, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder, - com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder> - messagesBuilder_; + com.google.cloud.discoveryengine.v1.ConversationMessage, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder> messagesBuilder_; /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ - public java.util.List - getMessagesList() { + public java.util.List getMessagesList() { if (messagesBuilder_ == null) { return java.util.Collections.unmodifiableList(messages_); } else { @@ -1403,8 +1259,6 @@ private void ensureMessagesIsMutable() { } } /** - * - * *
      * Conversation messages.
      * 
@@ -1419,8 +1273,6 @@ public int getMessagesCount() { } } /** - * - * *
      * Conversation messages.
      * 
@@ -1435,8 +1287,6 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage getMessages(int i } } /** - * - * *
      * Conversation messages.
      * 
@@ -1458,8 +1308,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1467,8 +1315,7 @@ public Builder setMessages( * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ public Builder setMessages( - int index, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.set(index, builderForValue.build()); @@ -1479,8 +1326,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1501,8 +1346,6 @@ public Builder addMessages(com.google.cloud.discoveryengine.v1.ConversationMessa return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1524,8 +1367,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1544,8 +1385,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1553,8 +1392,7 @@ public Builder addMessages( * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ public Builder addMessages( - int index, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(index, builderForValue.build()); @@ -1565,8 +1403,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1574,11 +1410,11 @@ public Builder addMessages( * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ public Builder addAllMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -1586,8 +1422,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1605,8 +1439,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1624,8 +1456,6 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1637,8 +1467,6 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage.Builder getMessag return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Conversation messages.
      * 
@@ -1648,23 +1476,19 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage.Builder getMessag public com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder> - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -1672,8 +1496,6 @@ public com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder getMessa } } /** - * - * *
      * Conversation messages.
      * 
@@ -1681,12 +1503,10 @@ public com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder getMessa * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ public com.google.cloud.discoveryengine.v1.ConversationMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.ConversationMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.ConversationMessage.getDefaultInstance()); } /** - * - * *
      * Conversation messages.
      * 
@@ -1695,36 +1515,30 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage.Builder addMessag */ public com.google.cloud.discoveryengine.v1.ConversationMessage.Builder addMessagesBuilder( int index) { - return getMessagesFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1.ConversationMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.ConversationMessage.getDefaultInstance()); } /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ConversationMessage, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder, - com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder> + com.google.cloud.discoveryengine.v1.ConversationMessage, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ConversationMessage, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder, - com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.ConversationMessage, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); messages_ = null; } return messagesBuilder_; @@ -1732,35 +1546,24 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage.Builder addMessag private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1771,14 +1574,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -1794,16 +1594,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -1814,20 +1612,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1840,14 +1635,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1860,14 +1652,11 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000010; @@ -1875,44 +1664,36 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1920,35 +1701,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1959,14 +1729,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1982,16 +1749,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -2002,20 +1767,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -2028,14 +1790,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2048,14 +1807,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000020; @@ -2063,51 +1819,43 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @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); } @@ -2117,12 +1865,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Conversation) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Conversation) private static final com.google.cloud.discoveryengine.v1.Conversation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Conversation(); } @@ -2131,27 +1879,27 @@ public static com.google.cloud.discoveryengine.v1.Conversation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Conversation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conversation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2166,4 +1914,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.Conversation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java index abd62729da53..c01737905139 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContext.java @@ -1,113 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Defines context of the conversation
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ConversationContext} */ -public final class ConversationContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConversationContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ConversationContext) ConversationContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConversationContext.newBuilder() to construct. private ConversationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConversationContext() { - contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); activeDocument_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConversationContext(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ConversationContext.class, - com.google.cloud.discoveryengine.v1.ConversationContext.Builder.class); + com.google.cloud.discoveryengine.v1.ConversationContext.class, com.google.cloud.discoveryengine.v1.ConversationContext.Builder.class); } public static final int CONTEXT_DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return A list containing the contextDocuments. */ - public com.google.protobuf.ProtocolStringList getContextDocumentsList() { + public com.google.protobuf.ProtocolStringList + getContextDocumentsList() { return contextDocuments_; } /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return The count of contextDocuments. */ public int getContextDocumentsCount() { return contextDocuments_.size(); } /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the element to return. * @return The contextDocuments at the given index. */ @@ -115,36 +88,30 @@ public java.lang.String getContextDocuments(int index) { return contextDocuments_.get(index); } /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the value to return. * @return The bytes of the contextDocuments at the given index. */ - public com.google.protobuf.ByteString getContextDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getContextDocumentsBytes(int index) { return contextDocuments_.getByteString(index); } public static final int ACTIVE_DOCUMENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object activeDocument_ = ""; /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The activeDocument. */ @java.lang.Override @@ -153,30 +120,30 @@ public java.lang.String getActiveDocument() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeDocument_ = s; return s; } } /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The bytes for activeDocument. */ @java.lang.Override - public com.google.protobuf.ByteString getActiveDocumentBytes() { + public com.google.protobuf.ByteString + getActiveDocumentBytes() { java.lang.Object ref = activeDocument_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); activeDocument_ = b; return b; } else { @@ -185,7 +152,6 @@ public com.google.protobuf.ByteString getActiveDocumentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +163,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 < contextDocuments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextDocuments_.getRaw(i)); } @@ -232,16 +199,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.discoveryengine.v1.ConversationContext)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ConversationContext other = - (com.google.cloud.discoveryengine.v1.ConversationContext) obj; + com.google.cloud.discoveryengine.v1.ConversationContext other = (com.google.cloud.discoveryengine.v1.ConversationContext) obj; - if (!getContextDocumentsList().equals(other.getContextDocumentsList())) return false; - if (!getActiveDocument().equals(other.getActiveDocument())) return false; + if (!getContextDocumentsList() + .equals(other.getContextDocumentsList())) return false; + if (!getActiveDocument() + .equals(other.getActiveDocument())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,149 +233,145 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConversationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ConversationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConversationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConversationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext 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.discoveryengine.v1.ConversationContext prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ConversationContext 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; } /** - * - * *
    * Defines context of the conversation
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ConversationContext} */ - 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.discoveryengine.v1.ConversationContext) com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ConversationContext.class, - com.google.cloud.discoveryengine.v1.ConversationContext.Builder.class); + com.google.cloud.discoveryengine.v1.ConversationContext.class, com.google.cloud.discoveryengine.v1.ConversationContext.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ConversationContext.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); activeDocument_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; } @java.lang.Override @@ -426,11 +390,8 @@ public com.google.cloud.discoveryengine.v1.ConversationContext build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationContext buildPartial() { - com.google.cloud.discoveryengine.v1.ConversationContext result = - new com.google.cloud.discoveryengine.v1.ConversationContext(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.ConversationContext result = new com.google.cloud.discoveryengine.v1.ConversationContext(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -450,39 +411,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ConversationConte 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.discoveryengine.v1.ConversationContext) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ConversationContext) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ConversationContext)other); } else { super.mergeFrom(other); return this; @@ -490,8 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ConversationContext other) { - if (other == com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance()) return this; if (!other.contextDocuments_.isEmpty()) { if (contextDocuments_.isEmpty()) { contextDocuments_ = other.contextDocuments_; @@ -533,26 +492,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContextDocumentsIsMutable(); - contextDocuments_.add(s); - break; - } // case 10 - case 18: - { - activeDocument_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContextDocumentsIsMutable(); + contextDocuments_.add(s); + break; + } // case 10 + case 18: { + activeDocument_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,12 +518,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContextDocumentsIsMutable() { if (!contextDocuments_.isModifiable()) { contextDocuments_ = new com.google.protobuf.LazyStringArrayList(contextDocuments_); @@ -575,46 +529,38 @@ private void ensureContextDocumentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @return A list containing the contextDocuments. */ - public com.google.protobuf.ProtocolStringList getContextDocumentsList() { + public com.google.protobuf.ProtocolStringList + getContextDocumentsList() { contextDocuments_.makeImmutable(); return contextDocuments_; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @return The count of contextDocuments. */ public int getContextDocumentsCount() { return contextDocuments_.size(); } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param index The index of the element to return. * @return The contextDocuments at the given index. */ @@ -622,39 +568,33 @@ public java.lang.String getContextDocuments(int index) { return contextDocuments_.get(index); } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param index The index of the value to return. * @return The bytes of the contextDocuments at the given index. */ - public com.google.protobuf.ByteString getContextDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getContextDocumentsBytes(int index) { return contextDocuments_.getByteString(index); } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param index The index to set the value at. * @param value The contextDocuments to set. * @return This builder for chaining. */ - public Builder setContextDocuments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContextDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContextDocumentsIsMutable(); contextDocuments_.set(index, value); bitField0_ |= 0x00000001; @@ -662,22 +602,18 @@ public Builder setContextDocuments(int index, java.lang.String value) { return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param value The contextDocuments to add. * @return This builder for chaining. */ - public Builder addContextDocuments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContextDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContextDocumentsIsMutable(); contextDocuments_.add(value); bitField0_ |= 0x00000001; @@ -685,61 +621,53 @@ public Builder addContextDocuments(java.lang.String value) { return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param values The contextDocuments to add. * @return This builder for chaining. */ - public Builder addAllContextDocuments(java.lang.Iterable values) { + public Builder addAllContextDocuments( + java.lang.Iterable values) { ensureContextDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contextDocuments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contextDocuments_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @return This builder for chaining. */ public Builder clearContextDocuments() { - contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param value The bytes of the contextDocuments to add. * @return This builder for chaining. */ - public Builder addContextDocumentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContextDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContextDocumentsIsMutable(); contextDocuments_.add(value); @@ -750,21 +678,19 @@ public Builder addContextDocumentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object activeDocument_ = ""; /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @return The activeDocument. */ public java.lang.String getActiveDocument() { java.lang.Object ref = activeDocument_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeDocument_ = s; return s; @@ -773,22 +699,21 @@ public java.lang.String getActiveDocument() { } } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @return The bytes for activeDocument. */ - public com.google.protobuf.ByteString getActiveDocumentBytes() { + public com.google.protobuf.ByteString + getActiveDocumentBytes() { java.lang.Object ref = activeDocument_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); activeDocument_ = b; return b; } else { @@ -796,37 +721,30 @@ public com.google.protobuf.ByteString getActiveDocumentBytes() { } } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @param value The activeDocument to set. * @return This builder for chaining. */ - public Builder setActiveDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActiveDocument( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } activeDocument_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @return This builder for chaining. */ public Builder clearActiveDocument() { @@ -836,31 +754,27 @@ public Builder clearActiveDocument() { return this; } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @param value The bytes for activeDocument to set. * @return This builder for chaining. */ - public Builder setActiveDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActiveDocumentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); activeDocument_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -870,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ConversationContext) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ConversationContext) private static final com.google.cloud.discoveryengine.v1.ConversationContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ConversationContext(); } @@ -884,27 +798,27 @@ public static com.google.cloud.discoveryengine.v1.ConversationContext getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -919,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ConversationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java index 2d48e1469255..da4dbc05f06c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationContextOrBuilder.java @@ -1,107 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; -public interface ConversationContextOrBuilder - extends +public interface ConversationContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ConversationContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return A list containing the contextDocuments. */ - java.util.List getContextDocumentsList(); + java.util.List + getContextDocumentsList(); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return The count of contextDocuments. */ int getContextDocumentsCount(); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the element to return. * @return The contextDocuments at the given index. */ java.lang.String getContextDocuments(int index); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the value to return. * @return The bytes of the contextDocuments at the given index. */ - com.google.protobuf.ByteString getContextDocumentsBytes(int index); + com.google.protobuf.ByteString + getContextDocumentsBytes(int index); /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The activeDocument. */ java.lang.String getActiveDocument(); /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The bytes for activeDocument. */ - com.google.protobuf.ByteString getActiveDocumentBytes(); + com.google.protobuf.ByteString + getActiveDocumentBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java index 1881d09e693b..eedd1eafec23 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessage.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Defines a conversation message.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ConversationMessage} */ -public final class ConversationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConversationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ConversationMessage) ConversationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConversationMessage.newBuilder() to construct. private ConversationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConversationMessage() {} + private ConversationMessage() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConversationMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ConversationMessage.class, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder.class); + com.google.cloud.discoveryengine.v1.ConversationMessage.class, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder.class); } private int messageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object message_; - public enum MessageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USER_INPUT(1), REPLY(2), MESSAGE_NOT_SET(0); private final int value; - private MessageCase(int value) { this.value = value; } @@ -89,36 +67,30 @@ public static MessageCase valueOf(int value) { public static MessageCase forNumber(int value) { switch (value) { - case 1: - return USER_INPUT; - case 2: - return REPLY; - case 0: - return MESSAGE_NOT_SET; - default: - return null; + case 1: return USER_INPUT; + case 2: return REPLY; + case 0: return MESSAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); } public static final int USER_INPUT_FIELD_NUMBER = 1; /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * * @return Whether the userInput field is set. */ @java.lang.Override @@ -126,26 +98,21 @@ public boolean hasUserInput() { return messageCase_ == 1; } /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * * @return The userInput. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.TextInput getUserInput() { if (messageCase_ == 1) { - return (com.google.cloud.discoveryengine.v1.TextInput) message_; + return (com.google.cloud.discoveryengine.v1.TextInput) message_; } return com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance(); } /** - * - * *
    * User text input.
    * 
@@ -155,21 +122,18 @@ public com.google.cloud.discoveryengine.v1.TextInput getUserInput() { @java.lang.Override public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getUserInputOrBuilder() { if (messageCase_ == 1) { - return (com.google.cloud.discoveryengine.v1.TextInput) message_; + return (com.google.cloud.discoveryengine.v1.TextInput) message_; } return com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance(); } public static final int REPLY_FIELD_NUMBER = 2; /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; - * * @return Whether the reply field is set. */ @java.lang.Override @@ -177,26 +141,21 @@ public boolean hasReply() { return messageCase_ == 2; } /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; - * * @return The reply. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Reply getReply() { if (messageCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Reply) message_; + return (com.google.cloud.discoveryengine.v1.Reply) message_; } return com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance(); } /** - * - * *
    * Search reply.
    * 
@@ -206,7 +165,7 @@ public com.google.cloud.discoveryengine.v1.Reply getReply() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { if (messageCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Reply) message_; + return (com.google.cloud.discoveryengine.v1.Reply) message_; } return com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance(); } @@ -214,15 +173,11 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -230,15 +185,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -246,14 +197,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -261,7 +209,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +220,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 (messageCase_ == 1) { output.writeMessage(1, (com.google.cloud.discoveryengine.v1.TextInput) message_); } @@ -293,17 +241,16 @@ public int getSerializedSize() { size = 0; if (messageCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.discoveryengine.v1.TextInput) message_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.discoveryengine.v1.TextInput) message_); } if (messageCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.discoveryengine.v1.Reply) message_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1.Reply) message_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -313,25 +260,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.discoveryengine.v1.ConversationMessage)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ConversationMessage other = - (com.google.cloud.discoveryengine.v1.ConversationMessage) obj; + com.google.cloud.discoveryengine.v1.ConversationMessage other = (com.google.cloud.discoveryengine.v1.ConversationMessage) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!getMessageCase().equals(other.getMessageCase())) return false; switch (messageCase_) { case 1: - if (!getUserInput().equals(other.getUserInput())) return false; + if (!getUserInput() + .equals(other.getUserInput())) return false; break; case 2: - if (!getReply().equals(other.getReply())) return false; + if (!getReply() + .equals(other.getReply())) return false; break; case 0: default: @@ -369,136 +318,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConversationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ConversationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConversationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConversationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage 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.discoveryengine.v1.ConversationMessage prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ConversationMessage 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; } /** - * - * *
    * Defines a conversation message.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ConversationMessage} */ - 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.discoveryengine.v1.ConversationMessage) com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ConversationMessage.class, - com.google.cloud.discoveryengine.v1.ConversationMessage.Builder.class); + com.google.cloud.discoveryengine.v1.ConversationMessage.class, com.google.cloud.discoveryengine.v1.ConversationMessage.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ConversationMessage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; } @java.lang.Override @@ -541,11 +485,8 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationMessage buildPartial() { - com.google.cloud.discoveryengine.v1.ConversationMessage result = - new com.google.cloud.discoveryengine.v1.ConversationMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.ConversationMessage result = new com.google.cloud.discoveryengine.v1.ConversationMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -554,18 +495,21 @@ public com.google.cloud.discoveryengine.v1.ConversationMessage buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.ConversationMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1.ConversationMessage result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.ConversationMessage result) { result.messageCase_ = messageCase_; result.message_ = this.message_; - if (messageCase_ == 1 && userInputBuilder_ != null) { + if (messageCase_ == 1 && + userInputBuilder_ != null) { result.message_ = userInputBuilder_.build(); } - if (messageCase_ == 2 && replyBuilder_ != null) { + if (messageCase_ == 2 && + replyBuilder_ != null) { result.message_ = replyBuilder_.build(); } } @@ -574,39 +518,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.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.discoveryengine.v1.ConversationMessage) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ConversationMessage) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ConversationMessage)other); } else { super.mergeFrom(other); return this; @@ -614,26 +557,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ConversationMessage other) { - if (other == com.google.cloud.discoveryengine.v1.ConversationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ConversationMessage.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } switch (other.getMessageCase()) { - case USER_INPUT: - { - mergeUserInput(other.getUserInput()); - break; - } - case REPLY: - { - mergeReply(other.getReply()); - break; - } - case MESSAGE_NOT_SET: - { - break; - } + case USER_INPUT: { + mergeUserInput(other.getUserInput()); + break; + } + case REPLY: { + mergeReply(other.getReply()); + break; + } + case MESSAGE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -661,31 +600,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUserInputFieldBuilder().getBuilder(), extensionRegistry); - messageCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getReplyFieldBuilder().getBuilder(), extensionRegistry); - messageCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUserInputFieldBuilder().getBuilder(), + extensionRegistry); + messageCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getReplyFieldBuilder().getBuilder(), + extensionRegistry); + messageCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -695,12 +636,12 @@ public Builder mergeFrom( } // finally return this; } - private int messageCase_ = 0; private java.lang.Object message_; - - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); } public Builder clearMessage() { @@ -713,19 +654,13 @@ public Builder clearMessage() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TextInput, - com.google.cloud.discoveryengine.v1.TextInput.Builder, - com.google.cloud.discoveryengine.v1.TextInputOrBuilder> - userInputBuilder_; + com.google.cloud.discoveryengine.v1.TextInput, com.google.cloud.discoveryengine.v1.TextInput.Builder, com.google.cloud.discoveryengine.v1.TextInputOrBuilder> userInputBuilder_; /** - * - * *
      * User text input.
      * 
* * .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * * @return Whether the userInput field is set. */ @java.lang.Override @@ -733,14 +668,11 @@ public boolean hasUserInput() { return messageCase_ == 1; } /** - * - * *
      * User text input.
      * 
* * .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * * @return The userInput. */ @java.lang.Override @@ -758,8 +690,6 @@ public com.google.cloud.discoveryengine.v1.TextInput getUserInput() { } } /** - * - * *
      * User text input.
      * 
@@ -780,8 +710,6 @@ public Builder setUserInput(com.google.cloud.discoveryengine.v1.TextInput value) return this; } /** - * - * *
      * User text input.
      * 
@@ -800,8 +728,6 @@ public Builder setUserInput( return this; } /** - * - * *
      * User text input.
      * 
@@ -810,13 +736,10 @@ public Builder setUserInput( */ public Builder mergeUserInput(com.google.cloud.discoveryengine.v1.TextInput value) { if (userInputBuilder_ == null) { - if (messageCase_ == 1 - && message_ != com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance()) { - message_ = - com.google.cloud.discoveryengine.v1.TextInput.newBuilder( - (com.google.cloud.discoveryengine.v1.TextInput) message_) - .mergeFrom(value) - .buildPartial(); + if (messageCase_ == 1 && + message_ != com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance()) { + message_ = com.google.cloud.discoveryengine.v1.TextInput.newBuilder((com.google.cloud.discoveryengine.v1.TextInput) message_) + .mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -832,8 +755,6 @@ public Builder mergeUserInput(com.google.cloud.discoveryengine.v1.TextInput valu return this; } /** - * - * *
      * User text input.
      * 
@@ -857,8 +778,6 @@ public Builder clearUserInput() { return this; } /** - * - * *
      * User text input.
      * 
@@ -869,8 +788,6 @@ public com.google.cloud.discoveryengine.v1.TextInput.Builder getUserInputBuilder return getUserInputFieldBuilder().getBuilder(); } /** - * - * *
      * User text input.
      * 
@@ -889,8 +806,6 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getUserInputOrBuil } } /** - * - * *
      * User text input.
      * 
@@ -898,19 +813,14 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getUserInputOrBuil * .google.cloud.discoveryengine.v1.TextInput user_input = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TextInput, - com.google.cloud.discoveryengine.v1.TextInput.Builder, - com.google.cloud.discoveryengine.v1.TextInputOrBuilder> + com.google.cloud.discoveryengine.v1.TextInput, com.google.cloud.discoveryengine.v1.TextInput.Builder, com.google.cloud.discoveryengine.v1.TextInputOrBuilder> getUserInputFieldBuilder() { if (userInputBuilder_ == null) { if (!(messageCase_ == 1)) { message_ = com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance(); } - userInputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TextInput, - com.google.cloud.discoveryengine.v1.TextInput.Builder, - com.google.cloud.discoveryengine.v1.TextInputOrBuilder>( + userInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.TextInput, com.google.cloud.discoveryengine.v1.TextInput.Builder, com.google.cloud.discoveryengine.v1.TextInputOrBuilder>( (com.google.cloud.discoveryengine.v1.TextInput) message_, getParentForChildren(), isClean()); @@ -922,19 +832,13 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getUserInputOrBuil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Reply, - com.google.cloud.discoveryengine.v1.Reply.Builder, - com.google.cloud.discoveryengine.v1.ReplyOrBuilder> - replyBuilder_; + com.google.cloud.discoveryengine.v1.Reply, com.google.cloud.discoveryengine.v1.Reply.Builder, com.google.cloud.discoveryengine.v1.ReplyOrBuilder> replyBuilder_; /** - * - * *
      * Search reply.
      * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; - * * @return Whether the reply field is set. */ @java.lang.Override @@ -942,14 +846,11 @@ public boolean hasReply() { return messageCase_ == 2; } /** - * - * *
      * Search reply.
      * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; - * * @return The reply. */ @java.lang.Override @@ -967,8 +868,6 @@ public com.google.cloud.discoveryengine.v1.Reply getReply() { } } /** - * - * *
      * Search reply.
      * 
@@ -989,15 +888,14 @@ public Builder setReply(com.google.cloud.discoveryengine.v1.Reply value) { return this; } /** - * - * *
      * Search reply.
      * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; */ - public Builder setReply(com.google.cloud.discoveryengine.v1.Reply.Builder builderForValue) { + public Builder setReply( + com.google.cloud.discoveryengine.v1.Reply.Builder builderForValue) { if (replyBuilder_ == null) { message_ = builderForValue.build(); onChanged(); @@ -1008,8 +906,6 @@ public Builder setReply(com.google.cloud.discoveryengine.v1.Reply.Builder builde return this; } /** - * - * *
      * Search reply.
      * 
@@ -1018,13 +914,10 @@ public Builder setReply(com.google.cloud.discoveryengine.v1.Reply.Builder builde */ public Builder mergeReply(com.google.cloud.discoveryengine.v1.Reply value) { if (replyBuilder_ == null) { - if (messageCase_ == 2 - && message_ != com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance()) { - message_ = - com.google.cloud.discoveryengine.v1.Reply.newBuilder( - (com.google.cloud.discoveryengine.v1.Reply) message_) - .mergeFrom(value) - .buildPartial(); + if (messageCase_ == 2 && + message_ != com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance()) { + message_ = com.google.cloud.discoveryengine.v1.Reply.newBuilder((com.google.cloud.discoveryengine.v1.Reply) message_) + .mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -1040,8 +933,6 @@ public Builder mergeReply(com.google.cloud.discoveryengine.v1.Reply value) { return this; } /** - * - * *
      * Search reply.
      * 
@@ -1065,8 +956,6 @@ public Builder clearReply() { return this; } /** - * - * *
      * Search reply.
      * 
@@ -1077,8 +966,6 @@ public com.google.cloud.discoveryengine.v1.Reply.Builder getReplyBuilder() { return getReplyFieldBuilder().getBuilder(); } /** - * - * *
      * Search reply.
      * 
@@ -1097,8 +984,6 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { } } /** - * - * *
      * Search reply.
      * 
@@ -1106,19 +991,14 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { * .google.cloud.discoveryengine.v1.Reply reply = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Reply, - com.google.cloud.discoveryengine.v1.Reply.Builder, - com.google.cloud.discoveryengine.v1.ReplyOrBuilder> + com.google.cloud.discoveryengine.v1.Reply, com.google.cloud.discoveryengine.v1.Reply.Builder, com.google.cloud.discoveryengine.v1.ReplyOrBuilder> getReplyFieldBuilder() { if (replyBuilder_ == null) { if (!(messageCase_ == 2)) { message_ = com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance(); } - replyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Reply, - com.google.cloud.discoveryengine.v1.Reply.Builder, - com.google.cloud.discoveryengine.v1.ReplyOrBuilder>( + replyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Reply, com.google.cloud.discoveryengine.v1.Reply.Builder, com.google.cloud.discoveryengine.v1.ReplyOrBuilder>( (com.google.cloud.discoveryengine.v1.Reply) message_, getParentForChildren(), isClean()); @@ -1131,58 +1011,39 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1198,17 +1059,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1219,21 +1077,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1246,15 +1100,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1267,15 +1117,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1283,55 +1129,43 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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); } @@ -1341,12 +1175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ConversationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ConversationMessage) private static final com.google.cloud.discoveryengine.v1.ConversationMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ConversationMessage(); } @@ -1355,27 +1189,27 @@ public static com.google.cloud.discoveryengine.v1.ConversationMessage getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1390,4 +1224,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ConversationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java index 5d82e323107f..078e96891f71 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationMessageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; -public interface ConversationMessageOrBuilder - extends +public interface ConversationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ConversationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * * @return Whether the userInput field is set. */ boolean hasUserInput(); /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * * @return The userInput. */ com.google.cloud.discoveryengine.v1.TextInput getUserInput(); /** - * - * *
    * User text input.
    * 
@@ -59,32 +35,24 @@ public interface ConversationMessageOrBuilder com.google.cloud.discoveryengine.v1.TextInputOrBuilder getUserInputOrBuilder(); /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; - * * @return Whether the reply field is set. */ boolean hasReply(); /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 2; - * * @return The reply. */ com.google.cloud.discoveryengine.v1.Reply getReply(); /** - * - * *
    * Search reply.
    * 
@@ -94,40 +62,29 @@ public interface ConversationMessageOrBuilder com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder(); /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java index c6746f16016d..c8a79b150c4c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationOrBuilder.java @@ -1,118 +1,83 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; -public interface ConversationOrBuilder - extends +public interface ConversationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Conversation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * * @return The state. */ com.google.cloud.discoveryengine.v1.Conversation.State getState(); /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * Conversation messages.
    * 
* * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * Conversation messages.
    * 
@@ -121,8 +86,6 @@ public interface ConversationOrBuilder */ com.google.cloud.discoveryengine.v1.ConversationMessage getMessages(int index); /** - * - * *
    * Conversation messages.
    * 
@@ -131,100 +94,75 @@ public interface ConversationOrBuilder */ int getMessagesCount(); /** - * - * *
    * Conversation messages.
    * 
* * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * Conversation messages.
    * 
* * repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; */ - com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder getMessagesOrBuilder(int index); + com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder getMessagesOrBuilder( + int index); /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); } diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java new file mode 100644 index 000000000000..3776efc0caaa --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationProto.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/conversation.proto + +package com.google.cloud.discoveryengine.v1; + +public final class ConversationProto { + private ConversationProto() {} + 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_discoveryengine_v1_Conversation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/discoveryengine/v1/conver" + + "sation.proto\022\037google.cloud.discoveryengi" + + "ne.v1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\0324google/cloud/" + + "discoveryengine/v1/search_service.proto\032" + + "\037google/protobuf/timestamp.proto\"\371\004\n\014Con" + + "versation\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022B\n\005state\030\002" + + " \001(\01623.google.cloud.discoveryengine.v1.C" + + "onversation.State\022\026\n\016user_pseudo_id\030\003 \001(" + + "\t\022F\n\010messages\030\004 \003(\01324.google.cloud.disco" + + "veryengine.v1.ConversationMessage\0224\n\nsta" + + "rt_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\0222\n\010end_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\004\342A\001\003\">\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tCOMPLETE" + + "D\020\002:\206\002\352A\202\002\n+discoveryengine.googleapis.c" + + "om/Conversation\022\\projects/{project}/loca" + + "tions/{location}/dataStores/{data_store}" + + "/conversations/{conversation}\022uprojects/" + + "{project}/locations/{location}/collectio" + + "ns/{collection}/dataStores/{data_store}/" + + "conversations/{conversation}\"Q\n\005Reply\022H\n" + + "\007summary\030\003 \001(\01327.google.cloud.discoverye" + + "ngine.v1.SearchResponse.Summary\"I\n\023Conve" + + "rsationContext\022\031\n\021context_documents\030\001 \003(" + + "\t\022\027\n\017active_document\030\002 \001(\t\"a\n\tTextInput\022" + + "\r\n\005input\030\001 \001(\t\022E\n\007context\030\002 \001(\01324.google" + + ".cloud.discoveryengine.v1.ConversationCo" + + "ntext\"\322\001\n\023ConversationMessage\022@\n\nuser_in" + + "put\030\001 \001(\0132*.google.cloud.discoveryengine" + + ".v1.TextInputH\000\0227\n\005reply\030\002 \001(\0132&.google." + + "cloud.discoveryengine.v1.ReplyH\000\0225\n\013crea" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003B\t\n\007messageB\204\002\n#com.google.cloud." + + "discoveryengine.v1B\021ConversationProtoP\001Z" + + "Mcloud.google.com/go/discoveryengine/api" + + "v1/discoveryenginepb;discoveryenginepb\242\002" + + "\017DISCOVERYENGINE\252\002\037Google.Cloud.Discover" + + "yEngine.V1\312\002\037Google\\Cloud\\DiscoveryEngin" + + "e\\V1\352\002\"Google::Cloud::DiscoveryEngine::V" + + "1b\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.discoveryengine.v1.SearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_Conversation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Conversation_descriptor, + new java.lang.String[] { "Name", "State", "UserPseudoId", "Messages", "StartTime", "EndTime", }); + internal_static_google_cloud_discoveryengine_v1_Reply_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Reply_descriptor, + new java.lang.String[] { "Summary", }); + internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_ConversationContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ConversationContext_descriptor, + new java.lang.String[] { "ContextDocuments", "ActiveDocument", }); + internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor, + new java.lang.String[] { "Input", "Context", }); + internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_ConversationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ConversationMessage_descriptor, + new java.lang.String[] { "UserInput", "Reply", "CreateTime", "Message", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java new file mode 100644 index 000000000000..2fbb74c42b76 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java @@ -0,0 +1,267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1; + +public final class ConversationalSearchServiceProto { + private ConversationalSearchServiceProto() {} + 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_discoveryengine_v1_ConverseConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/discoveryengine/v1/conver" + + "sational_search_service.proto\022\037google.cl" + + "oud.discoveryengine.v1\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\0322google/cloud/discover" + + "yengine/v1/conversation.proto\0324google/cl" + + "oud/discoveryengine/v1/search_service.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\"\301\004\n\033ConverseC" + + "onversationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A" + + "-\n+discoveryengine.googleapis.com/Conver" + + "sation\022?\n\005query\030\002 \001(\0132*.google.cloud.dis" + + "coveryengine.v1.TextInputB\004\342A\001\002\022I\n\016servi" + + "ng_config\030\003 \001(\tB1\372A.\n,discoveryengine.go" + + "ogleapis.com/ServingConfig\022C\n\014conversati" + + "on\030\005 \001(\0132-.google.cloud.discoveryengine." + + "v1.Conversation\022\023\n\013safe_search\030\006 \001(\010\022a\n\013" + + "user_labels\030\007 \003(\0132L.google.cloud.discove" + + "ryengine.v1.ConverseConversationRequest." + + "UserLabelsEntry\022b\n\014summary_spec\030\010 \001(\0132L." + + "google.cloud.discoveryengine.v1.SearchRe" + + "quest.ContentSearchSpec.SummarySpec\0321\n\017U" + + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"\360\001\n\034ConverseConversationResponse\022" + + "5\n\005reply\030\001 \001(\0132&.google.cloud.discoverye" + + "ngine.v1.Reply\022C\n\014conversation\030\002 \001(\0132-.g" + + "oogle.cloud.discoveryengine.v1.Conversat" + + "ion\022T\n\016search_results\030\003 \003(\0132<.google.clo" + + "ud.discoveryengine.v1.SearchResponse.Sea" + + "rchResult\"\251\001\n\031CreateConversationRequest\022" + + "A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengin" + + "e.googleapis.com/DataStore\022I\n\014conversati" + + "on\030\002 \001(\0132-.google.cloud.discoveryengine." + + "v1.ConversationB\004\342A\001\002\"\227\001\n\031UpdateConversa" + + "tionRequest\022I\n\014conversation\030\001 \001(\0132-.goog" + + "le.cloud.discoveryengine.v1.Conversation" + + "B\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\"_\n\031DeleteConversationReq" + + "uest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryen" + + "gine.googleapis.com/Conversation\"\\\n\026GetC" + + "onversationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A" + + "-\n+discoveryengine.googleapis.com/Conver" + + "sation\"\246\001\n\030ListConversationsRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.go" + + "ogleapis.com/DataStore\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" + + "\010order_by\030\005 \001(\t\"z\n\031ListConversationsResp" + + "onse\022D\n\rconversations\030\001 \003(\0132-.google.clo" + + "ud.discoveryengine.v1.Conversation\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t2\332\017\n\033ConversationalSe" + + "archService\022\322\002\n\024ConverseConversation\022<.g" + + "oogle.cloud.discoveryengine.v1.ConverseC" + + "onversationRequest\032=.google.cloud.discov" + + "eryengine.v1.ConverseConversationRespons" + + "e\"\274\001\332A\nname,query\202\323\344\223\002\250\001\"G/v1/{name=proj" + + "ects/*/locations/*/dataStores/*/conversa" + + "tions/*}:converse:\001*ZZ\"U/v1/{name=projec" + + "ts/*/locations/*/collections/*/dataStore" + + "s/*/conversations/*}:converse:\001*\022\313\002\n\022Cre" + + "ateConversation\022:.google.cloud.discovery" + + "engine.v1.CreateConversationRequest\032-.go" + + "ogle.cloud.discoveryengine.v1.Conversati" + + "on\"\311\001\332A\023parent,conversation\202\323\344\223\002\254\001\">/v1/" + + "{parent=projects/*/locations/*/dataStore" + + "s/*}/conversations:\014conversationZ\\\"L/v1/" + + "{parent=projects/*/locations/*/collectio" + + "ns/*/dataStores/*}/conversations:\014conver" + + "sation\022\211\002\n\022DeleteConversation\022:.google.c" + + "loud.discoveryengine.v1.DeleteConversati" + + "onRequest\032\026.google.protobuf.Empty\"\236\001\332A\004n" + + "ame\202\323\344\223\002\220\001*>/v1/{name=projects/*/locatio" + + "ns/*/dataStores/*/conversations/*}ZN*L/v" + + "1/{name=projects/*/locations/*/collectio" + + "ns/*/dataStores/*/conversations/*}\022\352\002\n\022U" + + "pdateConversation\022:.google.cloud.discove" + + "ryengine.v1.UpdateConversationRequest\032-." + + "google.cloud.discoveryengine.v1.Conversa" + + "tion\"\350\001\332A\030conversation,update_mask\202\323\344\223\002\306" + + "\0012K/v1/{conversation.name=projects/*/loc" + + "ations/*/dataStores/*/conversations/*}:\014" + + "conversationZi2Y/v1/{conversation.name=p" + + "rojects/*/locations/*/collections/*/data" + + "Stores/*/conversations/*}:\014conversation\022" + + "\232\002\n\017GetConversation\0227.google.cloud.disco" + + "veryengine.v1.GetConversationRequest\032-.g" + + "oogle.cloud.discoveryengine.v1.Conversat" + + "ion\"\236\001\332A\004name\202\323\344\223\002\220\001\022>/v1/{name=projects" + + "/*/locations/*/dataStores/*/conversation" + + "s/*}ZN\022L/v1/{name=projects/*/locations/*" + + "/collections/*/dataStores/*/conversation" + + "s/*}\022\255\002\n\021ListConversations\0229.google.clou" + + "d.discoveryengine.v1.ListConversationsRe" + + "quest\032:.google.cloud.discoveryengine.v1." + + "ListConversationsResponse\"\240\001\332A\006parent\202\323\344" + + "\223\002\220\001\022>/v1/{parent=projects/*/locations/*" + + "/dataStores/*}/conversationsZN\022L/v1/{par" + + "ent=projects/*/locations/*/collections/*" + + "/dataStores/*}/conversations\032R\312A\036discove" + + "ryengine.googleapis.com\322A.https://www.go" + + "ogleapis.com/auth/cloud-platformB\223\002\n#com" + + ".google.cloud.discoveryengine.v1B Conver" + + "sationalSearchServiceProtoP\001ZMcloud.goog" + + "le.com/go/discoveryengine/apiv1/discover" + + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" + + "NGINE\252\002\037Google.Cloud.DiscoveryEngine.V1\312" + + "\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Goog" + + "le::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.ConversationProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor, + new java.lang.String[] { "Name", "Query", "ServingConfig", "Conversation", "SafeSearch", "UserLabels", "SummarySpec", }); + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor, + new java.lang.String[] { "Reply", "Conversation", "SearchResults", }); + internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor, + new java.lang.String[] { "Parent", "Conversation", }); + internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor, + new java.lang.String[] { "Conversation", "UpdateMask", }); + internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor, + new java.lang.String[] { "Conversations", "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); + 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.discoveryengine.v1.ConversationProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java index b8c91a144013..de264f94a307 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1.ConversationalSearchService.ConverseConversation]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ConverseConversationRequest}
  */
-public final class ConverseConversationRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConverseConversationRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ConverseConversationRequest)
     ConverseConversationRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConverseConversationRequest.newBuilder() to construct.
   private ConverseConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConverseConversationRequest() {
     name_ = "";
     servingConfig_ = "";
@@ -46,43 +28,40 @@ private ConverseConversationRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConverseConversationRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_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 7:
         return internalGetUserLabels();
       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.discoveryengine.v1.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ConverseConversationRequest.class,
-            com.google.cloud.discoveryengine.v1.ConverseConversationRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.ConverseConversationRequest.class, com.google.cloud.discoveryengine.v1.ConverseConversationRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -92,10 +71,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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 @@ -104,15 +80,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. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -122,18 +97,17 @@ public java.lang.String getName() {
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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 { @@ -144,16 +118,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int QUERY_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.TextInput query_; /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the query field is set. */ @java.lang.Override @@ -161,49 +130,33 @@ public boolean hasQuery() { return query_ != null; } /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.TextInput getQuery() { - return query_ == null - ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() - : query_; + return query_ == null ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() : query_; } /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder() { - return query_ == null - ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() - : query_; + return query_ == null ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() : query_; } public static final int SERVING_CONFIG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object servingConfig_ = ""; /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -211,7 +164,6 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder(
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The servingConfig. */ @java.lang.Override @@ -220,15 +172,14 @@ public java.lang.String getServingConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; } } /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -236,15 +187,16 @@ public java.lang.String getServingConfig() {
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for servingConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -255,8 +207,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { public static final int CONVERSATION_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1.Conversation conversation_; /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -264,7 +214,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * * @return Whether the conversation field is set. */ @java.lang.Override @@ -272,8 +221,6 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -281,18 +228,13 @@ public boolean hasConversation() {
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -303,22 +245,17 @@ public com.google.cloud.discoveryengine.v1.Conversation getConversation() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder() {
-    return conversation_ == null
-        ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()
-        : conversation_;
+    return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_;
   }
 
   public static final int SAFE_SEARCH_FIELD_NUMBER = 6;
   private boolean safeSearch_ = false;
   /**
-   *
-   *
    * 
    * Whether to turn on safe search.
    * 
* * bool safe_search = 6; - * * @return The safeSearch. */ @java.lang.Override @@ -327,34 +264,32 @@ public boolean getSafeSearch() { } public static final int USER_LABELS_FIELD_NUMBER = 7; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_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.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -378,21 +313,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 7;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -420,8 +354,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -445,19 +377,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 7;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -481,11 +411,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 7;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -493,19 +423,13 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int SUMMARY_SPEC_FIELD_NUMBER = 8;
-  private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec
-      summarySpec_;
+  private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_;
   /**
-   *
-   *
    * 
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return Whether the summarySpec field is set. */ @java.lang.Override @@ -513,48 +437,30 @@ public boolean hasSummarySpec() { return summarySpec_ != null; } /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return The summarySpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,7 +472,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_); } @@ -582,8 +489,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (safeSearch_ != false) { output.writeBool(6, safeSearch_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 7); if (summarySpec_ != null) { output.writeMessage(8, getSummarySpec()); } @@ -600,29 +511,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (query_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, servingConfig_); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getConversation()); } if (safeSearch_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, safeSearch_); - } - for (java.util.Map.Entry entry : - internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry userLabels__ = - UserLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, userLabels__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, safeSearch_); + } + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, userLabels__); } if (summarySpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSummarySpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSummarySpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -632,29 +547,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.discoveryengine.v1.ConverseConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ConverseConversationRequest other = - (com.google.cloud.discoveryengine.v1.ConverseConversationRequest) obj; + com.google.cloud.discoveryengine.v1.ConverseConversationRequest other = (com.google.cloud.discoveryengine.v1.ConverseConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; } - if (!getServingConfig().equals(other.getServingConfig())) return false; + if (!getServingConfig() + .equals(other.getServingConfig())) return false; if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } - if (getSafeSearch() != other.getSafeSearch()) return false; - if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (getSafeSearch() + != other.getSafeSearch()) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; if (hasSummarySpec() != other.hasSummarySpec()) return false; if (hasSummarySpec()) { - if (!getSummarySpec().equals(other.getSummarySpec())) return false; + if (!getSummarySpec() + .equals(other.getSummarySpec())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -680,7 +601,8 @@ public int hashCode() { hash = (53 * hash) + getConversation().hashCode(); } hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSafeSearch()); if (!internalGetUserLabels().getMap().isEmpty()) { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode(); @@ -695,104 +617,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest 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.discoveryengine.v1.ConverseConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ConverseConversationRequest 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
    * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1.ConversationalSearchService.ConverseConversation]
@@ -801,52 +717,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ConverseConversationRequest}
    */
-  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.discoveryengine.v1.ConverseConversationRequest)
       com.google.cloud.discoveryengine.v1.ConverseConversationRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetUserLabels();
         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 7:
           return internalGetMutableUserLabels();
         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.discoveryengine.v1.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ConverseConversationRequest.class,
-              com.google.cloud.discoveryengine.v1.ConverseConversationRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.ConverseConversationRequest.class, com.google.cloud.discoveryengine.v1.ConverseConversationRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ConverseConversationRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -874,14 +793,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1.ConverseConversationRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1.ConverseConversationRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1.ConverseConversationRequest.getDefaultInstance();
     }
 
@@ -896,30 +814,29 @@ public com.google.cloud.discoveryengine.v1.ConverseConversationRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ConverseConversationRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.ConverseConversationRequest result =
-          new com.google.cloud.discoveryengine.v1.ConverseConversationRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.ConverseConversationRequest result = new com.google.cloud.discoveryengine.v1.ConverseConversationRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1.ConverseConversationRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1.ConverseConversationRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build();
+        result.query_ = queryBuilder_ == null
+            ? query_
+            : queryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.servingConfig_ = servingConfig_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.conversation_ =
-            conversationBuilder_ == null ? conversation_ : conversationBuilder_.build();
+        result.conversation_ = conversationBuilder_ == null
+            ? conversation_
+            : conversationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.safeSearch_ = safeSearch_;
@@ -929,8 +846,9 @@ private void buildPartial0(
         result.userLabels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.summarySpec_ =
-            summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build();
+        result.summarySpec_ = summarySpecBuilder_ == null
+            ? summarySpec_
+            : summarySpecBuilder_.build();
       }
     }
 
@@ -938,50 +856,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.ConverseConversationRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ConverseConversationRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ConverseConversationRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1.ConverseConversationRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1.ConverseConversationRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ConverseConversationRequest other) {
+      if (other == com.google.cloud.discoveryengine.v1.ConverseConversationRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1001,7 +915,8 @@ public Builder mergeFrom(
       if (other.getSafeSearch() != false) {
         setSafeSearch(other.getSafeSearch());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00000020;
       if (other.hasSummarySpec()) {
         mergeSummarySpec(other.getSummarySpec());
@@ -1032,61 +947,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getQueryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                servingConfig_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 42:
-              {
-                input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 48:
-              {
-                safeSearch_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 48
-            case 58:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getSummarySpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getQueryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              servingConfig_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 42: {
+              input.readMessage(
+                  getConversationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 48: {
+              safeSearch_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 48
+            case 58: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getSummarySpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1096,13 +1007,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1112,16 +1020,14 @@ public Builder mergeFrom(
      * conversation inside a ConverseConversation session.
      * 
* - * - * 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; @@ -1130,8 +1036,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1141,17 +1045,16 @@ public java.lang.String getName() {
      * conversation inside a ConverseConversation session.
      * 
* - * - * 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 { @@ -1159,8 +1062,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1170,25 +1071,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * conversation inside a ConverseConversation session.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1198,10 +1093,7 @@ public Builder setName(java.lang.String value) {
      * conversation inside a ConverseConversation session.
      * 
* - * - * 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() { @@ -1211,8 +1103,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1222,17 +1112,13 @@ public Builder clearName() {
      * conversation inside a ConverseConversation session.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1242,58 +1128,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.TextInput query_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TextInput, - com.google.cloud.discoveryengine.v1.TextInput.Builder, - com.google.cloud.discoveryengine.v1.TextInputOrBuilder> - queryBuilder_; + com.google.cloud.discoveryengine.v1.TextInput, com.google.cloud.discoveryengine.v1.TextInput.Builder, com.google.cloud.discoveryengine.v1.TextInputOrBuilder> queryBuilder_; /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the query field is set. */ public boolean hasQuery() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ public com.google.cloud.discoveryengine.v1.TextInput getQuery() { if (queryBuilder_ == null) { - return query_ == null - ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() - : query_; + return query_ == null ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() : query_; } else { return queryBuilder_.getMessage(); } } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setQuery(com.google.cloud.discoveryengine.v1.TextInput value) { if (queryBuilder_ == null) { @@ -1309,17 +1176,14 @@ public Builder setQuery(com.google.cloud.discoveryengine.v1.TextInput value) { return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setQuery(com.google.cloud.discoveryengine.v1.TextInput.Builder builderForValue) { + public Builder setQuery( + com.google.cloud.discoveryengine.v1.TextInput.Builder builderForValue) { if (queryBuilder_ == null) { query_ = builderForValue.build(); } else { @@ -1330,21 +1194,17 @@ public Builder setQuery(com.google.cloud.discoveryengine.v1.TextInput.Builder bu return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeQuery(com.google.cloud.discoveryengine.v1.TextInput value) { if (queryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && query_ != null - && query_ != com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + query_ != null && + query_ != com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance()) { getQueryBuilder().mergeFrom(value); } else { query_ = value; @@ -1357,15 +1217,11 @@ public Builder mergeQuery(com.google.cloud.discoveryengine.v1.TextInput value) { return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearQuery() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1378,15 +1234,11 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.TextInput.Builder getQueryBuilder() { bitField0_ |= 0x00000002; @@ -1394,48 +1246,36 @@ public com.google.cloud.discoveryengine.v1.TextInput.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilder(); } else { - return query_ == null - ? com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() - : query_; + return query_ == null ? + com.google.cloud.discoveryengine.v1.TextInput.getDefaultInstance() : query_; } } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TextInput, - com.google.cloud.discoveryengine.v1.TextInput.Builder, - com.google.cloud.discoveryengine.v1.TextInputOrBuilder> + com.google.cloud.discoveryengine.v1.TextInput, com.google.cloud.discoveryengine.v1.TextInput.Builder, com.google.cloud.discoveryengine.v1.TextInputOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { - queryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TextInput, - com.google.cloud.discoveryengine.v1.TextInput.Builder, - com.google.cloud.discoveryengine.v1.TextInputOrBuilder>( - getQuery(), getParentForChildren(), isClean()); + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.TextInput, com.google.cloud.discoveryengine.v1.TextInput.Builder, com.google.cloud.discoveryengine.v1.TextInputOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); query_ = null; } return queryBuilder_; @@ -1443,8 +1283,6 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder( private java.lang.Object servingConfig_ = ""; /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1452,13 +1290,13 @@ public com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder(
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The servingConfig. */ public java.lang.String getServingConfig() { java.lang.Object ref = servingConfig_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; @@ -1467,8 +1305,6 @@ public java.lang.String getServingConfig() { } } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1476,14 +1312,15 @@ public java.lang.String getServingConfig() {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for servingConfig. */ - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -1491,8 +1328,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1500,22 +1335,18 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @param value The servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } servingConfig_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1523,7 +1354,6 @@ public Builder setServingConfig(java.lang.String value) {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearServingConfig() { @@ -1533,8 +1363,6 @@ public Builder clearServingConfig() { return this; } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1542,14 +1370,12 @@ public Builder clearServingConfig() {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingConfig_ = value; bitField0_ |= 0x00000004; @@ -1559,13 +1385,8 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1573,15 +1394,12 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1589,21 +1407,16 @@ public boolean hasConversation() {
      * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * * @return The conversation. */ public com.google.cloud.discoveryengine.v1.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1626,8 +1439,6 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1.Conversation
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1648,8 +1459,6 @@ public Builder setConversation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1660,10 +1469,9 @@ public Builder setConversation(
      */
     public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversation value) {
       if (conversationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && conversation_ != null
-            && conversation_
-                != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          conversation_ != null &&
+          conversation_ != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) {
           getConversationBuilder().mergeFrom(value);
         } else {
           conversation_ = value;
@@ -1676,8 +1484,6 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1697,8 +1503,6 @@ public Builder clearConversation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1713,8 +1517,6 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversationB
       return getConversationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1727,14 +1529,11 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation
       if (conversationBuilder_ != null) {
         return conversationBuilder_.getMessageOrBuilder();
       } else {
-        return conversation_ == null
-            ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()
-            : conversation_;
+        return conversation_ == null ?
+            com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_;
       }
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1744,32 +1543,26 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation
      * .google.cloud.discoveryengine.v1.Conversation conversation = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Conversation,
-            com.google.cloud.discoveryengine.v1.Conversation.Builder,
-            com.google.cloud.discoveryengine.v1.ConversationOrBuilder>
+        com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> 
         getConversationFieldBuilder() {
       if (conversationBuilder_ == null) {
-        conversationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.Conversation,
-                com.google.cloud.discoveryengine.v1.Conversation.Builder,
-                com.google.cloud.discoveryengine.v1.ConversationOrBuilder>(
-                getConversation(), getParentForChildren(), isClean());
+        conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder>(
+                getConversation(),
+                getParentForChildren(),
+                isClean());
         conversation_ = null;
       }
       return conversationBuilder_;
     }
 
-    private boolean safeSearch_;
+    private boolean safeSearch_ ;
     /**
-     *
-     *
      * 
      * Whether to turn on safe search.
      * 
* * bool safe_search = 6; - * * @return The safeSearch. */ @java.lang.Override @@ -1777,14 +1570,11 @@ public boolean getSafeSearch() { return safeSearch_; } /** - * - * *
      * Whether to turn on safe search.
      * 
* * bool safe_search = 6; - * * @param value The safeSearch to set. * @return This builder for chaining. */ @@ -1796,14 +1586,11 @@ public Builder setSafeSearch(boolean value) { return this; } /** - * - * *
      * Whether to turn on safe search.
      * 
* * bool safe_search = 6; - * * @return This builder for chaining. */ public Builder clearSafeSearch() { @@ -1813,8 +1600,8 @@ public Builder clearSafeSearch() { return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -1823,12 +1610,11 @@ public Builder clearSafeSearch() { } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -1837,13 +1623,10 @@ public Builder clearSafeSearch() { onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1867,21 +1650,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 7;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1909,8 +1691,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1934,19 +1714,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 7;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1970,25 +1748,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 7;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2011,22 +1787,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 7;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2049,20 +1826,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 7;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2085,73 +1859,51 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 7;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
-    private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec
-        summarySpec_;
+    private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec,
-            com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder,
-            com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec
-                .SummarySpecOrBuilder>
-        summarySpecBuilder_;
+        com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> summarySpecBuilder_;
     /**
-     *
-     *
      * 
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return Whether the summarySpec field is set. */ public boolean hasSummarySpec() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return The summarySpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { if (summarySpecBuilder_ == null) { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } else { return summarySpecBuilder_.getMessage(); } } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { + public Builder setSummarySpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2165,19 +1917,14 @@ public Builder setSummarySpec( return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue) { if (summarySpecBuilder_ == null) { summarySpec_ = builderForValue.build(); } else { @@ -2188,24 +1935,17 @@ public Builder setSummarySpec( return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public Builder mergeSummarySpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { + public Builder mergeSummarySpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && summarySpec_ != null - && summarySpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + summarySpec_ != null && + summarySpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) { getSummarySpecBuilder().mergeFrom(value); } else { summarySpec_ = value; @@ -2218,15 +1958,11 @@ public Builder mergeSummarySpec( return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ public Builder clearSummarySpec() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2239,76 +1975,55 @@ public Builder clearSummarySpec() { return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder - getSummarySpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder() { bitField0_ |= 0x00000040; onChanged(); return getSummarySpecFieldBuilder().getBuilder(); } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { if (summarySpecBuilder_ != null) { return summarySpecBuilder_.getMessageOrBuilder(); } else { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> getSummarySpecFieldBuilder() { if (summarySpecBuilder_ == null) { - summarySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); + summarySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder>( + getSummarySpec(), + getParentForChildren(), + isClean()); summarySpec_ = null; } return summarySpecBuilder_; } - @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); } @@ -2318,43 +2033,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ConverseConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ConverseConversationRequest) - private static final com.google.cloud.discoveryengine.v1.ConverseConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ConverseConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ConverseConversationRequest(); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.ConverseConversationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConverseConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConverseConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2366,8 +2079,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ConverseConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.ConverseConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java similarity index 80% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java index d2870ae6b22a..de2f599b4ab1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; -public interface ConverseConversationRequestOrBuilder - extends +public interface ConverseConversationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ConverseConversationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -35,16 +17,11 @@ public interface ConverseConversationRequestOrBuilder
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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 resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -54,58 +31,40 @@ public interface ConverseConversationRequestOrBuilder
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the query field is set. */ boolean hasQuery(); /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ com.google.cloud.discoveryengine.v1.TextInput getQuery(); /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.TextInputOrBuilder getQueryOrBuilder(); /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -113,13 +72,10 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The servingConfig. */ java.lang.String getServingConfig(); /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -127,14 +83,12 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for servingConfig. */ - com.google.protobuf.ByteString getServingConfigBytes(); + com.google.protobuf.ByteString + getServingConfigBytes(); /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -142,13 +96,10 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -156,13 +107,10 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * * @return The conversation. */ com.google.cloud.discoveryengine.v1.Conversation getConversation(); /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -174,21 +122,16 @@ public interface ConverseConversationRequestOrBuilder
   com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Whether to turn on safe search.
    * 
* * bool safe_search = 6; - * * @return The safeSearch. */ boolean getSafeSearch(); /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -213,8 +156,6 @@ public interface ConverseConversationRequestOrBuilder
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -237,13 +178,15 @@ public interface ConverseConversationRequestOrBuilder
    *
    * map<string, string> user_labels = 7;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -266,10 +209,9 @@ public interface ConverseConversationRequestOrBuilder
    *
    * map<string, string> user_labels = 7;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -293,13 +235,11 @@ public interface ConverseConversationRequestOrBuilder
    * map<string, string> user_labels = 7;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -322,47 +262,33 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 7;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return Whether the summarySpec field is set. */ boolean hasSummarySpec(); /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return The summarySpec. */ com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec(); /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java index d8ea4e1fe7ed..8f9d33d45f47 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response message for
  * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1.ConversationalSearchService.ConverseConversation]
@@ -29,52 +12,47 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ConverseConversationResponse}
  */
-public final class ConverseConversationResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConverseConversationResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ConverseConversationResponse)
     ConverseConversationResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConverseConversationResponse.newBuilder() to construct.
   private ConverseConversationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConverseConversationResponse() {
     searchResults_ = 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 ConverseConversationResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ConverseConversationResponse.class,
-            com.google.cloud.discoveryengine.v1.ConverseConversationResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.ConverseConversationResponse.class, com.google.cloud.discoveryengine.v1.ConverseConversationResponse.Builder.class);
   }
 
   public static final int REPLY_FIELD_NUMBER = 1;
   private com.google.cloud.discoveryengine.v1.Reply reply_;
   /**
-   *
-   *
    * 
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; - * * @return Whether the reply field is set. */ @java.lang.Override @@ -82,14 +60,11 @@ public boolean hasReply() { return reply_ != null; } /** - * - * *
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; - * * @return The reply. */ @java.lang.Override @@ -97,8 +72,6 @@ public com.google.cloud.discoveryengine.v1.Reply getReply() { return reply_ == null ? com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance() : reply_; } /** - * - * *
    * Answer to the current query.
    * 
@@ -113,14 +86,11 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { public static final int CONVERSATION_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.Conversation conversation_; /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * * @return Whether the conversation field is set. */ @java.lang.Override @@ -128,25 +98,18 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Updated conversation including the answer.
    * 
@@ -155,94 +118,71 @@ public com.google.cloud.discoveryengine.v1.Conversation getConversation() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } public static final int SEARCH_RESULTS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List - searchResults_; + private java.util.List searchResults_; /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public java.util.List - getSearchResultsList() { + public java.util.List getSearchResultsList() { return searchResults_; } /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> + public java.util.List getSearchResultsOrBuilderList() { return searchResults_; } /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override public int getSearchResultsCount() { return searchResults_.size(); } /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getSearchResults( - int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getSearchResults(int index) { return searchResults_.get(index); } /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index) { return searchResults_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +194,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 (reply_ != null) { output.writeMessage(1, getReply()); } @@ -274,13 +215,16 @@ public int getSerializedSize() { size = 0; if (reply_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReply()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReply()); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); } for (int i = 0; i < searchResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, searchResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, searchResults_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -290,23 +234,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.discoveryengine.v1.ConverseConversationResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ConverseConversationResponse other = - (com.google.cloud.discoveryengine.v1.ConverseConversationResponse) obj; + com.google.cloud.discoveryengine.v1.ConverseConversationResponse other = (com.google.cloud.discoveryengine.v1.ConverseConversationResponse) obj; if (hasReply() != other.hasReply()) return false; if (hasReply()) { - if (!getReply().equals(other.getReply())) return false; + if (!getReply() + .equals(other.getReply())) return false; } if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } - if (!getSearchResultsList().equals(other.getSearchResultsList())) return false; + if (!getSearchResultsList() + .equals(other.getSearchResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,104 +282,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse 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.discoveryengine.v1.ConverseConversationResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ConverseConversationResponse 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
    * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1.ConversationalSearchService.ConverseConversation]
@@ -442,32 +382,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ConverseConversationResponse}
    */
-  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.discoveryengine.v1.ConverseConversationResponse)
       com.google.cloud.discoveryengine.v1.ConverseConversationResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ConverseConversationResponse.class,
-              com.google.cloud.discoveryengine.v1.ConverseConversationResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.ConverseConversationResponse.class, com.google.cloud.discoveryengine.v1.ConverseConversationResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ConverseConversationResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,14 +434,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ConverseConversationResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1.ConverseConversationResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1.ConverseConversationResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1.ConverseConversationResponse.getDefaultInstance();
     }
 
@@ -515,18 +455,14 @@ public com.google.cloud.discoveryengine.v1.ConverseConversationResponse build()
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ConverseConversationResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.ConverseConversationResponse result =
-          new com.google.cloud.discoveryengine.v1.ConverseConversationResponse(this);
+      com.google.cloud.discoveryengine.v1.ConverseConversationResponse result = new com.google.cloud.discoveryengine.v1.ConverseConversationResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.ConverseConversationResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ConverseConversationResponse result) {
       if (searchResultsBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           searchResults_ = java.util.Collections.unmodifiableList(searchResults_);
@@ -538,15 +474,17 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1.ConverseConversationResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1.ConverseConversationResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.reply_ = replyBuilder_ == null ? reply_ : replyBuilder_.build();
+        result.reply_ = replyBuilder_ == null
+            ? reply_
+            : replyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.conversation_ =
-            conversationBuilder_ == null ? conversation_ : conversationBuilder_.build();
+        result.conversation_ = conversationBuilder_ == null
+            ? conversation_
+            : conversationBuilder_.build();
       }
     }
 
@@ -554,50 +492,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.ConverseConversationResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ConverseConversationResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ConverseConversationResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1.ConverseConversationResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1.ConverseConversationResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ConverseConversationResponse other) {
+      if (other == com.google.cloud.discoveryengine.v1.ConverseConversationResponse.getDefaultInstance()) return this;
       if (other.hasReply()) {
         mergeReply(other.getReply());
       }
@@ -622,10 +556,9 @@ public Builder mergeFrom(
             searchResultsBuilder_ = null;
             searchResults_ = other.searchResults_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            searchResultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSearchResultsFieldBuilder()
-                    : null;
+            searchResultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSearchResultsFieldBuilder() : null;
           } else {
             searchResultsBuilder_.addAllMessages(other.searchResults_);
           }
@@ -657,39 +590,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getReplyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.parser(),
-                        extensionRegistry);
-                if (searchResultsBuilder_ == null) {
-                  ensureSearchResultsIsMutable();
-                  searchResults_.add(m);
-                } else {
-                  searchResultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getReplyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getConversationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.parser(),
+                      extensionRegistry);
+              if (searchResultsBuilder_ == null) {
+                ensureSearchResultsIsMutable();
+                searchResults_.add(m);
+              } else {
+                searchResultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -699,52 +632,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.discoveryengine.v1.Reply reply_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Reply,
-            com.google.cloud.discoveryengine.v1.Reply.Builder,
-            com.google.cloud.discoveryengine.v1.ReplyOrBuilder>
-        replyBuilder_;
+        com.google.cloud.discoveryengine.v1.Reply, com.google.cloud.discoveryengine.v1.Reply.Builder, com.google.cloud.discoveryengine.v1.ReplyOrBuilder> replyBuilder_;
     /**
-     *
-     *
      * 
      * Answer to the current query.
      * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; - * * @return Whether the reply field is set. */ public boolean hasReply() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Answer to the current query.
      * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; - * * @return The reply. */ public com.google.cloud.discoveryengine.v1.Reply getReply() { if (replyBuilder_ == null) { - return reply_ == null - ? com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance() - : reply_; + return reply_ == null ? com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance() : reply_; } else { return replyBuilder_.getMessage(); } } /** - * - * *
      * Answer to the current query.
      * 
@@ -765,15 +684,14 @@ public Builder setReply(com.google.cloud.discoveryengine.v1.Reply value) { return this; } /** - * - * *
      * Answer to the current query.
      * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; */ - public Builder setReply(com.google.cloud.discoveryengine.v1.Reply.Builder builderForValue) { + public Builder setReply( + com.google.cloud.discoveryengine.v1.Reply.Builder builderForValue) { if (replyBuilder_ == null) { reply_ = builderForValue.build(); } else { @@ -784,8 +702,6 @@ public Builder setReply(com.google.cloud.discoveryengine.v1.Reply.Builder builde return this; } /** - * - * *
      * Answer to the current query.
      * 
@@ -794,9 +710,9 @@ public Builder setReply(com.google.cloud.discoveryengine.v1.Reply.Builder builde */ public Builder mergeReply(com.google.cloud.discoveryengine.v1.Reply value) { if (replyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && reply_ != null - && reply_ != com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + reply_ != null && + reply_ != com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance()) { getReplyBuilder().mergeFrom(value); } else { reply_ = value; @@ -809,8 +725,6 @@ public Builder mergeReply(com.google.cloud.discoveryengine.v1.Reply value) { return this; } /** - * - * *
      * Answer to the current query.
      * 
@@ -828,8 +742,6 @@ public Builder clearReply() { return this; } /** - * - * *
      * Answer to the current query.
      * 
@@ -842,8 +754,6 @@ public com.google.cloud.discoveryengine.v1.Reply.Builder getReplyBuilder() { return getReplyFieldBuilder().getBuilder(); } /** - * - * *
      * Answer to the current query.
      * 
@@ -854,14 +764,11 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { if (replyBuilder_ != null) { return replyBuilder_.getMessageOrBuilder(); } else { - return reply_ == null - ? com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance() - : reply_; + return reply_ == null ? + com.google.cloud.discoveryengine.v1.Reply.getDefaultInstance() : reply_; } } /** - * - * *
      * Answer to the current query.
      * 
@@ -869,17 +776,14 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { * .google.cloud.discoveryengine.v1.Reply reply = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Reply, - com.google.cloud.discoveryengine.v1.Reply.Builder, - com.google.cloud.discoveryengine.v1.ReplyOrBuilder> + com.google.cloud.discoveryengine.v1.Reply, com.google.cloud.discoveryengine.v1.Reply.Builder, com.google.cloud.discoveryengine.v1.ReplyOrBuilder> getReplyFieldBuilder() { if (replyBuilder_ == null) { - replyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Reply, - com.google.cloud.discoveryengine.v1.Reply.Builder, - com.google.cloud.discoveryengine.v1.ReplyOrBuilder>( - getReply(), getParentForChildren(), isClean()); + replyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Reply, com.google.cloud.discoveryengine.v1.Reply.Builder, com.google.cloud.discoveryengine.v1.ReplyOrBuilder>( + getReply(), + getParentForChildren(), + isClean()); reply_ = null; } return replyBuilder_; @@ -887,47 +791,34 @@ public com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder() { private com.google.cloud.discoveryengine.v1.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Updated conversation including the answer.
      * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Updated conversation including the answer.
      * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * * @return The conversation. */ public com.google.cloud.discoveryengine.v1.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -948,8 +839,6 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1.Conversation return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -968,8 +857,6 @@ public Builder setConversation( return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -978,10 +865,9 @@ public Builder setConversation( */ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversation value) { if (conversationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && conversation_ != null - && conversation_ - != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) { getConversationBuilder().mergeFrom(value); } else { conversation_ = value; @@ -994,8 +880,6 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversatio return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1013,8 +897,6 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1027,8 +909,6 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversationB return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1039,14 +919,11 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1054,53 +931,39 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation * .google.cloud.discoveryengine.v1.Conversation conversation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; } - private java.util.List - searchResults_ = java.util.Collections.emptyList(); - + private java.util.List searchResults_ = + java.util.Collections.emptyList(); private void ensureSearchResultsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - searchResults_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult>(searchResults_); + searchResults_ = new java.util.ArrayList(searchResults_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> - searchResultsBuilder_; + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> searchResultsBuilder_; /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public java.util.List - getSearchResultsList() { + public java.util.List getSearchResultsList() { if (searchResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(searchResults_); } else { @@ -1108,15 +971,11 @@ private void ensureSearchResultsIsMutable() { } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public int getSearchResultsCount() { if (searchResultsBuilder_ == null) { @@ -1126,18 +985,13 @@ public int getSearchResultsCount() { } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getSearchResults( - int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getSearchResults(int index) { if (searchResultsBuilder_ == null) { return searchResults_.get(index); } else { @@ -1145,15 +999,11 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getSearch } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder setSearchResults( int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { @@ -1170,19 +1020,14 @@ public Builder setSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder setSearchResults( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); searchResults_.set(index, builderForValue.build()); @@ -1193,18 +1038,13 @@ public Builder setSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public Builder addSearchResults( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { + public Builder addSearchResults(com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { if (searchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1218,15 +1058,11 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder addSearchResults( int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { @@ -1243,15 +1079,11 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder addSearchResults( com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { @@ -1265,19 +1097,14 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder addSearchResults( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); searchResults_.add(index, builderForValue.build()); @@ -1288,23 +1115,18 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder addAllSearchResults( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult> - values) { + java.lang.Iterable values) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, searchResults_); onChanged(); } else { searchResultsBuilder_.addAllMessages(values); @@ -1312,15 +1134,11 @@ public Builder addAllSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder clearSearchResults() { if (searchResultsBuilder_ == null) { @@ -1333,15 +1151,11 @@ public Builder clearSearchResults() { return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ public Builder removeSearchResults(int index) { if (searchResultsBuilder_ == null) { @@ -1354,53 +1168,39 @@ public Builder removeSearchResults(int index) { return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder - getSearchResultsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder getSearchResultsBuilder( + int index) { return getSearchResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index) { if (searchResultsBuilder_ == null) { - return searchResults_.get(index); - } else { + return searchResults_.get(index); } else { return searchResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> - getSearchResultsOrBuilderList() { + public java.util.List + getSearchResultsOrBuilderList() { if (searchResultsBuilder_ != null) { return searchResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1408,67 +1208,45 @@ public Builder removeSearchResults(int index) { } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder - addSearchResultsBuilder() { - return getSearchResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder addSearchResultsBuilder() { + return getSearchResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder - addSearchResultsBuilder(int index) { - return getSearchResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder addSearchResultsBuilder( + int index) { + return getSearchResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - public java.util.List - getSearchResultsBuilderList() { + public java.util.List + getSearchResultsBuilderList() { return getSearchResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> getSearchResultsFieldBuilder() { if (searchResultsBuilder_ == null) { - searchResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder>( + searchResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder>( searchResults_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -1477,9 +1255,9 @@ public Builder removeSearchResults(int index) { } return searchResultsBuilder_; } - @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); } @@ -1489,43 +1267,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ConverseConversationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ConverseConversationResponse) - private static final com.google.cloud.discoveryengine.v1.ConverseConversationResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ConverseConversationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ConverseConversationResponse(); } - public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.ConverseConversationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConverseConversationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConverseConversationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1537,8 +1313,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ConverseConversationResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.ConverseConversationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java index c36480e48d1d..89abf6d2822e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConverseConversationResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; -public interface ConverseConversationResponseOrBuilder - extends +public interface ConverseConversationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ConverseConversationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; - * * @return Whether the reply field is set. */ boolean hasReply(); /** - * - * *
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1.Reply reply = 1; - * * @return The reply. */ com.google.cloud.discoveryengine.v1.Reply getReply(); /** - * - * *
    * Answer to the current query.
    * 
@@ -59,32 +35,24 @@ public interface ConverseConversationResponseOrBuilder com.google.cloud.discoveryengine.v1.ReplyOrBuilder getReplyOrBuilder(); /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * * @return The conversation. */ com.google.cloud.discoveryengine.v1.Conversation getConversation(); /** - * - * *
    * Updated conversation including the answer.
    * 
@@ -94,61 +62,46 @@ public interface ConverseConversationResponseOrBuilder com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder(); /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - java.util.List + java.util.List getSearchResultsList(); /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getSearchResults(int index); /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ int getSearchResultsCount(); /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - java.util.List + java.util.List getSearchResultsOrBuilderList(); /** - * - * *
    * Search Results.
    * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; */ - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder - getSearchResultsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java similarity index 60% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java index 47cf0308c1bd..b950f8b3b6f6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request for CreateConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.CreateConversationRequest} */ -public final class CreateConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateConversationRequest) CreateConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConversationRequest.newBuilder() to construct. private CreateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConversationRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CreateConversationRequest.class, - com.google.cloud.discoveryengine.v1.CreateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.CreateConversationRequest.class, com.google.cloud.discoveryengine.v1.CreateConversationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Full resource name of parent data store. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 @@ -86,32 +61,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. Full resource name of parent data store. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONVERSATION_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.Conversation conversation_; /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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.discoveryengine.v1.CreateConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CreateConversationRequest other = - (com.google.cloud.discoveryengine.v1.CreateConversationRequest) obj; + com.google.cloud.discoveryengine.v1.CreateConversationRequest other = (com.google.cloud.discoveryengine.v1.CreateConversationRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CreateConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CreateConversationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CreateConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CreateConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest 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.discoveryengine.v1.CreateConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CreateConversationRequest 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 for CreateConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.CreateConversationRequest} */ - 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.discoveryengine.v1.CreateConversationRequest) com.google.cloud.discoveryengine.v1.CreateConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CreateConversationRequest.class, - com.google.cloud.discoveryengine.v1.CreateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.CreateConversationRequest.class, com.google.cloud.discoveryengine.v1.CreateConversationRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.CreateConversationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.CreateConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.CreateConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.CreateConversationRequest.getDefaultInstance(); } @@ -420,24 +371,21 @@ public com.google.cloud.discoveryengine.v1.CreateConversationRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.CreateConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1.CreateConversationRequest result = - new com.google.cloud.discoveryengine.v1.CreateConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.CreateConversationRequest result = new com.google.cloud.discoveryengine.v1.CreateConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.CreateConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.conversation_ = - conversationBuilder_ == null ? conversation_ : conversationBuilder_.build(); + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); } } @@ -445,39 +393,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.CreateConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.CreateConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.CreateConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -485,9 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1.CreateConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.CreateConversationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -522,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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; @@ -580,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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 { @@ -605,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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() { @@ -649,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ public com.google.cloud.discoveryengine.v1.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation(com.google.cloud.discoveryengine.v1.Conversation value) { if (conversationBuilder_ == null) { @@ -743,15 +643,11 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1.Conversation return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation( com.google.cloud.discoveryengine.v1.Conversation.Builder builderForValue) { @@ -765,22 +661,17 @@ public Builder setConversation( return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversation value) { if (conversationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && conversation_ != null - && conversation_ - != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) { getConversationBuilder().mergeFrom(value); } else { conversation_ = value; @@ -793,15 +684,11 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversatio return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConversation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -814,15 +701,11 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversationBuilder() { bitField0_ |= 0x00000002; @@ -830,55 +713,43 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversationB return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; } - @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); } @@ -888,13 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateConversationRequest) - private static final com.google.cloud.discoveryengine.v1.CreateConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.CreateConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateConversationRequest(); } @@ -903,27 +773,27 @@ public static com.google.cloud.discoveryengine.v1.CreateConversationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.discoveryengine.v1.CreateConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java new file mode 100644 index 000000000000..eaefff1601e4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateConversationRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1; + +public interface CreateConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + com.google.cloud.discoveryengine.v1.Conversation getConversation(); + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java index 23b1a5432758..138634d75192 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [DocumentService.CreateDocument][google.cloud.discoveryengine.v1.DocumentService.CreateDocument]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.CreateDocumentRequest}
  */
-public final class CreateDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateDocumentRequest)
     CreateDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateDocumentRequest.newBuilder() to construct.
   private CreateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateDocumentRequest() {
     parent_ = "";
     documentId_ = "";
@@ -46,41 +28,34 @@ private CreateDocumentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.CreateDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1.CreateDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.CreateDocumentRequest.class, com.google.cloud.discoveryengine.v1.CreateDocumentRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 @@ -89,32 +64,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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,17 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.Document document_; /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -143,51 +111,35 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } public static final int DOCUMENT_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object documentId_ = ""; /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -209,7 +161,6 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The documentId. */ @java.lang.Override @@ -218,15 +169,14 @@ public java.lang.String getDocumentId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -248,15 +198,16 @@ public java.lang.String getDocumentId() {
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for documentId. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentIdBytes() { + public com.google.protobuf.ByteString + getDocumentIdBytes() { java.lang.Object ref = documentId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentId_ = b; return b; } else { @@ -265,7 +216,6 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,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_); } @@ -300,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentId_); @@ -313,20 +265,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.discoveryengine.v1.CreateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CreateDocumentRequest other = - (com.google.cloud.discoveryengine.v1.CreateDocumentRequest) obj; + com.google.cloud.discoveryengine.v1.CreateDocumentRequest other = (com.google.cloud.discoveryengine.v1.CreateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } - if (!getDocumentId().equals(other.getDocumentId())) return false; + if (!getDocumentId() + .equals(other.getDocumentId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,104 +306,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest 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.discoveryengine.v1.CreateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CreateDocumentRequest 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
    * [DocumentService.CreateDocument][google.cloud.discoveryengine.v1.DocumentService.CreateDocument]
@@ -458,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.CreateDocumentRequest}
    */
-  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.discoveryengine.v1.CreateDocumentRequest)
       com.google.cloud.discoveryengine.v1.CreateDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.CreateDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1.CreateDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.CreateDocumentRequest.class, com.google.cloud.discoveryengine.v1.CreateDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.CreateDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -499,9 +448,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
@@ -520,11 +469,8 @@ public com.google.cloud.discoveryengine.v1.CreateDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.CreateDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.CreateDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1.CreateDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.CreateDocumentRequest result = new com.google.cloud.discoveryengine.v1.CreateDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -535,7 +481,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateDocumentReq
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build();
+        result.document_ = documentBuilder_ == null
+            ? document_
+            : documentBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.documentId_ = documentId_;
@@ -546,39 +494,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateDocumentReq
     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.discoveryengine.v1.CreateDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.CreateDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.CreateDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -586,8 +533,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateDocumentRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.CreateDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.CreateDocumentRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -627,31 +573,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                documentId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getDocumentFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              documentId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -661,28 +605,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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; @@ -691,24 +630,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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 { @@ -716,41 +652,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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() { @@ -760,24 +685,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -787,61 +706,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.discoveryengine.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) { if (documentBuilder_ == null) { @@ -857,16 +757,12 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) { return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument( com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { @@ -880,22 +776,18 @@ public Builder setDocument( return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && document_ != null - && document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -908,16 +800,12 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000002); @@ -930,16 +818,12 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000002; @@ -947,50 +831,38 @@ public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder() return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; @@ -998,8 +870,6 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde private java.lang.Object documentId_ = ""; /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -1021,13 +891,13 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The documentId. */ public java.lang.String getDocumentId() { java.lang.Object ref = documentId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentId_ = s; return s; @@ -1036,8 +906,6 @@ public java.lang.String getDocumentId() { } } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -1059,14 +927,15 @@ public java.lang.String getDocumentId() {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for documentId. */ - public com.google.protobuf.ByteString getDocumentIdBytes() { + public com.google.protobuf.ByteString + getDocumentIdBytes() { java.lang.Object ref = documentId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentId_ = b; return b; } else { @@ -1074,8 +943,6 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { } } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -1097,22 +964,18 @@ public com.google.protobuf.ByteString getDocumentIdBytes() {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The documentId to set. * @return This builder for chaining. */ - public Builder setDocumentId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -1134,7 +997,6 @@ public Builder setDocumentId(java.lang.String value) {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDocumentId() { @@ -1144,8 +1006,6 @@ public Builder clearDocumentId() { return this; } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -1167,23 +1027,21 @@ public Builder clearDocumentId() {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for documentId to set. * @return This builder for chaining. */ - public Builder setDocumentIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1193,12 +1051,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateDocumentRequest) private static final com.google.cloud.discoveryengine.v1.CreateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateDocumentRequest(); } @@ -1207,27 +1065,27 @@ public static com.google.cloud.discoveryengine.v1.CreateDocumentRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1242,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CreateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java index 5ff0769002a3..79e0bda8291a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateDocumentRequestOrBuilder.java @@ -1,106 +1,65 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; -public interface CreateDocumentRequestOrBuilder - extends +public interface CreateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 [Document][google.cloud.discoveryengine.v1.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ com.google.cloud.discoveryengine.v1.Document getDocument(); /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -122,13 +81,10 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The documentId. */ java.lang.String getDocumentId(); /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1.Document], which will become the
@@ -150,8 +106,8 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for documentId. */ - com.google.protobuf.ByteString getDocumentIdBytes(); + com.google.protobuf.ByteString + getDocumentIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java index f52cce48366c..af1ca2d60d4d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadata.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Metadata for Create Schema LRO.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.CreateSchemaMetadata} */ -public final class CreateSchemaMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateSchemaMetadata) CreateSchemaMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSchemaMetadata.newBuilder() to construct. private CreateSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateSchemaMetadata() {} + private CreateSchemaMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSchemaMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.class, com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -109,15 +83,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -125,15 +96,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -141,8 +109,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.
@@ -156,7 +122,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,7 +133,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (createTime_ != null) {
       output.writeMessage(1, getCreateTime());
     }
@@ -185,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -198,21 +166,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.discoveryengine.v1.CreateSchemaMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1.CreateSchemaMetadata other =
-        (com.google.cloud.discoveryengine.v1.CreateSchemaMetadata) obj;
+    com.google.cloud.discoveryengine.v1.CreateSchemaMetadata other = (com.google.cloud.discoveryengine.v1.CreateSchemaMetadata) obj;
 
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -239,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata 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.discoveryengine.v1.CreateSchemaMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CreateSchemaMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for Create Schema LRO.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.CreateSchemaMetadata} */ - 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.discoveryengine.v1.CreateSchemaMetadata) com.google.cloud.discoveryengine.v1.CreateSchemaMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.class, com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; } @java.lang.Override @@ -408,11 +372,8 @@ public com.google.cloud.discoveryengine.v1.CreateSchemaMetadata build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.CreateSchemaMetadata buildPartial() { - com.google.cloud.discoveryengine.v1.CreateSchemaMetadata result = - new com.google.cloud.discoveryengine.v1.CreateSchemaMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.CreateSchemaMetadata result = new com.google.cloud.discoveryengine.v1.CreateSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -420,10 +381,14 @@ public com.google.cloud.discoveryengine.v1.CreateSchemaMetadata buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateSchemaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -431,39 +396,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateSchemaMetad 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.discoveryengine.v1.CreateSchemaMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1.CreateSchemaMetadata) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.CreateSchemaMetadata)other); } else { super.mergeFrom(other); return this; @@ -471,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateSchemaMetadata other) { - if (other == com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.CreateSchemaMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -505,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -599,15 +549,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -618,8 +567,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -628,9 +575,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -643,8 +590,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -662,8 +607,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -676,8 +619,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -688,14 +629,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.
      * 
@@ -703,17 +641,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -721,49 +656,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -785,8 +707,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.
@@ -794,7 +714,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -805,8 +726,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.
@@ -816,9 +735,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -831,8 +750,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.
@@ -851,8 +768,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -866,8 +781,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -879,14 +792,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.
@@ -895,24 +805,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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);
     }
 
@@ -922,12 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateSchemaMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateSchemaMetadata)
   private static final com.google.cloud.discoveryengine.v1.CreateSchemaMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateSchemaMetadata();
   }
@@ -936,27 +843,27 @@ public static com.google.cloud.discoveryengine.v1.CreateSchemaMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CreateSchemaMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CreateSchemaMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -971,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1.CreateSchemaMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java
similarity index 70%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java
index 720fd3653e5c..9faf56596a05 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaMetadataOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
-public interface CreateSchemaMetadataOrBuilder
-    extends
+public interface CreateSchemaMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateSchemaMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface CreateSchemaMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java
similarity index 66%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java
index e34dabcd0482..d3fd8b3897bd 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
 /**
- *
- *
  * 
  * Request message for
  * [SchemaService.CreateSchema][google.cloud.discoveryengine.v1.SchemaService.CreateSchema]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.CreateSchemaRequest}
  */
-public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateSchemaRequest)
     CreateSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateSchemaRequest.newBuilder() to construct.
   private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateSchemaRequest() {
     parent_ = "";
     schemaId_ = "";
@@ -46,41 +28,34 @@ private CreateSchemaRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.CreateSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1.CreateSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.CreateSchemaRequest.class, com.google.cloud.discoveryengine.v1.CreateSchemaRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -89,32 +64,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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -125,16 +98,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.Schema schema_; /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ @java.lang.Override @@ -142,49 +110,33 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Schema getSchema() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } public static final int SCHEMA_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -197,7 +149,6 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder()
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schemaId. */ @java.lang.Override @@ -206,15 +157,14 @@ public java.lang.String getSchemaId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -227,15 +177,16 @@ public java.lang.String getSchemaId() {
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schemaId. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -244,7 +195,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +206,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_); } @@ -279,7 +230,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); @@ -292,20 +244,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.discoveryengine.v1.CreateSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CreateSchemaRequest other = - (com.google.cloud.discoveryengine.v1.CreateSchemaRequest) obj; + com.google.cloud.discoveryengine.v1.CreateSchemaRequest other = (com.google.cloud.discoveryengine.v1.CreateSchemaRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; } - if (!getSchemaId().equals(other.getSchemaId())) return false; + if (!getSchemaId() + .equals(other.getSchemaId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,104 +285,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest 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.discoveryengine.v1.CreateSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CreateSchemaRequest 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
    * [SchemaService.CreateSchema][google.cloud.discoveryengine.v1.SchemaService.CreateSchema]
@@ -437,32 +385,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.CreateSchemaRequest}
    */
-  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.discoveryengine.v1.CreateSchemaRequest)
       com.google.cloud.discoveryengine.v1.CreateSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.CreateSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1.CreateSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.CreateSchemaRequest.class, com.google.cloud.discoveryengine.v1.CreateSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.CreateSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -478,9 +427,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -499,11 +448,8 @@ public com.google.cloud.discoveryengine.v1.CreateSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.CreateSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.CreateSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1.CreateSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.CreateSchemaRequest result = new com.google.cloud.discoveryengine.v1.CreateSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -514,7 +460,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateSchemaReque
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build();
+        result.schema_ = schemaBuilder_ == null
+            ? schema_
+            : schemaBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.schemaId_ = schemaId_;
@@ -525,39 +473,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateSchemaReque
     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.discoveryengine.v1.CreateSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.CreateSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.CreateSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.CreateSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.CreateSchemaRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -606,31 +552,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                schemaId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              schemaId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -640,28 +584,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -670,24 +609,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -695,41 +631,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -739,24 +664,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -766,58 +685,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder> - schemaBuilder_; + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder> schemaBuilder_; /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ public com.google.cloud.discoveryengine.v1.Schema getSchema() { if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema value) { if (schemaBuilder_ == null) { @@ -833,17 +733,14 @@ public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema value) { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { + public Builder setSchema( + com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { @@ -854,21 +751,17 @@ public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema.Builder buil return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSchema(com.google.cloud.discoveryengine.v1.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && schema_ != null - && schema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + schema_ != null && + schema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; @@ -881,15 +774,11 @@ public Builder mergeSchema(com.google.cloud.discoveryengine.v1.Schema value) { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,15 +791,11 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; @@ -918,48 +803,36 @@ public com.google.cloud.discoveryengine.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? + com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); schema_ = null; } return schemaBuilder_; @@ -967,8 +840,6 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder() private java.lang.Object schemaId_ = ""; /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -981,13 +852,13 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder()
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; @@ -996,8 +867,6 @@ public java.lang.String getSchemaId() { } } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -1010,14 +879,15 @@ public java.lang.String getSchemaId() {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schemaId. */ - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -1025,8 +895,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -1039,22 +907,18 @@ public com.google.protobuf.ByteString getSchemaIdBytes() {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -1067,7 +931,6 @@ public Builder setSchemaId(java.lang.String value) {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSchemaId() { @@ -1077,8 +940,6 @@ public Builder clearSchemaId() { return this; } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -1091,23 +952,21 @@ public Builder clearSchemaId() {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateSchemaRequest) private static final com.google.cloud.discoveryengine.v1.CreateSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateSchemaRequest(); } @@ -1131,27 +990,27 @@ public static com.google.cloud.discoveryengine.v1.CreateSchemaRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1166,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CreateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java index 93f253ff767c..81b07067fa72 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSchemaRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; -public interface CreateSchemaRequestOrBuilder - extends +public interface CreateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ com.google.cloud.discoveryengine.v1.Schema getSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder(); /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -110,13 +69,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schemaId. */ java.lang.String getSchemaId(); /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1.Schema], which will become the
@@ -129,8 +85,8 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString getSchemaIdBytes(); + com.google.protobuf.ByteString + getSchemaIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java index aceeca917168..8562c208fab8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttribute.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/common.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * A custom attribute that is not explicitly modeled in a resource, e.g.
  * [UserEvent][google.cloud.discoveryengine.v1.UserEvent].
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.CustomAttribute}
  */
-public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomAttribute extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CustomAttribute)
     CustomAttributeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomAttribute.newBuilder() to construct.
   private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomAttribute() {
-    text_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    text_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     numbers_ = emptyDoubleList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomAttribute();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.CommonProto
-        .internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.CommonProto
-        .internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.CustomAttribute.class,
-            com.google.cloud.discoveryengine.v1.CustomAttribute.Builder.class);
+            com.google.cloud.discoveryengine.v1.CustomAttribute.class, com.google.cloud.discoveryengine.v1.CustomAttribute.Builder.class);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList text_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -87,15 +66,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string text = 1; - * * @return A list containing the text. */ - public com.google.protobuf.ProtocolStringList getTextList() { + public com.google.protobuf.ProtocolStringList + getTextList() { return text_; } /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -111,15 +88,12 @@ public com.google.protobuf.ProtocolStringList getTextList() {
    * 
* * repeated string text = 1; - * * @return The count of text. */ public int getTextCount() { return text_.size(); } /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -135,7 +109,6 @@ public int getTextCount() {
    * 
* * repeated string text = 1; - * * @param index The index of the element to return. * @return The text at the given index. */ @@ -143,8 +116,6 @@ public java.lang.String getText(int index) { return text_.get(index); } /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -160,21 +131,18 @@ public java.lang.String getText(int index) {
    * 
* * repeated string text = 1; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - public com.google.protobuf.ByteString getTextBytes(int index) { + public com.google.protobuf.ByteString + getTextBytes(int index) { return text_.getByteString(index); } public static final int NUMBERS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList numbers_; /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -187,16 +155,14 @@ public com.google.protobuf.ByteString getTextBytes(int index) {
    * 
* * repeated double numbers = 2; - * * @return A list containing the numbers. */ @java.lang.Override - public java.util.List getNumbersList() { + public java.util.List + getNumbersList() { return numbers_; } /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -209,15 +175,12 @@ public java.util.List getNumbersList() {
    * 
* * repeated double numbers = 2; - * * @return The count of numbers. */ public int getNumbersCount() { return numbers_.size(); } /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -230,18 +193,15 @@ public int getNumbersCount() {
    * 
* * repeated double numbers = 2; - * * @param index The index of the element to return. * @return The numbers at the given index. */ public double getNumbers(int index) { return numbers_.getDouble(index); } - private int numbersMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +213,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(); for (int i = 0; i < text_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_.getRaw(i)); @@ -288,7 +249,8 @@ public int getSerializedSize() { size += dataSize; if (!getNumbersList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } numbersMemoizedSerializedSize = dataSize; } @@ -300,16 +262,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.discoveryengine.v1.CustomAttribute)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.CustomAttribute other = - (com.google.cloud.discoveryengine.v1.CustomAttribute) obj; + com.google.cloud.discoveryengine.v1.CustomAttribute other = (com.google.cloud.discoveryengine.v1.CustomAttribute) obj; - if (!getTextList().equals(other.getTextList())) return false; - if (!getNumbersList().equals(other.getNumbersList())) return false; + if (!getTextList() + .equals(other.getTextList())) return false; + if (!getNumbersList() + .equals(other.getNumbersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -335,103 +298,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CustomAttribute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.CustomAttribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CustomAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.CustomAttribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute 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.discoveryengine.v1.CustomAttribute 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 custom attribute that is not explicitly modeled in a resource, e.g.
    * [UserEvent][google.cloud.discoveryengine.v1.UserEvent].
@@ -439,45 +397,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.CustomAttribute}
    */
-  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.discoveryengine.v1.CustomAttribute)
       com.google.cloud.discoveryengine.v1.CustomAttributeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.CommonProto
-          .internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.CommonProto
-          .internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_CustomAttribute_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.CustomAttribute.class,
-              com.google.cloud.discoveryengine.v1.CustomAttribute.Builder.class);
+              com.google.cloud.discoveryengine.v1.CustomAttribute.class, com.google.cloud.discoveryengine.v1.CustomAttribute.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.CustomAttribute.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      text_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      text_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       numbers_ = emptyDoubleList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.CommonProto
-          .internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_CustomAttribute_descriptor;
     }
 
     @java.lang.Override
@@ -496,18 +456,14 @@ public com.google.cloud.discoveryengine.v1.CustomAttribute build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.CustomAttribute buildPartial() {
-      com.google.cloud.discoveryengine.v1.CustomAttribute result =
-          new com.google.cloud.discoveryengine.v1.CustomAttribute(this);
+      com.google.cloud.discoveryengine.v1.CustomAttribute result = new com.google.cloud.discoveryengine.v1.CustomAttribute(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.CustomAttribute result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.CustomAttribute result) {
       if (((bitField0_ & 0x00000002) != 0)) {
         numbers_.makeImmutable();
         bitField0_ = (bitField0_ & ~0x00000002);
@@ -527,39 +483,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CustomAttribute r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.CustomAttribute) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.CustomAttribute) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.CustomAttribute)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,8 +522,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CustomAttribute other) {
-      if (other == com.google.cloud.discoveryengine.v1.CustomAttribute.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.CustomAttribute.getDefaultInstance()) return this;
       if (!other.text_.isEmpty()) {
         if (text_.isEmpty()) {
           text_ = other.text_;
@@ -615,38 +569,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTextIsMutable();
-                text_.add(s);
-                break;
-              } // case 10
-            case 17:
-              {
-                double v = input.readDouble();
-                ensureNumbersIsMutable();
-                numbers_.addDouble(v);
-                break;
-              } // case 17
-            case 18:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensureNumbersIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  numbers_.addDouble(input.readDouble());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTextIsMutable();
+              text_.add(s);
+              break;
+            } // case 10
+            case 17: {
+              double v = input.readDouble();
+              ensureNumbersIsMutable();
+              numbers_.addDouble(v);
+              break;
+            } // case 17
+            case 18: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureNumbersIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                numbers_.addDouble(input.readDouble());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -656,12 +606,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList text_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureTextIsMutable() {
       if (!text_.isModifiable()) {
         text_ = new com.google.protobuf.LazyStringArrayList(text_);
@@ -669,8 +617,6 @@ private void ensureTextIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -686,16 +632,14 @@ private void ensureTextIsMutable() {
      * 
* * repeated string text = 1; - * * @return A list containing the text. */ - public com.google.protobuf.ProtocolStringList getTextList() { + public com.google.protobuf.ProtocolStringList + getTextList() { text_.makeImmutable(); return text_; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -711,15 +655,12 @@ public com.google.protobuf.ProtocolStringList getTextList() {
      * 
* * repeated string text = 1; - * * @return The count of text. */ public int getTextCount() { return text_.size(); } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -735,7 +676,6 @@ public int getTextCount() {
      * 
* * repeated string text = 1; - * * @param index The index of the element to return. * @return The text at the given index. */ @@ -743,8 +683,6 @@ public java.lang.String getText(int index) { return text_.get(index); } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -760,16 +698,14 @@ public java.lang.String getText(int index) {
      * 
* * repeated string text = 1; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - public com.google.protobuf.ByteString getTextBytes(int index) { + public com.google.protobuf.ByteString + getTextBytes(int index) { return text_.getByteString(index); } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -785,15 +721,13 @@ public com.google.protobuf.ByteString getTextBytes(int index) {
      * 
* * repeated string text = 1; - * * @param index The index to set the value at. * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setText( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.set(index, value); bitField0_ |= 0x00000001; @@ -801,8 +735,6 @@ public Builder setText(int index, java.lang.String value) { return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -818,14 +750,12 @@ public Builder setText(int index, java.lang.String value) {
      * 
* * repeated string text = 1; - * * @param value The text to add. * @return This builder for chaining. */ - public Builder addText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.add(value); bitField0_ |= 0x00000001; @@ -833,8 +763,6 @@ public Builder addText(java.lang.String value) { return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -850,20 +778,19 @@ public Builder addText(java.lang.String value) {
      * 
* * repeated string text = 1; - * * @param values The text to add. * @return This builder for chaining. */ - public Builder addAllText(java.lang.Iterable values) { + public Builder addAllText( + java.lang.Iterable values) { ensureTextIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, text_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, text_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -879,19 +806,16 @@ public Builder addAllText(java.lang.Iterable values) {
      * 
* * repeated string text = 1; - * * @return This builder for chaining. */ public Builder clearText() { - text_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -907,14 +831,12 @@ public Builder clearText() {
      * 
* * repeated string text = 1; - * * @param value The bytes of the text to add. * @return This builder for chaining. */ - public Builder addTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTextIsMutable(); text_.add(value); @@ -924,7 +846,6 @@ public Builder addTextBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.DoubleList numbers_ = emptyDoubleList(); - private void ensureNumbersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { numbers_ = mutableCopy(numbers_); @@ -932,8 +853,6 @@ private void ensureNumbersIsMutable() { } } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -946,17 +865,14 @@ private void ensureNumbersIsMutable() {
      * 
* * repeated double numbers = 2; - * * @return A list containing the numbers. */ - public java.util.List getNumbersList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(numbers_) - : numbers_; + public java.util.List + getNumbersList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(numbers_) : numbers_; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -969,15 +885,12 @@ public java.util.List getNumbersList() {
      * 
* * repeated double numbers = 2; - * * @return The count of numbers. */ public int getNumbersCount() { return numbers_.size(); } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -990,7 +903,6 @@ public int getNumbersCount() {
      * 
* * repeated double numbers = 2; - * * @param index The index of the element to return. * @return The numbers at the given index. */ @@ -998,8 +910,6 @@ public double getNumbers(int index) { return numbers_.getDouble(index); } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1012,12 +922,12 @@ public double getNumbers(int index) {
      * 
* * repeated double numbers = 2; - * * @param index The index to set the value at. * @param value The numbers to set. * @return This builder for chaining. */ - public Builder setNumbers(int index, double value) { + public Builder setNumbers( + int index, double value) { ensureNumbersIsMutable(); numbers_.setDouble(index, value); @@ -1025,8 +935,6 @@ public Builder setNumbers(int index, double value) { return this; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1039,7 +947,6 @@ public Builder setNumbers(int index, double value) {
      * 
* * repeated double numbers = 2; - * * @param value The numbers to add. * @return This builder for chaining. */ @@ -1051,8 +958,6 @@ public Builder addNumbers(double value) { return this; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1065,19 +970,18 @@ public Builder addNumbers(double value) {
      * 
* * repeated double numbers = 2; - * * @param values The numbers to add. * @return This builder for chaining. */ - public Builder addAllNumbers(java.lang.Iterable values) { + public Builder addAllNumbers( + java.lang.Iterable values) { ensureNumbersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, numbers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, numbers_); onChanged(); return this; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1090,7 +994,6 @@ public Builder addAllNumbers(java.lang.Iterable valu
      * 
* * repeated double numbers = 2; - * * @return This builder for chaining. */ public Builder clearNumbers() { @@ -1099,9 +1002,9 @@ public Builder clearNumbers() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1111,12 +1014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CustomAttribute) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CustomAttribute) private static final com.google.cloud.discoveryengine.v1.CustomAttribute DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CustomAttribute(); } @@ -1125,27 +1028,27 @@ public static com.google.cloud.discoveryengine.v1.CustomAttribute getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAttribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1160,4 +1063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.CustomAttribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java similarity index 84% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java index 0d541cb6873a..66e94f94aed1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CustomAttributeOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/common.proto package com.google.cloud.discoveryengine.v1; -public interface CustomAttributeOrBuilder - extends +public interface CustomAttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CustomAttribute) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -41,13 +23,11 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @return A list containing the text. */ - java.util.List getTextList(); + java.util.List + getTextList(); /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -63,13 +43,10 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @return The count of text. */ int getTextCount(); /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -85,14 +62,11 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @param index The index of the element to return. * @return The text at the given index. */ java.lang.String getText(int index); /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -108,15 +82,13 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - com.google.protobuf.ByteString getTextBytes(int index); + com.google.protobuf.ByteString + getTextBytes(int index); /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -129,13 +101,10 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated double numbers = 2; - * * @return A list containing the numbers. */ java.util.List getNumbersList(); /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -148,13 +117,10 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated double numbers = 2; - * * @return The count of numbers. */ int getNumbersCount(); /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -167,7 +133,6 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated double numbers = 2; - * * @param index The index of the element to return. * @return The numbers at the given index. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java similarity index 63% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java index c265ed36472a..3ab0bf490c1c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request for DeleteConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteConversationRequest} */ -public final class DeleteConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteConversationRequest) DeleteConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConversationRequest.newBuilder() to construct. private DeleteConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConversationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest.class, - com.google.cloud.discoveryengine.v1.DeleteConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.DeleteConversationRequest.class, com.google.cloud.discoveryengine.v1.DeleteConversationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the Conversation to delete. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 @@ -86,32 +61,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 resource name of the Conversation to delete. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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.discoveryengine.v1.DeleteConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.DeleteConversationRequest other = - (com.google.cloud.discoveryengine.v1.DeleteConversationRequest) obj; + com.google.cloud.discoveryengine.v1.DeleteConversationRequest other = (com.google.cloud.discoveryengine.v1.DeleteConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest 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.discoveryengine.v1.DeleteConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DeleteConversationRequest 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 for DeleteConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteConversationRequest} */ - 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.discoveryengine.v1.DeleteConversationRequest) com.google.cloud.discoveryengine.v1.DeleteConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest.class, - com.google.cloud.discoveryengine.v1.DeleteConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.DeleteConversationRequest.class, com.google.cloud.discoveryengine.v1.DeleteConversationRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.DeleteConversationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.DeleteConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.DeleteConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.DeleteConversationRequest.getDefaultInstance(); } @@ -345,17 +312,13 @@ public com.google.cloud.discoveryengine.v1.DeleteConversationRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.DeleteConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1.DeleteConversationRequest result = - new com.google.cloud.discoveryengine.v1.DeleteConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.DeleteConversationRequest result = new com.google.cloud.discoveryengine.v1.DeleteConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.DeleteConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,39 +329,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.DeleteConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -406,9 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1.DeleteConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.DeleteConversationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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; @@ -492,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -517,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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() { @@ -561,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,13 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteConversationRequest) - private static final com.google.cloud.discoveryengine.v1.DeleteConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.DeleteConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteConversationRequest(); } @@ -612,27 +544,27 @@ public static com.google.cloud.discoveryengine.v1.DeleteConversationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.discoveryengine.v1.DeleteConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java new file mode 100644 index 000000000000..e68ab39f7816 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteConversationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1; + +public interface DeleteConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java index fc9049a3fd5b..d78903beefce 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1.DocumentService.DeleteDocument]
@@ -29,48 +12,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteDocumentRequest}
  */
-public final class DeleteDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteDocumentRequest)
     DeleteDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteDocumentRequest.newBuilder() to construct.
   private DeleteDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteDocumentRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.class, com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 @@ -96,15 +71,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
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -118,18 +92,17 @@ public java.lang.String getName() {
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 { @@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +122,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_); } @@ -174,15 +147,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.discoveryengine.v1.DeleteDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.DeleteDocumentRequest other = - (com.google.cloud.discoveryengine.v1.DeleteDocumentRequest) obj; + com.google.cloud.discoveryengine.v1.DeleteDocumentRequest other = (com.google.cloud.discoveryengine.v1.DeleteDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,104 +175,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest 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.discoveryengine.v1.DeleteDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DeleteDocumentRequest 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
    * [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1.DocumentService.DeleteDocument]
@@ -308,32 +275,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteDocumentRequest}
    */
-  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.discoveryengine.v1.DeleteDocumentRequest)
       com.google.cloud.discoveryengine.v1.DeleteDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.class, com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +311,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor;
     }
 
     @java.lang.Override
@@ -364,11 +332,8 @@ public com.google.cloud.discoveryengine.v1.DeleteDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.DeleteDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.DeleteDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1.DeleteDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.DeleteDocumentRequest result = new com.google.cloud.discoveryengine.v1.DeleteDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -384,39 +349,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteDocumentReq
     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.discoveryengine.v1.DeleteDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -424,8 +388,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteDocumentRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.DeleteDocumentRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -457,19 +420,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -479,13 +440,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -499,16 +457,14 @@ public Builder mergeFrom(
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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; @@ -517,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -532,17 +486,16 @@ public java.lang.String getName() {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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 { @@ -550,8 +503,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -565,25 +516,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -597,10 +542,7 @@ public Builder setName(java.lang.String value) {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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() { @@ -610,8 +552,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -625,26 +565,22 @@ public Builder clearName() {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteDocumentRequest) private static final com.google.cloud.discoveryengine.v1.DeleteDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteDocumentRequest(); } @@ -668,27 +604,27 @@ public static com.google.cloud.discoveryengine.v1.DeleteDocumentRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -703,4 +639,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.DeleteDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java index 7004759c9893..2495e059cf3a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; -public interface DeleteDocumentRequestOrBuilder - extends +public interface DeleteDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -39,16 +21,11 @@ public interface DeleteDocumentRequestOrBuilder
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -62,11 +39,9 @@ public interface DeleteDocumentRequestOrBuilder
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java index 63c41230995e..60c01c11c601 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadata.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Metadata for DeleteSchema LRO.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteSchemaMetadata} */ -public final class DeleteSchemaMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteSchemaMetadata) DeleteSchemaMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSchemaMetadata.newBuilder() to construct. private DeleteSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeleteSchemaMetadata() {} + private DeleteSchemaMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSchemaMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.class, - com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.class, com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -109,15 +83,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -125,15 +96,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -141,8 +109,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.
@@ -156,7 +122,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,7 +133,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (createTime_ != null) {
       output.writeMessage(1, getCreateTime());
     }
@@ -185,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -198,21 +166,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.discoveryengine.v1.DeleteSchemaMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata other =
-        (com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata) obj;
+    com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata other = (com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata) obj;
 
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -239,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata 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.discoveryengine.v1.DeleteSchemaMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for DeleteSchema LRO.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteSchemaMetadata} */ - 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.discoveryengine.v1.DeleteSchemaMetadata) com.google.cloud.discoveryengine.v1.DeleteSchemaMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.class, - com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.class, com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; } @java.lang.Override @@ -408,11 +372,8 @@ public com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata buildPartial() { - com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata result = - new com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata result = new com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -420,10 +381,14 @@ public com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -431,39 +396,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteSchemaMetad 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.discoveryengine.v1.DeleteSchemaMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata)other); } else { super.mergeFrom(other); return this; @@ -471,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata other) { - if (other == com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -505,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -599,15 +549,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -618,8 +567,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -628,9 +575,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -643,8 +590,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -662,8 +607,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -676,8 +619,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -688,14 +629,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.
      * 
@@ -703,17 +641,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -721,49 +656,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -785,8 +707,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.
@@ -794,7 +714,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -805,8 +726,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.
@@ -816,9 +735,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -831,8 +750,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.
@@ -851,8 +768,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -866,8 +781,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -879,14 +792,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.
@@ -895,24 +805,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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);
     }
 
@@ -922,12 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteSchemaMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteSchemaMetadata)
   private static final com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata();
   }
@@ -936,27 +843,27 @@ public static com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteSchemaMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteSchemaMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -971,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java
similarity index 70%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java
index a32ffc7bf492..2759e9378e50 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaMetadataOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
-public interface DeleteSchemaMetadataOrBuilder
-    extends
+public interface DeleteSchemaMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteSchemaMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface DeleteSchemaMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java
similarity index 64%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java
index 4b0ad05c8905..fd2293b5d5a4 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
 /**
- *
- *
  * 
  * Request message for
  * [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1.SchemaService.DeleteSchema]
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteSchemaRequest}
  */
-public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteSchemaRequest)
     DeleteSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteSchemaRequest.newBuilder() to construct.
   private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteSchemaRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.class, com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 @@ -88,32 +63,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 full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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.discoveryengine.v1.DeleteSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.DeleteSchemaRequest other = - (com.google.cloud.discoveryengine.v1.DeleteSchemaRequest) obj; + com.google.cloud.discoveryengine.v1.DeleteSchemaRequest other = (com.google.cloud.discoveryengine.v1.DeleteSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,104 +159,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest 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.discoveryengine.v1.DeleteSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DeleteSchemaRequest 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
    * [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1.SchemaService.DeleteSchema]
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteSchemaRequest}
    */
-  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.discoveryengine.v1.DeleteSchemaRequest)
       com.google.cloud.discoveryengine.v1.DeleteSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.class, com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +316,8 @@ public com.google.cloud.discoveryengine.v1.DeleteSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.DeleteSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.DeleteSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1.DeleteSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.DeleteSchemaRequest result = new com.google.cloud.discoveryengine.v1.DeleteSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +333,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteSchemaReque
     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.discoveryengine.v1.DeleteSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.DeleteSchemaRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -441,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,28 +424,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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; @@ -493,24 +449,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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 { @@ -518,41 +471,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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() { @@ -562,33 +504,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteSchemaRequest) private static final com.google.cloud.discoveryengine.v1.DeleteSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteSchemaRequest(); } @@ -612,27 +548,27 @@ public static com.google.cloud.discoveryengine.v1.DeleteSchemaRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.DeleteSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..aba5843c264e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/schema_service.proto + +package com.google.cloud.discoveryengine.v1; + +public interface DeleteSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java similarity index 75% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java index 82240b543f60..5542f0d4466a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Document captures all raw metadata information of items to be recommended or
  * searched.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.Document}
  */
-public final class Document extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Document extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Document)
     DocumentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Document.newBuilder() to construct.
   private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Document() {
     name_ = "";
     id_ = "";
@@ -47,33 +29,29 @@ private Document() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Document();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentProto
-        .internal_static_google_cloud_discoveryengine_v1_Document_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentProto
-        .internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.Document.class,
-            com.google.cloud.discoveryengine.v1.Document.Builder.class);
+            com.google.cloud.discoveryengine.v1.Document.class, com.google.cloud.discoveryengine.v1.Document.Builder.class);
   }
 
-  public interface ContentOrBuilder
-      extends
+  public interface ContentOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Document.Content)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -86,13 +64,10 @@ public interface ContentOrBuilder
      * 
* * bytes raw_bytes = 2; - * * @return Whether the rawBytes field is set. */ boolean hasRawBytes(); /** - * - * *
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -105,14 +80,11 @@ public interface ContentOrBuilder
      * 
* * bytes raw_bytes = 2; - * * @return The rawBytes. */ com.google.protobuf.ByteString getRawBytes(); /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -120,13 +92,10 @@ public interface ContentOrBuilder
      * 
* * string uri = 3; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -134,13 +103,10 @@ public interface ContentOrBuilder
      * 
* * string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -148,14 +114,12 @@ public interface ContentOrBuilder
      * 
* * string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -169,13 +133,10 @@ public interface ContentOrBuilder
      * 
* * string mime_type = 1; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -189,71 +150,63 @@ public interface ContentOrBuilder
      * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.discoveryengine.v1.Document.Content.ContentCase getContentCase(); } /** - * - * *
    * Unstructured data linked to this document.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Document.Content} */ - public static final class Content extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Content extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Document.Content) ContentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Content.newBuilder() to construct. private Content(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Content() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Content(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.DocumentProto - .internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.DocumentProto - .internal_static_google_cloud_discoveryengine_v1_Document_Content_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_Content_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Document.Content.class, - com.google.cloud.discoveryengine.v1.Document.Content.Builder.class); + com.google.cloud.discoveryengine.v1.Document.Content.class, com.google.cloud.discoveryengine.v1.Document.Content.Builder.class); } private int contentCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object content_; - public enum ContentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RAW_BYTES(2), URI(3), CONTENT_NOT_SET(0); private final int value; - private ContentCase(int value) { this.value = value; } @@ -269,30 +222,25 @@ public static ContentCase valueOf(int value) { public static ContentCase forNumber(int value) { switch (value) { - case 2: - return RAW_BYTES; - case 3: - return URI; - case 0: - return CONTENT_NOT_SET; - default: - return null; + case 2: return RAW_BYTES; + case 3: return URI; + case 0: return CONTENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); } public static final int RAW_BYTES_FIELD_NUMBER = 2; /** - * - * *
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -305,7 +253,6 @@ public ContentCase getContentCase() {
      * 
* * bytes raw_bytes = 2; - * * @return Whether the rawBytes field is set. */ @java.lang.Override @@ -313,8 +260,6 @@ public boolean hasRawBytes() { return contentCase_ == 2; } /** - * - * *
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -327,7 +272,6 @@ public boolean hasRawBytes() {
      * 
* * bytes raw_bytes = 2; - * * @return The rawBytes. */ @java.lang.Override @@ -340,8 +284,6 @@ public com.google.protobuf.ByteString getRawBytes() { public static final int URI_FIELD_NUMBER = 3; /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -349,15 +291,12 @@ public com.google.protobuf.ByteString getRawBytes() {
      * 
* * string uri = 3; - * * @return Whether the uri field is set. */ public boolean hasUri() { return contentCase_ == 3; } /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -365,7 +304,6 @@ public boolean hasUri() {
      * 
* * string uri = 3; - * * @return The uri. */ public java.lang.String getUri() { @@ -376,7 +314,8 @@ 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(); if (contentCase_ == 3) { content_ = s; @@ -385,8 +324,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -394,17 +331,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 3; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (contentCase_ == 3) { ref = content_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (contentCase_ == 3) { content_ = b; } @@ -415,12 +353,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -434,7 +369,6 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string mime_type = 1; - * * @return The mimeType. */ @java.lang.Override @@ -443,15 +377,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -465,15 +398,16 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -482,7 +416,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -494,12 +427,14 @@ 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(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); } if (contentCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) content_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) content_); } if (contentCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); @@ -517,9 +452,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); } if (contentCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) content_); } if (contentCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); @@ -532,22 +467,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.discoveryengine.v1.Document.Content)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.Document.Content other = - (com.google.cloud.discoveryengine.v1.Document.Content) obj; + com.google.cloud.discoveryengine.v1.Document.Content other = (com.google.cloud.discoveryengine.v1.Document.Content) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 2: - if (!getRawBytes().equals(other.getRawBytes())) return false; + if (!getRawBytes() + .equals(other.getRawBytes())) return false; break; case 3: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -583,94 +520,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Document.Content parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Document.Content parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Document.Content parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Document.Content parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content 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.discoveryengine.v1.Document.Content prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Document.Content 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 @@ -680,41 +612,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Unstructured data linked to this document.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Document.Content} */ - 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.discoveryengine.v1.Document.Content) com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.DocumentProto - .internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.DocumentProto - .internal_static_google_cloud_discoveryengine_v1_Document_Content_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_Content_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Document.Content.class, - com.google.cloud.discoveryengine.v1.Document.Content.Builder.class); + com.google.cloud.discoveryengine.v1.Document.Content.class, com.google.cloud.discoveryengine.v1.Document.Content.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.Document.Content.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -726,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.DocumentProto - .internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; } @java.lang.Override @@ -747,11 +677,8 @@ public com.google.cloud.discoveryengine.v1.Document.Content build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.Document.Content buildPartial() { - com.google.cloud.discoveryengine.v1.Document.Content result = - new com.google.cloud.discoveryengine.v1.Document.Content(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.Document.Content result = new com.google.cloud.discoveryengine.v1.Document.Content(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -773,41 +700,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Document.Con 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.discoveryengine.v1.Document.Content) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Document.Content) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.Document.Content)other); } else { super.mergeFrom(other); return this; @@ -815,30 +739,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Document.Content other) { - if (other == com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getContentCase()) { - case RAW_BYTES: - { - setRawBytes(other.getRawBytes()); - break; - } - case URI: - { - contentCase_ = 3; - content_ = other.content_; - onChanged(); - break; - } - case CONTENT_NOT_SET: - { - break; - } + case RAW_BYTES: { + setRawBytes(other.getRawBytes()); + break; + } + case URI: { + contentCase_ = 3; + content_ = other.content_; + onChanged(); + break; + } + case CONTENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -866,32 +786,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - content_ = input.readBytes(); - contentCase_ = 2; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 3; - content_ = s; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + content_ = input.readBytes(); + contentCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 3; + content_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -901,12 +817,12 @@ public Builder mergeFrom( } // finally return this; } - private int contentCase_ = 0; private java.lang.Object content_; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); } public Builder clearContent() { @@ -919,8 +835,6 @@ public Builder clearContent() { private int bitField0_; /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -933,15 +847,12 @@ public Builder clearContent() {
        * 
* * bytes raw_bytes = 2; - * * @return Whether the rawBytes field is set. */ public boolean hasRawBytes() { return contentCase_ == 2; } /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -954,7 +865,6 @@ public boolean hasRawBytes() {
        * 
* * bytes raw_bytes = 2; - * * @return The rawBytes. */ public com.google.protobuf.ByteString getRawBytes() { @@ -964,8 +874,6 @@ public com.google.protobuf.ByteString getRawBytes() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -978,22 +886,17 @@ public com.google.protobuf.ByteString getRawBytes() {
        * 
* * bytes raw_bytes = 2; - * * @param value The rawBytes to set. * @return This builder for chaining. */ public Builder setRawBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } contentCase_ = 2; content_ = value; onChanged(); return this; } /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -1006,7 +909,6 @@ public Builder setRawBytes(com.google.protobuf.ByteString value) {
        * 
* * bytes raw_bytes = 2; - * * @return This builder for chaining. */ public Builder clearRawBytes() { @@ -1019,8 +921,6 @@ public Builder clearRawBytes() { } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1028,7 +928,6 @@ public Builder clearRawBytes() {
        * 
* * string uri = 3; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -1036,8 +935,6 @@ public boolean hasUri() { return contentCase_ == 3; } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1045,7 +942,6 @@ public boolean hasUri() {
        * 
* * string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -1055,7 +951,8 @@ public java.lang.String getUri() { ref = content_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (contentCase_ == 3) { content_ = s; @@ -1066,8 +963,6 @@ public java.lang.String getUri() { } } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1075,18 +970,19 @@ public java.lang.String getUri() {
        * 
* * string uri = 3; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (contentCase_ == 3) { ref = content_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (contentCase_ == 3) { content_ = b; } @@ -1096,8 +992,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1105,22 +999,18 @@ public com.google.protobuf.ByteString getUriBytes() {
        * 
* * string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentCase_ = 3; content_ = value; onChanged(); return this; } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1128,7 +1018,6 @@ public Builder setUri(java.lang.String value) {
        * 
* * string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1140,8 +1029,6 @@ public Builder clearUri() { return this; } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1149,14 +1036,12 @@ public Builder clearUri() {
        * 
* * string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentCase_ = 3; content_ = value; @@ -1166,8 +1051,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1181,13 +1064,13 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
        * 
* * string mime_type = 1; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1196,8 +1079,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1211,14 +1092,15 @@ public java.lang.String getMimeType() {
        * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1226,8 +1108,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1241,22 +1121,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
        * 
* * string mime_type = 1; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1270,7 +1146,6 @@ public Builder setMimeType(java.lang.String value) {
        * 
* * string mime_type = 1; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1280,8 +1155,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1295,21 +1168,18 @@ public Builder clearMimeType() {
        * 
* * string mime_type = 1; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1322,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Document.Content) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Document.Content) private static final com.google.cloud.discoveryengine.v1.Document.Content DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Document.Content(); } @@ -1336,28 +1206,27 @@ public static com.google.cloud.discoveryengine.v1.Document.Content getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Content parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,22 +1241,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.Document.Content getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int dataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRUCT_DATA(4), JSON_DATA(5), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -1403,30 +1269,25 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 4: - return STRUCT_DATA; - case 5: - return JSON_DATA; - case 0: - return DATA_NOT_SET; - default: - return null; + case 4: return STRUCT_DATA; + case 5: return JSON_DATA; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int STRUCT_DATA_FIELD_NUMBER = 4; /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -1434,7 +1295,6 @@ public DataCase getDataCase() {
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return Whether the structData field is set. */ @java.lang.Override @@ -1442,8 +1302,6 @@ public boolean hasStructData() { return dataCase_ == 4; } /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -1451,19 +1309,16 @@ public boolean hasStructData() {
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return The structData. */ @java.lang.Override public com.google.protobuf.Struct getStructData() { if (dataCase_ == 4) { - return (com.google.protobuf.Struct) data_; + return (com.google.protobuf.Struct) data_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -1475,15 +1330,13 @@ public com.google.protobuf.Struct getStructData() {
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
     if (dataCase_ == 4) {
-      return (com.google.protobuf.Struct) data_;
+       return (com.google.protobuf.Struct) data_;
     }
     return com.google.protobuf.Struct.getDefaultInstance();
   }
 
   public static final int JSON_DATA_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -1491,15 +1344,12 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
    * 
* * string json_data = 5; - * * @return Whether the jsonData field is set. */ public boolean hasJsonData() { return dataCase_ == 5; } /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -1507,7 +1357,6 @@ public boolean hasJsonData() {
    * 
* * string json_data = 5; - * * @return The jsonData. */ public java.lang.String getJsonData() { @@ -1518,7 +1367,8 @@ public java.lang.String getJsonData() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (dataCase_ == 5) { data_ = s; @@ -1527,8 +1377,6 @@ public java.lang.String getJsonData() { } } /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -1536,17 +1384,18 @@ public java.lang.String getJsonData() {
    * 
* * string json_data = 5; - * * @return The bytes for jsonData. */ - public com.google.protobuf.ByteString getJsonDataBytes() { + public com.google.protobuf.ByteString + getJsonDataBytes() { java.lang.Object ref = ""; if (dataCase_ == 5) { ref = data_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (dataCase_ == 5) { data_ = b; } @@ -1557,12 +1406,9 @@ public com.google.protobuf.ByteString getJsonDataBytes() { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -1573,7 +1419,6 @@ public com.google.protobuf.ByteString getJsonDataBytes() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -1582,15 +1427,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; } } /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -1601,15 +1445,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1618,12 +1463,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -1632,7 +1474,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ @java.lang.Override @@ -1641,15 +1482,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; } } /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -1658,15 +1498,16 @@ public java.lang.String getId() {
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1675,18 +1516,14 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int SCHEMA_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The schemaId. */ @java.lang.Override @@ -1695,29 +1532,29 @@ public java.lang.String getSchemaId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } } /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -1728,8 +1565,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { public static final int CONTENT_FIELD_NUMBER = 10; private com.google.cloud.discoveryengine.v1.Document.Content content_; /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -1737,7 +1572,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() {
    * 
* * .google.cloud.discoveryengine.v1.Document.Content content = 10; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1745,8 +1579,6 @@ public boolean hasContent() { return content_ != null; } /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -1754,18 +1586,13 @@ public boolean hasContent() {
    * 
* * .google.cloud.discoveryengine.v1.Document.Content content = 10; - * * @return The content. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Document.Content getContent() { - return content_ == null - ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance() - : content_; + return content_ == null ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance() : content_; } /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -1776,18 +1603,13 @@ public com.google.cloud.discoveryengine.v1.Document.Content getContent() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentOrBuilder() {
-    return content_ == null
-        ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance()
-        : content_;
+    return content_ == null ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance() : content_;
   }
 
   public static final int PARENT_DOCUMENT_ID_FIELD_NUMBER = 7;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parentDocumentId_ = "";
   /**
-   *
-   *
    * 
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -1797,7 +1619,6 @@ public com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentO
    * 
* * string parent_document_id = 7; - * * @return The parentDocumentId. */ @java.lang.Override @@ -1806,15 +1627,14 @@ public java.lang.String getParentDocumentId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDocumentId_ = s; return s; } } /** - * - * *
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -1824,15 +1644,16 @@ public java.lang.String getParentDocumentId() {
    * 
* * string parent_document_id = 7; - * * @return The bytes for parentDocumentId. */ @java.lang.Override - public com.google.protobuf.ByteString getParentDocumentIdBytes() { + public com.google.protobuf.ByteString + getParentDocumentIdBytes() { java.lang.Object ref = parentDocumentId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDocumentId_ = b; return b; } else { @@ -1843,17 +1664,12 @@ public com.google.protobuf.ByteString getParentDocumentIdBytes() { public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct derivedStructData_; /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the derivedStructData field is set. */ @java.lang.Override @@ -1861,46 +1677,32 @@ public boolean hasDerivedStructData() { return derivedStructData_ != null; } /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The derivedStructData. */ @java.lang.Override public com.google.protobuf.Struct getDerivedStructData() { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1912,7 +1714,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_); } @@ -1956,21 +1759,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); } if (dataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.protobuf.Struct) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.protobuf.Struct) data_); } if (dataCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, data_); } if (derivedStructData_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDerivedStructData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDerivedStructData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDocumentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, parentDocumentId_); } if (content_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getContent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getContent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1980,33 +1784,40 @@ 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.discoveryengine.v1.Document)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.Document other = - (com.google.cloud.discoveryengine.v1.Document) obj; + com.google.cloud.discoveryengine.v1.Document other = (com.google.cloud.discoveryengine.v1.Document) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; - if (!getSchemaId().equals(other.getSchemaId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getSchemaId() + .equals(other.getSchemaId())) return false; if (hasContent() != other.hasContent()) return false; if (hasContent()) { - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; } - if (!getParentDocumentId().equals(other.getParentDocumentId())) return false; + if (!getParentDocumentId() + .equals(other.getParentDocumentId())) return false; if (hasDerivedStructData() != other.hasDerivedStructData()) return false; if (hasDerivedStructData()) { - if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; + if (!getDerivedStructData() + .equals(other.getDerivedStructData())) return false; } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: - if (!getStructData().equals(other.getStructData())) return false; + if (!getStructData() + .equals(other.getStructData())) return false; break; case 5: - if (!getJsonData().equals(other.getJsonData())) return false; + if (!getJsonData() + .equals(other.getJsonData())) return false; break; case 0: default: @@ -2055,104 +1866,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.Document parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.Document parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Document 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.discoveryengine.v1.Document parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Document parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Document 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.discoveryengine.v1.Document parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Document 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.discoveryengine.v1.Document parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Document parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.Document 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.discoveryengine.v1.Document 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.discoveryengine.v1.Document 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.discoveryengine.v1.Document 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; } /** - * - * *
    * Document captures all raw metadata information of items to be recommended or
    * searched.
@@ -2160,32 +1966,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.Document}
    */
-  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.discoveryengine.v1.Document)
       com.google.cloud.discoveryengine.v1.DocumentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentProto
-          .internal_static_google_cloud_discoveryengine_v1_Document_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentProto
-          .internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.Document.class,
-              com.google.cloud.discoveryengine.v1.Document.Builder.class);
+              com.google.cloud.discoveryengine.v1.Document.class, com.google.cloud.discoveryengine.v1.Document.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.Document.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2213,9 +2020,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentProto
-          .internal_static_google_cloud_discoveryengine_v1_Document_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentProto.internal_static_google_cloud_discoveryengine_v1_Document_descriptor;
     }
 
     @java.lang.Override
@@ -2234,11 +2041,8 @@ public com.google.cloud.discoveryengine.v1.Document build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.Document buildPartial() {
-      com.google.cloud.discoveryengine.v1.Document result =
-          new com.google.cloud.discoveryengine.v1.Document(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.Document result = new com.google.cloud.discoveryengine.v1.Document(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -2256,23 +2060,25 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Document result)
         result.schemaId_ = schemaId_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build();
+        result.content_ = contentBuilder_ == null
+            ? content_
+            : contentBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.parentDocumentId_ = parentDocumentId_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.derivedStructData_ =
-            derivedStructDataBuilder_ == null
-                ? derivedStructData_
-                : derivedStructDataBuilder_.build();
+        result.derivedStructData_ = derivedStructDataBuilder_ == null
+            ? derivedStructData_
+            : derivedStructDataBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Document result) {
       result.dataCase_ = dataCase_;
       result.data_ = this.data_;
-      if (dataCase_ == 4 && structDataBuilder_ != null) {
+      if (dataCase_ == 4 &&
+          structDataBuilder_ != null) {
         result.data_ = structDataBuilder_.build();
       }
     }
@@ -2281,39 +2087,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Document res
     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.discoveryengine.v1.Document) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.Document) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.Document)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2349,22 +2154,19 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Document other) {
         mergeDerivedStructData(other.getDerivedStructData());
       }
       switch (other.getDataCase()) {
-        case STRUCT_DATA:
-          {
-            mergeStructData(other.getStructData());
-            break;
-          }
-        case JSON_DATA:
-          {
-            dataCase_ = 5;
-            data_ = other.data_;
-            onChanged();
-            break;
-          }
-        case DATA_NOT_SET:
-          {
-            break;
-          }
+        case STRUCT_DATA: {
+          mergeStructData(other.getStructData());
+          break;
+        }
+        case JSON_DATA: {
+          dataCase_ = 5;
+          data_ = other.data_;
+          onChanged();
+          break;
+        }
+        case DATA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -2392,63 +2194,59 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 10
-            case 18:
-              {
-                id_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 18
-            case 26:
-              {
-                schemaId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getStructDataFieldBuilder().getBuilder(), extensionRegistry);
-                dataCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                dataCase_ = 5;
-                data_ = s;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getDerivedStructDataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 50
-            case 58:
-              {
-                parentDocumentId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 82:
-              {
-                input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 10
+            case 18: {
+              id_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 18
+            case 26: {
+              schemaId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getStructDataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              dataCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              dataCase_ = 5;
+              data_ = s;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getDerivedStructDataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 50
+            case 58: {
+              parentDocumentId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 82: {
+              input.readMessage(
+                  getContentFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2458,12 +2256,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int dataCase_ = 0;
     private java.lang.Object data_;
-
-    public DataCase getDataCase() {
-      return DataCase.forNumber(dataCase_);
+    public DataCase
+        getDataCase() {
+      return DataCase.forNumber(
+          dataCase_);
     }
 
     public Builder clearData() {
@@ -2476,13 +2274,8 @@ public Builder clearData() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
-        structDataBuilder_;
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structDataBuilder_;
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2490,7 +2283,6 @@ public Builder clearData() {
      * 
* * .google.protobuf.Struct struct_data = 4; - * * @return Whether the structData field is set. */ @java.lang.Override @@ -2498,8 +2290,6 @@ public boolean hasStructData() { return dataCase_ == 4; } /** - * - * *
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2507,7 +2297,6 @@ public boolean hasStructData() {
      * 
* * .google.protobuf.Struct struct_data = 4; - * * @return The structData. */ @java.lang.Override @@ -2525,8 +2314,6 @@ public com.google.protobuf.Struct getStructData() { } } /** - * - * *
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2549,8 +2336,6 @@ public Builder setStructData(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2559,7 +2344,8 @@ public Builder setStructData(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct struct_data = 4;
      */
-    public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setStructData(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (structDataBuilder_ == null) {
         data_ = builderForValue.build();
         onChanged();
@@ -2570,8 +2356,6 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2582,11 +2366,10 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue)
      */
     public Builder mergeStructData(com.google.protobuf.Struct value) {
       if (structDataBuilder_ == null) {
-        if (dataCase_ == 4 && data_ != com.google.protobuf.Struct.getDefaultInstance()) {
-          data_ =
-              com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (dataCase_ == 4 &&
+            data_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          data_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_)
+              .mergeFrom(value).buildPartial();
         } else {
           data_ = value;
         }
@@ -2602,8 +2385,6 @@ public Builder mergeStructData(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2629,8 +2410,6 @@ public Builder clearStructData() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2643,8 +2422,6 @@ public com.google.protobuf.Struct.Builder getStructDataBuilder() {
       return getStructDataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2665,8 +2442,6 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2676,20 +2451,17 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
      * .google.protobuf.Struct struct_data = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getStructDataFieldBuilder() {
       if (structDataBuilder_ == null) {
         if (!(dataCase_ == 4)) {
           data_ = com.google.protobuf.Struct.getDefaultInstance();
         }
-        structDataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                (com.google.protobuf.Struct) data_, getParentForChildren(), isClean());
+        structDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                (com.google.protobuf.Struct) data_,
+                getParentForChildren(),
+                isClean());
         data_ = null;
       }
       dataCase_ = 4;
@@ -2698,8 +2470,6 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
     }
 
     /**
-     *
-     *
      * 
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2707,7 +2477,6 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
      * 
* * string json_data = 5; - * * @return Whether the jsonData field is set. */ @java.lang.Override @@ -2715,8 +2484,6 @@ public boolean hasJsonData() { return dataCase_ == 5; } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2724,7 +2491,6 @@ public boolean hasJsonData() {
      * 
* * string json_data = 5; - * * @return The jsonData. */ @java.lang.Override @@ -2734,7 +2500,8 @@ public java.lang.String getJsonData() { ref = data_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (dataCase_ == 5) { data_ = s; @@ -2745,8 +2512,6 @@ public java.lang.String getJsonData() { } } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2754,18 +2519,19 @@ public java.lang.String getJsonData() {
      * 
* * string json_data = 5; - * * @return The bytes for jsonData. */ @java.lang.Override - public com.google.protobuf.ByteString getJsonDataBytes() { + public com.google.protobuf.ByteString + getJsonDataBytes() { java.lang.Object ref = ""; if (dataCase_ == 5) { ref = data_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (dataCase_ == 5) { data_ = b; } @@ -2775,8 +2541,6 @@ public com.google.protobuf.ByteString getJsonDataBytes() { } } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2784,22 +2548,18 @@ public com.google.protobuf.ByteString getJsonDataBytes() {
      * 
* * string json_data = 5; - * * @param value The jsonData to set. * @return This builder for chaining. */ - public Builder setJsonData(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonData( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataCase_ = 5; data_ = value; onChanged(); return this; } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2807,7 +2567,6 @@ public Builder setJsonData(java.lang.String value) {
      * 
* * string json_data = 5; - * * @return This builder for chaining. */ public Builder clearJsonData() { @@ -2819,8 +2578,6 @@ public Builder clearJsonData() { return this; } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -2828,14 +2585,12 @@ public Builder clearJsonData() {
      * 
* * string json_data = 5; - * * @param value The bytes for jsonData to set. * @return This builder for chaining. */ - public Builder setJsonDataBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataCase_ = 5; data_ = value; @@ -2845,8 +2600,6 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2857,13 +2610,13 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2872,8 +2625,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2884,14 +2635,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -2899,8 +2651,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2911,22 +2661,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2937,7 +2683,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2947,8 +2692,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2959,14 +2702,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; @@ -2976,8 +2717,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -2986,13 +2725,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -3001,8 +2740,6 @@ public java.lang.String getId() { } } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3011,14 +2748,15 @@ public java.lang.String getId() {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -3026,8 +2764,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3036,22 +2772,18 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3060,7 +2792,6 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearId() { @@ -3070,8 +2801,6 @@ public Builder clearId() { return this; } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3080,14 +2809,12 @@ public Builder clearId() {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000008; @@ -3097,20 +2824,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaId_ = ""; /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; @@ -3119,21 +2844,20 @@ public java.lang.String getSchemaId() { } } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -3141,35 +2865,28 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @return This builder for chaining. */ public Builder clearSchemaId() { @@ -3179,21 +2896,17 @@ public Builder clearSchemaId() { return this; } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @param value The bytes for schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaId_ = value; bitField0_ |= 0x00000010; @@ -3203,13 +2916,8 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.Document.Content content_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document.Content, - com.google.cloud.discoveryengine.v1.Document.Content.Builder, - com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder> - contentBuilder_; + com.google.cloud.discoveryengine.v1.Document.Content, com.google.cloud.discoveryengine.v1.Document.Content.Builder, com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder> contentBuilder_; /** - * - * *
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3217,15 +2925,12 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1.Document.Content content = 10; - * * @return Whether the content field is set. */ public boolean hasContent() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3233,21 +2938,16 @@ public boolean hasContent() {
      * 
* * .google.cloud.discoveryengine.v1.Document.Content content = 10; - * * @return The content. */ public com.google.cloud.discoveryengine.v1.Document.Content getContent() { if (contentBuilder_ == null) { - return content_ == null - ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance() - : content_; + return content_ == null ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } } /** - * - * *
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3270,8 +2970,6 @@ public Builder setContent(com.google.cloud.discoveryengine.v1.Document.Content v
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3292,8 +2990,6 @@ public Builder setContent(
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3304,10 +3000,9 @@ public Builder setContent(
      */
     public Builder mergeContent(com.google.cloud.discoveryengine.v1.Document.Content value) {
       if (contentBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)
-            && content_ != null
-            && content_
-                != com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          content_ != null &&
+          content_ != com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance()) {
           getContentBuilder().mergeFrom(value);
         } else {
           content_ = value;
@@ -3320,8 +3015,6 @@ public Builder mergeContent(com.google.cloud.discoveryengine.v1.Document.Content
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3341,8 +3034,6 @@ public Builder clearContent() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3357,8 +3048,6 @@ public com.google.cloud.discoveryengine.v1.Document.Content.Builder getContentBu
       return getContentFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3371,14 +3060,11 @@ public com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentO
       if (contentBuilder_ != null) {
         return contentBuilder_.getMessageOrBuilder();
       } else {
-        return content_ == null
-            ? com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance()
-            : content_;
+        return content_ == null ?
+            com.google.cloud.discoveryengine.v1.Document.Content.getDefaultInstance() : content_;
       }
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3388,17 +3074,14 @@ public com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentO
      * .google.cloud.discoveryengine.v1.Document.Content content = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Document.Content,
-            com.google.cloud.discoveryengine.v1.Document.Content.Builder,
-            com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder>
+        com.google.cloud.discoveryengine.v1.Document.Content, com.google.cloud.discoveryengine.v1.Document.Content.Builder, com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder> 
         getContentFieldBuilder() {
       if (contentBuilder_ == null) {
-        contentBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.Document.Content,
-                com.google.cloud.discoveryengine.v1.Document.Content.Builder,
-                com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder>(
-                getContent(), getParentForChildren(), isClean());
+        contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.Document.Content, com.google.cloud.discoveryengine.v1.Document.Content.Builder, com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder>(
+                getContent(),
+                getParentForChildren(),
+                isClean());
         content_ = null;
       }
       return contentBuilder_;
@@ -3406,8 +3089,6 @@ public com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentO
 
     private java.lang.Object parentDocumentId_ = "";
     /**
-     *
-     *
      * 
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3417,13 +3098,13 @@ public com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentO
      * 
* * string parent_document_id = 7; - * * @return The parentDocumentId. */ public java.lang.String getParentDocumentId() { java.lang.Object ref = parentDocumentId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDocumentId_ = s; return s; @@ -3432,8 +3113,6 @@ public java.lang.String getParentDocumentId() { } } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3443,14 +3122,15 @@ public java.lang.String getParentDocumentId() {
      * 
* * string parent_document_id = 7; - * * @return The bytes for parentDocumentId. */ - public com.google.protobuf.ByteString getParentDocumentIdBytes() { + public com.google.protobuf.ByteString + getParentDocumentIdBytes() { java.lang.Object ref = parentDocumentId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDocumentId_ = b; return b; } else { @@ -3458,8 +3138,6 @@ public com.google.protobuf.ByteString getParentDocumentIdBytes() { } } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3469,22 +3147,18 @@ public com.google.protobuf.ByteString getParentDocumentIdBytes() {
      * 
* * string parent_document_id = 7; - * * @param value The parentDocumentId to set. * @return This builder for chaining. */ - public Builder setParentDocumentId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentDocumentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parentDocumentId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3494,7 +3168,6 @@ public Builder setParentDocumentId(java.lang.String value) {
      * 
* * string parent_document_id = 7; - * * @return This builder for chaining. */ public Builder clearParentDocumentId() { @@ -3504,8 +3177,6 @@ public Builder clearParentDocumentId() { return this; } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3515,14 +3186,12 @@ public Builder clearParentDocumentId() {
      * 
* * string parent_document_id = 7; - * * @param value The bytes for parentDocumentId to set. * @return This builder for chaining. */ - public Builder setParentDocumentIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentDocumentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentDocumentId_ = value; bitField0_ |= 0x00000040; @@ -3532,61 +3201,42 @@ public Builder setParentDocumentIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct derivedStructData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - derivedStructDataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> derivedStructDataBuilder_; /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the derivedStructData field is set. */ public boolean hasDerivedStructData() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The derivedStructData. */ public com.google.protobuf.Struct getDerivedStructData() { if (derivedStructDataBuilder_ == null) { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } else { return derivedStructDataBuilder_.getMessage(); } } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDerivedStructData(com.google.protobuf.Struct value) { if (derivedStructDataBuilder_ == null) { @@ -3602,18 +3252,15 @@ public Builder setDerivedStructData(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setDerivedStructData( + com.google.protobuf.Struct.Builder builderForValue) { if (derivedStructDataBuilder_ == null) { derivedStructData_ = builderForValue.build(); } else { @@ -3624,22 +3271,18 @@ public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderFo return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { if (derivedStructDataBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && derivedStructData_ != null - && derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + derivedStructData_ != null && + derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { getDerivedStructDataBuilder().mergeFrom(value); } else { derivedStructData_ = value; @@ -3652,16 +3295,12 @@ public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDerivedStructData() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3674,16 +3313,12 @@ public Builder clearDerivedStructData() { return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { bitField0_ |= 0x00000080; @@ -3691,57 +3326,45 @@ public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { return getDerivedStructDataFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { if (derivedStructDataBuilder_ != null) { return derivedStructDataBuilder_.getMessageOrBuilder(); } else { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getDerivedStructDataFieldBuilder() { if (derivedStructDataBuilder_ == null) { - derivedStructDataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getDerivedStructData(), getParentForChildren(), isClean()); + derivedStructDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getDerivedStructData(), + getParentForChildren(), + isClean()); derivedStructData_ = null; } return derivedStructDataBuilder_; } - @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); } @@ -3751,12 +3374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Document) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Document) private static final com.google.cloud.discoveryengine.v1.Document DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Document(); } @@ -3765,27 +3388,27 @@ public static com.google.cloud.discoveryengine.v1.Document getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Document parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3800,4 +3423,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java similarity index 74% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java index 80dbdd77599b..a7304b9ee8c2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfo.java @@ -1,83 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Detailed document information associated with a user event.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DocumentInfo} */ -public final class DocumentInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DocumentInfo) DocumentInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInfo.newBuilder() to construct. private DocumentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInfo() { - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DocumentInfo.class, - com.google.cloud.discoveryengine.v1.DocumentInfo.Builder.class); + com.google.cloud.discoveryengine.v1.DocumentInfo.class, com.google.cloud.discoveryengine.v1.DocumentInfo.Builder.class); } private int bitField0_; private int documentDescriptorCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object documentDescriptor_; - public enum DocumentDescriptorCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ID(1), NAME(2), URI(6), DOCUMENTDESCRIPTOR_NOT_SET(0); private final int value; - private DocumentDescriptorCase(int value) { this.value = value; } @@ -93,52 +71,42 @@ public static DocumentDescriptorCase valueOf(int value) { public static DocumentDescriptorCase forNumber(int value) { switch (value) { - case 1: - return ID; - case 2: - return NAME; - case 6: - return URI; - case 0: - return DOCUMENTDESCRIPTOR_NOT_SET; - default: - return null; + case 1: return ID; + case 2: return NAME; + case 6: return URI; + case 0: return DOCUMENTDESCRIPTOR_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DocumentDescriptorCase getDocumentDescriptorCase() { - return DocumentDescriptorCase.forNumber(documentDescriptorCase_); + public DocumentDescriptorCase + getDocumentDescriptorCase() { + return DocumentDescriptorCase.forNumber( + documentDescriptorCase_); } public static final int ID_FIELD_NUMBER = 1; /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
    * 
* * string id = 1; - * * @return Whether the id field is set. */ public boolean hasId() { return documentDescriptorCase_ == 1; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
    * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { @@ -149,7 +117,8 @@ 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(); if (documentDescriptorCase_ == 1) { documentDescriptor_ = s; @@ -158,24 +127,23 @@ public java.lang.String getId() { } } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
    * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = ""; if (documentDescriptorCase_ == 1) { ref = documentDescriptor_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 1) { documentDescriptor_ = b; } @@ -187,8 +155,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int NAME_FIELD_NUMBER = 2; /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
@@ -196,15 +162,12 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ public boolean hasName() { return documentDescriptorCase_ == 2; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
@@ -212,7 +175,6 @@ public boolean hasName() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { @@ -223,7 +185,8 @@ 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(); if (documentDescriptorCase_ == 2) { documentDescriptor_ = s; @@ -232,8 +195,6 @@ public java.lang.String getName() { } } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
@@ -241,17 +202,18 @@ public java.lang.String getName() {
    * 
* * string name = 2 [(.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 = ""; if (documentDescriptorCase_ == 2) { ref = documentDescriptor_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 2) { documentDescriptor_ = b; } @@ -263,30 +225,24 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int URI_FIELD_NUMBER = 6; /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ public boolean hasUri() { return documentDescriptorCase_ == 6; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The uri. */ public java.lang.String getUri() { @@ -297,7 +253,8 @@ 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(); if (documentDescriptorCase_ == 6) { documentDescriptor_ = s; @@ -306,25 +263,24 @@ public java.lang.String getUri() { } } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (documentDescriptorCase_ == 6) { ref = documentDescriptor_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 6) { documentDescriptor_ = b; } @@ -337,8 +293,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int QUANTITY_FIELD_NUMBER = 3; private int quantity_ = 0; /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -352,7 +306,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * optional int32 quantity = 3; - * * @return Whether the quantity field is set. */ @java.lang.Override @@ -360,8 +313,6 @@ public boolean hasQuantity() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -375,7 +326,6 @@ public boolean hasQuantity() {
    * 
* * optional int32 quantity = 3; - * * @return The quantity. */ @java.lang.Override @@ -384,50 +334,41 @@ public int getQuantity() { } public static final int PROMOTION_IDS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { return promotionIds_; } /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -435,24 +376,21 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -464,7 +402,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 (documentDescriptorCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentDescriptor_); } @@ -496,7 +435,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentDescriptor_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, quantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, quantity_); } { int dataSize = 0; @@ -517,29 +457,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.discoveryengine.v1.DocumentInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.DocumentInfo other = - (com.google.cloud.discoveryengine.v1.DocumentInfo) obj; + com.google.cloud.discoveryengine.v1.DocumentInfo other = (com.google.cloud.discoveryengine.v1.DocumentInfo) obj; if (hasQuantity() != other.hasQuantity()) return false; if (hasQuantity()) { - if (getQuantity() != other.getQuantity()) return false; + if (getQuantity() + != other.getQuantity()) return false; } - if (!getPromotionIdsList().equals(other.getPromotionIdsList())) return false; + if (!getPromotionIdsList() + .equals(other.getPromotionIdsList())) return false; if (!getDocumentDescriptorCase().equals(other.getDocumentDescriptorCase())) return false; switch (documentDescriptorCase_) { case 1: - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; break; case 2: - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; break; case 6: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -584,151 +528,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.DocumentInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.DocumentInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DocumentInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.DocumentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DocumentInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.DocumentInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo 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 document information associated with a user event.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.DocumentInfo} */ - 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.discoveryengine.v1.DocumentInfo) com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DocumentInfo.class, - com.google.cloud.discoveryengine.v1.DocumentInfo.Builder.class); + com.google.cloud.discoveryengine.v1.DocumentInfo.class, com.google.cloud.discoveryengine.v1.DocumentInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.DocumentInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; quantity_ = 0; - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); documentDescriptorCase_ = 0; documentDescriptor_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; } @java.lang.Override @@ -747,11 +688,8 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.DocumentInfo buildPartial() { - com.google.cloud.discoveryengine.v1.DocumentInfo result = - new com.google.cloud.discoveryengine.v1.DocumentInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.DocumentInfo result = new com.google.cloud.discoveryengine.v1.DocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -780,39 +718,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.DocumentInfo 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.discoveryengine.v1.DocumentInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.DocumentInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.DocumentInfo)other); } else { super.mergeFrom(other); return this; @@ -820,8 +757,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DocumentInfo other) { - if (other == com.google.cloud.discoveryengine.v1.DocumentInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.DocumentInfo.getDefaultInstance()) return this; if (other.hasQuantity()) { setQuantity(other.getQuantity()); } @@ -836,31 +772,27 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DocumentInfo other) onChanged(); } switch (other.getDocumentDescriptorCase()) { - case ID: - { - documentDescriptorCase_ = 1; - documentDescriptor_ = other.documentDescriptor_; - onChanged(); - break; - } - case NAME: - { - documentDescriptorCase_ = 2; - documentDescriptor_ = other.documentDescriptor_; - onChanged(); - break; - } - case URI: - { - documentDescriptorCase_ = 6; - documentDescriptor_ = other.documentDescriptor_; - onChanged(); - break; - } - case DOCUMENTDESCRIPTOR_NOT_SET: - { - break; - } + case ID: { + documentDescriptorCase_ = 1; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case NAME: { + documentDescriptorCase_ = 2; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case URI: { + documentDescriptorCase_ = 6; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case DOCUMENTDESCRIPTOR_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -888,47 +820,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - documentDescriptorCase_ = 1; - documentDescriptor_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - documentDescriptorCase_ = 2; - documentDescriptor_ = s; - break; - } // case 18 - case 24: - { - quantity_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePromotionIdsIsMutable(); - promotionIds_.add(s); - break; - } // case 34 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - documentDescriptorCase_ = 6; - documentDescriptor_ = s; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 1; + documentDescriptor_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 2; + documentDescriptor_ = s; + break; + } // case 18 + case 24: { + quantity_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePromotionIdsIsMutable(); + promotionIds_.add(s); + break; + } // case 34 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 6; + documentDescriptor_ = s; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -938,12 +864,12 @@ public Builder mergeFrom( } // finally return this; } - private int documentDescriptorCase_ = 0; private java.lang.Object documentDescriptor_; - - public DocumentDescriptorCase getDocumentDescriptorCase() { - return DocumentDescriptorCase.forNumber(documentDescriptorCase_); + public DocumentDescriptorCase + getDocumentDescriptorCase() { + return DocumentDescriptorCase.forNumber( + documentDescriptorCase_); } public Builder clearDocumentDescriptor() { @@ -956,14 +882,11 @@ public Builder clearDocumentDescriptor() { private int bitField0_; /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
      * 
* * string id = 1; - * * @return Whether the id field is set. */ @java.lang.Override @@ -971,14 +894,11 @@ public boolean hasId() { return documentDescriptorCase_ == 1; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
      * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -988,7 +908,8 @@ public java.lang.String getId() { ref = documentDescriptor_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (documentDescriptorCase_ == 1) { documentDescriptor_ = s; @@ -999,25 +920,24 @@ public java.lang.String getId() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
      * 
* * 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 = ""; if (documentDescriptorCase_ == 1) { ref = documentDescriptor_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 1) { documentDescriptor_ = b; } @@ -1027,35 +947,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentDescriptorCase_ = 1; documentDescriptor_ = value; onChanged(); return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1067,21 +980,17 @@ public Builder clearId() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentDescriptorCase_ = 1; documentDescriptor_ = value; @@ -1090,8 +999,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
@@ -1099,7 +1006,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ @java.lang.Override @@ -1107,8 +1013,6 @@ public boolean hasName() { return documentDescriptorCase_ == 2; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
@@ -1116,7 +1020,6 @@ public boolean hasName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -1126,7 +1029,8 @@ public java.lang.String getName() { ref = documentDescriptor_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (documentDescriptorCase_ == 2) { documentDescriptor_ = s; @@ -1137,8 +1041,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
@@ -1146,18 +1048,19 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.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 = ""; if (documentDescriptorCase_ == 2) { ref = documentDescriptor_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 2) { documentDescriptor_ = b; } @@ -1167,8 +1070,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
@@ -1176,22 +1077,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentDescriptorCase_ = 2; documentDescriptor_ = value; onChanged(); return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
@@ -1199,7 +1096,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { @@ -1211,8 +1107,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] resource full
      * name, of the form:
@@ -1220,14 +1114,12 @@ public Builder clearName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentDescriptorCase_ = 2; documentDescriptor_ = value; @@ -1236,15 +1128,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -1252,15 +1141,12 @@ public boolean hasUri() { return documentDescriptorCase_ == 6; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return The uri. */ @java.lang.Override @@ -1270,7 +1156,8 @@ public java.lang.String getUri() { ref = documentDescriptor_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (documentDescriptorCase_ == 6) { documentDescriptor_ = s; @@ -1281,26 +1168,25 @@ public java.lang.String getUri() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (documentDescriptorCase_ == 6) { ref = documentDescriptor_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 6) { documentDescriptor_ = b; } @@ -1310,37 +1196,30 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentDescriptorCase_ = 6; documentDescriptor_ = value; onChanged(); return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1352,22 +1231,18 @@ public Builder clearUri() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentDescriptorCase_ = 6; documentDescriptor_ = value; @@ -1375,10 +1250,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private int quantity_; + private int quantity_ ; /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1392,7 +1265,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int32 quantity = 3; - * * @return Whether the quantity field is set. */ @java.lang.Override @@ -1400,8 +1272,6 @@ public boolean hasQuantity() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1415,7 +1285,6 @@ public boolean hasQuantity() {
      * 
* * optional int32 quantity = 3; - * * @return The quantity. */ @java.lang.Override @@ -1423,8 +1292,6 @@ public int getQuantity() { return quantity_; } /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1438,7 +1305,6 @@ public int getQuantity() {
      * 
* * optional int32 quantity = 3; - * * @param value The quantity to set. * @return This builder for chaining. */ @@ -1450,8 +1316,6 @@ public Builder setQuantity(int value) { return this; } /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1465,7 +1329,6 @@ public Builder setQuantity(int value) {
      * 
* * optional int32 quantity = 3; - * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -1477,7 +1340,6 @@ public Builder clearQuantity() { private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); @@ -1485,46 +1347,38 @@ private void ensurePromotionIdsIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { promotionIds_.makeImmutable(); return promotionIds_; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -1532,39 +1386,33 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param index The index to set the value at. * @param value The promotionIds to set. * @return This builder for chaining. */ - public Builder setPromotionIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPromotionIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); bitField0_ |= 0x00000010; @@ -1572,22 +1420,18 @@ public Builder setPromotionIds(int index, java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param value The promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.add(value); bitField0_ |= 0x00000010; @@ -1595,61 +1439,53 @@ public Builder addPromotionIds(java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param values The promotionIds to add. * @return This builder for chaining. */ - public Builder addAllPromotionIds(java.lang.Iterable values) { + public Builder addAllPromotionIds( + java.lang.Iterable values) { ensurePromotionIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promotionIds_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @return This builder for chaining. */ public Builder clearPromotionIds() { - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param value The bytes of the promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); @@ -1657,9 +1493,9 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString 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); } @@ -1669,12 +1505,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DocumentInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DocumentInfo) private static final com.google.cloud.discoveryengine.v1.DocumentInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DocumentInfo(); } @@ -1683,27 +1519,27 @@ public static com.google.cloud.discoveryengine.v1.DocumentInfo getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1718,4 +1554,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.DocumentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java similarity index 80% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java index c02b450aab27..96c769dba91a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentInfoOrBuilder.java @@ -1,68 +1,42 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface DocumentInfoOrBuilder - extends +public interface DocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DocumentInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
    * 
* * string id = 1; - * * @return Whether the id field is set. */ boolean hasId(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource ID.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
@@ -70,13 +44,10 @@ public interface DocumentInfoOrBuilder
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ boolean hasName(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
@@ -84,13 +55,10 @@ public interface DocumentInfoOrBuilder
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] resource full
    * name, of the form:
@@ -98,54 +66,44 @@ public interface DocumentInfoOrBuilder
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -159,13 +117,10 @@ public interface DocumentInfoOrBuilder
    * 
* * optional int32 quantity = 3; - * * @return Whether the quantity field is set. */ boolean hasQuantity(); /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -179,66 +134,54 @@ public interface DocumentInfoOrBuilder
    * 
* * optional int32 quantity = 3; - * * @return The quantity. */ int getQuantity(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return A list containing the promotionIds. */ - java.util.List getPromotionIdsList(); + java.util.List + getPromotionIdsList(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return The count of promotionIds. */ int getPromotionIdsCount(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ java.lang.String getPromotionIds(int index); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - com.google.protobuf.ByteString getPromotionIdsBytes(int index); + com.google.protobuf.ByteString + getPromotionIdsBytes(int index); - com.google.cloud.discoveryengine.v1.DocumentInfo.DocumentDescriptorCase - getDocumentDescriptorCase(); + com.google.cloud.discoveryengine.v1.DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java similarity index 81% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java index 2a569ca50558..68bd72816992 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document.proto package com.google.cloud.discoveryengine.v1; -public interface DocumentOrBuilder - extends +public interface DocumentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Document) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -33,13 +15,10 @@ public interface DocumentOrBuilder
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return Whether the structData field is set. */ boolean hasStructData(); /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -47,13 +26,10 @@ public interface DocumentOrBuilder
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return The structData. */ com.google.protobuf.Struct getStructData(); /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -65,8 +41,6 @@ public interface DocumentOrBuilder
   com.google.protobuf.StructOrBuilder getStructDataOrBuilder();
 
   /**
-   *
-   *
    * 
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -74,13 +48,10 @@ public interface DocumentOrBuilder
    * 
* * string json_data = 5; - * * @return Whether the jsonData field is set. */ boolean hasJsonData(); /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -88,13 +59,10 @@ public interface DocumentOrBuilder
    * 
* * string json_data = 5; - * * @return The jsonData. */ java.lang.String getJsonData(); /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
@@ -102,14 +70,12 @@ public interface DocumentOrBuilder
    * 
* * string json_data = 5; - * * @return The bytes for jsonData. */ - com.google.protobuf.ByteString getJsonDataBytes(); + com.google.protobuf.ByteString + getJsonDataBytes(); /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -120,13 +86,10 @@ public interface DocumentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -137,14 +100,12 @@ public interface DocumentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -153,13 +114,10 @@ public interface DocumentOrBuilder
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -168,39 +126,32 @@ public interface DocumentOrBuilder
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The schemaId. */ java.lang.String getSchemaId(); /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString getSchemaIdBytes(); + com.google.protobuf.ByteString + getSchemaIdBytes(); /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -208,13 +159,10 @@ public interface DocumentOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.Document.Content content = 10; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -222,13 +170,10 @@ public interface DocumentOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.Document.Content content = 10; - * * @return The content. */ com.google.cloud.discoveryengine.v1.Document.Content getContent(); /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -240,8 +185,6 @@ public interface DocumentOrBuilder
   com.google.cloud.discoveryengine.v1.Document.ContentOrBuilder getContentOrBuilder();
 
   /**
-   *
-   *
    * 
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -251,13 +194,10 @@ public interface DocumentOrBuilder
    * 
* * string parent_document_id = 7; - * * @return The parentDocumentId. */ java.lang.String getParentDocumentId(); /** - * - * *
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -267,52 +207,38 @@ public interface DocumentOrBuilder
    * 
* * string parent_document_id = 7; - * * @return The bytes for parentDocumentId. */ - com.google.protobuf.ByteString getParentDocumentIdBytes(); + com.google.protobuf.ByteString + getParentDocumentIdBytes(); /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the derivedStructData field is set. */ boolean hasDerivedStructData(); /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The derivedStructData. */ com.google.protobuf.Struct getDerivedStructData(); /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java new file mode 100644 index 000000000000..3945ef391e59 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/document.proto + +package com.google.cloud.discoveryengine.v1; + +public final class DocumentProto { + private DocumentProto() {} + 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_discoveryengine_v1_Document_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Document_Content_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/discoveryengine/v1/docume" + + "nt.proto\022\037google.cloud.discoveryengine.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\034google/protobuf/s" + + "truct.proto\"\222\005\n\010Document\022.\n\013struct_data\030" + + "\004 \001(\0132\027.google.protobuf.StructH\000\022\023\n\tjson" + + "_data\030\005 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\020\n\002id\030" + + "\002 \001(\tB\004\342A\001\005\022\021\n\tschema_id\030\003 \001(\t\022B\n\007conten" + + "t\030\n \001(\01321.google.cloud.discoveryengine.v" + + "1.Document.Content\022\032\n\022parent_document_id" + + "\030\007 \001(\t\022:\n\023derived_struct_data\030\006 \001(\0132\027.go" + + "ogle.protobuf.StructB\004\342A\001\003\032K\n\007Content\022\023\n" + + "\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri\030\003 \001(\tH\000\022\021\n\tmim" + + "e_type\030\001 \001(\tB\t\n\007content:\226\002\352A\222\002\n\'discover" + + "yengine.googleapis.com/Document\022fproject" + + "s/{project}/locations/{location}/dataSto" + + "res/{data_store}/branches/{branch}/docum" + + "ents/{document}\022\177projects/{project}/loca" + + "tions/{location}/collections/{collection" + + "}/dataStores/{data_store}/branches/{bran" + + "ch}/documents/{document}B\006\n\004dataB\200\002\n#com" + + ".google.cloud.discoveryengine.v1B\rDocume" + + "ntProtoP\001ZMcloud.google.com/go/discovery" + + "engine/apiv1/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" + + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" + + "overyEngine\\V1\352\002\"Google::Cloud::Discover" + + "yEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_Document_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_Document_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Document_descriptor, + new java.lang.String[] { "StructData", "JsonData", "Name", "Id", "SchemaId", "Content", "ParentDocumentId", "DerivedStructData", "Data", }); + internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor = + internal_static_google_cloud_discoveryengine_v1_Document_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_Document_Content_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Document_Content_descriptor, + new java.lang.String[] { "RawBytes", "Uri", "MimeType", "Content", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java new file mode 100644 index 000000000000..cf2e4e2d62d3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java @@ -0,0 +1,226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/document_service.proto + +package com.google.cloud.discoveryengine.v1; + +public final class DocumentServiceProto { + private DocumentServiceProto() {} + 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_discoveryengine_v1_GetDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_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/discoveryengine/v1/docume" + + "nt_service.proto\022\037google.cloud.discovery" + + "engine.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032.google/cloud/discoveryengine/v1/do" + + "cument.proto\0323google/cloud/discoveryengi" + + "ne/v1/import_config.proto\0322google/cloud/" + + "discoveryengine/v1/purge_config.proto\032#g" + + "oogle/longrunning/operations.proto\032\033goog" + + "le/protobuf/empty.proto\"T\n\022GetDocumentRe" + + "quest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'discoverye" + + "ngine.googleapis.com/Document\"}\n\024ListDoc" + + "umentsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%" + + "discoveryengine.googleapis.com/Branch\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025" + + "ListDocumentsResponse\022<\n\tdocuments\030\001 \003(\013" + + "2).google.cloud.discoveryengine.v1.Docum" + + "ent\022\027\n\017next_page_token\030\002 \001(\t\"\265\001\n\025CreateD" + + "ocumentRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n" + + "%discoveryengine.googleapis.com/Branch\022A" + + "\n\010document\030\002 \001(\0132).google.cloud.discover" + + "yengine.v1.DocumentB\004\342A\001\002\022\031\n\013document_id" + + "\030\003 \001(\tB\004\342A\001\002\"q\n\025UpdateDocumentRequest\022A\n" + + "\010document\030\001 \001(\0132).google.cloud.discovery" + + "engine.v1.DocumentB\004\342A\001\002\022\025\n\rallow_missin" + + "g\030\002 \001(\010\"W\n\025DeleteDocumentRequest\022>\n\004name" + + "\030\001 \001(\tB0\342A\001\002\372A)\n\'discoveryengine.googlea" + + "pis.com/Document2\220\023\n\017DocumentService\022\234\002\n" + + "\013GetDocument\0223.google.cloud.discoveryeng" + + "ine.v1.GetDocumentRequest\032).google.cloud" + + ".discoveryengine.v1.Document\"\254\001\332A\004name\202\323" + + "\344\223\002\236\001\022E/v1/{name=projects/*/locations/*/" + + "dataStores/*/branches/*/documents/*}ZU\022S" + + "/v1/{name=projects/*/locations/*/collect" + + "ions/*/dataStores/*/branches/*/documents" + + "/*}\022\257\002\n\rListDocuments\0225.google.cloud.dis" + + "coveryengine.v1.ListDocumentsRequest\0326.g" + + "oogle.cloud.discoveryengine.v1.ListDocum" + + "entsResponse\"\256\001\332A\006parent\202\323\344\223\002\236\001\022E/v1/{pa" + + "rent=projects/*/locations/*/dataStores/*" + + "/branches/*}/documentsZU\022S/v1/{parent=pr" + + "ojects/*/locations/*/collections/*/dataS" + + "tores/*/branches/*}/documents\022\315\002\n\016Create" + + "Document\0226.google.cloud.discoveryengine." + + "v1.CreateDocumentRequest\032).google.cloud." + + "discoveryengine.v1.Document\"\327\001\332A\033parent," + + "document,document_id\202\323\344\223\002\262\001\"E/v1/{parent" + + "=projects/*/locations/*/dataStores/*/bra" + + "nches/*}/documents:\010documentZ_\"S/v1/{par" + + "ent=projects/*/locations/*/collections/*" + + "/dataStores/*/branches/*}/documents:\010doc" + + "ument\022\301\002\n\016UpdateDocument\0226.google.cloud." + + "discoveryengine.v1.UpdateDocumentRequest" + + "\032).google.cloud.discoveryengine.v1.Docum" + + "ent\"\313\001\202\323\344\223\002\304\0012N/v1/{document.name=projec" + + "ts/*/locations/*/dataStores/*/branches/*" + + "/documents/*}:\010documentZh2\\/v1/{document" + + ".name=projects/*/locations/*/collections" + + "/*/dataStores/*/branches/*/documents/*}:" + + "\010document\022\217\002\n\016DeleteDocument\0226.google.cl" + + "oud.discoveryengine.v1.DeleteDocumentReq" + + "uest\032\026.google.protobuf.Empty\"\254\001\332A\004name\202\323" + + "\344\223\002\236\001*E/v1/{name=projects/*/locations/*/" + + "dataStores/*/branches/*/documents/*}ZU*S" + + "/v1/{name=projects/*/locations/*/collect" + + "ions/*/dataStores/*/branches/*/documents" + + "/*}\022\232\003\n\017ImportDocuments\0227.google.cloud.d" + + "iscoveryengine.v1.ImportDocumentsRequest" + + "\032\035.google.longrunning.Operation\"\256\002\312Ar\n7g" + + "oogle.cloud.discoveryengine.v1.ImportDoc" + + "umentsResponse\0227google.cloud.discoveryen" + + "gine.v1.ImportDocumentsMetadata\202\323\344\223\002\262\001\"L" + + "/v1/{parent=projects/*/locations/*/dataS" + + "tores/*/branches/*}/documents:import:\001*Z" + + "_\"Z/v1/{parent=projects/*/locations/*/co" + + "llections/*/dataStores/*/branches/*}/doc" + + "uments:import:\001*\022\224\003\n\016PurgeDocuments\0226.go" + + "ogle.cloud.discoveryengine.v1.PurgeDocum" + + "entsRequest\032\035.google.longrunning.Operati" + + "on\"\252\002\312Ap\n6google.cloud.discoveryengine.v" + + "1.PurgeDocumentsResponse\0226google.cloud.d" + + "iscoveryengine.v1.PurgeDocumentsMetadata" + + "\202\323\344\223\002\260\001\"K/v1/{parent=projects/*/location" + + "s/*/dataStores/*/branches/*}/documents:p" + + "urge:\001*Z^\"Y/v1/{parent=projects/*/locati" + + "ons/*/collections/*/dataStores/*/branche" + + "s/*}/documents:purge:\001*\032R\312A\036discoveryeng" + + "ine.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\207\002\n#com.goog" + + "le.cloud.discoveryengine.v1B\024DocumentSer" + + "viceProtoP\001ZMcloud.google.com/go/discove" + + "ryengine/apiv1/discoveryenginepb;discove" + + "ryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cl" + + "oud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Di" + + "scoveryEngine\\V1\352\002\"Google::Cloud::Discov" + + "eryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.PurgeConfigProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor, + new java.lang.String[] { "Documents", "NextPageToken", }); + internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CreateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "Document", "DocumentId", }); + internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor, + new java.lang.String[] { "Document", "AllowMissing", }); + internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteDocumentRequest_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.discoveryengine.v1.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.PurgeConfigProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java similarity index 79% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java index f6184c9bde92..16e0fb580c99 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSource.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Cloud Storage location for input content.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.emptyList(); + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); dataSchema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.GcsSource.class, - com.google.cloud.discoveryengine.v1.GcsSource.Builder.class); + com.google.cloud.discoveryengine.v1.GcsSource.class, com.google.cloud.discoveryengine.v1.GcsSource.Builder.class); } public static final int INPUT_URIS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -83,15 +62,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -104,15 +81,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -125,7 +99,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. */ @@ -133,8 +106,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -147,21 +118,18 @@ 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); } public static final int DATA_SCHEMA_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataSchema_ = ""; /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -189,7 +157,6 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) {
    * 
* * string data_schema = 2; - * * @return The dataSchema. */ @java.lang.Override @@ -198,15 +165,14 @@ public java.lang.String getDataSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; } } /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -234,15 +200,16 @@ public java.lang.String getDataSchema() {
    * 
* * string data_schema = 2; - * * @return The bytes for dataSchema. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -251,7 +218,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +229,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)); } @@ -298,16 +265,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.discoveryengine.v1.GcsSource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.GcsSource other = - (com.google.cloud.discoveryengine.v1.GcsSource) obj; + com.google.cloud.discoveryengine.v1.GcsSource other = (com.google.cloud.discoveryengine.v1.GcsSource) obj; - if (!getInputUrisList().equals(other.getInputUrisList())) return false; - if (!getDataSchema().equals(other.getDataSchema())) return false; + if (!getInputUrisList() + .equals(other.getInputUrisList())) return false; + if (!getDataSchema() + .equals(other.getDataSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -330,149 +298,146 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.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; } /** - * - * *
    * Cloud Storage location for input content.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.GcsSource) com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.GcsSource.class, - com.google.cloud.discoveryengine.v1.GcsSource.Builder.class); + com.google.cloud.discoveryengine.v1.GcsSource.class, com.google.cloud.discoveryengine.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); dataSchema_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor; } @java.lang.Override @@ -491,11 +456,8 @@ public com.google.cloud.discoveryengine.v1.GcsSource build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.GcsSource buildPartial() { - com.google.cloud.discoveryengine.v1.GcsSource result = - new com.google.cloud.discoveryengine.v1.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.GcsSource result = new com.google.cloud.discoveryengine.v1.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -515,39 +477,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.GcsSource result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.GcsSource) { - return mergeFrom((com.google.cloud.discoveryengine.v1.GcsSource) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -597,26 +558,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInputUrisIsMutable(); - inputUris_.add(s); - break; - } // case 10 - case 18: - { - dataSchema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputUrisIsMutable(); + inputUris_.add(s); + break; + } // case 10 + case 18: { + dataSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -626,12 +584,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureInputUrisIsMutable() { if (!inputUris_.isModifiable()) { inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); @@ -639,8 +595,6 @@ private void ensureInputUrisIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -653,16 +607,14 @@ 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() { inputUris_.makeImmutable(); return inputUris_; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -675,15 +627,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. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -696,7 +645,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. */ @@ -704,8 +652,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -718,16 +664,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. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -740,15 +684,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureInputUrisIsMutable(); inputUris_.set(index, value); bitField0_ |= 0x00000001; @@ -756,8 +698,6 @@ public Builder setInputUris(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -770,14 +710,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addInputUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureInputUrisIsMutable(); inputUris_.add(value); bitField0_ |= 0x00000001; @@ -785,8 +723,6 @@ public Builder addInputUris(java.lang.String value) { return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -799,20 +735,19 @@ 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -825,19 +760,16 @@ 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() { - inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -850,14 +782,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addInputUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); @@ -868,8 +798,6 @@ public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataSchema_ = ""; /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -897,13 +825,13 @@ public Builder addInputUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * string data_schema = 2; - * * @return The dataSchema. */ public java.lang.String getDataSchema() { java.lang.Object ref = dataSchema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; @@ -912,8 +840,6 @@ public java.lang.String getDataSchema() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -941,14 +867,15 @@ public java.lang.String getDataSchema() {
      * 
* * string data_schema = 2; - * * @return The bytes for dataSchema. */ - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -956,8 +883,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -985,22 +910,18 @@ public com.google.protobuf.ByteString getDataSchemaBytes() {
      * 
* * string data_schema = 2; - * * @param value The dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataSchema_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1028,7 +949,6 @@ public Builder setDataSchema(java.lang.String value) {
      * 
* * string data_schema = 2; - * * @return This builder for chaining. */ public Builder clearDataSchema() { @@ -1038,8 +958,6 @@ public Builder clearDataSchema() { return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1067,23 +985,21 @@ public Builder clearDataSchema() {
      * 
* * string data_schema = 2; - * * @param value The bytes for dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSchema_ = value; bitField0_ |= 0x00000002; 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); } @@ -1093,12 +1009,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GcsSource) private static final com.google.cloud.discoveryengine.v1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GcsSource(); } @@ -1107,27 +1023,27 @@ public static com.google.cloud.discoveryengine.v1.GcsSource getDefaultInstance() 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,4 +1058,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java similarity index 86% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java index f023ed8d9218..330f28b67bee 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -38,13 +20,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -57,13 +37,10 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ int getInputUrisCount(); /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -76,14 +53,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -96,15 +70,13 @@ 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); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -132,13 +104,10 @@ public interface GcsSourceOrBuilder
    * 
* * string data_schema = 2; - * * @return The dataSchema. */ java.lang.String getDataSchema(); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -166,8 +135,8 @@ public interface GcsSourceOrBuilder
    * 
* * string data_schema = 2; - * * @return The bytes for dataSchema. */ - com.google.protobuf.ByteString getDataSchemaBytes(); + com.google.protobuf.ByteString + getDataSchemaBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java index 0bf48bb79920..bfa0d636a721 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request for GetConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.GetConversationRequest} */ -public final class GetConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetConversationRequest) GetConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConversationRequest.newBuilder() to construct. private GetConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConversationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.GetConversationRequest.class, - com.google.cloud.discoveryengine.v1.GetConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.GetConversationRequest.class, com.google.cloud.discoveryengine.v1.GetConversationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 @@ -86,32 +61,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 resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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.discoveryengine.v1.GetConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.GetConversationRequest other = - (com.google.cloud.discoveryengine.v1.GetConversationRequest) obj; + com.google.cloud.discoveryengine.v1.GetConversationRequest other = (com.google.cloud.discoveryengine.v1.GetConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.GetConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.GetConversationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GetConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GetConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest 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.discoveryengine.v1.GetConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.GetConversationRequest 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 for GetConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.GetConversationRequest} */ - 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.discoveryengine.v1.GetConversationRequest) com.google.cloud.discoveryengine.v1.GetConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.GetConversationRequest.class, - com.google.cloud.discoveryengine.v1.GetConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.GetConversationRequest.class, com.google.cloud.discoveryengine.v1.GetConversationRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.GetConversationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_GetConversationRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.cloud.discoveryengine.v1.GetConversationRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.GetConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1.GetConversationRequest result = - new com.google.cloud.discoveryengine.v1.GetConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.GetConversationRequest result = new com.google.cloud.discoveryengine.v1.GetConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.GetConversationRe 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.discoveryengine.v1.GetConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.GetConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.GetConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetConversationRequest other) { - if (other == com.google.cloud.discoveryengine.v1.GetConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.GetConversationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetConversationRequest) private static final com.google.cloud.discoveryengine.v1.GetConversationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetConversationRequest(); } @@ -608,27 +544,27 @@ public static com.google.cloud.discoveryengine.v1.GetConversationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.GetConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java new file mode 100644 index 000000000000..b09b8c359a36 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetConversationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1; + +public interface GetConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java index 268fe606f4ac..c95af077813b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
@@ -29,48 +12,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.GetDocumentRequest}
  */
-public final class GetDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetDocumentRequest)
     GetDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetDocumentRequest.newBuilder() to construct.
   private GetDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetDocumentRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.GetDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1.GetDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.GetDocumentRequest.class, com.google.cloud.discoveryengine.v1.GetDocumentRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 @@ -96,15 +71,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
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -118,18 +92,17 @@ public java.lang.String getName() {
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 { @@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +122,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_); } @@ -174,15 +147,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.discoveryengine.v1.GetDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.GetDocumentRequest other = - (com.google.cloud.discoveryengine.v1.GetDocumentRequest) obj; + com.google.cloud.discoveryengine.v1.GetDocumentRequest other = (com.google.cloud.discoveryengine.v1.GetDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,104 +175,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.GetDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.GetDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GetDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest 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.discoveryengine.v1.GetDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.GetDocumentRequest 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
    * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
@@ -308,32 +275,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.GetDocumentRequest}
    */
-  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.discoveryengine.v1.GetDocumentRequest)
       com.google.cloud.discoveryengine.v1.GetDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.GetDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1.GetDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.GetDocumentRequest.class, com.google.cloud.discoveryengine.v1.GetDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.GetDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +311,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_GetDocumentRequest_descriptor;
     }
 
     @java.lang.Override
@@ -364,11 +332,8 @@ public com.google.cloud.discoveryengine.v1.GetDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.GetDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.GetDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1.GetDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.GetDocumentRequest result = new com.google.cloud.discoveryengine.v1.GetDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -384,39 +349,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.GetDocumentReques
     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.discoveryengine.v1.GetDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.GetDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.GetDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -424,8 +388,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetDocumentRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.GetDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.GetDocumentRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -457,19 +420,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -479,13 +440,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -499,16 +457,14 @@ public Builder mergeFrom(
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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; @@ -517,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -532,17 +486,16 @@ public java.lang.String getName() {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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 { @@ -550,8 +503,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -565,25 +516,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -597,10 +542,7 @@ public Builder setName(java.lang.String value) {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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() { @@ -610,8 +552,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -625,26 +565,22 @@ public Builder clearName() {
      * not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetDocumentRequest) private static final com.google.cloud.discoveryengine.v1.GetDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetDocumentRequest(); } @@ -668,27 +604,27 @@ public static com.google.cloud.discoveryengine.v1.GetDocumentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -703,4 +639,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.GetDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java index 83670e263d9f..7720d1577f4e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; -public interface GetDocumentRequestOrBuilder - extends +public interface GetDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -39,16 +21,11 @@ public interface GetDocumentRequestOrBuilder
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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
    * [Document][google.cloud.discoveryengine.v1.Document], such as
@@ -62,11 +39,9 @@ public interface GetDocumentRequestOrBuilder
    * not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java similarity index 65% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java index 39519ebcbd67..bff36bd1ec5f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.GetSchemaRequest}
  */
-public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetSchemaRequest)
     GetSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetSchemaRequest.newBuilder() to construct.
   private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetSchemaRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.GetSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1.GetSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.GetSchemaRequest.class, com.google.cloud.discoveryengine.v1.GetSchemaRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 @@ -88,32 +63,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 full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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.discoveryengine.v1.GetSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.GetSchemaRequest other = - (com.google.cloud.discoveryengine.v1.GetSchemaRequest) obj; + com.google.cloud.discoveryengine.v1.GetSchemaRequest other = (com.google.cloud.discoveryengine.v1.GetSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,103 +159,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.GetSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.GetSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GetSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest 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.discoveryengine.v1.GetSchemaRequest 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
    * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
@@ -291,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.GetSchemaRequest}
    */
-  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.discoveryengine.v1.GetSchemaRequest)
       com.google.cloud.discoveryengine.v1.GetSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.GetSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1.GetSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.GetSchemaRequest.class, com.google.cloud.discoveryengine.v1.GetSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.GetSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -347,11 +316,8 @@ public com.google.cloud.discoveryengine.v1.GetSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.GetSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.GetSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1.GetSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.GetSchemaRequest result = new com.google.cloud.discoveryengine.v1.GetSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -367,39 +333,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.GetSchemaRequest
     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.discoveryengine.v1.GetSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.GetSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.GetSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -407,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.GetSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.GetSchemaRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -440,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -462,28 +424,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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; @@ -492,24 +449,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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 { @@ -517,41 +471,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -561,33 +504,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetSchemaRequest) private static final com.google.cloud.discoveryengine.v1.GetSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetSchemaRequest(); } @@ -611,27 +548,27 @@ public static com.google.cloud.discoveryengine.v1.GetSchemaRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.GetSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..ae8509821992 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/schema_service.proto + +package com.google.cloud.discoveryengine.v1; + +public interface GetSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java new file mode 100644 index 000000000000..a1ff0cf13eed --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java @@ -0,0 +1,246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/import_config.proto + +package com.google.cloud.discoveryengine.v1; + +public final class ImportConfigProto { + private ImportConfigProto() {} + 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_discoveryengine_v1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/discoveryengine/v1/import" + + "_config.proto\022\037google.cloud.discoveryeng" + + "ine.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032.google/cloud" + + "/discoveryengine/v1/document.proto\0320goog" + + "le/cloud/discoveryengine/v1/user_event.p" + + "roto\032\037google/protobuf/timestamp.proto\032\027g" + + "oogle/rpc/status.proto\032\026google/type/date" + + ".proto\":\n\tGcsSource\022\030\n\ninput_uris\030\001 \003(\tB" + + "\004\342A\001\002\022\023\n\013data_schema\030\002 \001(\t\"\276\001\n\016BigQueryS" + + "ource\022+\n\016partition_date\030\005 \001(\0132\021.google.t" + + "ype.DateH\000\022\022\n\nproject_id\030\001 \001(\t\022\030\n\ndatase" + + "t_id\030\002 \001(\tB\004\342A\001\002\022\026\n\010table_id\030\003 \001(\tB\004\342A\001\002" + + "\022\027\n\017gcs_staging_dir\030\004 \001(\t\022\023\n\013data_schema" + + "\030\006 \001(\tB\013\n\tpartition\"8\n\021ImportErrorConfig" + + "\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\365\003" + + "\n\027ImportUserEventsRequest\022^\n\rinline_sour" + + "ce\030\002 \001(\0132E.google.cloud.discoveryengine." + + "v1.ImportUserEventsRequest.InlineSourceH" + + "\000\022@\n\ngcs_source\030\003 \001(\0132*.google.cloud.dis" + + "coveryengine.v1.GcsSourceH\000\022J\n\017bigquery_" + + "source\030\004 \001(\0132/.google.cloud.discoveryeng" + + "ine.v1.BigQuerySourceH\000\022A\n\006parent\030\001 \001(\tB" + + "1\342A\001\002\372A*\n(discoveryengine.googleapis.com" + + "/DataStore\022H\n\014error_config\030\005 \001(\01322.googl" + + "e.cloud.discoveryengine.v1.ImportErrorCo" + + "nfig\032U\n\014InlineSource\022E\n\013user_events\030\001 \003(" + + "\0132*.google.cloud.discoveryengine.v1.User" + + "EventB\004\342A\001\002B\010\n\006source\"\313\001\n\030ImportUserEven" + + "tsResponse\022)\n\rerror_samples\030\001 \003(\0132\022.goog" + + "le.rpc.Status\022H\n\014error_config\030\002 \001(\01322.go" + + "ogle.cloud.discoveryengine.v1.ImportErro" + + "rConfig\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025" + + "unjoined_events_count\030\004 \001(\003\"\252\001\n\030ImportUs" + + "erEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022/\n\013update_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsu" + + "ccess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003" + + "\"\251\001\n\027ImportDocumentsMetadata\022/\n\013create_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure" + + "_count\030\004 \001(\003\"\331\005\n\026ImportDocumentsRequest\022" + + "]\n\rinline_source\030\002 \001(\0132D.google.cloud.di" + + "scoveryengine.v1.ImportDocumentsRequest." + + "InlineSourceH\000\022@\n\ngcs_source\030\003 \001(\0132*.goo" + + "gle.cloud.discoveryengine.v1.GcsSourceH\000" + + "\022J\n\017bigquery_source\030\004 \001(\0132/.google.cloud" + + ".discoveryengine.v1.BigQuerySourceH\000\022>\n\006" + + "parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.g" + + "oogleapis.com/Branch\022H\n\014error_config\030\005 \001" + + "(\01322.google.cloud.discoveryengine.v1.Imp" + + "ortErrorConfig\022g\n\023reconciliation_mode\030\006 " + + "\001(\0162J.google.cloud.discoveryengine.v1.Im" + + "portDocumentsRequest.ReconciliationMode\022" + + "\031\n\021auto_generate_ids\030\010 \001(\010\022\020\n\010id_field\030\t" + + " \001(\t\032R\n\014InlineSource\022B\n\tdocuments\030\001 \003(\0132" + + ").google.cloud.discoveryengine.v1.Docume" + + "ntB\004\342A\001\002\"T\n\022ReconciliationMode\022#\n\037RECONC" + + "ILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013INCREMENT" + + "AL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"\216\001\n\027ImportDocum" + + "entsResponse\022)\n\rerror_samples\030\001 \003(\0132\022.go" + + "ogle.rpc.Status\022H\n\014error_config\030\002 \001(\01322." + + "google.cloud.discoveryengine.v1.ImportEr" + + "rorConfigB\204\002\n#com.google.cloud.discovery" + + "engine.v1B\021ImportConfigProtoP\001ZMcloud.go" + + "ogle.com/go/discoveryengine/apiv1/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002\037Google.Cloud.DiscoveryEngine.V" + + "1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Go" + + "ogle::Cloud::DiscoveryEngine::V1b\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.discoveryengine.v1.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GcsSource_descriptor, + new java.lang.String[] { "InputUris", "DataSchema", }); + internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_BigQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_BigQuerySource_descriptor, + new java.lang.String[] { "PartitionDate", "ProjectId", "DatasetId", "TableId", "GcsStagingDir", "DataSchema", "Partition", }); + internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor, + new java.lang.String[] { "GcsPrefix", "Destination", }); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor, + new java.lang.String[] { "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", }); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor, + new java.lang.String[] { "UserEvents", }); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorConfig", "JoinedEventsCount", "UnjoinedEventsCount", }); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor, + new java.lang.String[] { "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "ReconciliationMode", "AutoGenerateIds", "IdField", "Source", }); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor, + new java.lang.String[] { "Documents", }); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorConfig", }); + 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.discoveryengine.v1.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java index 508b3d32711a..efb74196c4b7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Metadata related to the progress of the ImportDocuments operation. This is
  * returned by the google.longrunning.Operation.metadata field.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsMetadata}
  */
-public final class ImportDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportDocumentsMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportDocumentsMetadata)
     ImportDocumentsMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportDocumentsMetadata.newBuilder() to construct.
   private ImportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ImportDocumentsMetadata() {}
+  private ImportDocumentsMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportDocumentsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.class,
-            com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.Builder.class);
+            com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.class, com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.Builder.class);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -110,15 +84,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -126,15 +97,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -142,8 +110,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.
@@ -159,14 +125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int SUCCESS_COUNT_FIELD_NUMBER = 3;
   private long successCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -177,14 +140,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 4; private long failureCount_ = 0L; /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -193,7 +153,6 @@ public long getFailureCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -228,16 +188,20 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (successCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); } if (failureCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,24 +211,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.discoveryengine.v1.ImportDocumentsMetadata)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata other = - (com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata) obj; + com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata other = (com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getSuccessCount() != other.getSuccessCount()) return false; - if (getFailureCount() != other.getFailureCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,113 +252,109 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata 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.discoveryengine.v1.ImportDocumentsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata 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 ImportDocuments operation. This is
    * returned by the google.longrunning.Operation.metadata field.
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsMetadata}
    */
-  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.discoveryengine.v1.ImportDocumentsMetadata)
       com.google.cloud.discoveryengine.v1.ImportDocumentsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.class,
-              com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.Builder.class);
+              com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.class, com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -466,11 +430,8 @@ public com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata buildPartial() {
-      com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata result =
-          new com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata result = new com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -478,10 +439,14 @@ public com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata buildPartial(
     private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.successCount_ = successCount_;
@@ -495,39 +460,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsMe
     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.discoveryengine.v1.ImportDocumentsMetadata) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata other) {
-      if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -575,37 +538,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                successCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                failureCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              successCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              failureCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -615,52 +577,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -681,15 +629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -700,8 +647,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -710,9 +655,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -725,8 +670,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -744,8 +687,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -758,8 +699,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -770,14 +709,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.
      * 
@@ -785,17 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -803,49 +736,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -867,8 +787,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.
@@ -876,7 +794,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -887,8 +806,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.
@@ -898,9 +815,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -913,8 +830,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.
@@ -933,8 +848,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -948,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -961,14 +872,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.
@@ -977,32 +885,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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_;
     }
 
-    private long successCount_;
+    private long successCount_ ;
     /**
-     *
-     *
      * 
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -1010,14 +912,11 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @param value The successCount to set. * @return This builder for chaining. */ @@ -1029,14 +928,11 @@ public Builder setSuccessCount(long value) { return this; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { @@ -1046,16 +942,13 @@ public Builder clearSuccessCount() { return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -1063,14 +956,11 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @param value The failureCount to set. * @return This builder for chaining. */ @@ -1082,14 +972,11 @@ public Builder setFailureCount(long value) { return this; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return This builder for chaining. */ public Builder clearFailureCount() { @@ -1098,9 +985,9 @@ public Builder clearFailureCount() { 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); } @@ -1110,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportDocumentsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportDocumentsMetadata) private static final com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata(); } @@ -1124,27 +1011,27 @@ public static com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDocumentsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,4 +1046,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java index 76e2691b2242..c7468eebd2e8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface ImportDocumentsMetadataOrBuilder - extends +public interface ImportDocumentsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportDocumentsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface ImportDocumentsMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
@@ -97,27 +65,21 @@ public interface ImportDocumentsMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ long getFailureCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java index 56f129dc4667..a7732b8ee0ca 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for Import methods.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsRequest} */ -public final class ImportDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportDocumentsRequest) ImportDocumentsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportDocumentsRequest.newBuilder() to construct. private ImportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDocumentsRequest() { parent_ = ""; reconciliationMode_ = 0; @@ -45,28 +27,25 @@ private ImportDocumentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDocumentsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.class, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.Builder.class); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.class, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.Builder.class); } /** - * - * *
    * Indicates how imported documents are reconciled with the existing documents
    * created or imported before.
@@ -74,10 +53,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode}
    */
-  public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ReconciliationMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Defaults to `INCREMENTAL`.
      * 
@@ -86,8 +64,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ RECONCILIATION_MODE_UNSPECIFIED(0), /** - * - * *
      * Inserts new documents or updates existing documents.
      * 
@@ -96,8 +72,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ INCREMENTAL(1), /** - * - * *
      * Calculates diff and replaces the entire document dataset. Existing
      * documents may be deleted if they are not present in the source location.
@@ -110,8 +84,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu
     ;
 
     /**
-     *
-     *
      * 
      * Defaults to `INCREMENTAL`.
      * 
@@ -120,8 +92,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int RECONCILIATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Inserts new documents or updates existing documents.
      * 
@@ -130,8 +100,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int INCREMENTAL_VALUE = 1; /** - * - * *
      * Calculates diff and replaces the entire document dataset. Existing
      * documents may be deleted if they are not present in the source location.
@@ -141,6 +109,7 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int FULL_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -165,14 +134,10 @@ public static ReconciliationMode valueOf(int value) {
      */
     public static ReconciliationMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return RECONCILIATION_MODE_UNSPECIFIED;
-        case 1:
-          return INCREMENTAL;
-        case 2:
-          return FULL;
-        default:
-          return null;
+        case 0: return RECONCILIATION_MODE_UNSPECIFIED;
+        case 1: return INCREMENTAL;
+        case 2: return FULL;
+        default: return null;
       }
     }
 
@@ -180,31 +145,29 @@ public static ReconciliationMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ReconciliationMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ReconciliationMode findValueByNumber(int number) {
+              return ReconciliationMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ReconciliationMode findValueByNumber(int number) {
-                return ReconciliationMode.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.discoveryengine.v1.ImportDocumentsRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ReconciliationMode[] VALUES = values();
@@ -212,7 +175,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ReconciliationMode 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;
@@ -229,221 +193,176 @@ private ReconciliationMode(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode)
   }
 
-  public interface InlineSourceOrBuilder
-      extends
+  public interface InlineSourceOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.Document getDocuments(int index); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getDocumentsCount(); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getDocumentsOrBuilderList(); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder( + int index); } /** - * - * *
    * The inline source for the input config for ImportDocuments method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource} */ - public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class InlineSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) InlineSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InlineSource.newBuilder() to construct. private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InlineSource() { documents_ = 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 InlineSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List documents_; /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentsOrBuilderList() { return documents_; } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Document getDocuments(int index) { return documents_.get(index); } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder( + int index) { return documents_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -455,7 +374,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 < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } @@ -469,7 +389,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documents_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -479,16 +400,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.discoveryengine.v1.ImportDocumentsRequest.InlineSource)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource other = - (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) obj; + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource other = (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -510,95 +430,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource 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 @@ -608,43 +522,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The inline source for the input config for ImportDocuments method.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource} */ - 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.discoveryengine.v1.ImportDocumentsRequest.InlineSource) com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -660,22 +570,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_InlineSource_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource build() { - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result = - buildPartial(); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -683,20 +590,15 @@ public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource b } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - buildPartial() { - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result = - new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource(this); + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource buildPartial() { + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result = new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result) { if (documentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); @@ -708,8 +610,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource result) { int from_bitField0_ = bitField0_; } @@ -717,54 +618,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) other); + if (other instanceof com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource other) { - if (other - == com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource other) { + if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance()) return this; if (documentsBuilder_ == null) { if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { @@ -783,10 +676,9 @@ public Builder mergeFrom( documentsBuilder_ = null; documents_ = other.documents_; bitField0_ = (bitField0_ & ~0x00000001); - documentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDocumentsFieldBuilder() - : null; + documentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentsFieldBuilder() : null; } else { documentsBuilder_.addAllMessages(other.documents_); } @@ -818,26 +710,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1.Document m = - input.readMessage( - com.google.cloud.discoveryengine.v1.Document.parser(), extensionRegistry); - if (documentsBuilder_ == null) { - ensureDocumentsIsMutable(); - documents_.add(m); - } else { - documentsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1.Document m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Document.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -847,38 +738,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List documents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documents_ = - new java.util.ArrayList(documents_); + documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> - documentsBuilder_; + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> documentsBuilder_; /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getDocumentsList() { if (documentsBuilder_ == null) { @@ -888,17 +769,13 @@ public java.util.List getDocuments } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getDocumentsCount() { if (documentsBuilder_ == null) { @@ -908,17 +785,13 @@ public int getDocumentsCount() { } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Document getDocuments(int index) { if (documentsBuilder_ == null) { @@ -928,19 +801,16 @@ public com.google.cloud.discoveryengine.v1.Document getDocuments(int index) { } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1.Document value) { + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1.Document value) { if (documentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -954,17 +824,13 @@ public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1.Docum return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocuments( int index, com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { @@ -978,17 +844,13 @@ public Builder setDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments(com.google.cloud.discoveryengine.v1.Document value) { if (documentsBuilder_ == null) { @@ -1004,19 +866,16 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1.Document value) return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1.Document value) { + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1.Document value) { if (documentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1030,17 +889,13 @@ public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1.Docum return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments( com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { @@ -1054,17 +909,13 @@ public Builder addDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments( int index, com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { @@ -1078,23 +929,20 @@ public Builder addDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllDocuments( java.lang.Iterable values) { if (documentsBuilder_ == null) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); onChanged(); } else { documentsBuilder_.addAllMessages(values); @@ -1102,17 +950,13 @@ public Builder addAllDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocuments() { if (documentsBuilder_ == null) { @@ -1125,17 +969,13 @@ public Builder clearDocuments() { return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeDocuments(int index) { if (documentsBuilder_ == null) { @@ -1148,57 +988,45 @@ public Builder removeDocuments(int index) { return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentsBuilder( + int index) { return getDocumentsFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder( int index) { if (documentsBuilder_ == null) { - return documents_.get(index); - } else { + return documents_.get(index); } else { return documentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDocumentsOrBuilderList() { + public java.util.List + getDocumentsOrBuilderList() { if (documentsBuilder_ != null) { return documentsBuilder_.getMessageOrBuilderList(); } else { @@ -1206,74 +1034,59 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuild } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder() { - return getDocumentsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder(int index) { - return getDocumentsFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDocumentsBuilderList() { + public java.util.List + getDocumentsBuilderList() { return getDocumentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> getDocumentsFieldBuilder() { if (documentsBuilder_ == null) { - documentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( - documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( + documents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); documents_ = null; } return documentsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1286,45 +1099,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) - private static final com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource(); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1336,27 +1145,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCase_ = 0; - @SuppressWarnings("serial") 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 { INLINE_SOURCE(2), GCS_SOURCE(3), BIGQUERY_SOURCE(4), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -1372,39 +1177,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return INLINE_SOURCE; - case 3: - return GCS_SOURCE; - case 4: - return BIGQUERY_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return INLINE_SOURCE; + case 3: return GCS_SOURCE; + case 4: return BIGQUERY_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 INLINE_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -1412,55 +1209,42 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource getInlineSource() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 3; /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1468,26 +1252,21 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.GcsSource getGcsSource() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1.GcsSource) source_; } return com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -1497,21 +1276,18 @@ public com.google.cloud.discoveryengine.v1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1.GcsSource) source_; } return com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance(); } public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1519,26 +1295,21 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * BigQuery input source.
    * 
@@ -1548,28 +1319,22 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource() { @java.lang.Override public com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance(); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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 @@ -1578,33 +1343,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 parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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 { @@ -1615,14 +1378,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ERROR_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -1630,25 +1390,18 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
@@ -1657,63 +1410,42 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } public static final int RECONCILIATION_MODE_FIELD_NUMBER = 6; private int reconciliationMode_ = 0; /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The enum numeric value on the wire for reconciliationMode. */ - @java.lang.Override - public int getReconciliationModeValue() { + @java.lang.Override public int getReconciliationModeValue() { return reconciliationMode_; } /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The reconciliationMode. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - getReconciliationMode() { - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode result = - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.forNumber( - reconciliationMode_); - return result == null - ? com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode getReconciliationMode() { + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode result = com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.forNumber(reconciliationMode_); + return result == null ? com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED : result; } public static final int AUTO_GENERATE_IDS_FIELD_NUMBER = 8; private boolean autoGenerateIds_ = false; /** - * - * *
    * Whether to automatically generate IDs for the documents if absent.
    *
@@ -1738,7 +1470,6 @@ public int getReconciliationModeValue() {
    * 
* * bool auto_generate_ids = 8; - * * @return The autoGenerateIds. */ @java.lang.Override @@ -1747,12 +1478,9 @@ public boolean getAutoGenerateIds() { } public static final int ID_FIELD_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object idField_ = ""; /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -1784,7 +1512,6 @@ public boolean getAutoGenerateIds() {
    * 
* * string id_field = 9; - * * @return The idField. */ @java.lang.Override @@ -1793,15 +1520,14 @@ public java.lang.String getIdField() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); idField_ = s; return s; } } /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -1833,15 +1559,16 @@ public java.lang.String getIdField() {
    * 
* * string id_field = 9; - * * @return The bytes for idField. */ @java.lang.Override - public com.google.protobuf.ByteString getIdFieldBytes() { + public com.google.protobuf.ByteString + getIdFieldBytes() { java.lang.Object ref = idField_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); idField_ = b; return b; } else { @@ -1850,7 +1577,6 @@ public com.google.protobuf.ByteString getIdFieldBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1862,13 +1588,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (sourceCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_); + output.writeMessage(2, (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_); } if (sourceCase_ == 3) { output.writeMessage(3, (com.google.cloud.discoveryengine.v1.GcsSource) source_); @@ -1879,10 +1605,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorConfig_ != null) { output.writeMessage(5, getErrorConfig()); } - if (reconciliationMode_ - != com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - .RECONCILIATION_MODE_UNSPECIFIED - .getNumber()) { + if (reconciliationMode_ != com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.RECONCILIATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(6, reconciliationMode_); } if (autoGenerateIds_ != false) { @@ -1904,31 +1627,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_); } if (sourceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.discoveryengine.v1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.discoveryengine.v1.GcsSource) source_); } if (sourceCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.discoveryengine.v1.BigQuerySource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.discoveryengine.v1.BigQuerySource) source_); } if (errorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getErrorConfig()); } - if (reconciliationMode_ - != com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - .RECONCILIATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, reconciliationMode_); + if (reconciliationMode_ != com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.RECONCILIATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, reconciliationMode_); } if (autoGenerateIds_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, autoGenerateIds_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, autoGenerateIds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idField_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idField_); @@ -1941,32 +1661,38 @@ 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.discoveryengine.v1.ImportDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest other = - (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest) obj; + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest other = (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasErrorConfig() != other.hasErrorConfig()) return false; if (hasErrorConfig()) { - if (!getErrorConfig().equals(other.getErrorConfig())) return false; + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; } if (reconciliationMode_ != other.reconciliationMode_) return false; - if (getAutoGenerateIds() != other.getAutoGenerateIds()) return false; - if (!getIdField().equals(other.getIdField())) return false; + if (getAutoGenerateIds() + != other.getAutoGenerateIds()) return false; + if (!getIdField() + .equals(other.getIdField())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: - if (!getInlineSource().equals(other.getInlineSource())) return false; + if (!getInlineSource() + .equals(other.getInlineSource())) return false; break; case 3: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 4: - if (!getBigquerySource().equals(other.getBigquerySource())) return false; + if (!getBigquerySource() + .equals(other.getBigquerySource())) return false; break; case 0: default: @@ -1991,7 +1717,8 @@ public int hashCode() { hash = (37 * hash) + RECONCILIATION_MODE_FIELD_NUMBER; hash = (53 * hash) + reconciliationMode_; hash = (37 * hash) + AUTO_GENERATE_IDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoGenerateIds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoGenerateIds()); hash = (37 * hash) + ID_FIELD_FIELD_NUMBER; hash = (53 * hash) + getIdField().hashCode(); switch (sourceCase_) { @@ -2016,136 +1743,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest 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.discoveryengine.v1.ImportDocumentsRequest} */ - 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.discoveryengine.v1.ImportDocumentsRequest) com.google.cloud.discoveryengine.v1.ImportDocumentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.class, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.Builder.class); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.class, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2174,9 +1896,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsRequest_descriptor; } @java.lang.Override @@ -2195,11 +1917,8 @@ public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest buildPartial() { - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest result = - new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest result = new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2211,8 +1930,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsRe result.parent_ = parent_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.errorConfig_ = - errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.reconciliationMode_ = reconciliationMode_; @@ -2225,17 +1945,19 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsRe } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + if (sourceCase_ == 2 && + inlineSourceBuilder_ != null) { result.source_ = inlineSourceBuilder_.build(); } - if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 3 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } - if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + if (sourceCase_ == 4 && + bigquerySourceBuilder_ != null) { result.source_ = bigquerySourceBuilder_.build(); } } @@ -2244,39 +1966,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.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.discoveryengine.v1.ImportDocumentsRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsRequest)other); } else { super.mergeFrom(other); return this; @@ -2284,8 +2005,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest other) { - if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000008; @@ -2306,25 +2026,21 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportDocumentsRequ onChanged(); } switch (other.getSourceCase()) { - case INLINE_SOURCE: - { - mergeInlineSource(other.getInlineSource()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case BIGQUERY_SOURCE: - { - mergeBigquerySource(other.getBigquerySource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case INLINE_SOURCE: { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2352,61 +2068,60 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - reconciliationMode_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 64: - { - autoGenerateIds_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 74: - { - idField_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getInlineSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getBigquerySourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + reconciliationMode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 64: { + autoGenerateIds_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 74: { + idField_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2416,12 +2131,12 @@ public Builder mergeFrom( } // finally 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() { @@ -2434,20 +2149,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder> - inlineSourceBuilder_; + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder> inlineSourceBuilder_; /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -2455,46 +2163,35 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource getInlineSource() { if (inlineSourceBuilder_ == null) { if (sourceCase_ == 2) { return (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } else { if (sourceCase_ == 2) { return inlineSourceBuilder_.getMessage(); } - return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ - public Builder setInlineSource( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource value) { + public Builder setInlineSource(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2508,18 +2205,14 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ public Builder setInlineSource( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder builderForValue) { if (inlineSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -2530,28 +2223,18 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ - public Builder mergeInlineSource( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource value) { + public Builder mergeInlineSource(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ - != com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.newBuilder( - (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) - source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.newBuilder((com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2567,14 +2250,11 @@ public Builder mergeInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ public Builder clearInlineSource() { if (inlineSourceBuilder_ == null) { @@ -2593,68 +2273,49 @@ public Builder clearInlineSource() { return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder - getInlineSourceBuilder() { + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder() { return getInlineSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { return inlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 2) { return (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder> + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder> getInlineSourceFieldBuilder() { if (inlineSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { - source_ = - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + source_ = com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } - inlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder>( + inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder>( (com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource) source_, getParentForChildren(), isClean()); @@ -2666,19 +2327,13 @@ public Builder clearInlineSource() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.GcsSource, - com.google.cloud.discoveryengine.v1.GcsSource.Builder, - com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.discoveryengine.v1.GcsSource, com.google.cloud.discoveryengine.v1.GcsSource.Builder, com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -2686,14 +2341,11 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override @@ -2711,8 +2363,6 @@ public com.google.cloud.discoveryengine.v1.GcsSource getGcsSource() { } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2733,8 +2383,6 @@ public Builder setGcsSource(com.google.cloud.discoveryengine.v1.GcsSource value) return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2753,8 +2401,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2763,13 +2409,10 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 3 - && source_ != com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1.GcsSource.newBuilder( - (com.google.cloud.discoveryengine.v1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 3 && + source_ != com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1.GcsSource.newBuilder((com.google.cloud.discoveryengine.v1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2785,8 +2428,6 @@ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1.GcsSource valu return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2810,8 +2451,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2822,8 +2461,6 @@ public com.google.cloud.discoveryengine.v1.GcsSource.Builder getGcsSourceBuilder return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2842,8 +2479,6 @@ public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuil } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2851,19 +2486,14 @@ public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuil * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.GcsSource, - com.google.cloud.discoveryengine.v1.GcsSource.Builder, - com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> + com.google.cloud.discoveryengine.v1.GcsSource, com.google.cloud.discoveryengine.v1.GcsSource.Builder, com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 3)) { source_ = com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.GcsSource, - com.google.cloud.discoveryengine.v1.GcsSource.Builder, - com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GcsSource, com.google.cloud.discoveryengine.v1.GcsSource.Builder, com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder>( (com.google.cloud.discoveryengine.v1.GcsSource) source_, getParentForChildren(), isClean()); @@ -2875,19 +2505,13 @@ public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.BigQuerySource, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> - bigquerySourceBuilder_; + com.google.cloud.discoveryengine.v1.BigQuerySource, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> bigquerySourceBuilder_; /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -2895,14 +2519,11 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override @@ -2920,8 +2541,6 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource() { } } /** - * - * *
      * BigQuery input source.
      * 
@@ -2942,8 +2561,6 @@ public Builder setBigquerySource(com.google.cloud.discoveryengine.v1.BigQuerySou return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2962,8 +2579,6 @@ public Builder setBigquerySource( return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2972,13 +2587,10 @@ public Builder setBigquerySource( */ public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1.BigQuerySource value) { if (bigquerySourceBuilder_ == null) { - if (sourceCase_ == 4 - && source_ != com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1.BigQuerySource.newBuilder( - (com.google.cloud.discoveryengine.v1.BigQuerySource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 4 && + source_ != com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1.BigQuerySource.newBuilder((com.google.cloud.discoveryengine.v1.BigQuerySource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2994,8 +2606,6 @@ public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1.BigQueryS return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -3019,8 +2629,6 @@ public Builder clearBigquerySource() { return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -3031,8 +2639,6 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou return getBigquerySourceFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery input source.
      * 
@@ -3040,8 +2646,7 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder - getBigquerySourceOrBuilder() { + public com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { return bigquerySourceBuilder_.getMessageOrBuilder(); } else { @@ -3052,8 +2657,6 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou } } /** - * - * *
      * BigQuery input source.
      * 
@@ -3061,19 +2664,14 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.BigQuerySource, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> + com.google.cloud.discoveryengine.v1.BigQuerySource, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> getBigquerySourceFieldBuilder() { if (bigquerySourceBuilder_ == null) { if (!(sourceCase_ == 4)) { source_ = com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance(); } - bigquerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.BigQuerySource, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder>( + bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.BigQuerySource, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder>( (com.google.cloud.discoveryengine.v1.BigQuerySource) source_, getParentForChildren(), isClean()); @@ -3086,24 +2684,20 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string 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; @@ -3112,25 +2706,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string 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 { @@ -3138,43 +2729,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string 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() { @@ -3184,25 +2764,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; @@ -3212,47 +2786,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3273,8 +2834,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorCon return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3293,8 +2852,6 @@ public Builder setErrorConfig( return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3303,10 +2860,9 @@ public Builder setErrorConfig( */ public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorConfig value) { if (errorConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && errorConfig_ != null - && errorConfig_ - != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) { getErrorConfigBuilder().mergeFrom(value); } else { errorConfig_ = value; @@ -3319,8 +2875,6 @@ public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorC return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3338,8 +2892,6 @@ public Builder clearErrorConfig() { return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3352,27 +2904,21 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon return getErrorConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; */ - public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder - getErrorConfigOrBuilder() { + public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { if (errorConfigBuilder_ != null) { return errorConfigBuilder_.getMessageOrBuilder(); } else { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3380,17 +2926,14 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> getErrorConfigFieldBuilder() { if (errorConfigBuilder_ == null) { - errorConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>( - getErrorConfig(), getParentForChildren(), isClean()); + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); errorConfig_ = null; } return errorConfigBuilder_; @@ -3398,37 +2941,26 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon private int reconciliationMode_ = 0; /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The enum numeric value on the wire for reconciliationMode. */ - @java.lang.Override - public int getReconciliationModeValue() { + @java.lang.Override public int getReconciliationModeValue() { return reconciliationMode_; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @param value The enum numeric value on the wire for reconciliationMode to set. * @return This builder for chaining. */ @@ -3439,49 +2971,32 @@ public Builder setReconciliationModeValue(int value) { return this; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The reconciliationMode. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - getReconciliationMode() { - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode result = - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.forNumber( - reconciliationMode_); - return result == null - ? com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - .UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode getReconciliationMode() { + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode result = com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.forNumber(reconciliationMode_); + return result == null ? com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED : result; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @param value The reconciliationMode to set. * @return This builder for chaining. */ - public Builder setReconciliationMode( - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode value) { + public Builder setReconciliationMode(com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode value) { if (value == null) { throw new NullPointerException(); } @@ -3491,18 +3006,13 @@ public Builder setReconciliationMode( return this; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return This builder for chaining. */ public Builder clearReconciliationMode() { @@ -3512,10 +3022,8 @@ public Builder clearReconciliationMode() { return this; } - private boolean autoGenerateIds_; + private boolean autoGenerateIds_ ; /** - * - * *
      * Whether to automatically generate IDs for the documents if absent.
      *
@@ -3540,7 +3048,6 @@ public Builder clearReconciliationMode() {
      * 
* * bool auto_generate_ids = 8; - * * @return The autoGenerateIds. */ @java.lang.Override @@ -3548,8 +3055,6 @@ public boolean getAutoGenerateIds() { return autoGenerateIds_; } /** - * - * *
      * Whether to automatically generate IDs for the documents if absent.
      *
@@ -3574,7 +3079,6 @@ public boolean getAutoGenerateIds() {
      * 
* * bool auto_generate_ids = 8; - * * @param value The autoGenerateIds to set. * @return This builder for chaining. */ @@ -3586,8 +3090,6 @@ public Builder setAutoGenerateIds(boolean value) { return this; } /** - * - * *
      * Whether to automatically generate IDs for the documents if absent.
      *
@@ -3612,7 +3114,6 @@ public Builder setAutoGenerateIds(boolean value) {
      * 
* * bool auto_generate_ids = 8; - * * @return This builder for chaining. */ public Builder clearAutoGenerateIds() { @@ -3624,8 +3125,6 @@ public Builder clearAutoGenerateIds() { private java.lang.Object idField_ = ""; /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3657,13 +3156,13 @@ public Builder clearAutoGenerateIds() {
      * 
* * string id_field = 9; - * * @return The idField. */ public java.lang.String getIdField() { java.lang.Object ref = idField_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); idField_ = s; return s; @@ -3672,8 +3171,6 @@ public java.lang.String getIdField() { } } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3705,14 +3202,15 @@ public java.lang.String getIdField() {
      * 
* * string id_field = 9; - * * @return The bytes for idField. */ - public com.google.protobuf.ByteString getIdFieldBytes() { + public com.google.protobuf.ByteString + getIdFieldBytes() { java.lang.Object ref = idField_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); idField_ = b; return b; } else { @@ -3720,8 +3218,6 @@ public com.google.protobuf.ByteString getIdFieldBytes() { } } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3753,22 +3249,18 @@ public com.google.protobuf.ByteString getIdFieldBytes() {
      * 
* * string id_field = 9; - * * @param value The idField to set. * @return This builder for chaining. */ - public Builder setIdField(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdField( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } idField_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3800,7 +3292,6 @@ public Builder setIdField(java.lang.String value) {
      * 
* * string id_field = 9; - * * @return This builder for chaining. */ public Builder clearIdField() { @@ -3810,8 +3301,6 @@ public Builder clearIdField() { return this; } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3843,23 +3332,21 @@ public Builder clearIdField() {
      * 
* * string id_field = 9; - * * @param value The bytes for idField to set. * @return This builder for chaining. */ - public Builder setIdFieldBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idField_ = value; bitField0_ |= 0x00000080; 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); } @@ -3869,12 +3356,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportDocumentsRequest) private static final com.google.cloud.discoveryengine.v1.ImportDocumentsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportDocumentsRequest(); } @@ -3883,27 +3370,27 @@ public static com.google.cloud.discoveryengine.v1.ImportDocumentsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3918,4 +3405,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ImportDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java similarity index 84% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java index eb5901646a75..965fbdf52fe2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java @@ -1,94 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface ImportDocumentsRequestOrBuilder - extends +public interface ImportDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ boolean hasInlineSource(); /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource getInlineSource(); /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; */ - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder(); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return The gcsSource. */ com.google.cloud.discoveryengine.v1.GcsSource getGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -98,32 +62,24 @@ public interface ImportDocumentsRequestOrBuilder com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
@@ -133,65 +89,48 @@ public interface ImportDocumentsRequestOrBuilder com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); /** - * - * *
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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 branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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(); /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
@@ -201,42 +140,29 @@ public interface ImportDocumentsRequestOrBuilder com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The enum numeric value on the wire for reconciliationMode. */ int getReconciliationModeValue(); /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The reconciliationMode. */ - com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - getReconciliationMode(); + com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode getReconciliationMode(); /** - * - * *
    * Whether to automatically generate IDs for the documents if absent.
    *
@@ -261,14 +187,11 @@ public interface ImportDocumentsRequestOrBuilder
    * 
* * bool auto_generate_ids = 8; - * * @return The autoGenerateIds. */ boolean getAutoGenerateIds(); /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -300,13 +223,10 @@ public interface ImportDocumentsRequestOrBuilder
    * 
* * string id_field = 9; - * * @return The idField. */ java.lang.String getIdField(); /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -338,10 +258,10 @@ public interface ImportDocumentsRequestOrBuilder
    * 
* * string id_field = 9; - * * @return The bytes for idField. */ - com.google.protobuf.ByteString getIdFieldBytes(); + com.google.protobuf.ByteString + getIdFieldBytes(); com.google.cloud.discoveryengine.v1.ImportDocumentsRequest.SourceCase getSourceCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java index bf4e9c384c91..772957c00455 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response of the
  * [ImportDocumentsRequest][google.cloud.discoveryengine.v1.ImportDocumentsRequest].
@@ -30,48 +13,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsResponse}
  */
-public final class ImportDocumentsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportDocumentsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportDocumentsResponse)
     ImportDocumentsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportDocumentsResponse.newBuilder() to construct.
   private ImportDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportDocumentsResponse() {
     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 ImportDocumentsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.class,
-            com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.class, com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.Builder.class);
   }
 
   public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List errorSamples_;
   /**
-   *
-   *
    * 
    * A sample of errors encountered while processing the request.
    * 
@@ -83,8 +61,6 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -92,12 +68,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.
    * 
@@ -109,8 +84,6 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -122,8 +95,6 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -131,21 +102,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 ERROR_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -153,25 +122,18 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
@@ -180,13 +142,10 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +157,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)); } @@ -215,10 +175,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 (errorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -228,18 +190,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.discoveryengine.v1.ImportDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportDocumentsResponse other = - (com.google.cloud.discoveryengine.v1.ImportDocumentsResponse) obj; + com.google.cloud.discoveryengine.v1.ImportDocumentsResponse other = (com.google.cloud.discoveryengine.v1.ImportDocumentsResponse) obj; - if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; if (hasErrorConfig() != other.hasErrorConfig()) return false; if (hasErrorConfig()) { - if (!getErrorConfig().equals(other.getErrorConfig())) return false; + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -266,104 +229,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse 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.discoveryengine.v1.ImportDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportDocumentsResponse 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
    * [ImportDocumentsRequest][google.cloud.discoveryengine.v1.ImportDocumentsRequest].
@@ -373,32 +330,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ImportDocumentsResponse}
    */
-  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.discoveryengine.v1.ImportDocumentsResponse)
       com.google.cloud.discoveryengine.v1.ImportDocumentsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.class,
-              com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.class, com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +398,14 @@ public com.google.cloud.discoveryengine.v1.ImportDocumentsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ImportDocumentsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.ImportDocumentsResponse result =
-          new com.google.cloud.discoveryengine.v1.ImportDocumentsResponse(this);
+      com.google.cloud.discoveryengine.v1.ImportDocumentsResponse result = new com.google.cloud.discoveryengine.v1.ImportDocumentsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.ImportDocumentsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ImportDocumentsResponse result) {
       if (errorSamplesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
@@ -466,8 +420,9 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.errorConfig_ =
-            errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build();
+        result.errorConfig_ = errorConfigBuilder_ == null
+            ? errorConfig_
+            : errorConfigBuilder_.build();
       }
     }
 
@@ -475,39 +430,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportDocumentsRe
     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.discoveryengine.v1.ImportDocumentsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportDocumentsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -515,8 +469,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportDocumentsResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ImportDocumentsResponse.getDefaultInstance()) return this;
       if (errorSamplesBuilder_ == null) {
         if (!other.errorSamples_.isEmpty()) {
           if (errorSamples_.isEmpty()) {
@@ -535,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportDocumentsResp
             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_);
           }
@@ -573,31 +525,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (errorSamplesBuilder_ == null) {
-                  ensureErrorSamplesIsMutable();
-                  errorSamples_.add(m);
-                } else {
-                  errorSamplesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (errorSamplesBuilder_ == null) {
+                ensureErrorSamplesIsMutable();
+                errorSamples_.add(m);
+              } else {
+                errorSamplesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getErrorConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,25 +560,21 @@ public Builder mergeFrom(
       } // finally
       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.
      * 
@@ -640,8 +589,6 @@ public java.util.List getErrorSamplesList() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -656,8 +603,6 @@ public int getErrorSamplesCount() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -672,15 +617,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(); @@ -694,15 +638,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()); @@ -713,8 +656,6 @@ public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -735,15 +676,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(); @@ -757,15 +697,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()); @@ -776,15 +715,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()); @@ -795,18 +733,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); @@ -814,8 +752,6 @@ public Builder addAllErrorSamples(java.lang.Iterable * A sample of errors encountered while processing the request. *
@@ -833,8 +769,6 @@ public Builder clearErrorSamples() { return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -852,43 +786,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 { @@ -896,8 +826,6 @@ public java.util.List getErrorSamplesO } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -905,44 +833,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_; @@ -950,47 +876,34 @@ public java.util.List getErrorSamplesBuilderList( private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1011,8 +924,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorCon return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1031,8 +942,6 @@ public Builder setErrorConfig( return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1041,10 +950,9 @@ public Builder setErrorConfig( */ public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorConfig value) { if (errorConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && errorConfig_ != null - && errorConfig_ - != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) { getErrorConfigBuilder().mergeFrom(value); } else { errorConfig_ = value; @@ -1057,8 +965,6 @@ public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorC return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1076,8 +982,6 @@ public Builder clearErrorConfig() { return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1090,27 +994,21 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon return getErrorConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; */ - public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder - getErrorConfigOrBuilder() { + public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { if (errorConfigBuilder_ != null) { return errorConfigBuilder_.getMessageOrBuilder(); } else { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1118,24 +1016,21 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> getErrorConfigFieldBuilder() { if (errorConfigBuilder_ == null) { - errorConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>( - getErrorConfig(), getParentForChildren(), isClean()); + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); errorConfig_ = null; } return errorConfigBuilder_; } - @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); } @@ -1145,12 +1040,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportDocumentsResponse) private static final com.google.cloud.discoveryengine.v1.ImportDocumentsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportDocumentsResponse(); } @@ -1159,27 +1054,27 @@ public static com.google.cloud.discoveryengine.v1.ImportDocumentsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,4 +1089,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ImportDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java index f47e9b55d566..856b6b8bc908 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface ImportDocumentsResponseOrBuilder - extends +public interface ImportDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportDocumentsResponse) 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 ImportDocumentsResponseOrBuilder */ com.google.rpc.Status getErrorSamples(int index); /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -54,53 +33,43 @@ public interface ImportDocumentsResponseOrBuilder */ 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.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java index 60e1ec3f9958..085b4b1b645e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Configuration of destination for Import related errors.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ImportErrorConfig} */ -public final class ImportErrorConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportErrorConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportErrorConfig) ImportErrorConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportErrorConfig.newBuilder() to construct. private ImportErrorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportErrorConfig() {} + private ImportErrorConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportErrorConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportErrorConfig.class, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder.class); + com.google.cloud.discoveryengine.v1.ImportErrorConfig.class, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") 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; } @@ -88,28 +66,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; /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -118,15 +92,12 @@ public DestinationCase getDestinationCase() {
    * 
* * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -135,7 +106,6 @@ public boolean hasGcsPrefix() {
    * 
* * string gcs_prefix = 1; - * * @return The gcsPrefix. */ public java.lang.String getGcsPrefix() { @@ -146,7 +116,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; @@ -155,8 +126,6 @@ public java.lang.String getGcsPrefix() { } } /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -165,17 +134,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; } @@ -186,7 +156,6 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); } @@ -222,18 +192,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.discoveryengine.v1.ImportErrorConfig)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportErrorConfig other = - (com.google.cloud.discoveryengine.v1.ImportErrorConfig) obj; + com.google.cloud.discoveryengine.v1.ImportErrorConfig other = (com.google.cloud.discoveryengine.v1.ImportErrorConfig) 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: @@ -263,136 +233,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportErrorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ImportErrorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportErrorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportErrorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportErrorConfig 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.discoveryengine.v1.ImportErrorConfig} */ - 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.discoveryengine.v1.ImportErrorConfig) com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportErrorConfig.class, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder.class); + com.google.cloud.discoveryengine.v1.ImportErrorConfig.class, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ImportErrorConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportErrorConfig_descriptor; } @java.lang.Override @@ -424,11 +389,8 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfig buildPartial() { - com.google.cloud.discoveryengine.v1.ImportErrorConfig result = - new com.google.cloud.discoveryengine.v1.ImportErrorConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.ImportErrorConfig result = new com.google.cloud.discoveryengine.v1.ImportErrorConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -447,39 +409,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.ImportErrorC 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.discoveryengine.v1.ImportErrorConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ImportErrorConfig) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ImportErrorConfig)other); } else { super.mergeFrom(other); return this; @@ -487,20 +448,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportErrorConfig other) { - if (other == com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ImportErrorConfig.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.getUnknownFields()); onChanged(); @@ -528,20 +486,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - destinationCase_ = 1; - destination_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,12 +507,12 @@ public Builder mergeFrom( } // finally 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() { @@ -569,8 +525,6 @@ public Builder clearDestination() { private int bitField0_; /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -579,7 +533,6 @@ public Builder clearDestination() {
      * 
* * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ @java.lang.Override @@ -587,8 +540,6 @@ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -597,7 +548,6 @@ public boolean hasGcsPrefix() {
      * 
* * string gcs_prefix = 1; - * * @return The gcsPrefix. */ @java.lang.Override @@ -607,7 +557,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; @@ -618,8 +569,6 @@ public java.lang.String getGcsPrefix() { } } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -628,18 +577,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; } @@ -649,8 +599,6 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() { } } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -659,22 +607,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationCase_ = 1; destination_ = value; onChanged(); return this; } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -683,7 +627,6 @@ public Builder setGcsPrefix(java.lang.String value) {
      * 
* * string gcs_prefix = 1; - * * @return This builder for chaining. */ public Builder clearGcsPrefix() { @@ -695,8 +638,6 @@ public Builder clearGcsPrefix() { return this; } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -705,23 +646,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -731,12 +670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportErrorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportErrorConfig) private static final com.google.cloud.discoveryengine.v1.ImportErrorConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportErrorConfig(); } @@ -745,27 +684,27 @@ public static com.google.cloud.discoveryengine.v1.ImportErrorConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportErrorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportErrorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -780,4 +719,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ImportErrorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java index 81ba7ecc13b9..99e59e1ab4e3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportErrorConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface ImportErrorConfigOrBuilder - extends +public interface ImportErrorConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportErrorConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -34,13 +16,10 @@ public interface ImportErrorConfigOrBuilder
    * 
* * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ boolean hasGcsPrefix(); /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -49,13 +28,10 @@ public interface ImportErrorConfigOrBuilder
    * 
* * string gcs_prefix = 1; - * * @return The gcsPrefix. */ java.lang.String getGcsPrefix(); /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -64,10 +40,10 @@ public interface ImportErrorConfigOrBuilder
    * 
* * string gcs_prefix = 1; - * * @return The bytes for gcsPrefix. */ - com.google.protobuf.ByteString getGcsPrefixBytes(); + com.google.protobuf.ByteString + getGcsPrefixBytes(); com.google.cloud.discoveryengine.v1.ImportErrorConfig.DestinationCase getDestinationCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java index c79086aa0bcc..5091831a75b5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Metadata related to the progress of the Import operation. This is
  * returned by the google.longrunning.Operation.metadata field.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ImportUserEventsMetadata}
  */
-public final class ImportUserEventsMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportUserEventsMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportUserEventsMetadata)
     ImportUserEventsMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportUserEventsMetadata.newBuilder() to construct.
   private ImportUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ImportUserEventsMetadata() {}
+  private ImportUserEventsMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportUserEventsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.class,
-            com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.Builder.class);
+            com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.class, com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.Builder.class);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -110,15 +84,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -126,15 +97,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -142,8 +110,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.
@@ -159,14 +125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int SUCCESS_COUNT_FIELD_NUMBER = 3;
   private long successCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -177,14 +140,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 4; private long failureCount_ = 0L; /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -193,7 +153,6 @@ public long getFailureCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -228,16 +188,20 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (successCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); } if (failureCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,24 +211,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.discoveryengine.v1.ImportUserEventsMetadata)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata other = - (com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata) obj; + com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata other = (com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getSuccessCount() != other.getSuccessCount()) return false; - if (getFailureCount() != other.getFailureCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,113 +252,109 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata 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.discoveryengine.v1.ImportUserEventsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata 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 is
    * returned by the google.longrunning.Operation.metadata field.
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ImportUserEventsMetadata}
    */
-  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.discoveryengine.v1.ImportUserEventsMetadata)
       com.google.cloud.discoveryengine.v1.ImportUserEventsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.class,
-              com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.Builder.class);
+              com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.class, com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,14 +409,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.getDefaultInstance();
     }
 
@@ -467,23 +430,23 @@ public com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata buildPartial() {
-      com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata result =
-          new com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata result = new com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.successCount_ = successCount_;
@@ -497,39 +460,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,9 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -578,37 +538,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                successCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                failureCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              successCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              failureCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,52 +577,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -684,15 +629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -703,8 +647,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -713,9 +655,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -728,8 +670,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -747,8 +687,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -761,8 +699,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -773,14 +709,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.
      * 
@@ -788,17 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -806,49 +736,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -870,8 +787,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.
@@ -879,7 +794,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -890,8 +806,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.
@@ -901,9 +815,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -916,8 +830,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.
@@ -936,8 +848,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -951,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -964,14 +872,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.
@@ -980,32 +885,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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_;
     }
 
-    private long successCount_;
+    private long successCount_ ;
     /**
-     *
-     *
      * 
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -1013,14 +912,11 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @param value The successCount to set. * @return This builder for chaining. */ @@ -1032,14 +928,11 @@ public Builder setSuccessCount(long value) { return this; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { @@ -1049,16 +942,13 @@ public Builder clearSuccessCount() { return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -1066,14 +956,11 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @param value The failureCount to set. * @return This builder for chaining. */ @@ -1085,14 +972,11 @@ public Builder setFailureCount(long value) { return this; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return This builder for chaining. */ public Builder clearFailureCount() { @@ -1101,9 +985,9 @@ public Builder clearFailureCount() { 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); } @@ -1113,13 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportUserEventsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportUserEventsMetadata) - private static final com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata(); } @@ -1128,27 +1011,27 @@ public static com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportUserEventsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,4 +1046,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java index c0e38cb600a7..e584ff4f0589 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface ImportUserEventsMetadataOrBuilder - extends +public interface ImportUserEventsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportUserEventsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface ImportUserEventsMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
@@ -97,27 +65,21 @@ public interface ImportUserEventsMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ long getFailureCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java index 87e68ccee4be..80eada73befa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequest.java @@ -1,254 +1,190 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for the ImportUserEvents request.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportUserEventsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.class, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.Builder.class); + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.class, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.Builder.class); } - public interface InlineSourceOrBuilder - extends + public interface InlineSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getUserEventsList(); + java.util.List + getUserEventsList(); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.UserEvent getUserEvents(int index); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getUserEventsCount(); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getUserEventsOrBuilderList(); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventsOrBuilder( + int index); } /** - * - * *
    * The inline source for the input config for ImportUserEvents method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource} */ - public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class InlineSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) InlineSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InlineSource.newBuilder() to construct. private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InlineSource() { 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 InlineSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder.class); } public static final int USER_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List userEvents_; /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getUserEventsList() { return userEvents_; } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsOrBuilderList() { return userEvents_; } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getUserEventsCount() { return userEvents_.size(); } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserEvent getUserEvents(int index) { return userEvents_.get(index); } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventsOrBuilder( @@ -257,7 +193,6 @@ public com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventsOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,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 { for (int i = 0; i < userEvents_.size(); i++) { output.writeMessage(1, userEvents_.get(i)); } @@ -283,7 +219,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -293,16 +230,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.discoveryengine.v1.ImportUserEventsRequest.InlineSource)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource other = - (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) obj; + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource other = (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) obj; - if (!getUserEventsList().equals(other.getUserEventsList())) return false; + if (!getUserEventsList() + .equals(other.getUserEventsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,101 +259,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - 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.discoveryengine.v1.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - 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.discoveryengine.v1.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1.ImportUserEventsRequest.InlineSource prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource 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 @@ -427,43 +352,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The inline source for the input config for ImportUserEvents method.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource} */ - 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.discoveryengine.v1.ImportUserEventsRequest.InlineSource) com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -479,22 +400,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_InlineSource_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource build() { - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result = - buildPartial(); + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -502,20 +420,15 @@ public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - buildPartial() { - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result = - new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource(this); + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource buildPartial() { + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result = new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result) { if (userEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { userEvents_ = java.util.Collections.unmodifiableList(userEvents_); @@ -527,8 +440,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource result) { int from_bitField0_ = bitField0_; } @@ -536,54 +448,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) other); + if (other instanceof com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource other) { - if (other - == com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource other) { + if (other == com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance()) return this; if (userEventsBuilder_ == null) { if (!other.userEvents_.isEmpty()) { if (userEvents_.isEmpty()) { @@ -602,10 +506,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_); } @@ -637,27 +540,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1.UserEvent m = - input.readMessage( - com.google.cloud.discoveryengine.v1.UserEvent.parser(), - extensionRegistry); - if (userEventsBuilder_ == null) { - ensureUserEventsIsMutable(); - userEvents_.add(m); - } else { - userEventsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1.UserEvent m = + input.readMessage( + com.google.cloud.discoveryengine.v1.UserEvent.parser(), + extensionRegistry); + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.add(m); + } else { + userEventsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -667,36 +568,26 @@ public Builder mergeFrom( } // finally 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.discoveryengine.v1.UserEvent, - com.google.cloud.discoveryengine.v1.UserEvent.Builder, - com.google.cloud.discoveryengine.v1.UserEventOrBuilder> - userEventsBuilder_; + com.google.cloud.discoveryengine.v1.UserEvent, com.google.cloud.discoveryengine.v1.UserEvent.Builder, com.google.cloud.discoveryengine.v1.UserEventOrBuilder> userEventsBuilder_; /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getUserEventsList() { if (userEventsBuilder_ == null) { @@ -706,15 +597,11 @@ public java.util.List getUserEven } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getUserEventsCount() { if (userEventsBuilder_ == null) { @@ -724,15 +611,11 @@ public int getUserEventsCount() { } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.UserEvent getUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -742,17 +625,14 @@ public com.google.cloud.discoveryengine.v1.UserEvent getUserEvents(int index) { } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUserEvents(int index, com.google.cloud.discoveryengine.v1.UserEvent value) { + public Builder setUserEvents( + int index, com.google.cloud.discoveryengine.v1.UserEvent value) { if (userEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,15 +646,11 @@ public Builder setUserEvents(int index, com.google.cloud.discoveryengine.v1.User return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvents( int index, com.google.cloud.discoveryengine.v1.UserEvent.Builder builderForValue) { @@ -788,15 +664,11 @@ public Builder setUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents(com.google.cloud.discoveryengine.v1.UserEvent value) { if (userEventsBuilder_ == null) { @@ -812,17 +684,14 @@ public Builder addUserEvents(com.google.cloud.discoveryengine.v1.UserEvent value return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addUserEvents(int index, com.google.cloud.discoveryengine.v1.UserEvent value) { + public Builder addUserEvents( + int index, com.google.cloud.discoveryengine.v1.UserEvent value) { if (userEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -836,15 +705,11 @@ public Builder addUserEvents(int index, com.google.cloud.discoveryengine.v1.User return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents( com.google.cloud.discoveryengine.v1.UserEvent.Builder builderForValue) { @@ -858,15 +723,11 @@ public Builder addUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents( int index, com.google.cloud.discoveryengine.v1.UserEvent.Builder builderForValue) { @@ -880,21 +741,18 @@ public Builder addUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllUserEvents( 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); @@ -902,15 +760,11 @@ public Builder addAllUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvents() { if (userEventsBuilder_ == null) { @@ -923,15 +777,11 @@ public Builder clearUserEvents() { return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -944,51 +794,39 @@ public Builder removeUserEvents(int index) { return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1.UserEvent.Builder getUserEventsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.UserEvent.Builder getUserEventsBuilder( + int index) { return getUserEventsFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventsOrBuilder( int index) { if (userEventsBuilder_ == null) { - return userEvents_.get(index); - } else { + return userEvents_.get(index); } else { return userEventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getUserEventsOrBuilderList() { + public java.util.List + getUserEventsOrBuilderList() { if (userEventsBuilder_ != null) { return userEventsBuilder_.getMessageOrBuilderList(); } else { @@ -996,68 +834,53 @@ public com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventsOrBui } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.UserEvent.Builder addUserEventsBuilder() { - return getUserEventsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance()); } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1.UserEvent.Builder addUserEventsBuilder(int index) { - return getUserEventsFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.UserEvent.Builder addUserEventsBuilder( + int index) { + return getUserEventsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance()); } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getUserEventsBuilderList() { + public java.util.List + getUserEventsBuilderList() { return getUserEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserEvent, - com.google.cloud.discoveryengine.v1.UserEvent.Builder, - com.google.cloud.discoveryengine.v1.UserEventOrBuilder> + com.google.cloud.discoveryengine.v1.UserEvent, com.google.cloud.discoveryengine.v1.UserEvent.Builder, com.google.cloud.discoveryengine.v1.UserEventOrBuilder> getUserEventsFieldBuilder() { if (userEventsBuilder_ == null) { - userEventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserEvent, - com.google.cloud.discoveryengine.v1.UserEvent.Builder, - com.google.cloud.discoveryengine.v1.UserEventOrBuilder>( - userEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.UserEvent, com.google.cloud.discoveryengine.v1.UserEvent.Builder, com.google.cloud.discoveryengine.v1.UserEventOrBuilder>( + userEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); userEvents_ = null; } return userEventsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1070,45 +893,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) - private static final com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource(); } - public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,27 +939,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCase_ = 0; - @SuppressWarnings("serial") 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 { INLINE_SOURCE(2), GCS_SOURCE(3), BIGQUERY_SOURCE(4), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -1156,39 +971,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return INLINE_SOURCE; - case 3: - return GCS_SOURCE; - case 4: - return BIGQUERY_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return INLINE_SOURCE; + case 3: return GCS_SOURCE; + case 4: return BIGQUERY_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 INLINE_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -1196,56 +1003,42 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource getInlineSource() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 3; /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1253,26 +1046,21 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.GcsSource getGcsSource() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1.GcsSource) source_; } return com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -1282,21 +1070,18 @@ public com.google.cloud.discoveryengine.v1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1.GcsSource) source_; } return com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance(); } public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1304,26 +1089,21 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * BigQuery input source.
    * 
@@ -1333,27 +1113,21 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource() { @java.lang.Override public com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance(); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -1362,32 +1136,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. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -1398,15 +1170,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ERROR_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -1414,26 +1183,19 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
@@ -1443,13 +1205,10 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
-    return errorConfig_ == null
-        ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()
-        : errorConfig_;
+    return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1461,13 +1220,13 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
     if (sourceCase_ == 2) {
-      output.writeMessage(
-          2, (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_);
+      output.writeMessage(2, (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_);
     }
     if (sourceCase_ == 3) {
       output.writeMessage(3, (com.google.cloud.discoveryengine.v1.GcsSource) source_);
@@ -1491,23 +1250,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2,
-              (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_);
     }
     if (sourceCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.discoveryengine.v1.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.discoveryengine.v1.GcsSource) source_);
     }
     if (sourceCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.cloud.discoveryengine.v1.BigQuerySource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.cloud.discoveryengine.v1.BigQuerySource) source_);
     }
     if (errorConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getErrorConfig());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1517,29 +1273,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.discoveryengine.v1.ImportUserEventsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1.ImportUserEventsRequest other =
-        (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest) obj;
+    com.google.cloud.discoveryengine.v1.ImportUserEventsRequest other = (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasErrorConfig() != other.hasErrorConfig()) return false;
     if (hasErrorConfig()) {
-      if (!getErrorConfig().equals(other.getErrorConfig())) return false;
+      if (!getErrorConfig()
+          .equals(other.getErrorConfig())) return false;
     }
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getInlineSource().equals(other.getInlineSource())) return false;
+        if (!getInlineSource()
+            .equals(other.getInlineSource())) return false;
         break;
       case 3:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 4:
-        if (!getBigquerySource().equals(other.getBigquerySource())) return false;
+        if (!getBigquerySource()
+            .equals(other.getBigquerySource())) return false;
         break;
       case 0:
       default:
@@ -1583,136 +1343,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest 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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsRequest) com.google.cloud.discoveryengine.v1.ImportUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.class, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.Builder.class); + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.class, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1738,9 +1493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsRequest_descriptor; } @java.lang.Override @@ -1759,11 +1514,8 @@ public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest buildPartial() { - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest result = - new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest result = new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1775,22 +1527,25 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportUserEventsR result.parent_ = parent_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.errorConfig_ = - errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + if (sourceCase_ == 2 && + inlineSourceBuilder_ != null) { result.source_ = inlineSourceBuilder_.build(); } - if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 3 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } - if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + if (sourceCase_ == 4 && + bigquerySourceBuilder_ != null) { result.source_ = bigquerySourceBuilder_.build(); } } @@ -1799,39 +1554,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.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.discoveryengine.v1.ImportUserEventsRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsRequest)other); } else { super.mergeFrom(other); return this; @@ -1839,8 +1593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest other) { - if (other == com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000008; @@ -1850,25 +1603,21 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportUserEventsReq mergeErrorConfig(other.getErrorConfig()); } switch (other.getSourceCase()) { - case INLINE_SOURCE: - { - mergeInlineSource(other.getInlineSource()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case BIGQUERY_SOURCE: - { - mergeBigquerySource(other.getBigquerySource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case INLINE_SOURCE: { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1896,43 +1645,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getInlineSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getBigquerySourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1942,12 +1693,12 @@ public Builder mergeFrom( } // finally 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() { @@ -1960,21 +1711,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder> - inlineSourceBuilder_; + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder> inlineSourceBuilder_; /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -1982,48 +1725,35 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource getInlineSource() { if (inlineSourceBuilder_ == null) { if (sourceCase_ == 2) { return (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } else { if (sourceCase_ == 2) { return inlineSourceBuilder_.getMessage(); } - return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ - public Builder setInlineSource( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource value) { + public Builder setInlineSource(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2037,19 +1767,14 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ public Builder setInlineSource( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder builderForValue) { if (inlineSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -2060,29 +1785,18 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ - public Builder mergeInlineSource( - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource value) { + public Builder mergeInlineSource(com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ - != com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.newBuilder( - (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) - source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.newBuilder((com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2098,15 +1812,11 @@ public Builder mergeInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ public Builder clearInlineSource() { if (inlineSourceBuilder_ == null) { @@ -2125,71 +1835,49 @@ public Builder clearInlineSource() { return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder - getInlineSourceBuilder() { + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder getInlineSourceBuilder() { return getInlineSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { return inlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 2) { return (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder> + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder> getInlineSourceFieldBuilder() { if (inlineSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { - source_ = - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + source_ = com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } - inlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder>( + inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder>( (com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource) source_, getParentForChildren(), isClean()); @@ -2201,19 +1889,13 @@ public Builder clearInlineSource() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.GcsSource, - com.google.cloud.discoveryengine.v1.GcsSource.Builder, - com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.discoveryengine.v1.GcsSource, com.google.cloud.discoveryengine.v1.GcsSource.Builder, com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -2221,14 +1903,11 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override @@ -2246,8 +1925,6 @@ public com.google.cloud.discoveryengine.v1.GcsSource getGcsSource() { } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2268,8 +1945,6 @@ public Builder setGcsSource(com.google.cloud.discoveryengine.v1.GcsSource value) return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2288,8 +1963,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2298,13 +1971,10 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 3 - && source_ != com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1.GcsSource.newBuilder( - (com.google.cloud.discoveryengine.v1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 3 && + source_ != com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1.GcsSource.newBuilder((com.google.cloud.discoveryengine.v1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2320,8 +1990,6 @@ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1.GcsSource valu return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2345,8 +2013,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2357,8 +2023,6 @@ public com.google.cloud.discoveryengine.v1.GcsSource.Builder getGcsSourceBuilder return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2377,8 +2041,6 @@ public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuil } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2386,19 +2048,14 @@ public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuil * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.GcsSource, - com.google.cloud.discoveryengine.v1.GcsSource.Builder, - com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> + com.google.cloud.discoveryengine.v1.GcsSource, com.google.cloud.discoveryengine.v1.GcsSource.Builder, com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 3)) { source_ = com.google.cloud.discoveryengine.v1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.GcsSource, - com.google.cloud.discoveryengine.v1.GcsSource.Builder, - com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.GcsSource, com.google.cloud.discoveryengine.v1.GcsSource.Builder, com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder>( (com.google.cloud.discoveryengine.v1.GcsSource) source_, getParentForChildren(), isClean()); @@ -2410,19 +2067,13 @@ public com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.BigQuerySource, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> - bigquerySourceBuilder_; + com.google.cloud.discoveryengine.v1.BigQuerySource, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> bigquerySourceBuilder_; /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -2430,14 +2081,11 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override @@ -2455,8 +2103,6 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource() { } } /** - * - * *
      * BigQuery input source.
      * 
@@ -2477,8 +2123,6 @@ public Builder setBigquerySource(com.google.cloud.discoveryengine.v1.BigQuerySou return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2497,8 +2141,6 @@ public Builder setBigquerySource( return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2507,13 +2149,10 @@ public Builder setBigquerySource( */ public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1.BigQuerySource value) { if (bigquerySourceBuilder_ == null) { - if (sourceCase_ == 4 - && source_ != com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1.BigQuerySource.newBuilder( - (com.google.cloud.discoveryengine.v1.BigQuerySource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 4 && + source_ != com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1.BigQuerySource.newBuilder((com.google.cloud.discoveryengine.v1.BigQuerySource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2529,8 +2168,6 @@ public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1.BigQueryS return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2554,8 +2191,6 @@ public Builder clearBigquerySource() { return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2566,8 +2201,6 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou return getBigquerySourceFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery input source.
      * 
@@ -2575,8 +2208,7 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder - getBigquerySourceOrBuilder() { + public com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { return bigquerySourceBuilder_.getMessageOrBuilder(); } else { @@ -2587,8 +2219,6 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou } } /** - * - * *
      * BigQuery input source.
      * 
@@ -2596,19 +2226,14 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.BigQuerySource, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> + com.google.cloud.discoveryengine.v1.BigQuerySource, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder> getBigquerySourceFieldBuilder() { if (bigquerySourceBuilder_ == null) { if (!(sourceCase_ == 4)) { source_ = com.google.cloud.discoveryengine.v1.BigQuerySource.getDefaultInstance(); } - bigquerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.BigQuerySource, - com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder>( + bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.BigQuerySource, com.google.cloud.discoveryengine.v1.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder>( (com.google.cloud.discoveryengine.v1.BigQuerySource) source_, getParentForChildren(), isClean()); @@ -2621,23 +2246,19 @@ public com.google.cloud.discoveryengine.v1.BigQuerySource.Builder getBigquerySou private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -2646,24 +2267,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -2671,41 +2289,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -2715,24 +2322,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; @@ -2742,49 +2343,36 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2806,8 +2394,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorCon
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2827,8 +2413,6 @@ public Builder setErrorConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2838,10 +2422,9 @@ public Builder setErrorConfig(
      */
     public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorConfig value) {
       if (errorConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && errorConfig_ != null
-            && errorConfig_
-                != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          errorConfig_ != null &&
+          errorConfig_ != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) {
           getErrorConfigBuilder().mergeFrom(value);
         } else {
           errorConfig_ = value;
@@ -2854,8 +2437,6 @@ public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorC
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2874,8 +2455,6 @@ public Builder clearErrorConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2889,8 +2468,6 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon
       return getErrorConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2898,19 +2475,15 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon
      *
      * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
      */
-    public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder
-        getErrorConfigOrBuilder() {
+    public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
       if (errorConfigBuilder_ != null) {
         return errorConfigBuilder_.getMessageOrBuilder();
       } else {
-        return errorConfig_ == null
-            ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()
-            : errorConfig_;
+        return errorConfig_ == null ?
+            com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2919,24 +2492,21 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon
      * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.ImportErrorConfig,
-            com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder,
-            com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>
+        com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> 
         getErrorConfigFieldBuilder() {
       if (errorConfigBuilder_ == null) {
-        errorConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.ImportErrorConfig,
-                com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder,
-                com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>(
-                getErrorConfig(), getParentForChildren(), isClean());
+        errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>(
+                getErrorConfig(),
+                getParentForChildren(),
+                isClean());
         errorConfig_ = null;
       }
       return errorConfigBuilder_;
     }
-
     @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);
     }
 
@@ -2946,12 +2516,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportUserEventsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportUserEventsRequest)
   private static final com.google.cloud.discoveryengine.v1.ImportUserEventsRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportUserEventsRequest();
   }
@@ -2960,27 +2530,27 @@ public static com.google.cloud.discoveryengine.v1.ImportUserEventsRequest getDef
     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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportUserEventsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2995,4 +2565,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1.ImportUserEventsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java
similarity index 75%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java
index cb2a2f8e3a64..793a5deecb1f 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsRequestOrBuilder.java
@@ -1,94 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/import_config.proto
 
 package com.google.cloud.discoveryengine.v1;
 
-public interface ImportUserEventsRequestOrBuilder
-    extends
+public interface ImportUserEventsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ImportUserEventsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Inline source for the input content for UserEvents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ boolean hasInlineSource(); /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource getInlineSource(); /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; */ - com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder(); + com.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * * @return The gcsSource. */ com.google.cloud.discoveryengine.v1.GcsSource getGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -98,32 +62,24 @@ public interface ImportUserEventsRequestOrBuilder com.google.cloud.discoveryengine.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ com.google.cloud.discoveryengine.v1.BigQuerySource getBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
@@ -133,65 +89,48 @@ public interface ImportUserEventsRequestOrBuilder com.google.cloud.discoveryengine.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); /** - * - * *
    * Required. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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(); /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java
similarity index 72%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java
index 091eb06b8138..c7792f63fec8 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponse.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/import_config.proto
 
 package com.google.cloud.discoveryengine.v1;
 
 /**
- *
- *
  * 
  * Response of the ImportUserEventsRequest. If the long running
  * operation was successful, then this message is returned by the
@@ -29,48 +12,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.class,
-            com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.class, com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.Builder.class);
   }
 
   public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List errorSamples_;
   /**
-   *
-   *
    * 
    * A sample of errors encountered while processing the request.
    * 
@@ -82,8 +60,6 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -91,12 +67,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.
    * 
@@ -108,8 +83,6 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -121,8 +94,6 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -130,22 +101,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 ERROR_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -153,26 +122,19 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
@@ -182,22 +144,17 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
-    return errorConfig_ == null
-        ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()
-        : errorConfig_;
+    return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_;
   }
 
   public static final int JOINED_EVENTS_COUNT_FIELD_NUMBER = 3;
   private long joinedEventsCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of user events imported with complete existing Documents.
    * 
* * int64 joined_events_count = 3; - * * @return The joinedEventsCount. */ @java.lang.Override @@ -208,15 +165,12 @@ public long getJoinedEventsCount() { public static final int UNJOINED_EVENTS_COUNT_FIELD_NUMBER = 4; private long unjoinedEventsCount_ = 0L; /** - * - * *
    * Count of user events imported, but with Document information not found
    * in the existing Branch.
    * 
* * int64 unjoined_events_count = 4; - * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -225,7 +179,6 @@ public long getUnjoinedEventsCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +190,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)); } @@ -260,16 +214,20 @@ 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 (errorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorConfig()); } if (joinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, joinedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, joinedEventsCount_); } if (unjoinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, unjoinedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, unjoinedEventsCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,21 +237,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.discoveryengine.v1.ImportUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ImportUserEventsResponse other = - (com.google.cloud.discoveryengine.v1.ImportUserEventsResponse) obj; + com.google.cloud.discoveryengine.v1.ImportUserEventsResponse other = (com.google.cloud.discoveryengine.v1.ImportUserEventsResponse) obj; - if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; if (hasErrorConfig() != other.hasErrorConfig()) return false; if (hasErrorConfig()) { - if (!getErrorConfig().equals(other.getErrorConfig())) return false; + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; } - 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,113 +275,109 @@ public int hashCode() { hash = (53 * hash) + getErrorConfig().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ImportUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ImportUserEventsResponse 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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.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
@@ -429,32 +386,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportUserEventsResponse)
       com.google.cloud.discoveryengine.v1.ImportUserEventsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.class,
-              com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.class, com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,14 +435,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1_ImportUserEventsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1.ImportUserEventsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1.ImportUserEventsResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.getDefaultInstance();
     }
 
@@ -499,18 +456,14 @@ public com.google.cloud.discoveryengine.v1.ImportUserEventsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ImportUserEventsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.ImportUserEventsResponse result =
-          new com.google.cloud.discoveryengine.v1.ImportUserEventsResponse(this);
+      com.google.cloud.discoveryengine.v1.ImportUserEventsResponse result = new com.google.cloud.discoveryengine.v1.ImportUserEventsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.ImportUserEventsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ImportUserEventsResponse result) {
       if (errorSamplesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
@@ -522,12 +475,12 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1.ImportUserEventsResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1.ImportUserEventsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.errorConfig_ =
-            errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build();
+        result.errorConfig_ = errorConfigBuilder_ == null
+            ? errorConfig_
+            : errorConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.joinedEventsCount_ = joinedEventsCount_;
@@ -541,39 +494,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.ImportUserEventsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ImportUserEventsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -581,9 +533,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportUserEventsResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ImportUserEventsResponse.getDefaultInstance()) return this;
       if (errorSamplesBuilder_ == null) {
         if (!other.errorSamples_.isEmpty()) {
           if (errorSamples_.isEmpty()) {
@@ -602,10 +552,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ImportUserEventsRes
             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,43 +595,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (errorSamplesBuilder_ == null) {
-                  ensureErrorSamplesIsMutable();
-                  errorSamples_.add(m);
-                } else {
-                  errorSamplesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                joinedEventsCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                unjoinedEventsCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (errorSamplesBuilder_ == null) {
+                ensureErrorSamplesIsMutable();
+                errorSamples_.add(m);
+              } else {
+                errorSamplesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getErrorConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              joinedEventsCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              unjoinedEventsCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -692,25 +640,21 @@ public Builder mergeFrom(
       } // finally
       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.
      * 
@@ -725,8 +669,6 @@ public java.util.List getErrorSamplesList() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -741,8 +683,6 @@ public int getErrorSamplesCount() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -757,15 +697,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(); @@ -779,15 +718,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()); @@ -798,8 +736,6 @@ public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -820,15 +756,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(); @@ -842,15 +777,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()); @@ -861,15 +795,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()); @@ -880,18 +813,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); @@ -899,8 +832,6 @@ public Builder addAllErrorSamples(java.lang.Iterable * A sample of errors encountered while processing the request. *
@@ -918,8 +849,6 @@ public Builder clearErrorSamples() { return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -937,43 +866,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 { @@ -981,8 +906,6 @@ public java.util.List getErrorSamplesO } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -990,44 +913,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_; @@ -1035,49 +956,36 @@ public java.util.List getErrorSamplesBuilderList( private com.google.cloud.discoveryengine.v1.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ImportErrorConfig, - com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * Echoes the destination for the complete errors if this field was set in
      * the request.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Echoes the destination for the complete errors if this field was set in
      * the request.
      * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1099,8 +1007,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorCon
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1120,8 +1026,6 @@ public Builder setErrorConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1131,10 +1035,9 @@ public Builder setErrorConfig(
      */
     public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorConfig value) {
       if (errorConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && errorConfig_ != null
-            && errorConfig_
-                != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          errorConfig_ != null &&
+          errorConfig_ != com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()) {
           getErrorConfigBuilder().mergeFrom(value);
         } else {
           errorConfig_ = value;
@@ -1147,8 +1050,6 @@ public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1.ImportErrorC
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1167,8 +1068,6 @@ public Builder clearErrorConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1182,8 +1081,6 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon
       return getErrorConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1191,19 +1088,15 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon
      *
      * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2;
      */
-    public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder
-        getErrorConfigOrBuilder() {
+    public com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
       if (errorConfigBuilder_ != null) {
         return errorConfigBuilder_.getMessageOrBuilder();
       } else {
-        return errorConfig_ == null
-            ? com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance()
-            : errorConfig_;
+        return errorConfig_ == null ?
+            com.google.cloud.discoveryengine.v1.ImportErrorConfig.getDefaultInstance() : errorConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1212,32 +1105,26 @@ public com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder getErrorCon
      * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.ImportErrorConfig,
-            com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder,
-            com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>
+        com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder> 
         getErrorConfigFieldBuilder() {
       if (errorConfigBuilder_ == null) {
-        errorConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.ImportErrorConfig,
-                com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder,
-                com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>(
-                getErrorConfig(), getParentForChildren(), isClean());
+        errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.ImportErrorConfig, com.google.cloud.discoveryengine.v1.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder>(
+                getErrorConfig(),
+                getParentForChildren(),
+                isClean());
         errorConfig_ = null;
       }
       return errorConfigBuilder_;
     }
 
-    private long joinedEventsCount_;
+    private long joinedEventsCount_ ;
     /**
-     *
-     *
      * 
      * Count of user events imported with complete existing Documents.
      * 
* * int64 joined_events_count = 3; - * * @return The joinedEventsCount. */ @java.lang.Override @@ -1245,14 +1132,11 @@ public long getJoinedEventsCount() { return joinedEventsCount_; } /** - * - * *
      * Count of user events imported with complete existing Documents.
      * 
* * int64 joined_events_count = 3; - * * @param value The joinedEventsCount to set. * @return This builder for chaining. */ @@ -1264,14 +1148,11 @@ public Builder setJoinedEventsCount(long value) { return this; } /** - * - * *
      * Count of user events imported with complete existing Documents.
      * 
* * int64 joined_events_count = 3; - * * @return This builder for chaining. */ public Builder clearJoinedEventsCount() { @@ -1281,17 +1162,14 @@ public Builder clearJoinedEventsCount() { return this; } - private long unjoinedEventsCount_; + private long unjoinedEventsCount_ ; /** - * - * *
      * Count of user events imported, but with Document information not found
      * in the existing Branch.
      * 
* * int64 unjoined_events_count = 4; - * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -1299,15 +1177,12 @@ public long getUnjoinedEventsCount() { return unjoinedEventsCount_; } /** - * - * *
      * Count of user events imported, but with Document information not found
      * in the existing Branch.
      * 
* * int64 unjoined_events_count = 4; - * * @param value The unjoinedEventsCount to set. * @return This builder for chaining. */ @@ -1319,15 +1194,12 @@ public Builder setUnjoinedEventsCount(long value) { return this; } /** - * - * *
      * Count of user events imported, but with Document information not found
      * in the existing Branch.
      * 
* * int64 unjoined_events_count = 4; - * * @return This builder for chaining. */ public Builder clearUnjoinedEventsCount() { @@ -1336,9 +1208,9 @@ public Builder clearUnjoinedEventsCount() { 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); } @@ -1348,13 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ImportUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ImportUserEventsResponse) - private static final com.google.cloud.discoveryengine.v1.ImportUserEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ImportUserEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ImportUserEventsResponse(); } @@ -1363,27 +1234,27 @@ public static com.google.cloud.discoveryengine.v1.ImportUserEventsResponse getDe 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1398,4 +1269,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ImportUserEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java index ba68488d0591..fdc17f26681c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/import_config.proto package com.google.cloud.discoveryengine.v1; -public interface ImportUserEventsResponseOrBuilder - extends +public interface ImportUserEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.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.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
    * 
* * .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1.ImportErrorConfig getErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
@@ -113,28 +82,22 @@ public interface ImportUserEventsResponseOrBuilder
   com.google.cloud.discoveryengine.v1.ImportErrorConfigOrBuilder getErrorConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of user events imported with complete existing Documents.
    * 
* * int64 joined_events_count = 3; - * * @return The joinedEventsCount. */ long getJoinedEventsCount(); /** - * - * *
    * Count of user events imported, but with Document information not found
    * in the existing Branch.
    * 
* * int64 unjoined_events_count = 4; - * * @return The unjoinedEventsCount. */ long getUnjoinedEventsCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java similarity index 66% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java index b0e98fa59d2d..e189a541558e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Interval.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/common.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * A floating point interval.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Interval} */ -public final class Interval extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Interval extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Interval) IntervalOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Interval.newBuilder() to construct. private Interval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Interval() {} + private Interval() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Interval(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Interval.class, - com.google.cloud.discoveryengine.v1.Interval.Builder.class); + com.google.cloud.discoveryengine.v1.Interval.class, com.google.cloud.discoveryengine.v1.Interval.Builder.class); } private int minCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object min_; - public enum MinCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MINIMUM(1), EXCLUSIVE_MINIMUM(2), MIN_NOT_SET(0); private final int value; - private MinCase(int value) { this.value = value; } @@ -89,40 +67,33 @@ public static MinCase valueOf(int value) { public static MinCase forNumber(int value) { switch (value) { - case 1: - return MINIMUM; - case 2: - return EXCLUSIVE_MINIMUM; - case 0: - return MIN_NOT_SET; - default: - return null; + case 1: return MINIMUM; + case 2: return EXCLUSIVE_MINIMUM; + case 0: return MIN_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MinCase getMinCase() { - return MinCase.forNumber(minCase_); + public MinCase + getMinCase() { + return MinCase.forNumber( + minCase_); } private int maxCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object max_; - public enum MaxCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAXIMUM(3), EXCLUSIVE_MAXIMUM(4), MAX_NOT_SET(0); private final int value; - private MaxCase(int value) { this.value = value; } @@ -138,36 +109,30 @@ public static MaxCase valueOf(int value) { public static MaxCase forNumber(int value) { switch (value) { - case 3: - return MAXIMUM; - case 4: - return EXCLUSIVE_MAXIMUM; - case 0: - return MAX_NOT_SET; - default: - return null; + case 3: return MAXIMUM; + case 4: return EXCLUSIVE_MAXIMUM; + case 0: return MAX_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MaxCase getMaxCase() { - return MaxCase.forNumber(maxCase_); + public MaxCase + getMaxCase() { + return MaxCase.forNumber( + maxCase_); } public static final int MINIMUM_FIELD_NUMBER = 1; /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return Whether the minimum field is set. */ @java.lang.Override @@ -175,14 +140,11 @@ public boolean hasMinimum() { return minCase_ == 1; } /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return The minimum. */ @java.lang.Override @@ -195,14 +157,11 @@ public double getMinimum() { public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER = 2; /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return Whether the exclusiveMinimum field is set. */ @java.lang.Override @@ -210,14 +169,11 @@ public boolean hasExclusiveMinimum() { return minCase_ == 2; } /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return The exclusiveMinimum. */ @java.lang.Override @@ -230,14 +186,11 @@ public double getExclusiveMinimum() { public static final int MAXIMUM_FIELD_NUMBER = 3; /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return Whether the maximum field is set. */ @java.lang.Override @@ -245,14 +198,11 @@ public boolean hasMaximum() { return maxCase_ == 3; } /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return The maximum. */ @java.lang.Override @@ -265,14 +215,11 @@ public double getMaximum() { public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER = 4; /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return Whether the exclusiveMaximum field is set. */ @java.lang.Override @@ -280,14 +227,11 @@ public boolean hasExclusiveMaximum() { return maxCase_ == 4; } /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return The exclusiveMaximum. */ @java.lang.Override @@ -299,7 +243,6 @@ public double getExclusiveMaximum() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,18 +254,23 @@ 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 (minCase_ == 1) { - output.writeDouble(1, (double) ((java.lang.Double) min_)); + output.writeDouble( + 1, (double)((java.lang.Double) min_)); } if (minCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) min_)); + output.writeDouble( + 2, (double)((java.lang.Double) min_)); } if (maxCase_ == 3) { - output.writeDouble(3, (double) ((java.lang.Double) max_)); + output.writeDouble( + 3, (double)((java.lang.Double) max_)); } if (maxCase_ == 4) { - output.writeDouble(4, (double) ((java.lang.Double) max_)); + output.writeDouble( + 4, (double)((java.lang.Double) max_)); } getUnknownFields().writeTo(output); } @@ -334,24 +282,24 @@ public int getSerializedSize() { size = 0; if (minCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 1, (double) ((java.lang.Double) min_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 1, (double)((java.lang.Double) min_)); } if (minCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) min_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) min_)); } if (maxCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 3, (double) ((java.lang.Double) max_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) max_)); } if (maxCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 4, (double) ((java.lang.Double) max_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 4, (double)((java.lang.Double) max_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -361,23 +309,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.discoveryengine.v1.Interval)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.Interval other = - (com.google.cloud.discoveryengine.v1.Interval) obj; + com.google.cloud.discoveryengine.v1.Interval other = (com.google.cloud.discoveryengine.v1.Interval) obj; if (!getMinCase().equals(other.getMinCase())) return false; switch (minCase_) { case 1: if (java.lang.Double.doubleToLongBits(getMinimum()) - != java.lang.Double.doubleToLongBits(other.getMinimum())) return false; + != java.lang.Double.doubleToLongBits( + other.getMinimum())) return false; break; case 2: if (java.lang.Double.doubleToLongBits(getExclusiveMinimum()) - != java.lang.Double.doubleToLongBits(other.getExclusiveMinimum())) return false; + != java.lang.Double.doubleToLongBits( + other.getExclusiveMinimum())) return false; break; case 0: default: @@ -386,11 +335,13 @@ public boolean equals(final java.lang.Object obj) { switch (maxCase_) { case 3: if (java.lang.Double.doubleToLongBits(getMaximum()) - != java.lang.Double.doubleToLongBits(other.getMaximum())) return false; + != java.lang.Double.doubleToLongBits( + other.getMaximum())) return false; break; case 4: if (java.lang.Double.doubleToLongBits(getExclusiveMaximum()) - != java.lang.Double.doubleToLongBits(other.getExclusiveMaximum())) return false; + != java.lang.Double.doubleToLongBits( + other.getExclusiveMaximum())) return false; break; case 0: default: @@ -409,17 +360,13 @@ public int hashCode() { switch (minCase_) { case 1: hash = (37 * hash) + MINIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinimum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinimum())); break; case 2: hash = (37 * hash) + EXCLUSIVE_MINIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExclusiveMinimum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExclusiveMinimum())); break; case 0: default: @@ -427,17 +374,13 @@ public int hashCode() { switch (maxCase_) { case 3: hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaximum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaximum())); break; case 4: hash = (37 * hash) + EXCLUSIVE_MAXIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExclusiveMaximum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExclusiveMaximum())); break; case 0: default: @@ -447,136 +390,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.Interval parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.Interval parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Interval 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.discoveryengine.v1.Interval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Interval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Interval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Interval 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.discoveryengine.v1.Interval parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Interval 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.discoveryengine.v1.Interval parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Interval parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.Interval 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.discoveryengine.v1.Interval 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.discoveryengine.v1.Interval 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.discoveryengine.v1.Interval 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 floating point interval.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Interval} */ - 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.discoveryengine.v1.Interval) com.google.cloud.discoveryengine.v1.IntervalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Interval.class, - com.google.cloud.discoveryengine.v1.Interval.Builder.class); + com.google.cloud.discoveryengine.v1.Interval.class, com.google.cloud.discoveryengine.v1.Interval.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.Interval.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +528,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_Interval_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_Interval_descriptor; } @java.lang.Override @@ -610,11 +549,8 @@ public com.google.cloud.discoveryengine.v1.Interval build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.Interval buildPartial() { - com.google.cloud.discoveryengine.v1.Interval result = - new com.google.cloud.discoveryengine.v1.Interval(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.Interval result = new com.google.cloud.discoveryengine.v1.Interval(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -635,39 +571,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Interval res 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.discoveryengine.v1.Interval) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Interval) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.Interval)other); } else { super.mergeFrom(other); return this; @@ -677,36 +612,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Interval other) { if (other == com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance()) return this; switch (other.getMinCase()) { - case MINIMUM: - { - setMinimum(other.getMinimum()); - break; - } - case EXCLUSIVE_MINIMUM: - { - setExclusiveMinimum(other.getExclusiveMinimum()); - break; - } - case MIN_NOT_SET: - { - break; - } + case MINIMUM: { + setMinimum(other.getMinimum()); + break; + } + case EXCLUSIVE_MINIMUM: { + setExclusiveMinimum(other.getExclusiveMinimum()); + break; + } + case MIN_NOT_SET: { + break; + } } switch (other.getMaxCase()) { - case MAXIMUM: - { - setMaximum(other.getMaximum()); - break; - } - case EXCLUSIVE_MAXIMUM: - { - setExclusiveMaximum(other.getExclusiveMaximum()); - break; - } - case MAX_NOT_SET: - { - break; - } + case MAXIMUM: { + setMaximum(other.getMaximum()); + break; + } + case EXCLUSIVE_MAXIMUM: { + setExclusiveMaximum(other.getExclusiveMaximum()); + break; + } + case MAX_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -734,37 +663,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - min_ = input.readDouble(); - minCase_ = 1; - break; - } // case 9 - case 17: - { - min_ = input.readDouble(); - minCase_ = 2; - break; - } // case 17 - case 25: - { - max_ = input.readDouble(); - maxCase_ = 3; - break; - } // case 25 - case 33: - { - max_ = input.readDouble(); - maxCase_ = 4; - break; - } // case 33 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + min_ = input.readDouble(); + minCase_ = 1; + break; + } // case 9 + case 17: { + min_ = input.readDouble(); + minCase_ = 2; + break; + } // case 17 + case 25: { + max_ = input.readDouble(); + maxCase_ = 3; + break; + } // case 25 + case 33: { + max_ = input.readDouble(); + maxCase_ = 4; + break; + } // case 33 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -774,12 +698,12 @@ public Builder mergeFrom( } // finally return this; } - private int minCase_ = 0; private java.lang.Object min_; - - public MinCase getMinCase() { - return MinCase.forNumber(minCase_); + public MinCase + getMinCase() { + return MinCase.forNumber( + minCase_); } public Builder clearMin() { @@ -791,9 +715,10 @@ public Builder clearMin() { private int maxCase_ = 0; private java.lang.Object max_; - - public MaxCase getMaxCase() { - return MaxCase.forNumber(maxCase_); + public MaxCase + getMaxCase() { + return MaxCase.forNumber( + maxCase_); } public Builder clearMax() { @@ -806,28 +731,22 @@ public Builder clearMax() { private int bitField0_; /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @return Whether the minimum field is set. */ public boolean hasMinimum() { return minCase_ == 1; } /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @return The minimum. */ public double getMinimum() { @@ -837,14 +756,11 @@ public double getMinimum() { return 0D; } /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @param value The minimum to set. * @return This builder for chaining. */ @@ -856,14 +772,11 @@ public Builder setMinimum(double value) { return this; } /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @return This builder for chaining. */ public Builder clearMinimum() { @@ -876,28 +789,22 @@ public Builder clearMinimum() { } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @return Whether the exclusiveMinimum field is set. */ public boolean hasExclusiveMinimum() { return minCase_ == 2; } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @return The exclusiveMinimum. */ public double getExclusiveMinimum() { @@ -907,14 +814,11 @@ public double getExclusiveMinimum() { return 0D; } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @param value The exclusiveMinimum to set. * @return This builder for chaining. */ @@ -926,14 +830,11 @@ public Builder setExclusiveMinimum(double value) { return this; } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @return This builder for chaining. */ public Builder clearExclusiveMinimum() { @@ -946,28 +847,22 @@ public Builder clearExclusiveMinimum() { } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @return Whether the maximum field is set. */ public boolean hasMaximum() { return maxCase_ == 3; } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @return The maximum. */ public double getMaximum() { @@ -977,14 +872,11 @@ public double getMaximum() { return 0D; } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @param value The maximum to set. * @return This builder for chaining. */ @@ -996,14 +888,11 @@ public Builder setMaximum(double value) { return this; } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @return This builder for chaining. */ public Builder clearMaximum() { @@ -1016,28 +905,22 @@ public Builder clearMaximum() { } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @return Whether the exclusiveMaximum field is set. */ public boolean hasExclusiveMaximum() { return maxCase_ == 4; } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @return The exclusiveMaximum. */ public double getExclusiveMaximum() { @@ -1047,14 +930,11 @@ public double getExclusiveMaximum() { return 0D; } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @param value The exclusiveMaximum to set. * @return This builder for chaining. */ @@ -1066,14 +946,11 @@ public Builder setExclusiveMaximum(double value) { return this; } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @return This builder for chaining. */ public Builder clearExclusiveMaximum() { @@ -1084,9 +961,9 @@ public Builder clearExclusiveMaximum() { } 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); } @@ -1096,12 +973,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Interval) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Interval) private static final com.google.cloud.discoveryengine.v1.Interval DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Interval(); } @@ -1110,27 +987,27 @@ public static com.google.cloud.discoveryengine.v1.Interval getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Interval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Interval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,4 +1022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.Interval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java index 65d94732603b..dc84304d4a69 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IntervalOrBuilder.java @@ -1,124 +1,84 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/common.proto package com.google.cloud.discoveryengine.v1; -public interface IntervalOrBuilder - extends +public interface IntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Interval) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return Whether the minimum field is set. */ boolean hasMinimum(); /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return The minimum. */ double getMinimum(); /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return Whether the exclusiveMinimum field is set. */ boolean hasExclusiveMinimum(); /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return The exclusiveMinimum. */ double getExclusiveMinimum(); /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return Whether the maximum field is set. */ boolean hasMaximum(); /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return The maximum. */ double getMaximum(); /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return Whether the exclusiveMaximum field is set. */ boolean hasExclusiveMaximum(); /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return The exclusiveMaximum. */ double getExclusiveMaximum(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java index 53505b525475..53832a9bf07c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request for ListConversations method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ListConversationsRequest} */ -public final class ListConversationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConversationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListConversationsRequest) ListConversationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConversationsRequest.newBuilder() to construct. private ListConversationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConversationsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,41 +28,34 @@ private ListConversationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConversationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ListConversationsRequest.class, - com.google.cloud.discoveryengine.v1.ListConversationsRequest.Builder.class); + com.google.cloud.discoveryengine.v1.ListConversationsRequest.class, com.google.cloud.discoveryengine.v1.ListConversationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 @@ -89,32 +64,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 data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of results to return. If unspecified, defaults
    * to 50. Max allowed value is 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,19 +112,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -195,12 +161,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -210,7 +173,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -219,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -237,15 +198,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @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 { @@ -254,12 +216,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -274,7 +233,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -283,15 +241,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -306,15 +263,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -323,7 +281,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +292,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_); } @@ -364,7 +322,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_); @@ -383,19 +342,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.discoveryengine.v1.ListConversationsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ListConversationsRequest other = - (com.google.cloud.discoveryengine.v1.ListConversationsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.discoveryengine.v1.ListConversationsRequest other = (com.google.cloud.discoveryengine.v1.ListConversationsRequest) 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 (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -423,136 +386,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListConversationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ListConversationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListConversationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListConversationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest 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.discoveryengine.v1.ListConversationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ListConversationsRequest 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 for ListConversations method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ListConversationsRequest} */ - 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.discoveryengine.v1.ListConversationsRequest) com.google.cloud.discoveryengine.v1.ListConversationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ListConversationsRequest.class, - com.google.cloud.discoveryengine.v1.ListConversationsRequest.Builder.class); + com.google.cloud.discoveryengine.v1.ListConversationsRequest.class, com.google.cloud.discoveryengine.v1.ListConversationsRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ListConversationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -566,14 +524,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ListConversationsRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.ListConversationsRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.ListConversationsRequest.getDefaultInstance(); } @@ -588,17 +545,13 @@ public com.google.cloud.discoveryengine.v1.ListConversationsRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ListConversationsRequest buildPartial() { - com.google.cloud.discoveryengine.v1.ListConversationsRequest result = - new com.google.cloud.discoveryengine.v1.ListConversationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.ListConversationsRequest result = new com.google.cloud.discoveryengine.v1.ListConversationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.ListConversationsRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.ListConversationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -621,39 +574,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.ListConversationsRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ListConversationsRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ListConversationsRequest)other); } else { super.mergeFrom(other); return this; @@ -661,9 +613,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListConversationsRequest other) { - if (other - == com.google.cloud.discoveryengine.v1.ListConversationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ListConversationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -713,43 +663,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -759,28 +703,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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; @@ -789,24 +728,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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 { @@ -814,41 +750,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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() { @@ -858,24 +783,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -883,17 +802,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of results to return. If unspecified, defaults
      * to 50. Max allowed value is 1000.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -901,15 +817,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of results to return. If unspecified, defaults
      * to 50. Max allowed value is 1000.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -921,15 +834,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of results to return. If unspecified, defaults
      * to 50. Max allowed value is 1000.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -941,21 +851,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -964,22 +872,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -987,37 +894,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1027,22 +927,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1052,8 +948,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1063,13 +957,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @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; @@ -1078,8 +972,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1089,14 +981,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @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 { @@ -1104,8 +997,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1115,22 +1006,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1140,7 +1027,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1150,8 +1036,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1161,14 +1045,12 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1178,8 +1060,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1194,13 +1074,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1209,8 +1089,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1225,14 +1103,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1240,8 +1119,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1256,22 +1133,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1286,7 +1159,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1296,8 +1168,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1312,23 +1182,21 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; 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); } @@ -1338,13 +1206,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListConversationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListConversationsRequest) - private static final com.google.cloud.discoveryengine.v1.ListConversationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ListConversationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListConversationsRequest(); } @@ -1353,27 +1220,27 @@ public static com.google.cloud.discoveryengine.v1.ListConversationsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1388,4 +1255,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ListConversationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java index ed52f56cd58c..90b19a885473 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsRequestOrBuilder.java @@ -1,103 +1,68 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; -public interface ListConversationsRequestOrBuilder - extends +public interface ListConversationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListConversationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of results to return. If unspecified, defaults
    * to 50. Max allowed value is 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -107,13 +72,10 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -123,14 +85,12 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -145,13 +105,10 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -166,8 +123,8 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java index b6a8110a880c..34d2d46690f2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response for ListConversations method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ListConversationsResponse} */ -public final class ListConversationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConversationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListConversationsResponse) ListConversationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConversationsResponse.newBuilder() to construct. private ListConversationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConversationsResponse() { conversations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListConversationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConversationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ListConversationsResponse.class, - com.google.cloud.discoveryengine.v1.ListConversationsResponse.Builder.class); + com.google.cloud.discoveryengine.v1.ListConversationsResponse.class, com.google.cloud.discoveryengine.v1.ListConversationsResponse.Builder.class); } public static final int CONVERSATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List conversations_; /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -81,8 +59,6 @@ public java.util.List getConve return conversations_; } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -90,13 +66,11 @@ public java.util.List getConve * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConversationsOrBuilderList() { return conversations_; } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -108,8 +82,6 @@ public int getConversationsCount() { return conversations_.size(); } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.discoveryengine.v1.Conversation getConversations(int ind return conversations_.get(index); } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -136,18 +106,14 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,29 +122,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * 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 { @@ -187,7 +153,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +164,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 < conversations_.size(); i++) { output.writeMessage(1, conversations_.get(i)); } @@ -216,7 +182,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < conversations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conversations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -229,16 +196,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.discoveryengine.v1.ListConversationsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ListConversationsResponse other = - (com.google.cloud.discoveryengine.v1.ListConversationsResponse) obj; + com.google.cloud.discoveryengine.v1.ListConversationsResponse other = (com.google.cloud.discoveryengine.v1.ListConversationsResponse) obj; - if (!getConversationsList().equals(other.getConversationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getConversationsList() + .equals(other.getConversationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,136 +230,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListConversationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ListConversationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListConversationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListConversationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse 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.discoveryengine.v1.ListConversationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ListConversationsResponse 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 for ListConversations method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.ListConversationsResponse} */ - 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.discoveryengine.v1.ListConversationsResponse) com.google.cloud.discoveryengine.v1.ListConversationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.ListConversationsResponse.class, - com.google.cloud.discoveryengine.v1.ListConversationsResponse.Builder.class); + com.google.cloud.discoveryengine.v1.ListConversationsResponse.class, com.google.cloud.discoveryengine.v1.ListConversationsResponse.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.ListConversationsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_ListConversationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.ListConversationsResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.ListConversationsResponse getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.ListConversationsResponse.getDefaultInstance(); } @@ -430,18 +392,14 @@ public com.google.cloud.discoveryengine.v1.ListConversationsResponse build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.ListConversationsResponse buildPartial() { - com.google.cloud.discoveryengine.v1.ListConversationsResponse result = - new com.google.cloud.discoveryengine.v1.ListConversationsResponse(this); + com.google.cloud.discoveryengine.v1.ListConversationsResponse result = new com.google.cloud.discoveryengine.v1.ListConversationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.ListConversationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ListConversationsResponse result) { if (conversationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { conversations_ = java.util.Collections.unmodifiableList(conversations_); @@ -453,8 +411,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.ListConversationsResponse result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.ListConversationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -465,39 +422,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.ListConversationsResponse) { - return mergeFrom((com.google.cloud.discoveryengine.v1.ListConversationsResponse) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.ListConversationsResponse)other); } else { super.mergeFrom(other); return this; @@ -505,9 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListConversationsResponse other) { - if (other - == com.google.cloud.discoveryengine.v1.ListConversationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.ListConversationsResponse.getDefaultInstance()) return this; if (conversationsBuilder_ == null) { if (!other.conversations_.isEmpty()) { if (conversations_.isEmpty()) { @@ -526,10 +480,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListConversationsRe conversationsBuilder_ = null; conversations_ = other.conversations_; bitField0_ = (bitField0_ & ~0x00000001); - conversationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConversationsFieldBuilder() - : null; + conversationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConversationsFieldBuilder() : null; } else { conversationsBuilder_.addAllMessages(other.conversations_); } @@ -566,33 +519,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1.Conversation m = - input.readMessage( - com.google.cloud.discoveryengine.v1.Conversation.parser(), - extensionRegistry); - if (conversationsBuilder_ == null) { - ensureConversationsIsMutable(); - conversations_.add(m); - } else { - conversationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1.Conversation m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Conversation.parser(), + extensionRegistry); + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(m); + } else { + conversationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,30 +552,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List conversations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConversationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - conversations_ = - new java.util.ArrayList( - conversations_); + conversations_ = new java.util.ArrayList(conversations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> - conversationsBuilder_; + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> conversationsBuilder_; /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -640,8 +581,6 @@ public java.util.List getConve } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -656,8 +595,6 @@ public int getConversationsCount() { } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -672,8 +609,6 @@ public com.google.cloud.discoveryengine.v1.Conversation getConversations(int ind } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -695,8 +630,6 @@ public Builder setConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -715,8 +648,6 @@ public Builder setConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -737,8 +668,6 @@ public Builder addConversations(com.google.cloud.discoveryengine.v1.Conversation return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -760,8 +689,6 @@ public Builder addConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -780,8 +707,6 @@ public Builder addConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -800,8 +725,6 @@ public Builder addConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -812,7 +735,8 @@ public Builder addAllConversations( java.lang.Iterable values) { if (conversationsBuilder_ == null) { ensureConversationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conversations_); onChanged(); } else { conversationsBuilder_.addAllMessages(values); @@ -820,8 +744,6 @@ public Builder addAllConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -839,8 +761,6 @@ public Builder clearConversations() { return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -858,8 +778,6 @@ public Builder removeConversations(int index) { return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -871,8 +789,6 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversations return getConversationsFieldBuilder().getBuilder(index); } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -882,22 +798,19 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversations public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationsOrBuilder( int index) { if (conversationsBuilder_ == null) { - return conversations_.get(index); - } else { + return conversations_.get(index); } else { return conversationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * All the Conversations for a given data store.
      * 
* * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ - public java.util.List - getConversationsOrBuilderList() { + public java.util.List + getConversationsOrBuilderList() { if (conversationsBuilder_ != null) { return conversationsBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +818,6 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -914,12 +825,10 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ public com.google.cloud.discoveryengine.v1.Conversation.Builder addConversationsBuilder() { - return getConversationsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()); + return getConversationsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()); } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -928,34 +837,26 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder addConversations */ public com.google.cloud.discoveryengine.v1.Conversation.Builder addConversationsBuilder( int index) { - return getConversationsFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()); + return getConversationsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()); } /** - * - * *
      * All the Conversations for a given data store.
      * 
* * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ - public java.util.List - getConversationsBuilderList() { + public java.util.List + getConversationsBuilderList() { return getConversationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> getConversationsFieldBuilder() { if (conversationsBuilder_ == null) { - conversationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( + conversationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( conversations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -967,20 +868,18 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder addConversations private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * 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; @@ -989,21 +888,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * 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 { @@ -1011,35 +909,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1049,30 +940,26 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1082,13 +969,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListConversationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListConversationsResponse) - private static final com.google.cloud.discoveryengine.v1.ListConversationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.ListConversationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListConversationsResponse(); } @@ -1097,27 +983,27 @@ public static com.google.cloud.discoveryengine.v1.ListConversationsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +1018,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.discoveryengine.v1.ListConversationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java index f1c129ddbadf..3a136af14f82 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListConversationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; -public interface ListConversationsResponseOrBuilder - extends +public interface ListConversationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListConversationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * All the Conversations for a given data store.
    * 
* * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ - java.util.List getConversationsList(); + java.util.List + getConversationsList(); /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -44,8 +25,6 @@ public interface ListConversationsResponseOrBuilder */ com.google.cloud.discoveryengine.v1.Conversation getConversations(int index); /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -54,49 +33,41 @@ public interface ListConversationsResponseOrBuilder */ int getConversationsCount(); /** - * - * *
    * All the Conversations for a given data store.
    * 
* * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ - java.util.List + java.util.List getConversationsOrBuilderList(); /** - * - * *
    * All the Conversations for a given data store.
    * 
* * repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; */ - com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationsOrBuilder( + int index); /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java similarity index 74% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java index 9186ecc9e07f..01364c2edc08 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ListDocumentsRequest}
  */
-public final class ListDocumentsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListDocumentsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListDocumentsRequest)
     ListDocumentsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListDocumentsRequest.newBuilder() to construct.
   private ListDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListDocumentsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -46,32 +28,28 @@ private ListDocumentsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListDocumentsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ListDocumentsRequest.class,
-            com.google.cloud.discoveryengine.v1.ListDocumentsRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.ListDocumentsRequest.class, com.google.cloud.discoveryengine.v1.ListDocumentsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * error is returned.
    * 
* - * - * string 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 @@ -96,15 +71,14 @@ 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 branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -117,18 +91,17 @@ public java.lang.String getParent() {
    * error is returned.
    * 
* - * - * string 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 { @@ -139,8 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
    * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
@@ -150,7 +121,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -159,12 +129,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -179,7 +146,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -188,15 +154,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -211,15 +176,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -228,7 +194,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +205,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_); } @@ -263,7 +229,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_); @@ -276,17 +243,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.discoveryengine.v1.ListDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ListDocumentsRequest other = - (com.google.cloud.discoveryengine.v1.ListDocumentsRequest) obj; + com.google.cloud.discoveryengine.v1.ListDocumentsRequest other = (com.google.cloud.discoveryengine.v1.ListDocumentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,104 +279,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest 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.discoveryengine.v1.ListDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ListDocumentsRequest 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
    * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]
@@ -416,32 +379,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ListDocumentsRequest}
    */
-  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.discoveryengine.v1.ListDocumentsRequest)
       com.google.cloud.discoveryengine.v1.ListDocumentsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ListDocumentsRequest.class,
-              com.google.cloud.discoveryengine.v1.ListDocumentsRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.ListDocumentsRequest.class, com.google.cloud.discoveryengine.v1.ListDocumentsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ListDocumentsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -474,11 +438,8 @@ public com.google.cloud.discoveryengine.v1.ListDocumentsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ListDocumentsRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.ListDocumentsRequest result =
-          new com.google.cloud.discoveryengine.v1.ListDocumentsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.ListDocumentsRequest result = new com.google.cloud.discoveryengine.v1.ListDocumentsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -500,39 +461,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ListDocumentsRequ
     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.discoveryengine.v1.ListDocumentsRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ListDocumentsRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ListDocumentsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -540,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListDocumentsRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.ListDocumentsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ListDocumentsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -581,31 +540,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -615,13 +570,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -634,16 +586,14 @@ public Builder mergeFrom(
      * error is returned.
      * 
* - * - * string 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; @@ -652,8 +602,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -666,17 +614,16 @@ public java.lang.String getParent() {
      * error is returned.
      * 
* - * - * string 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 { @@ -684,8 +631,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -698,25 +643,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -729,10 +668,7 @@ public Builder setParent(java.lang.String value) {
      * error is returned.
      * 
* - * - * string 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() { @@ -742,8 +678,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -756,17 +690,13 @@ public Builder clearParent() {
      * error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -774,10 +704,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
      * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
@@ -787,7 +715,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -795,8 +722,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
      * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
@@ -806,7 +731,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -818,8 +742,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
      * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
@@ -829,7 +751,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -841,8 +762,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -857,13 +776,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -872,8 +791,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -888,14 +805,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -903,8 +821,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -919,22 +835,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -949,7 +861,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -959,8 +870,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -975,23 +884,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1001,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListDocumentsRequest) private static final com.google.cloud.discoveryengine.v1.ListDocumentsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListDocumentsRequest(); } @@ -1015,27 +922,27 @@ public static com.google.cloud.discoveryengine.v1.ListDocumentsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1050,4 +957,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ListDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java similarity index 75% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java index 76fd57c9b09c..82687b6833f8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; -public interface ListDocumentsRequestOrBuilder - extends +public interface ListDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -38,16 +20,11 @@ public interface ListDocumentsRequestOrBuilder
    * error is returned.
    * 
* - * - * string 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 branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -60,17 +37,13 @@ public interface ListDocumentsRequestOrBuilder
    * error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
    * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
@@ -80,14 +53,11 @@ public interface ListDocumentsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -102,13 +72,10 @@ public interface ListDocumentsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token],
@@ -123,8 +90,8 @@ public interface ListDocumentsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java index a2c281f44e63..05793ea42aaf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response message for
  * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ListDocumentsResponse}
  */
-public final class ListDocumentsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListDocumentsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListDocumentsResponse)
     ListDocumentsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListDocumentsResponse.newBuilder() to construct.
   private ListDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListDocumentsResponse() {
     documents_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,32 +28,28 @@ private ListDocumentsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListDocumentsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ListDocumentsResponse.class,
-            com.google.cloud.discoveryengine.v1.ListDocumentsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.ListDocumentsResponse.class, com.google.cloud.discoveryengine.v1.ListDocumentsResponse.Builder.class);
   }
 
   public static final int DOCUMENTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List documents_;
   /**
-   *
-   *
    * 
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -83,8 +61,6 @@ public java.util.List getDocuments return documents_; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -92,13 +68,11 @@ public java.util.List getDocuments * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentsOrBuilderList() { return documents_; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -110,8 +84,6 @@ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.discoveryengine.v1.Document getDocuments(int index) { return documents_.get(index); } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -132,17 +102,15 @@ public com.google.cloud.discoveryengine.v1.Document getDocuments(int index) { * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder( + int index) { return documents_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -151,7 +119,6 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +127,14 @@ 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; } } /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -177,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -194,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } @@ -223,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documents_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -236,16 +204,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.discoveryengine.v1.ListDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ListDocumentsResponse other = - (com.google.cloud.discoveryengine.v1.ListDocumentsResponse) obj; + com.google.cloud.discoveryengine.v1.ListDocumentsResponse other = (com.google.cloud.discoveryengine.v1.ListDocumentsResponse) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,104 +238,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse 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.discoveryengine.v1.ListDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ListDocumentsResponse 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
    * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]
@@ -375,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ListDocumentsResponse}
    */
-  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.discoveryengine.v1.ListDocumentsResponse)
       com.google.cloud.discoveryengine.v1.ListDocumentsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ListDocumentsResponse.class,
-              com.google.cloud.discoveryengine.v1.ListDocumentsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.ListDocumentsResponse.class, com.google.cloud.discoveryengine.v1.ListDocumentsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ListDocumentsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +381,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_ListDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,18 +402,14 @@ public com.google.cloud.discoveryengine.v1.ListDocumentsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ListDocumentsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.ListDocumentsResponse result =
-          new com.google.cloud.discoveryengine.v1.ListDocumentsResponse(this);
+      com.google.cloud.discoveryengine.v1.ListDocumentsResponse result = new com.google.cloud.discoveryengine.v1.ListDocumentsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.ListDocumentsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ListDocumentsResponse result) {
       if (documentsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           documents_ = java.util.Collections.unmodifiableList(documents_);
@@ -472,39 +432,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ListDocumentsResp
     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.discoveryengine.v1.ListDocumentsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ListDocumentsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ListDocumentsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListDocumentsResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1.ListDocumentsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ListDocumentsResponse.getDefaultInstance()) return this;
       if (documentsBuilder_ == null) {
         if (!other.documents_.isEmpty()) {
           if (documents_.isEmpty()) {
@@ -532,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListDocumentsRespon
             documentsBuilder_ = null;
             documents_ = other.documents_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            documentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDocumentsFieldBuilder()
-                    : null;
+            documentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDocumentsFieldBuilder() : null;
           } else {
             documentsBuilder_.addAllMessages(other.documents_);
           }
@@ -572,32 +529,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1.Document m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.Document.parser(), extensionRegistry);
-                if (documentsBuilder_ == null) {
-                  ensureDocumentsIsMutable();
-                  documents_.add(m);
-                } else {
-                  documentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1.Document m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.Document.parser(),
+                      extensionRegistry);
+              if (documentsBuilder_ == null) {
+                ensureDocumentsIsMutable();
+                documents_.add(m);
+              } else {
+                documentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,29 +562,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List documents_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureDocumentsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        documents_ =
-            new java.util.ArrayList(documents_);
+        documents_ = new java.util.ArrayList(documents_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Document,
-            com.google.cloud.discoveryengine.v1.Document.Builder,
-            com.google.cloud.discoveryengine.v1.DocumentOrBuilder>
-        documentsBuilder_;
+        com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> documentsBuilder_;
 
     /**
-     *
-     *
      * 
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -644,8 +591,6 @@ public java.util.List getDocuments } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -660,8 +605,6 @@ public int getDocumentsCount() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -676,15 +619,14 @@ public com.google.cloud.discoveryengine.v1.Document getDocuments(int index) { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1.Document value) { + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1.Document value) { if (documentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,8 +640,6 @@ public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1.Docum return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -718,8 +658,6 @@ public Builder setDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -740,15 +678,14 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1.Document value) return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1.Document value) { + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1.Document value) { if (documentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -762,8 +699,6 @@ public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1.Docum return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -782,8 +717,6 @@ public Builder addDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -802,8 +735,6 @@ public Builder addDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -814,7 +745,8 @@ public Builder addAllDocuments( java.lang.Iterable values) { if (documentsBuilder_ == null) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); onChanged(); } else { documentsBuilder_.addAllMessages(values); @@ -822,8 +754,6 @@ public Builder addAllDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -841,8 +771,6 @@ public Builder clearDocuments() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -860,44 +788,39 @@ public Builder removeDocuments(int index) { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentsBuilder( + int index) { return getDocumentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder( + int index) { if (documentsBuilder_ == null) { - return documents_.get(index); - } else { + return documents_.get(index); } else { return documentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public java.util.List - getDocumentsOrBuilderList() { + public java.util.List + getDocumentsOrBuilderList() { if (documentsBuilder_ != null) { return documentsBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +828,6 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuild } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
@@ -914,48 +835,42 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuild * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder() { - return getDocumentsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder(int index) { - return getDocumentsFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()); } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - public java.util.List - getDocumentsBuilderList() { + public java.util.List + getDocumentsBuilderList() { return getDocumentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> getDocumentsFieldBuilder() { if (documentsBuilder_ == null) { - documentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( - documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( + documents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); documents_ = null; } return documentsBuilder_; @@ -963,8 +878,6 @@ public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -973,13 +886,13 @@ public com.google.cloud.discoveryengine.v1.Document.Builder addDocumentsBuilder(
      * 
* * 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; @@ -988,8 +901,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -998,14 +909,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1013,8 +925,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -1023,22 +933,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -1047,7 +953,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1057,8 +962,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -1067,23 +970,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1093,12 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListDocumentsResponse) private static final com.google.cloud.discoveryengine.v1.ListDocumentsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListDocumentsResponse(); } @@ -1107,27 +1008,27 @@ public static com.google.cloud.discoveryengine.v1.ListDocumentsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ListDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java index b57875585231..860b4da970ec 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListDocumentsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; -public interface ListDocumentsResponseOrBuilder - extends +public interface ListDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -44,8 +25,6 @@ public interface ListDocumentsResponseOrBuilder */ com.google.cloud.discoveryengine.v1.Document getDocuments(int index); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
@@ -54,30 +33,25 @@ public interface ListDocumentsResponseOrBuilder */ int getDocumentsCount(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - java.util.List + java.util.List getDocumentsOrBuilderList(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1.Document]s.
    * 
* * repeated .google.cloud.discoveryengine.v1.Document documents = 1; */ - com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentsOrBuilder( + int index); /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -86,13 +60,10 @@ public interface ListDocumentsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token]
@@ -101,8 +72,8 @@ public interface ListDocumentsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java index b5b6287f7cb5..ae0a887f70fa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ListSchemasRequest}
  */
-public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSchemasRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListSchemasRequest)
     ListSchemasRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSchemasRequest.newBuilder() to construct.
   private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSchemasRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -46,41 +28,34 @@ private ListSchemasRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSchemasRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ListSchemasRequest.class,
-            com.google.cloud.discoveryengine.v1.ListSchemasRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.ListSchemasRequest.class, com.google.cloud.discoveryengine.v1.ListSchemasRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -89,32 +64,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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to
    * return. The service may return fewer than this value.
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -164,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -173,15 +139,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -193,15 +158,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -210,7 +176,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +187,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_); } @@ -245,7 +211,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_); @@ -258,17 +225,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.discoveryengine.v1.ListSchemasRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ListSchemasRequest other = - (com.google.cloud.discoveryengine.v1.ListSchemasRequest) obj; + com.google.cloud.discoveryengine.v1.ListSchemasRequest other = (com.google.cloud.discoveryengine.v1.ListSchemasRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,104 +261,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ListSchemasRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListSchemasRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListSchemasRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest 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.discoveryengine.v1.ListSchemasRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ListSchemasRequest 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
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -398,32 +361,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ListSchemasRequest}
    */
-  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.discoveryengine.v1.ListSchemasRequest)
       com.google.cloud.discoveryengine.v1.ListSchemasRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ListSchemasRequest.class,
-              com.google.cloud.discoveryengine.v1.ListSchemasRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.ListSchemasRequest.class, com.google.cloud.discoveryengine.v1.ListSchemasRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ListSchemasRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -435,9 +399,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor;
     }
 
     @java.lang.Override
@@ -456,11 +420,8 @@ public com.google.cloud.discoveryengine.v1.ListSchemasRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ListSchemasRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.ListSchemasRequest result =
-          new com.google.cloud.discoveryengine.v1.ListSchemasRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.ListSchemasRequest result = new com.google.cloud.discoveryengine.v1.ListSchemasRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -482,39 +443,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ListSchemasReques
     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.discoveryengine.v1.ListSchemasRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ListSchemasRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ListSchemasRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -522,8 +482,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListSchemasRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.ListSchemasRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ListSchemasRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -563,31 +522,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -597,28 +552,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -627,24 +577,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -652,41 +599,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -696,24 +632,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -721,10 +651,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to
      * return. The service may return fewer than this value.
@@ -736,7 +664,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -744,8 +671,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to
      * return. The service may return fewer than this value.
@@ -757,7 +682,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -769,8 +693,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to
      * return. The service may return fewer than this value.
@@ -782,7 +704,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -794,8 +715,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -807,13 +726,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -822,8 +741,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -835,14 +752,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -850,8 +768,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -863,22 +779,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -890,7 +802,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -900,8 +811,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -913,23 +822,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListSchemasRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListSchemasRequest) private static final com.google.cloud.discoveryengine.v1.ListSchemasRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListSchemasRequest(); } @@ -953,27 +860,27 @@ public static com.google.cloud.discoveryengine.v1.ListSchemasRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -988,4 +895,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ListSchemasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java index 0ef1e0a66320..4f853a8fa0b0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; -public interface ListSchemasRequestOrBuilder - extends +public interface ListSchemasRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListSchemasRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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(); /** - * - * *
    * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to
    * return. The service may return fewer than this value.
@@ -68,14 +41,11 @@ public interface ListSchemasRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -87,13 +57,10 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -105,8 +72,8 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java index 8b09c1bd6625..b45a4b8b8590 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response message for
  * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.ListSchemasResponse}
  */
-public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSchemasResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListSchemasResponse)
     ListSchemasResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSchemasResponse.newBuilder() to construct.
   private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSchemasResponse() {
     schemas_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,32 +28,28 @@ private ListSchemasResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSchemasResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.ListSchemasResponse.class,
-            com.google.cloud.discoveryengine.v1.ListSchemasResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.ListSchemasResponse.class, com.google.cloud.discoveryengine.v1.ListSchemasResponse.Builder.class);
   }
 
   public static final int SCHEMAS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List schemas_;
   /**
-   *
-   *
    * 
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -83,8 +61,6 @@ public java.util.List getSchemasList return schemas_; } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -92,13 +68,11 @@ public java.util.List getSchemasList * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSchemasOrBuilderList() { return schemas_; } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -110,8 +84,6 @@ public int getSchemasCount() { return schemas_.size(); } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.discoveryengine.v1.Schema getSchemas(int index) { return schemas_.get(index); } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -132,17 +102,15 @@ public com.google.cloud.discoveryengine.v1.Schema getSchemas(int index) { * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder( + int index) { return schemas_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -151,7 +119,6 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder(i
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +127,14 @@ 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; } } /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -177,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -194,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } @@ -223,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < schemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, schemas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -236,16 +204,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.discoveryengine.v1.ListSchemasResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.ListSchemasResponse other = - (com.google.cloud.discoveryengine.v1.ListSchemasResponse) obj; + com.google.cloud.discoveryengine.v1.ListSchemasResponse other = (com.google.cloud.discoveryengine.v1.ListSchemasResponse) obj; - if (!getSchemasList().equals(other.getSchemasList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSchemasList() + .equals(other.getSchemasList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,104 +238,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.ListSchemasResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListSchemasResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.ListSchemasResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse 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.discoveryengine.v1.ListSchemasResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ListSchemasResponse 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
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas]
@@ -375,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.ListSchemasResponse}
    */
-  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.discoveryengine.v1.ListSchemasResponse)
       com.google.cloud.discoveryengine.v1.ListSchemasResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.ListSchemasResponse.class,
-              com.google.cloud.discoveryengine.v1.ListSchemasResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.ListSchemasResponse.class, com.google.cloud.discoveryengine.v1.ListSchemasResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.ListSchemasResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +381,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,18 +402,14 @@ public com.google.cloud.discoveryengine.v1.ListSchemasResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.ListSchemasResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.ListSchemasResponse result =
-          new com.google.cloud.discoveryengine.v1.ListSchemasResponse(this);
+      com.google.cloud.discoveryengine.v1.ListSchemasResponse result = new com.google.cloud.discoveryengine.v1.ListSchemasResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.ListSchemasResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.ListSchemasResponse result) {
       if (schemasBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           schemas_ = java.util.Collections.unmodifiableList(schemas_);
@@ -472,39 +432,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ListSchemasRespon
     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.discoveryengine.v1.ListSchemasResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.ListSchemasResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.ListSchemasResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListSchemasResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1.ListSchemasResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.ListSchemasResponse.getDefaultInstance()) return this;
       if (schemasBuilder_ == null) {
         if (!other.schemas_.isEmpty()) {
           if (schemas_.isEmpty()) {
@@ -532,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListSchemasResponse
             schemasBuilder_ = null;
             schemas_ = other.schemas_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            schemasBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSchemasFieldBuilder()
-                    : null;
+            schemasBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSchemasFieldBuilder() : null;
           } else {
             schemasBuilder_.addAllMessages(other.schemas_);
           }
@@ -572,32 +529,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1.Schema m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.Schema.parser(), extensionRegistry);
-                if (schemasBuilder_ == null) {
-                  ensureSchemasIsMutable();
-                  schemas_.add(m);
-                } else {
-                  schemasBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1.Schema m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.Schema.parser(),
+                      extensionRegistry);
+              if (schemasBuilder_ == null) {
+                ensureSchemasIsMutable();
+                schemas_.add(m);
+              } else {
+                schemasBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,28 +562,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List schemas_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSchemasIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         schemas_ = new java.util.ArrayList(schemas_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Schema,
-            com.google.cloud.discoveryengine.v1.Schema.Builder,
-            com.google.cloud.discoveryengine.v1.SchemaOrBuilder>
-        schemasBuilder_;
+        com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder> schemasBuilder_;
 
     /**
-     *
-     *
      * 
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -643,8 +591,6 @@ public java.util.List getSchemasList } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -659,8 +605,6 @@ public int getSchemasCount() { } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -675,15 +619,14 @@ public com.google.cloud.discoveryengine.v1.Schema getSchemas(int index) { } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public Builder setSchemas(int index, com.google.cloud.discoveryengine.v1.Schema value) { + public Builder setSchemas( + int index, com.google.cloud.discoveryengine.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -697,8 +640,6 @@ public Builder setSchemas(int index, com.google.cloud.discoveryengine.v1.Schema return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -717,8 +658,6 @@ public Builder setSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -739,15 +678,14 @@ public Builder addSchemas(com.google.cloud.discoveryengine.v1.Schema value) { return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public Builder addSchemas(int index, com.google.cloud.discoveryengine.v1.Schema value) { + public Builder addSchemas( + int index, com.google.cloud.discoveryengine.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -761,15 +699,14 @@ public Builder addSchemas(int index, com.google.cloud.discoveryengine.v1.Schema return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public Builder addSchemas(com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { + public Builder addSchemas( + com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(builderForValue.build()); @@ -780,8 +717,6 @@ public Builder addSchemas(com.google.cloud.discoveryengine.v1.Schema.Builder bui return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -800,8 +735,6 @@ public Builder addSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -812,7 +745,8 @@ public Builder addAllSchemas( java.lang.Iterable values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); @@ -820,8 +754,6 @@ public Builder addAllSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -839,8 +771,6 @@ public Builder clearSchemas() { return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -858,44 +788,39 @@ public Builder removeSchemas(int index) { return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public com.google.cloud.discoveryengine.v1.Schema.Builder getSchemasBuilder(int index) { + public com.google.cloud.discoveryengine.v1.Schema.Builder getSchemasBuilder( + int index) { return getSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder( + int index) { if (schemasBuilder_ == null) { - return schemas_.get(index); - } else { + return schemas_.get(index); } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public java.util.List - getSchemasOrBuilderList() { + public java.util.List + getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { @@ -903,8 +828,6 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder(i } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
@@ -912,48 +835,42 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder(i * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ public com.google.cloud.discoveryengine.v1.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()); + return getSchemasFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()); } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public com.google.cloud.discoveryengine.v1.Schema.Builder addSchemasBuilder(int index) { - return getSchemasFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.Schema.Builder addSchemasBuilder( + int index) { + return getSchemasFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()); } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - public java.util.List - getSchemasBuilderList() { + public java.util.List + getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { - schemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( - schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( + schemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); schemas_ = null; } return schemasBuilder_; @@ -961,8 +878,6 @@ public com.google.cloud.discoveryengine.v1.Schema.Builder addSchemasBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -971,13 +886,13 @@ public com.google.cloud.discoveryengine.v1.Schema.Builder addSchemasBuilder(int
      * 
* * 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; @@ -986,8 +901,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -996,14 +909,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1011,8 +925,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -1021,22 +933,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -1045,7 +953,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1055,8 +962,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -1065,23 +970,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1091,12 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListSchemasResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListSchemasResponse) private static final com.google.cloud.discoveryengine.v1.ListSchemasResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListSchemasResponse(); } @@ -1105,27 +1008,27 @@ public static com.google.cloud.discoveryengine.v1.ListSchemasResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1140,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.ListSchemasResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java index 2dd40fabf320..96552e160397 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSchemasResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; -public interface ListSchemasResponseOrBuilder - extends +public interface ListSchemasResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListSchemasResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - java.util.List getSchemasList(); + java.util.List + getSchemasList(); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -44,8 +25,6 @@ public interface ListSchemasResponseOrBuilder */ com.google.cloud.discoveryengine.v1.Schema getSchemas(int index); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
@@ -54,30 +33,25 @@ public interface ListSchemasResponseOrBuilder */ int getSchemasCount(); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - java.util.List + java.util.List getSchemasOrBuilderList(); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1.Schema]s.
    * 
* * repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; */ - com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder(int index); + com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemasOrBuilder( + int index); /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -86,13 +60,10 @@ public interface ListSchemasResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token]
@@ -101,8 +72,8 @@ public interface ListSchemasResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java index c25f6d4b4e7c..438a5b91ad9c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfo.java @@ -1,71 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Media-specific user event information.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.MediaInfo} */ -public final class MediaInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MediaInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.MediaInfo) MediaInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MediaInfo.newBuilder() to construct. private MediaInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MediaInfo() {} + private MediaInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MediaInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.MediaInfo.class, - com.google.cloud.discoveryengine.v1.MediaInfo.Builder.class); + com.google.cloud.discoveryengine.v1.MediaInfo.class, com.google.cloud.discoveryengine.v1.MediaInfo.Builder.class); } private int bitField0_; public static final int MEDIA_PROGRESS_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration mediaProgressDuration_; /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -75,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return Whether the mediaProgressDuration field is set. */ @java.lang.Override @@ -83,8 +62,6 @@ public boolean hasMediaProgressDuration() { return mediaProgressDuration_ != null; } /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -94,18 +71,13 @@ public boolean hasMediaProgressDuration() {
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return The mediaProgressDuration. */ @java.lang.Override public com.google.protobuf.Duration getMediaProgressDuration() { - return mediaProgressDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : mediaProgressDuration_; + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; } /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -118,16 +90,12 @@ public com.google.protobuf.Duration getMediaProgressDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder() {
-    return mediaProgressDuration_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : mediaProgressDuration_;
+    return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_;
   }
 
   public static final int MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER = 2;
   private float mediaProgressPercentage_ = 0F;
   /**
-   *
-   *
    * 
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -140,7 +108,6 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
    * 
* * optional float media_progress_percentage = 2; - * * @return Whether the mediaProgressPercentage field is set. */ @java.lang.Override @@ -148,8 +115,6 @@ public boolean hasMediaProgressPercentage() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -162,7 +127,6 @@ public boolean hasMediaProgressPercentage() {
    * 
* * optional float media_progress_percentage = 2; - * * @return The mediaProgressPercentage. */ @java.lang.Override @@ -171,7 +135,6 @@ public float getMediaProgressPercentage() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +146,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 (mediaProgressDuration_ != null) { output.writeMessage(1, getMediaProgressDuration()); } @@ -200,11 +164,12 @@ public int getSerializedSize() { size = 0; if (mediaProgressDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMediaProgressDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMediaProgressDuration()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, mediaProgressPercentage_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, mediaProgressPercentage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,22 +179,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.discoveryengine.v1.MediaInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.MediaInfo other = - (com.google.cloud.discoveryengine.v1.MediaInfo) obj; + com.google.cloud.discoveryengine.v1.MediaInfo other = (com.google.cloud.discoveryengine.v1.MediaInfo) obj; if (hasMediaProgressDuration() != other.hasMediaProgressDuration()) return false; if (hasMediaProgressDuration()) { - if (!getMediaProgressDuration().equals(other.getMediaProgressDuration())) return false; + if (!getMediaProgressDuration() + .equals(other.getMediaProgressDuration())) return false; } if (hasMediaProgressPercentage() != other.hasMediaProgressPercentage()) return false; if (hasMediaProgressPercentage()) { if (java.lang.Float.floatToIntBits(getMediaProgressPercentage()) - != java.lang.Float.floatToIntBits(other.getMediaProgressPercentage())) return false; + != java.lang.Float.floatToIntBits( + other.getMediaProgressPercentage())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -248,143 +214,140 @@ public int hashCode() { } if (hasMediaProgressPercentage()) { hash = (37 * hash) + MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMediaProgressPercentage()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMediaProgressPercentage()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1.MediaInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.MediaInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.MediaInfo 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.discoveryengine.v1.MediaInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.MediaInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.MediaInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.MediaInfo 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.discoveryengine.v1.MediaInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.MediaInfo 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.discoveryengine.v1.MediaInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.MediaInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.MediaInfo 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.discoveryengine.v1.MediaInfo 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.discoveryengine.v1.MediaInfo 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.discoveryengine.v1.MediaInfo 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; } /** - * - * *
    * Media-specific user event information.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.MediaInfo} */ - 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.discoveryengine.v1.MediaInfo) com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.MediaInfo.class, - com.google.cloud.discoveryengine.v1.MediaInfo.Builder.class); + com.google.cloud.discoveryengine.v1.MediaInfo.class, com.google.cloud.discoveryengine.v1.MediaInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.MediaInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +362,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; } @java.lang.Override @@ -420,11 +383,8 @@ public com.google.cloud.discoveryengine.v1.MediaInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.MediaInfo buildPartial() { - com.google.cloud.discoveryengine.v1.MediaInfo result = - new com.google.cloud.discoveryengine.v1.MediaInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.MediaInfo result = new com.google.cloud.discoveryengine.v1.MediaInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -432,10 +392,9 @@ public com.google.cloud.discoveryengine.v1.MediaInfo buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.MediaInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.mediaProgressDuration_ = - mediaProgressDurationBuilder_ == null - ? mediaProgressDuration_ - : mediaProgressDurationBuilder_.build(); + result.mediaProgressDuration_ = mediaProgressDurationBuilder_ == null + ? mediaProgressDuration_ + : mediaProgressDurationBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -449,39 +408,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.MediaInfo result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.MediaInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.MediaInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.MediaInfo)other); } else { super.mergeFrom(other); return this; @@ -522,26 +480,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getMediaProgressDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - mediaProgressPercentage_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMediaProgressDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + mediaProgressPercentage_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,18 +507,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration mediaProgressDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - mediaProgressDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> mediaProgressDurationBuilder_; /** - * - * *
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -572,15 +522,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return Whether the mediaProgressDuration field is set. */ public boolean hasMediaProgressDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -590,21 +537,16 @@ public boolean hasMediaProgressDuration() {
      * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return The mediaProgressDuration. */ public com.google.protobuf.Duration getMediaProgressDuration() { if (mediaProgressDurationBuilder_ == null) { - return mediaProgressDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : mediaProgressDuration_; + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; } else { return mediaProgressDurationBuilder_.getMessage(); } } /** - * - * *
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -629,8 +571,6 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -641,7 +581,8 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration media_progress_duration = 1;
      */
-    public Builder setMediaProgressDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMediaProgressDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (mediaProgressDurationBuilder_ == null) {
         mediaProgressDuration_ = builderForValue.build();
       } else {
@@ -652,8 +593,6 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -666,9 +605,9 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration.Builder bui
      */
     public Builder mergeMediaProgressDuration(com.google.protobuf.Duration value) {
       if (mediaProgressDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && mediaProgressDuration_ != null
-            && mediaProgressDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          mediaProgressDuration_ != null &&
+          mediaProgressDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getMediaProgressDurationBuilder().mergeFrom(value);
         } else {
           mediaProgressDuration_ = value;
@@ -681,8 +620,6 @@ public Builder mergeMediaProgressDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -704,8 +641,6 @@ public Builder clearMediaProgressDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -722,8 +657,6 @@ public com.google.protobuf.Duration.Builder getMediaProgressDurationBuilder() {
       return getMediaProgressDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -738,14 +671,11 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
       if (mediaProgressDurationBuilder_ != null) {
         return mediaProgressDurationBuilder_.getMessageOrBuilder();
       } else {
-        return mediaProgressDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : mediaProgressDuration_;
+        return mediaProgressDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -757,26 +687,21 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
      * .google.protobuf.Duration media_progress_duration = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getMediaProgressDurationFieldBuilder() {
       if (mediaProgressDurationBuilder_ == null) {
-        mediaProgressDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getMediaProgressDuration(), getParentForChildren(), isClean());
+        mediaProgressDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getMediaProgressDuration(),
+                getParentForChildren(),
+                isClean());
         mediaProgressDuration_ = null;
       }
       return mediaProgressDurationBuilder_;
     }
 
-    private float mediaProgressPercentage_;
+    private float mediaProgressPercentage_ ;
     /**
-     *
-     *
      * 
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -789,7 +714,6 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
      * 
* * optional float media_progress_percentage = 2; - * * @return Whether the mediaProgressPercentage field is set. */ @java.lang.Override @@ -797,8 +721,6 @@ public boolean hasMediaProgressPercentage() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -811,7 +733,6 @@ public boolean hasMediaProgressPercentage() {
      * 
* * optional float media_progress_percentage = 2; - * * @return The mediaProgressPercentage. */ @java.lang.Override @@ -819,8 +740,6 @@ public float getMediaProgressPercentage() { return mediaProgressPercentage_; } /** - * - * *
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -833,7 +752,6 @@ public float getMediaProgressPercentage() {
      * 
* * optional float media_progress_percentage = 2; - * * @param value The mediaProgressPercentage to set. * @return This builder for chaining. */ @@ -845,8 +763,6 @@ public Builder setMediaProgressPercentage(float value) { return this; } /** - * - * *
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -859,7 +775,6 @@ public Builder setMediaProgressPercentage(float value) {
      * 
* * optional float media_progress_percentage = 2; - * * @return This builder for chaining. */ public Builder clearMediaProgressPercentage() { @@ -868,9 +783,9 @@ public Builder clearMediaProgressPercentage() { 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); } @@ -880,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.MediaInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.MediaInfo) private static final com.google.cloud.discoveryengine.v1.MediaInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.MediaInfo(); } @@ -894,27 +809,27 @@ public static com.google.cloud.discoveryengine.v1.MediaInfo getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MediaInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,4 +844,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.MediaInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java similarity index 79% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java index 92fb31ef9d0f..75a65ff1b897 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/MediaInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface MediaInfoOrBuilder - extends +public interface MediaInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.MediaInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -35,13 +17,10 @@ public interface MediaInfoOrBuilder
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return Whether the mediaProgressDuration field is set. */ boolean hasMediaProgressDuration(); /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -51,13 +30,10 @@ public interface MediaInfoOrBuilder
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return The mediaProgressDuration. */ com.google.protobuf.Duration getMediaProgressDuration(); /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -71,8 +47,6 @@ public interface MediaInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -85,13 +59,10 @@ public interface MediaInfoOrBuilder
    * 
* * optional float media_progress_percentage = 2; - * * @return Whether the mediaProgressPercentage field is set. */ boolean hasMediaProgressPercentage(); /** - * - * *
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration]
@@ -104,7 +75,6 @@ public interface MediaInfoOrBuilder
    * 
* * optional float media_progress_percentage = 2; - * * @return The mediaProgressPercentage. */ float getMediaProgressPercentage(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java index b11d431f1b13..61c5583901dd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Detailed page information.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.PageInfo} */ -public final class PageInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PageInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.PageInfo) PageInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PageInfo.newBuilder() to construct. private PageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PageInfo() { pageviewId_ = ""; pageCategory_ = ""; @@ -46,32 +28,28 @@ private PageInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PageInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.PageInfo.class, - com.google.cloud.discoveryengine.v1.PageInfo.Builder.class); + com.google.cloud.discoveryengine.v1.PageInfo.class, com.google.cloud.discoveryengine.v1.PageInfo.Builder.class); } public static final int PAGEVIEW_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object pageviewId_ = ""; /** - * - * *
    * A unique ID of a web page view.
    *
@@ -86,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pageview_id = 1; - * * @return The pageviewId. */ @java.lang.Override @@ -95,15 +72,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; } } /** - * - * *
    * A unique ID of a web page view.
    *
@@ -118,15 +94,16 @@ public java.lang.String getPageviewId() {
    * 
* * string pageview_id = 1; - * * @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 { @@ -135,12 +112,9 @@ public com.google.protobuf.ByteString getPageviewIdBytes() { } public static final int PAGE_CATEGORY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageCategory_ = ""; /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -157,7 +131,6 @@ public com.google.protobuf.ByteString getPageviewIdBytes() {
    * 
* * string page_category = 2; - * * @return The pageCategory. */ @java.lang.Override @@ -166,15 +139,14 @@ public java.lang.String getPageCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageCategory_ = s; return s; } } /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -191,15 +163,16 @@ public java.lang.String getPageCategory() {
    * 
* * string page_category = 2; - * * @return The bytes for pageCategory. */ @java.lang.Override - public com.google.protobuf.ByteString getPageCategoryBytes() { + public com.google.protobuf.ByteString + getPageCategoryBytes() { java.lang.Object ref = pageCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageCategory_ = b; return b; } else { @@ -208,12 +181,9 @@ public com.google.protobuf.ByteString getPageCategoryBytes() { } public static final int URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -223,7 +193,6 @@ public com.google.protobuf.ByteString getPageCategoryBytes() {
    * 
* * string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -232,15 +201,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; } } /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -250,15 +218,16 @@ public java.lang.String getUri() {
    * 
* * string uri = 3; - * * @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 { @@ -267,12 +236,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int REFERRER_URI_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object referrerUri_ = ""; /** - * - * *
    * The referrer URL of the current page.
    *
@@ -282,7 +248,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * string referrer_uri = 4; - * * @return The referrerUri. */ @java.lang.Override @@ -291,15 +256,14 @@ 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; } } /** - * - * *
    * The referrer URL of the current page.
    *
@@ -309,15 +273,16 @@ public java.lang.String getReferrerUri() {
    * 
* * string referrer_uri = 4; - * * @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 { @@ -326,7 +291,6 @@ public com.google.protobuf.ByteString getReferrerUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +302,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(pageviewId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pageviewId_); } @@ -380,18 +345,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.discoveryengine.v1.PageInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.PageInfo other = - (com.google.cloud.discoveryengine.v1.PageInfo) obj; - - if (!getPageviewId().equals(other.getPageviewId())) return false; - if (!getPageCategory().equals(other.getPageCategory())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getReferrerUri().equals(other.getReferrerUri())) return false; + com.google.cloud.discoveryengine.v1.PageInfo other = (com.google.cloud.discoveryengine.v1.PageInfo) obj; + + if (!getPageviewId() + .equals(other.getPageviewId())) return false; + if (!getPageCategory() + .equals(other.getPageCategory())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getReferrerUri() + .equals(other.getReferrerUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -416,136 +384,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.PageInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.PageInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PageInfo 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.discoveryengine.v1.PageInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PageInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.PageInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PageInfo 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.discoveryengine.v1.PageInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.PageInfo 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.discoveryengine.v1.PageInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PageInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.PageInfo 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.discoveryengine.v1.PageInfo 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.discoveryengine.v1.PageInfo 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.discoveryengine.v1.PageInfo 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 page information.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.PageInfo} */ - 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.discoveryengine.v1.PageInfo) com.google.cloud.discoveryengine.v1.PageInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.PageInfo.class, - com.google.cloud.discoveryengine.v1.PageInfo.Builder.class); + com.google.cloud.discoveryengine.v1.PageInfo.class, com.google.cloud.discoveryengine.v1.PageInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.PageInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; } @java.lang.Override @@ -579,11 +543,8 @@ public com.google.cloud.discoveryengine.v1.PageInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.PageInfo buildPartial() { - com.google.cloud.discoveryengine.v1.PageInfo result = - new com.google.cloud.discoveryengine.v1.PageInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.PageInfo result = new com.google.cloud.discoveryengine.v1.PageInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -608,39 +569,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.PageInfo result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.PageInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.PageInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.PageInfo)other); } else { super.mergeFrom(other); return this; @@ -695,37 +655,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - pageviewId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageCategory_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - referrerUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + pageviewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + referrerUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -735,13 +690,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object pageviewId_ = ""; /** - * - * *
      * A unique ID of a web page view.
      *
@@ -756,13 +708,13 @@ public Builder mergeFrom(
      * 
* * string pageview_id = 1; - * * @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; @@ -771,8 +723,6 @@ public java.lang.String getPageviewId() { } } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -787,14 +737,15 @@ public java.lang.String getPageviewId() {
      * 
* * string pageview_id = 1; - * * @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 { @@ -802,8 +753,6 @@ public com.google.protobuf.ByteString getPageviewIdBytes() { } } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -818,22 +767,18 @@ public com.google.protobuf.ByteString getPageviewIdBytes() {
      * 
* * string pageview_id = 1; - * * @param value The pageviewId to set. * @return This builder for chaining. */ - public Builder setPageviewId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageviewId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageviewId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -848,7 +793,6 @@ public Builder setPageviewId(java.lang.String value) {
      * 
* * string pageview_id = 1; - * * @return This builder for chaining. */ public Builder clearPageviewId() { @@ -858,8 +802,6 @@ public Builder clearPageviewId() { return this; } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -874,14 +816,12 @@ public Builder clearPageviewId() {
      * 
* * string pageview_id = 1; - * * @param value The bytes for pageviewId to set. * @return This builder for chaining. */ - public Builder setPageviewIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageviewIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageviewId_ = value; bitField0_ |= 0x00000001; @@ -891,8 +831,6 @@ public Builder setPageviewIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageCategory_ = ""; /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -909,13 +847,13 @@ public Builder setPageviewIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_category = 2; - * * @return The pageCategory. */ public java.lang.String getPageCategory() { java.lang.Object ref = pageCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageCategory_ = s; return s; @@ -924,8 +862,6 @@ public java.lang.String getPageCategory() { } } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -942,14 +878,15 @@ public java.lang.String getPageCategory() {
      * 
* * string page_category = 2; - * * @return The bytes for pageCategory. */ - public com.google.protobuf.ByteString getPageCategoryBytes() { + public com.google.protobuf.ByteString + getPageCategoryBytes() { java.lang.Object ref = pageCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageCategory_ = b; return b; } else { @@ -957,8 +894,6 @@ public com.google.protobuf.ByteString getPageCategoryBytes() { } } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -975,22 +910,18 @@ public com.google.protobuf.ByteString getPageCategoryBytes() {
      * 
* * string page_category = 2; - * * @param value The pageCategory to set. * @return This builder for chaining. */ - public Builder setPageCategory(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageCategory( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageCategory_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -1007,7 +938,6 @@ public Builder setPageCategory(java.lang.String value) {
      * 
* * string page_category = 2; - * * @return This builder for chaining. */ public Builder clearPageCategory() { @@ -1017,8 +947,6 @@ public Builder clearPageCategory() { return this; } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -1035,14 +963,12 @@ public Builder clearPageCategory() {
      * 
* * string page_category = 2; - * * @param value The bytes for pageCategory to set. * @return This builder for chaining. */ - public Builder setPageCategoryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageCategoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageCategory_ = value; bitField0_ |= 0x00000002; @@ -1052,8 +978,6 @@ public Builder setPageCategoryBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1063,13 +987,13 @@ public Builder setPageCategoryBytes(com.google.protobuf.ByteString value) {
      * 
* * string uri = 3; - * * @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; @@ -1078,8 +1002,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1089,14 +1011,15 @@ public java.lang.String getUri() {
      * 
* * string uri = 3; - * * @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 { @@ -1104,8 +1027,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1115,22 +1036,18 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1140,7 +1057,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1150,8 +1066,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1161,14 +1075,12 @@ public Builder clearUri() {
      * 
* * string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; @@ -1178,8 +1090,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object referrerUri_ = ""; /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1189,13 +1099,13 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string referrer_uri = 4; - * * @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; @@ -1204,8 +1114,6 @@ public java.lang.String getReferrerUri() { } } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1215,14 +1123,15 @@ public java.lang.String getReferrerUri() {
      * 
* * string referrer_uri = 4; - * * @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 { @@ -1230,8 +1139,6 @@ public com.google.protobuf.ByteString getReferrerUriBytes() { } } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1241,22 +1148,18 @@ public com.google.protobuf.ByteString getReferrerUriBytes() {
      * 
* * string referrer_uri = 4; - * * @param value The referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferrerUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } referrerUri_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1266,7 +1169,6 @@ public Builder setReferrerUri(java.lang.String value) {
      * 
* * string referrer_uri = 4; - * * @return This builder for chaining. */ public Builder clearReferrerUri() { @@ -1276,8 +1178,6 @@ public Builder clearReferrerUri() { return this; } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1287,23 +1187,21 @@ public Builder clearReferrerUri() {
      * 
* * string referrer_uri = 4; - * * @param value The bytes for referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferrerUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referrerUri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1313,12 +1211,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.PageInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.PageInfo) private static final com.google.cloud.discoveryengine.v1.PageInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.PageInfo(); } @@ -1327,27 +1225,27 @@ public static com.google.cloud.discoveryengine.v1.PageInfo getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PageInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,4 +1260,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.PageInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java similarity index 82% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java index 39029c0e157e..819aad5a6f45 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PageInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface PageInfoOrBuilder - extends +public interface PageInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.PageInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique ID of a web page view.
    *
@@ -40,13 +22,10 @@ public interface PageInfoOrBuilder
    * 
* * string pageview_id = 1; - * * @return The pageviewId. */ java.lang.String getPageviewId(); /** - * - * *
    * A unique ID of a web page view.
    *
@@ -61,14 +40,12 @@ public interface PageInfoOrBuilder
    * 
* * string pageview_id = 1; - * * @return The bytes for pageviewId. */ - com.google.protobuf.ByteString getPageviewIdBytes(); + com.google.protobuf.ByteString + getPageviewIdBytes(); /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -85,13 +62,10 @@ public interface PageInfoOrBuilder
    * 
* * string page_category = 2; - * * @return The pageCategory. */ java.lang.String getPageCategory(); /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -108,14 +82,12 @@ public interface PageInfoOrBuilder
    * 
* * string page_category = 2; - * * @return The bytes for pageCategory. */ - com.google.protobuf.ByteString getPageCategoryBytes(); + com.google.protobuf.ByteString + getPageCategoryBytes(); /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -125,13 +97,10 @@ public interface PageInfoOrBuilder
    * 
* * string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -141,14 +110,12 @@ public interface PageInfoOrBuilder
    * 
* * string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * The referrer URL of the current page.
    *
@@ -158,13 +125,10 @@ public interface PageInfoOrBuilder
    * 
* * string referrer_uri = 4; - * * @return The referrerUri. */ java.lang.String getReferrerUri(); /** - * - * *
    * The referrer URL of the current page.
    *
@@ -174,8 +138,8 @@ public interface PageInfoOrBuilder
    * 
* * string referrer_uri = 4; - * * @return The bytes for referrerUri. */ - com.google.protobuf.ByteString getReferrerUriBytes(); + com.google.protobuf.ByteString + getReferrerUriBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java index 812f8e3e9199..ae4dcab6e333 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Detailed panel information associated with a user event.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.PanelInfo} */ -public final class PanelInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PanelInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.PanelInfo) PanelInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PanelInfo.newBuilder() to construct. private PanelInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PanelInfo() { panelId_ = ""; displayName_ = ""; @@ -44,39 +26,34 @@ private PanelInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PanelInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.PanelInfo.class, - com.google.cloud.discoveryengine.v1.PanelInfo.Builder.class); + com.google.cloud.discoveryengine.v1.PanelInfo.class, com.google.cloud.discoveryengine.v1.PanelInfo.Builder.class); } private int bitField0_; public static final int PANEL_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object panelId_ = ""; /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The panelId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getPanelId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); panelId_ = s; return s; } } /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for panelId. */ @java.lang.Override - public com.google.protobuf.ByteString getPanelIdBytes() { + public com.google.protobuf.ByteString + getPanelIdBytes() { java.lang.Object ref = panelId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); panelId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getPanelIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -169,8 +142,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int PANEL_POSITION_FIELD_NUMBER = 4; private int panelPosition_ = 0; /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -179,7 +150,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * optional int32 panel_position = 4; - * * @return Whether the panelPosition field is set. */ @java.lang.Override @@ -187,8 +157,6 @@ public boolean hasPanelPosition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -197,7 +165,6 @@ public boolean hasPanelPosition() {
    * 
* * optional int32 panel_position = 4; - * * @return The panelPosition. */ @java.lang.Override @@ -208,8 +175,6 @@ public int getPanelPosition() { public static final int TOTAL_PANELS_FIELD_NUMBER = 5; private int totalPanels_ = 0; /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -218,7 +183,6 @@ public int getPanelPosition() {
    * 
* * optional int32 total_panels = 5; - * * @return Whether the totalPanels field is set. */ @java.lang.Override @@ -226,8 +190,6 @@ public boolean hasTotalPanels() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -236,7 +198,6 @@ public boolean hasTotalPanels() {
    * 
* * optional int32 total_panels = 5; - * * @return The totalPanels. */ @java.lang.Override @@ -245,7 +206,6 @@ public int getTotalPanels() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +217,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(panelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, panelId_); } @@ -286,10 +247,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, panelPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, panelPosition_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, totalPanels_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, totalPanels_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,23 +262,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.discoveryengine.v1.PanelInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.PanelInfo other = - (com.google.cloud.discoveryengine.v1.PanelInfo) obj; + com.google.cloud.discoveryengine.v1.PanelInfo other = (com.google.cloud.discoveryengine.v1.PanelInfo) obj; - if (!getPanelId().equals(other.getPanelId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getPanelId() + .equals(other.getPanelId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasPanelPosition() != other.hasPanelPosition()) return false; if (hasPanelPosition()) { - if (getPanelPosition() != other.getPanelPosition()) return false; + if (getPanelPosition() + != other.getPanelPosition()) return false; } if (hasTotalPanels() != other.hasTotalPanels()) return false; if (hasTotalPanels()) { - if (getTotalPanels() != other.getTotalPanels()) return false; + if (getTotalPanels() + != other.getTotalPanels()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -345,136 +311,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.PanelInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.PanelInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PanelInfo 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.discoveryengine.v1.PanelInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PanelInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.PanelInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PanelInfo 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.discoveryengine.v1.PanelInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.PanelInfo 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.discoveryengine.v1.PanelInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PanelInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.PanelInfo 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.discoveryengine.v1.PanelInfo 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.discoveryengine.v1.PanelInfo 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.discoveryengine.v1.PanelInfo 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 panel information associated with a user event.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.PanelInfo} */ - 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.discoveryengine.v1.PanelInfo) com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.PanelInfo.class, - com.google.cloud.discoveryengine.v1.PanelInfo.Builder.class); + com.google.cloud.discoveryengine.v1.PanelInfo.class, com.google.cloud.discoveryengine.v1.PanelInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.PanelInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; } @java.lang.Override @@ -508,11 +470,8 @@ public com.google.cloud.discoveryengine.v1.PanelInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.PanelInfo buildPartial() { - com.google.cloud.discoveryengine.v1.PanelInfo result = - new com.google.cloud.discoveryengine.v1.PanelInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.PanelInfo result = new com.google.cloud.discoveryengine.v1.PanelInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -541,39 +500,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.PanelInfo result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.PanelInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.PanelInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.PanelInfo)other); } else { super.mergeFrom(other); return this; @@ -624,37 +582,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - panelId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: - { - panelPosition_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - totalPanels_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + panelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: { + panelPosition_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + totalPanels_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -664,25 +617,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object panelId_ = ""; /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The panelId. */ public java.lang.String getPanelId() { java.lang.Object ref = panelId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); panelId_ = s; return s; @@ -691,21 +641,20 @@ public java.lang.String getPanelId() { } } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for panelId. */ - public com.google.protobuf.ByteString getPanelIdBytes() { + public com.google.protobuf.ByteString + getPanelIdBytes() { java.lang.Object ref = panelId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); panelId_ = b; return b; } else { @@ -713,35 +662,28 @@ public com.google.protobuf.ByteString getPanelIdBytes() { } } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The panelId to set. * @return This builder for chaining. */ - public Builder setPanelId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPanelId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } panelId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPanelId() { @@ -751,21 +693,17 @@ public Builder clearPanelId() { return this; } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for panelId to set. * @return This builder for chaining. */ - public Builder setPanelIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPanelIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); panelId_ = value; bitField0_ |= 0x00000001; @@ -775,20 +713,18 @@ public Builder setPanelIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -797,21 +733,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -819,35 +754,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -857,21 +785,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -879,10 +803,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private int panelPosition_; + private int panelPosition_ ; /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -891,7 +813,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int32 panel_position = 4; - * * @return Whether the panelPosition field is set. */ @java.lang.Override @@ -899,8 +820,6 @@ public boolean hasPanelPosition() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -909,7 +828,6 @@ public boolean hasPanelPosition() {
      * 
* * optional int32 panel_position = 4; - * * @return The panelPosition. */ @java.lang.Override @@ -917,8 +835,6 @@ public int getPanelPosition() { return panelPosition_; } /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -927,7 +843,6 @@ public int getPanelPosition() {
      * 
* * optional int32 panel_position = 4; - * * @param value The panelPosition to set. * @return This builder for chaining. */ @@ -939,8 +854,6 @@ public Builder setPanelPosition(int value) { return this; } /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -949,7 +862,6 @@ public Builder setPanelPosition(int value) {
      * 
* * optional int32 panel_position = 4; - * * @return This builder for chaining. */ public Builder clearPanelPosition() { @@ -959,10 +871,8 @@ public Builder clearPanelPosition() { return this; } - private int totalPanels_; + private int totalPanels_ ; /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -971,7 +881,6 @@ public Builder clearPanelPosition() {
      * 
* * optional int32 total_panels = 5; - * * @return Whether the totalPanels field is set. */ @java.lang.Override @@ -979,8 +888,6 @@ public boolean hasTotalPanels() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -989,7 +896,6 @@ public boolean hasTotalPanels() {
      * 
* * optional int32 total_panels = 5; - * * @return The totalPanels. */ @java.lang.Override @@ -997,8 +903,6 @@ public int getTotalPanels() { return totalPanels_; } /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -1007,7 +911,6 @@ public int getTotalPanels() {
      * 
* * optional int32 total_panels = 5; - * * @param value The totalPanels to set. * @return This builder for chaining. */ @@ -1019,8 +922,6 @@ public Builder setTotalPanels(int value) { return this; } /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -1029,7 +930,6 @@ public Builder setTotalPanels(int value) {
      * 
* * optional int32 total_panels = 5; - * * @return This builder for chaining. */ public Builder clearTotalPanels() { @@ -1038,9 +938,9 @@ public Builder clearTotalPanels() { 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); } @@ -1050,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.PanelInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.PanelInfo) private static final com.google.cloud.discoveryengine.v1.PanelInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.PanelInfo(); } @@ -1064,27 +964,27 @@ public static com.google.cloud.discoveryengine.v1.PanelInfo getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PanelInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PanelInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1099,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.PanelInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java index 41abd5a6d75f..59d654710e46 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PanelInfoOrBuilder.java @@ -1,81 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface PanelInfoOrBuilder - extends +public interface PanelInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.PanelInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The panelId. */ java.lang.String getPanelId(); /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for panelId. */ - com.google.protobuf.ByteString getPanelIdBytes(); + com.google.protobuf.ByteString + getPanelIdBytes(); /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -84,13 +56,10 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 panel_position = 4; - * * @return Whether the panelPosition field is set. */ boolean hasPanelPosition(); /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -99,14 +68,11 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 panel_position = 4; - * * @return The panelPosition. */ int getPanelPosition(); /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -115,13 +81,10 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 total_panels = 5; - * * @return Whether the totalPanels field is set. */ boolean hasTotalPanels(); /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -130,7 +93,6 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 total_panels = 5; - * * @return The totalPanels. */ int getTotalPanels(); diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java new file mode 100644 index 000000000000..86f62de6f814 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeConfigProto.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/purge_config.proto + +package com.google.cloud.discoveryengine.v1; + +public final class PurgeConfigProto { + private PurgeConfigProto() {} + 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_discoveryengine_v1_PurgeDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/discoveryengine/v1/purge_" + + "config.proto\022\037google.cloud.discoveryengi" + + "ne.v1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\037google/protob" + + "uf/timestamp.proto\"|\n\025PurgeDocumentsRequ" + + "est\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoverye" + + "ngine.googleapis.com/Branch\022\024\n\006filter\030\002 " + + "\001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"q\n\026PurgeDocumen" + + "tsResponse\022\023\n\013purge_count\030\001 \001(\003\022B\n\014purge" + + "_sample\030\002 \003(\tB,\372A)\n\'discoveryengine.goog" + + "leapis.com/Document\"\250\001\n\026PurgeDocumentsMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\025\n\rsuccess_coun" + + "t\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003B\203\002\n#com.g" + + "oogle.cloud.discoveryengine.v1B\020PurgeCon" + + "figProtoP\001ZMcloud.google.com/go/discover" + + "yengine/apiv1/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clo" + + "ud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Dis" + + "coveryEngine\\V1\352\002\"Google::Cloud::Discove" + + "ryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "Force", }); + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor, + new java.lang.String[] { "PurgeCount", "PurgeSample", }); + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java index 725a021e14d7..7613c9e50990 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/purge_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Metadata related to the progress of the PurgeDocuments operation.
  * This will be returned by the google.longrunning.Operation.metadata field.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeDocumentsMetadata}
  */
-public final class PurgeDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PurgeDocumentsMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.PurgeDocumentsMetadata)
     PurgeDocumentsMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PurgeDocumentsMetadata.newBuilder() to construct.
   private PurgeDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private PurgeDocumentsMetadata() {}
+  private PurgeDocumentsMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PurgeDocumentsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.class,
-            com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.Builder.class);
+            com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.class, com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.Builder.class);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -110,15 +84,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -126,15 +97,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -142,8 +110,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.
@@ -159,14 +125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int SUCCESS_COUNT_FIELD_NUMBER = 3;
   private long successCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of entries that were deleted successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -177,14 +140,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 4; private long failureCount_ = 0L; /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -193,7 +153,6 @@ public long getFailureCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -228,16 +188,20 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (successCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); } if (failureCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,24 +211,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.discoveryengine.v1.PurgeDocumentsMetadata)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata other = - (com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata) obj; + com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata other = (com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getSuccessCount() != other.getSuccessCount()) return false; - if (getFailureCount() != other.getFailureCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,113 +252,109 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata 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.discoveryengine.v1.PurgeDocumentsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata 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 PurgeDocuments operation.
    * This will be returned by the google.longrunning.Operation.metadata field.
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeDocumentsMetadata}
    */
-  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.discoveryengine.v1.PurgeDocumentsMetadata)
       com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.class,
-              com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.Builder.class);
+              com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.class, com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -466,11 +430,8 @@ public com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata buildPartial() {
-      com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata result =
-          new com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata result = new com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -478,10 +439,14 @@ public com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata buildPartial()
     private void buildPartial0(com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.successCount_ = successCount_;
@@ -495,39 +460,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.PurgeDocumentsMet
     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.discoveryengine.v1.PurgeDocumentsMetadata) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata other) {
-      if (other == com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -575,37 +538,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                successCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                failureCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              successCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              failureCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -615,52 +577,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -681,15 +629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -700,8 +647,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -710,9 +655,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -725,8 +670,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -744,8 +687,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -758,8 +699,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -770,14 +709,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.
      * 
@@ -785,17 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -803,49 +736,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -867,8 +787,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.
@@ -876,7 +794,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -887,8 +806,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.
@@ -898,9 +815,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -913,8 +830,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.
@@ -933,8 +848,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -948,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -961,14 +872,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.
@@ -977,32 +885,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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_;
     }
 
-    private long successCount_;
+    private long successCount_ ;
     /**
-     *
-     *
      * 
      * Count of entries that were deleted successfully.
      * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -1010,14 +912,11 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
      * Count of entries that were deleted successfully.
      * 
* * int64 success_count = 3; - * * @param value The successCount to set. * @return This builder for chaining. */ @@ -1029,14 +928,11 @@ public Builder setSuccessCount(long value) { return this; } /** - * - * *
      * Count of entries that were deleted successfully.
      * 
* * int64 success_count = 3; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { @@ -1046,16 +942,13 @@ public Builder clearSuccessCount() { return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -1063,14 +956,11 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @param value The failureCount to set. * @return This builder for chaining. */ @@ -1082,14 +972,11 @@ public Builder setFailureCount(long value) { return this; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return This builder for chaining. */ public Builder clearFailureCount() { @@ -1098,9 +985,9 @@ public Builder clearFailureCount() { 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); } @@ -1110,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.PurgeDocumentsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.PurgeDocumentsMetadata) private static final com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata(); } @@ -1124,27 +1011,27 @@ public static com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeDocumentsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,4 +1046,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java index 8d1406f4a293..b77cde395384 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/purge_config.proto package com.google.cloud.discoveryengine.v1; -public interface PurgeDocumentsMetadataOrBuilder - extends +public interface PurgeDocumentsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.PurgeDocumentsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface PurgeDocumentsMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
@@ -97,27 +65,21 @@ public interface PurgeDocumentsMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of entries that were deleted successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ long getFailureCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java index 96141809bb0e..6e6e343e65b2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/purge_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1.DocumentService.PurgeDocuments]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeDocumentsRequest}
  */
-public final class PurgeDocumentsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PurgeDocumentsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.PurgeDocumentsRequest)
     PurgeDocumentsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PurgeDocumentsRequest.newBuilder() to construct.
   private PurgeDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PurgeDocumentsRequest() {
     parent_ = "";
     filter_ = "";
@@ -46,41 +28,34 @@ private PurgeDocumentsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PurgeDocumentsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.class,
-            com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.class, com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 @@ -89,32 +64,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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. Filter matching documents to purge. Only currently supported
    * value is
@@ -136,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -145,15 +114,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. Filter matching documents to purge. Only currently supported
    * value is
@@ -161,15 +129,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 { @@ -180,15 +149,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** - * - * *
    * Actually performs the purge. If `force` is set to false, return the
    * expected purge count without deleting any documents.
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -197,7 +163,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,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_); } @@ -235,7 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,17 +212,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.discoveryengine.v1.PurgeDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest other = - (com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest) obj; + com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest other = (com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,111 +241,106 @@ 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest 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.discoveryengine.v1.PurgeDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest 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
    * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1.DocumentService.PurgeDocuments]
@@ -385,32 +349,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeDocumentsRequest}
    */
-  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.discoveryengine.v1.PurgeDocumentsRequest)
       com.google.cloud.discoveryengine.v1.PurgeDocumentsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.class,
-              com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.class, com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +387,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -443,11 +408,8 @@ public com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest result =
-          new com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest result = new com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -469,39 +431,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.PurgeDocumentsReq
     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.discoveryengine.v1.PurgeDocumentsRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -509,8 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -550,31 +510,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                force_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              force_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -584,28 +540,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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; @@ -614,24 +565,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -639,41 +587,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -683,24 +620,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -710,8 +641,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -719,13 +648,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; @@ -734,8 +663,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -743,14 +670,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 { @@ -758,8 +686,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -767,22 +693,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -790,7 +712,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -800,8 +721,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -809,14 +728,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -824,17 +741,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Actually performs the purge. If `force` is set to false, return the
      * expected purge count without deleting any documents.
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -842,15 +756,12 @@ public boolean getForce() { return force_; } /** - * - * *
      * Actually performs the purge. If `force` is set to false, return the
      * expected purge count without deleting any documents.
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ @@ -862,15 +773,12 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * Actually performs the purge. If `force` is set to false, return the
      * expected purge count without deleting any documents.
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -879,9 +787,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -891,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.PurgeDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.PurgeDocumentsRequest) private static final com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest(); } @@ -905,27 +813,27 @@ public static com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -940,4 +848,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java similarity index 59% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java index 7cfe2c7054ff..885a76c64c0c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/purge_config.proto package com.google.cloud.discoveryengine.v1; -public interface PurgeDocumentsRequestOrBuilder - extends +public interface PurgeDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.PurgeDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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. Filter matching documents to purge. Only currently supported
    * value is
@@ -64,13 +37,10 @@ public interface PurgeDocumentsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. Filter matching documents to purge. Only currently supported
    * value is
@@ -78,21 +48,18 @@ public interface PurgeDocumentsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Actually performs the purge. If `force` is set to false, return the
    * expected purge count without deleting any documents.
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java index 4e10797a9ea4..fbf01bd64bef 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/purge_config.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Response message for
  * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1.DocumentService.PurgeDocuments]
@@ -30,52 +13,48 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeDocumentsResponse}
  */
-public final class PurgeDocumentsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PurgeDocumentsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.PurgeDocumentsResponse)
     PurgeDocumentsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PurgeDocumentsResponse.newBuilder() to construct.
   private PurgeDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PurgeDocumentsResponse() {
-    purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    purgeSample_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PurgeDocumentsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.class,
-            com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.class, com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.Builder.class);
   }
 
   public static final int PURGE_COUNT_FIELD_NUMBER = 1;
   private long purgeCount_ = 0L;
   /**
-   *
-   *
    * 
    * The total count of documents purged as a result of the operation.
    * 
* * int64 purge_count = 1; - * * @return The purgeCount. */ @java.lang.Override @@ -84,13 +63,10 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -98,15 +74,13 @@ public long getPurgeCount() {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return A list containing the purgeSample. */ - public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + public com.google.protobuf.ProtocolStringList + getPurgeSampleList() { return purgeSample_; } /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -114,15 +88,12 @@ public com.google.protobuf.ProtocolStringList getPurgeSampleList() {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return The count of purgeSample. */ public int getPurgeSampleCount() { return purgeSample_.size(); } /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -130,7 +101,6 @@ public int getPurgeSampleCount() {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The purgeSample at the given index. */ @@ -138,8 +108,6 @@ public java.lang.String getPurgeSample(int index) { return purgeSample_.get(index); } /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -147,16 +115,15 @@ public java.lang.String getPurgeSample(int index) {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the purgeSample at the given index. */ - public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + public com.google.protobuf.ByteString + getPurgeSampleBytes(int index) { return purgeSample_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,7 +135,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 (purgeCount_ != 0L) { output.writeInt64(1, purgeCount_); } @@ -185,7 +153,8 @@ public int getSerializedSize() { size = 0; if (purgeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, purgeCount_); } { int dataSize = 0; @@ -203,16 +172,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.discoveryengine.v1.PurgeDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse other = - (com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse) obj; + com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse other = (com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse) obj; - if (getPurgeCount() != other.getPurgeCount()) return false; - if (!getPurgeSampleList().equals(other.getPurgeSampleList())) return false; + if (getPurgeCount() + != other.getPurgeCount()) return false; + if (!getPurgeSampleList() + .equals(other.getPurgeSampleList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +195,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPurgeCount()); if (getPurgeSampleCount() > 0) { hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getPurgeSampleList().hashCode(); @@ -236,104 +207,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse 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.discoveryengine.v1.PurgeDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse 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
    * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1.DocumentService.PurgeDocuments]
@@ -343,45 +308,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeDocumentsResponse}
    */
-  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.discoveryengine.v1.PurgeDocumentsResponse)
       com.google.cloud.discoveryengine.v1.PurgeDocumentsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.class,
-              com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.class, com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       purgeCount_ = 0L;
-      purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      purgeSample_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1_PurgeDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -400,11 +367,8 @@ public com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse result =
-          new com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse result = new com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -424,39 +388,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.PurgeDocumentsRes
     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.discoveryengine.v1.PurgeDocumentsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -464,8 +427,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse.getDefaultInstance()) return this;
       if (other.getPurgeCount() != 0L) {
         setPurgeCount(other.getPurgeCount());
       }
@@ -505,26 +467,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                purgeCount_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePurgeSampleIsMutable();
-                purgeSample_.add(s);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              purgeCount_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePurgeSampleIsMutable();
+              purgeSample_.add(s);
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -534,19 +493,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long purgeCount_;
+    private long purgeCount_ ;
     /**
-     *
-     *
      * 
      * The total count of documents purged as a result of the operation.
      * 
* * int64 purge_count = 1; - * * @return The purgeCount. */ @java.lang.Override @@ -554,14 +509,11 @@ public long getPurgeCount() { return purgeCount_; } /** - * - * *
      * The total count of documents purged as a result of the operation.
      * 
* * int64 purge_count = 1; - * * @param value The purgeCount to set. * @return This builder for chaining. */ @@ -573,14 +525,11 @@ public Builder setPurgeCount(long value) { return this; } /** - * - * *
      * The total count of documents purged as a result of the operation.
      * 
* * int64 purge_count = 1; - * * @return This builder for chaining. */ public Builder clearPurgeCount() { @@ -592,7 +541,6 @@ public Builder clearPurgeCount() { private com.google.protobuf.LazyStringArrayList purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePurgeSampleIsMutable() { if (!purgeSample_.isModifiable()) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); @@ -600,8 +548,6 @@ private void ensurePurgeSampleIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -609,16 +555,14 @@ private void ensurePurgeSampleIsMutable() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return A list containing the purgeSample. */ - public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + public com.google.protobuf.ProtocolStringList + getPurgeSampleList() { purgeSample_.makeImmutable(); return purgeSample_; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -626,15 +570,12 @@ public com.google.protobuf.ProtocolStringList getPurgeSampleList() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return The count of purgeSample. */ public int getPurgeSampleCount() { return purgeSample_.size(); } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -642,7 +583,6 @@ public int getPurgeSampleCount() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The purgeSample at the given index. */ @@ -650,8 +590,6 @@ public java.lang.String getPurgeSample(int index) { return purgeSample_.get(index); } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -659,16 +597,14 @@ public java.lang.String getPurgeSample(int index) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the purgeSample at the given index. */ - public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + public com.google.protobuf.ByteString + getPurgeSampleBytes(int index) { return purgeSample_.getByteString(index); } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -676,15 +612,13 @@ public com.google.protobuf.ByteString getPurgeSampleBytes(int index) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The purgeSample to set. * @return This builder for chaining. */ - public Builder setPurgeSample(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPurgeSample( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePurgeSampleIsMutable(); purgeSample_.set(index, value); bitField0_ |= 0x00000002; @@ -692,8 +626,6 @@ public Builder setPurgeSample(int index, java.lang.String value) { return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -701,14 +633,12 @@ public Builder setPurgeSample(int index, java.lang.String value) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param value The purgeSample to add. * @return This builder for chaining. */ - public Builder addPurgeSample(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPurgeSample( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePurgeSampleIsMutable(); purgeSample_.add(value); bitField0_ |= 0x00000002; @@ -716,8 +646,6 @@ public Builder addPurgeSample(java.lang.String value) { return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -725,20 +653,19 @@ public Builder addPurgeSample(java.lang.String value) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param values The purgeSample to add. * @return This builder for chaining. */ - public Builder addAllPurgeSample(java.lang.Iterable values) { + public Builder addAllPurgeSample( + java.lang.Iterable values) { ensurePurgeSampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, purgeSample_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -746,19 +673,16 @@ public Builder addAllPurgeSample(java.lang.Iterable values) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPurgeSample() { - purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -766,14 +690,12 @@ public Builder clearPurgeSample() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the purgeSample to add. * @return This builder for chaining. */ - public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPurgeSampleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePurgeSampleIsMutable(); purgeSample_.add(value); @@ -781,9 +703,9 @@ public Builder addPurgeSampleBytes(com.google.protobuf.ByteString 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); } @@ -793,12 +715,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.PurgeDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.PurgeDocumentsResponse) private static final com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse(); } @@ -807,27 +729,27 @@ public static com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -842,4 +764,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java index afbc1da019f0..e807e5894652 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeDocumentsResponseOrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/purge_config.proto package com.google.cloud.discoveryengine.v1; -public interface PurgeDocumentsResponseOrBuilder - extends +public interface PurgeDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.PurgeDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The total count of documents purged as a result of the operation.
    * 
* * int64 purge_count = 1; - * * @return The purgeCount. */ long getPurgeCount(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -46,13 +25,11 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return A list containing the purgeSample. */ - java.util.List getPurgeSampleList(); + java.util.List + getPurgeSampleList(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -60,13 +37,10 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return The count of purgeSample. */ int getPurgeSampleCount(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -74,14 +48,11 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The purgeSample at the given index. */ java.lang.String getPurgeSample(int index); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -89,9 +60,9 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the purgeSample at the given index. */ - com.google.protobuf.ByteString getPurgeSampleBytes(int index); + com.google.protobuf.ByteString + getPurgeSampleBytes(int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java similarity index 66% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java index 09a4265269a1..230a887e5001 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Reply.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Defines a reply message to user.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Reply} */ -public final class Reply extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Reply extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Reply) ReplyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Reply.newBuilder() to construct. private Reply(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Reply() {} + private Reply() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Reply(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Reply.class, - com.google.cloud.discoveryengine.v1.Reply.Builder.class); + com.google.cloud.discoveryengine.v1.Reply.class, com.google.cloud.discoveryengine.v1.Reply.Builder.class); } public static final int SUMMARY_FIELD_NUMBER = 3; private com.google.cloud.discoveryengine.v1.SearchResponse.Summary summary_; /** - * - * *
    * Summary based on search results.
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * * @return Whether the summary field is set. */ @java.lang.Override @@ -78,25 +57,18 @@ public boolean hasSummary() { return summary_ != null; } /** - * - * *
    * Summary based on search results.
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * * @return The summary. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary() { - return summary_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_; } /** - * - * *
    * Summary based on search results.
    * 
@@ -105,13 +77,10 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { - return summary_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,7 +92,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 (summary_ != null) { output.writeMessage(3, getSummary()); } @@ -137,7 +107,8 @@ public int getSerializedSize() { size = 0; if (summary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSummary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSummary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,17 +118,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.discoveryengine.v1.Reply)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.Reply other = - (com.google.cloud.discoveryengine.v1.Reply) obj; + com.google.cloud.discoveryengine.v1.Reply other = (com.google.cloud.discoveryengine.v1.Reply) obj; if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { - if (!getSummary().equals(other.getSummary())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -179,136 +150,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.Reply parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.Reply parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Reply 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.discoveryengine.v1.Reply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Reply parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Reply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Reply 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.discoveryengine.v1.Reply parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Reply 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.discoveryengine.v1.Reply parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Reply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.Reply 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.discoveryengine.v1.Reply 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.discoveryengine.v1.Reply 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.discoveryengine.v1.Reply 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; } /** - * - * *
    * Defines a reply message to user.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Reply} */ - 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.discoveryengine.v1.Reply) com.google.cloud.discoveryengine.v1.ReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Reply_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Reply.class, - com.google.cloud.discoveryengine.v1.Reply.Builder.class); + com.google.cloud.discoveryengine.v1.Reply.class, com.google.cloud.discoveryengine.v1.Reply.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.Reply.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_Reply_descriptor; } @java.lang.Override @@ -343,11 +310,8 @@ public com.google.cloud.discoveryengine.v1.Reply build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.Reply buildPartial() { - com.google.cloud.discoveryengine.v1.Reply result = - new com.google.cloud.discoveryengine.v1.Reply(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.Reply result = new com.google.cloud.discoveryengine.v1.Reply(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -355,7 +319,9 @@ public com.google.cloud.discoveryengine.v1.Reply buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.Reply result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build(); + result.summary_ = summaryBuilder_ == null + ? summary_ + : summaryBuilder_.build(); } } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Reply result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.Reply) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Reply) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.Reply)other); } else { super.mergeFrom(other); return this; @@ -433,19 +398,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 26: - { - input.readMessage(getSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 26: { + input.readMessage( + getSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,52 +420,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.discoveryengine.v1.SearchResponse.Summary summary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> - summaryBuilder_; + com.google.cloud.discoveryengine.v1.SearchResponse.Summary, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> summaryBuilder_; /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * * @return Whether the summary field is set. */ public boolean hasSummary() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * * @return The summary. */ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary() { if (summaryBuilder_ == null) { - return summary_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_; } else { return summaryBuilder_.getMessage(); } } /** - * - * *
      * Summary based on search results.
      * 
@@ -521,8 +472,6 @@ public Builder setSummary(com.google.cloud.discoveryengine.v1.SearchResponse.Sum return this; } /** - * - * *
      * Summary based on search results.
      * 
@@ -541,8 +490,6 @@ public Builder setSummary( return this; } /** - * - * *
      * Summary based on search results.
      * 
@@ -551,11 +498,9 @@ public Builder setSummary( */ public Builder mergeSummary(com.google.cloud.discoveryengine.v1.SearchResponse.Summary value) { if (summaryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && summary_ != null - && summary_ - != com.google.cloud.discoveryengine.v1.SearchResponse.Summary - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + summary_ != null && + summary_ != com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance()) { getSummaryBuilder().mergeFrom(value); } else { summary_ = value; @@ -568,8 +513,6 @@ public Builder mergeSummary(com.google.cloud.discoveryengine.v1.SearchResponse.S return this; } /** - * - * *
      * Summary based on search results.
      * 
@@ -587,8 +530,6 @@ public Builder clearSummary() { return this; } /** - * - * *
      * Summary based on search results.
      * 
@@ -601,27 +542,21 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder getSum return getSummaryFieldBuilder().getBuilder(); } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder - getSummaryOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { if (summaryBuilder_ != null) { return summaryBuilder_.getMessageOrBuilder(); } else { - return summary_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_; } } /** - * - * *
      * Summary based on search results.
      * 
@@ -629,24 +564,21 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder getSum * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.Summary, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> getSummaryFieldBuilder() { if (summaryBuilder_ == null) { - summaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder>( - getSummary(), getParentForChildren(), isClean()); + summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.Summary, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder>( + getSummary(), + getParentForChildren(), + isClean()); summary_ = null; } return summaryBuilder_; } - @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); } @@ -656,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Reply) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Reply) private static final com.google.cloud.discoveryengine.v1.Reply DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Reply(); } @@ -670,27 +602,27 @@ public static com.google.cloud.discoveryengine.v1.Reply getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -705,4 +637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.Reply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java similarity index 61% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java index fd61a12982ef..5bce1968f732 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ReplyOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; -public interface ReplyOrBuilder - extends +public interface ReplyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Reply) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Summary based on search results.
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * * @return Whether the summary field is set. */ boolean hasSummary(); /** - * - * *
    * Summary based on search results.
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * * @return The summary. */ com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary(); /** - * - * *
    * Summary based on search results.
    * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java index 37de7ea36af3..68fe60db3be4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Schema.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Defines the structure and layout of a type of document data.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Schema} */ -public final class Schema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Schema) SchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Schema() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schema(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaProto - .internal_static_google_cloud_discoveryengine_v1_Schema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaProto.internal_static_google_cloud_discoveryengine_v1_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaProto - .internal_static_google_cloud_discoveryengine_v1_Schema_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaProto.internal_static_google_cloud_discoveryengine_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Schema.class, - com.google.cloud.discoveryengine.v1.Schema.Builder.class); + com.google.cloud.discoveryengine.v1.Schema.class, com.google.cloud.discoveryengine.v1.Schema.Builder.class); } private int schemaCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object schema_; - public enum SchemaCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRUCT_SCHEMA(2), JSON_SCHEMA(3), SCHEMA_NOT_SET(0); private final int value; - private SchemaCase(int value) { this.value = value; } @@ -91,36 +68,30 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 2: - return STRUCT_SCHEMA; - case 3: - return JSON_SCHEMA; - case 0: - return SCHEMA_NOT_SET; - default: - return null; + case 2: return STRUCT_SCHEMA; + case 3: return JSON_SCHEMA; + case 0: return SCHEMA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public static final int STRUCT_SCHEMA_FIELD_NUMBER = 2; /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return Whether the structSchema field is set. */ @java.lang.Override @@ -128,26 +99,21 @@ public boolean hasStructSchema() { return schemaCase_ == 2; } /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return The structSchema. */ @java.lang.Override public com.google.protobuf.Struct getStructSchema() { if (schemaCase_ == 2) { - return (com.google.protobuf.Struct) schema_; + return (com.google.protobuf.Struct) schema_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** - * - * *
    * The structured representation of the schema.
    * 
@@ -157,35 +123,29 @@ public com.google.protobuf.Struct getStructSchema() { @java.lang.Override public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { if (schemaCase_ == 2) { - return (com.google.protobuf.Struct) schema_; + return (com.google.protobuf.Struct) schema_; } return com.google.protobuf.Struct.getDefaultInstance(); } public static final int JSON_SCHEMA_FIELD_NUMBER = 3; /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return Whether the jsonSchema field is set. */ public boolean hasJsonSchema() { return schemaCase_ == 3; } /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The jsonSchema. */ public java.lang.String getJsonSchema() { @@ -196,7 +156,8 @@ public java.lang.String getJsonSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (schemaCase_ == 3) { schema_ = s; @@ -205,24 +166,23 @@ public java.lang.String getJsonSchema() { } } /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The bytes for jsonSchema. */ - public com.google.protobuf.ByteString getJsonSchemaBytes() { + public com.google.protobuf.ByteString + getJsonSchemaBytes() { java.lang.Object ref = ""; if (schemaCase_ == 3) { ref = schema_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (schemaCase_ == 3) { schema_ = b; } @@ -233,12 +193,9 @@ public com.google.protobuf.ByteString getJsonSchemaBytes() { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -248,7 +205,6 @@ public com.google.protobuf.ByteString getJsonSchemaBytes() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -257,15 +213,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; } } /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -275,15 +230,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -292,7 +248,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,7 +259,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_); } @@ -327,9 +283,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (schemaCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Struct) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Struct) schema_); } if (schemaCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); @@ -342,22 +297,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.discoveryengine.v1.Schema)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.Schema other = - (com.google.cloud.discoveryengine.v1.Schema) obj; + com.google.cloud.discoveryengine.v1.Schema other = (com.google.cloud.discoveryengine.v1.Schema) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 2: - if (!getStructSchema().equals(other.getStructSchema())) return false; + if (!getStructSchema() + .equals(other.getStructSchema())) return false; break; case 3: - if (!getJsonSchema().equals(other.getJsonSchema())) return false; + if (!getJsonSchema() + .equals(other.getJsonSchema())) return false; break; case 0: default: @@ -392,136 +349,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.Schema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.Schema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Schema 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.discoveryengine.v1.Schema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Schema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Schema 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.discoveryengine.v1.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Schema 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.discoveryengine.v1.Schema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.Schema 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.discoveryengine.v1.Schema 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.discoveryengine.v1.Schema 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.discoveryengine.v1.Schema 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; } /** - * - * *
    * Defines the structure and layout of a type of document data.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.Schema} */ - 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.discoveryengine.v1.Schema) com.google.cloud.discoveryengine.v1.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaProto - .internal_static_google_cloud_discoveryengine_v1_Schema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaProto.internal_static_google_cloud_discoveryengine_v1_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaProto - .internal_static_google_cloud_discoveryengine_v1_Schema_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaProto.internal_static_google_cloud_discoveryengine_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Schema.class, - com.google.cloud.discoveryengine.v1.Schema.Builder.class); + com.google.cloud.discoveryengine.v1.Schema.class, com.google.cloud.discoveryengine.v1.Schema.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.Schema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SchemaProto - .internal_static_google_cloud_discoveryengine_v1_Schema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SchemaProto.internal_static_google_cloud_discoveryengine_v1_Schema_descriptor; } @java.lang.Override @@ -557,11 +510,8 @@ public com.google.cloud.discoveryengine.v1.Schema build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.Schema buildPartial() { - com.google.cloud.discoveryengine.v1.Schema result = - new com.google.cloud.discoveryengine.v1.Schema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.Schema result = new com.google.cloud.discoveryengine.v1.Schema(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -577,7 +527,8 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Schema result) { private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Schema result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 2 && structSchemaBuilder_ != null) { + if (schemaCase_ == 2 && + structSchemaBuilder_ != null) { result.schema_ = structSchemaBuilder_.build(); } } @@ -586,39 +537,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Schema resul 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.discoveryengine.v1.Schema) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Schema) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.Schema)other); } else { super.mergeFrom(other); return this; @@ -633,22 +583,19 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Schema other) { onChanged(); } switch (other.getSchemaCase()) { - case STRUCT_SCHEMA: - { - mergeStructSchema(other.getStructSchema()); - break; - } - case JSON_SCHEMA: - { - schemaCase_ = 3; - schema_ = other.schema_; - onChanged(); - break; - } - case SCHEMA_NOT_SET: - { - break; - } + case STRUCT_SCHEMA: { + mergeStructSchema(other.getStructSchema()); + break; + } + case JSON_SCHEMA: { + schemaCase_ = 3; + schema_ = other.schema_; + onChanged(); + break; + } + case SCHEMA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -676,32 +623,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - input.readMessage(getStructSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 2; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - schemaCase_ = 3; - schema_ = s; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + input.readMessage( + getStructSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + schemaCase_ = 3; + schema_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,12 +656,12 @@ public Builder mergeFrom( } // finally return this; } - private int schemaCase_ = 0; private java.lang.Object schema_; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public Builder clearSchema() { @@ -729,19 +674,13 @@ public Builder clearSchema() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structSchemaBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structSchemaBuilder_; /** - * - * *
      * The structured representation of the schema.
      * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return Whether the structSchema field is set. */ @java.lang.Override @@ -749,14 +688,11 @@ public boolean hasStructSchema() { return schemaCase_ == 2; } /** - * - * *
      * The structured representation of the schema.
      * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return The structSchema. */ @java.lang.Override @@ -774,8 +710,6 @@ public com.google.protobuf.Struct getStructSchema() { } } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -796,15 +730,14 @@ public Builder setStructSchema(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * The structured representation of the schema.
      * 
* * .google.protobuf.Struct struct_schema = 2; */ - public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setStructSchema( + com.google.protobuf.Struct.Builder builderForValue) { if (structSchemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -815,8 +748,6 @@ public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValu return this; } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -825,11 +756,10 @@ public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValu */ public Builder mergeStructSchema(com.google.protobuf.Struct value) { if (structSchemaBuilder_ == null) { - if (schemaCase_ == 2 && schema_ != com.google.protobuf.Struct.getDefaultInstance()) { - schema_ = - com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 2 && + schema_ != com.google.protobuf.Struct.getDefaultInstance()) { + schema_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -845,8 +775,6 @@ public Builder mergeStructSchema(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -870,8 +798,6 @@ public Builder clearStructSchema() { return this; } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -882,8 +808,6 @@ public com.google.protobuf.Struct.Builder getStructSchemaBuilder() { return getStructSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -902,8 +826,6 @@ public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { } } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -911,20 +833,17 @@ public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { * .google.protobuf.Struct struct_schema = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getStructSchemaFieldBuilder() { if (structSchemaBuilder_ == null) { if (!(schemaCase_ == 2)) { schema_ = com.google.protobuf.Struct.getDefaultInstance(); } - structSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) schema_, getParentForChildren(), isClean()); + structSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) schema_, + getParentForChildren(), + isClean()); schema_ = null; } schemaCase_ = 2; @@ -933,14 +852,11 @@ public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return Whether the jsonSchema field is set. */ @java.lang.Override @@ -948,14 +864,11 @@ public boolean hasJsonSchema() { return schemaCase_ == 3; } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return The jsonSchema. */ @java.lang.Override @@ -965,7 +878,8 @@ public java.lang.String getJsonSchema() { ref = schema_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (schemaCase_ == 3) { schema_ = s; @@ -976,25 +890,24 @@ public java.lang.String getJsonSchema() { } } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return The bytes for jsonSchema. */ @java.lang.Override - public com.google.protobuf.ByteString getJsonSchemaBytes() { + public com.google.protobuf.ByteString + getJsonSchemaBytes() { java.lang.Object ref = ""; if (schemaCase_ == 3) { ref = schema_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (schemaCase_ == 3) { schema_ = b; } @@ -1004,35 +917,28 @@ public com.google.protobuf.ByteString getJsonSchemaBytes() { } } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @param value The jsonSchema to set. * @return This builder for chaining. */ - public Builder setJsonSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaCase_ = 3; schema_ = value; onChanged(); return this; } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return This builder for chaining. */ public Builder clearJsonSchema() { @@ -1044,21 +950,17 @@ public Builder clearJsonSchema() { return this; } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @param value The bytes for jsonSchema to set. * @return This builder for chaining. */ - public Builder setJsonSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaCase_ = 3; schema_ = value; @@ -1068,8 +970,6 @@ public Builder setJsonSchemaBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1079,13 +979,13 @@ public Builder setJsonSchemaBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1094,8 +994,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1105,14 +1003,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1120,8 +1019,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1131,22 +1028,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1156,7 +1049,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1166,8 +1058,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1177,23 +1067,21 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1203,12 +1091,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Schema) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Schema) private static final com.google.cloud.discoveryengine.v1.Schema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Schema(); } @@ -1217,27 +1105,27 @@ public static com.google.cloud.discoveryengine.v1.Schema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1252,4 +1140,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java similarity index 74% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java index 0f82d76ae9b6..2da7b82230ac 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema.proto package com.google.cloud.discoveryengine.v1; -public interface SchemaOrBuilder - extends +public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Schema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return Whether the structSchema field is set. */ boolean hasStructSchema(); /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return The structSchema. */ com.google.protobuf.Struct getStructSchema(); /** - * - * *
    * The structured representation of the schema.
    * 
@@ -59,45 +35,35 @@ public interface SchemaOrBuilder com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder(); /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return Whether the jsonSchema field is set. */ boolean hasJsonSchema(); /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The jsonSchema. */ java.lang.String getJsonSchema(); /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The bytes for jsonSchema. */ - com.google.protobuf.ByteString getJsonSchemaBytes(); + com.google.protobuf.ByteString + getJsonSchemaBytes(); /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -107,13 +73,10 @@ public interface SchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -123,10 +86,10 @@ public interface SchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); com.google.cloud.discoveryengine.v1.Schema.SchemaCase getSchemaCase(); } diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java new file mode 100644 index 000000000000..1da2736673cf --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/schema.proto + +package com.google.cloud.discoveryengine.v1; + +public final class SchemaProto { + private SchemaProto() {} + 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_discoveryengine_v1_Schema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Schema_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/discoveryengine/v1/schema" + + ".proto\022\037google.cloud.discoveryengine.v1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\034google/protobuf/str" + + "uct.proto\"\332\002\n\006Schema\0220\n\rstruct_schema\030\002 " + + "\001(\0132\027.google.protobuf.StructH\000\022\025\n\013json_s" + + "chema\030\003 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\005:\350\001\352A\344\001" + + "\n%discoveryengine.googleapis.com/Schema\022" + + "Pprojects/{project}/locations/{location}" + + "/dataStores/{data_store}/schemas/{schema" + + "}\022iprojects/{project}/locations/{locatio" + + "n}/collections/{collection}/dataStores/{" + + "data_store}/schemas/{schema}B\010\n\006schemaB\376" + + "\001\n#com.google.cloud.discoveryengine.v1B\013" + + "SchemaProtoP\001ZMcloud.google.com/go/disco" + + "veryengine/apiv1/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google." + + "Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\" + + "DiscoveryEngine\\V1\352\002\"Google::Cloud::Disc" + + "overyEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_Schema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Schema_descriptor, + new java.lang.String[] { "StructSchema", "JsonSchema", "Name", "Schema", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java new file mode 100644 index 000000000000..bd392630dec5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java @@ -0,0 +1,245 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/schema_service.proto + +package com.google.cloud.discoveryengine.v1; + +public final class SchemaServiceProto { + private SchemaServiceProto() {} + 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_discoveryengine_v1_GetSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/discoveryengine/v1/schema" + + "_service.proto\022\037google.cloud.discoveryen" + + "gine.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032,google/cloud/discoveryengine/v1/sche" + + "ma.proto\032#google/longrunning/operations." + + "proto\032\033google/protobuf/empty.proto\032\037goog" + + "le/protobuf/timestamp.proto\"P\n\020GetSchema" + + "Request\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%discover" + + "yengine.googleapis.com/Schema\"~\n\022ListSch" + + "emasRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(di" + + "scoveryengine.googleapis.com/DataStore\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n" + + "\023ListSchemasResponse\0228\n\007schemas\030\001 \003(\0132\'." + + "google.cloud.discoveryengine.v1.Schema\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\260\001\n\023CreateSchema" + + "Request\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discov" + + "eryengine.googleapis.com/DataStore\022=\n\006sc" + + "hema\030\002 \001(\0132\'.google.cloud.discoveryengin" + + "e.v1.SchemaB\004\342A\001\002\022\027\n\tschema_id\030\003 \001(\tB\004\342A" + + "\001\002\"k\n\023UpdateSchemaRequest\022=\n\006schema\030\001 \001(" + + "\0132\'.google.cloud.discoveryengine.v1.Sche" + + "maB\004\342A\001\002\022\025\n\rallow_missing\030\003 \001(\010\"S\n\023Delet" + + "eSchemaRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%d" + + "iscoveryengine.googleapis.com/Schema\"x\n\024" + + "CreateSchemaMetadata\022/\n\013create_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"x" + + "\n\024UpdateSchemaMetadata\022/\n\013create_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\"x\n\024DeleteSchemaMetadata\022/\n\013create_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp2\261\r\n\rSchemaService\022\374\001\n\tGetSchema\0221.goo" + + "gle.cloud.discoveryengine.v1.GetSchemaRe" + + "quest\032\'.google.cloud.discoveryengine.v1." + + "Schema\"\222\001\332A\004name\202\323\344\223\002\204\001\0228/v1/{name=proje" + + "cts/*/locations/*/dataStores/*/schemas/*" + + "}ZH\022F/v1/{name=projects/*/locations/*/co" + + "llections/*/dataStores/*/schemas/*}\022\217\002\n\013" + + "ListSchemas\0223.google.cloud.discoveryengi" + + "ne.v1.ListSchemasRequest\0324.google.cloud." + + "discoveryengine.v1.ListSchemasResponse\"\224" + + "\001\332A\006parent\202\323\344\223\002\204\001\0228/v1/{parent=projects/" + + "*/locations/*/dataStores/*}/schemasZH\022F/" + + "v1/{parent=projects/*/locations/*/collec" + + "tions/*/dataStores/*}/schemas\022\374\002\n\014Create" + + "Schema\0224.google.cloud.discoveryengine.v1" + + ".CreateSchemaRequest\032\035.google.longrunnin" + + "g.Operation\"\226\002\312A^\n&google.cloud.discover" + + "yengine.v1.Schema\0224google.cloud.discover" + + "yengine.v1.CreateSchemaMetadata\332A\027parent" + + ",schema,schema_id\202\323\344\223\002\224\001\"8/v1/{parent=pr" + + "ojects/*/locations/*/dataStores/*}/schem" + + "as:\006schemaZP\"F/v1/{parent=projects/*/loc" + + "ations/*/collections/*/dataStores/*}/sch" + + "emas:\006schema\022\360\002\n\014UpdateSchema\0224.google.c" + + "loud.discoveryengine.v1.UpdateSchemaRequ" + + "est\032\035.google.longrunning.Operation\"\212\002\312A^" + + "\n&google.cloud.discoveryengine.v1.Schema" + + "\0224google.cloud.discoveryengine.v1.Update" + + "SchemaMetadata\202\323\344\223\002\242\0012?/v1/{schema.name=" + + "projects/*/locations/*/dataStores/*/sche" + + "mas/*}:\006schemaZW2M/v1/{schema.name=proje" + + "cts/*/locations/*/collections/*/dataStor" + + "es/*/schemas/*}:\006schema\022\310\002\n\014DeleteSchema" + + "\0224.google.cloud.discoveryengine.v1.Delet" + + "eSchemaRequest\032\035.google.longrunning.Oper" + + "ation\"\342\001\312AM\n\025google.protobuf.Empty\0224goog" + + "le.cloud.discoveryengine.v1.DeleteSchema" + + "Metadata\332A\004name\202\323\344\223\002\204\001*8/v1/{name=projec" + + "ts/*/locations/*/dataStores/*/schemas/*}" + + "ZH*F/v1/{name=projects/*/locations/*/col" + + "lections/*/dataStores/*/schemas/*}\032R\312A\036d" + + "iscoveryengine.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\205" + + "\002\n#com.google.cloud.discoveryengine.v1B\022" + + "SchemaServiceProtoP\001ZMcloud.google.com/g" + + "o/discoveryengine/apiv1/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037" + + "Google.Cloud.DiscoveryEngine.V1\312\002\037Google" + + "\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Clou" + + "d::DiscoveryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.SchemaProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListSchemasRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListSchemasResponse_descriptor, + new java.lang.String[] { "Schemas", "NextPageToken", }); + internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CreateSchemaRequest_descriptor, + new java.lang.String[] { "Parent", "Schema", "SchemaId", }); + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor, + new java.lang.String[] { "Schema", "AllowMissing", }); + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CreateSchemaMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteSchemaMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", }); + 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.discoveryengine.v1.SchemaProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java similarity index 77% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java index 634bf47e8032..90bd5485c571 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Detailed search information.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchInfo} */ -public final class SearchInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchInfo) SearchInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchInfo.newBuilder() to construct. private SearchInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchInfo() { searchQuery_ = ""; orderBy_ = ""; @@ -44,33 +26,29 @@ private SearchInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchInfo.class, - com.google.cloud.discoveryengine.v1.SearchInfo.Builder.class); + com.google.cloud.discoveryengine.v1.SearchInfo.class, com.google.cloud.discoveryengine.v1.SearchInfo.Builder.class); } private int bitField0_; public static final int SEARCH_QUERY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object searchQuery_ = ""; /** - * - * *
    * The user's search query.
    *
@@ -89,7 +67,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string search_query = 1; - * * @return The searchQuery. */ @java.lang.Override @@ -98,15 +75,14 @@ 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; } } /** - * - * *
    * The user's search query.
    *
@@ -125,15 +101,16 @@ public java.lang.String getSearchQuery() {
    * 
* * 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 { @@ -142,12 +119,9 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -163,7 +137,6 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
    * 
* * string order_by = 2; - * * @return The orderBy. */ @java.lang.Override @@ -172,15 +145,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -196,15 +168,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 2; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -215,8 +188,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int OFFSET_FIELD_NUMBER = 3; private int offset_ = 0; /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -232,7 +203,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * optional int32 offset = 3; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -240,8 +210,6 @@ public boolean hasOffset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -257,7 +225,6 @@ public boolean hasOffset() {
    * 
* * optional int32 offset = 3; - * * @return The offset. */ @java.lang.Override @@ -266,7 +233,6 @@ public int getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +244,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_); } @@ -304,7 +271,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderBy_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -314,19 +282,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.discoveryengine.v1.SearchInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchInfo other = - (com.google.cloud.discoveryengine.v1.SearchInfo) obj; + com.google.cloud.discoveryengine.v1.SearchInfo other = (com.google.cloud.discoveryengine.v1.SearchInfo) obj; - if (!getSearchQuery().equals(other.getSearchQuery())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getSearchQuery() + .equals(other.getSearchQuery())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -352,136 +322,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.SearchInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.SearchInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchInfo 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.discoveryengine.v1.SearchInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchInfo 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.discoveryengine.v1.SearchInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchInfo 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.discoveryengine.v1.SearchInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchInfo 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.discoveryengine.v1.SearchInfo 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.discoveryengine.v1.SearchInfo 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.discoveryengine.v1.SearchInfo 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 search information.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchInfo} */ - 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.discoveryengine.v1.SearchInfo) com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchInfo.class, - com.google.cloud.discoveryengine.v1.SearchInfo.Builder.class); + com.google.cloud.discoveryengine.v1.SearchInfo.class, com.google.cloud.discoveryengine.v1.SearchInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.SearchInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; } @java.lang.Override @@ -514,11 +480,8 @@ public com.google.cloud.discoveryengine.v1.SearchInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchInfo buildPartial() { - com.google.cloud.discoveryengine.v1.SearchInfo result = - new com.google.cloud.discoveryengine.v1.SearchInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchInfo result = new com.google.cloud.discoveryengine.v1.SearchInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -543,39 +506,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchInfo result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.SearchInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchInfo)other); } else { super.mergeFrom(other); return this; @@ -623,31 +585,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - searchQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - offset_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + searchQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + offset_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -657,13 +615,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object searchQuery_ = ""; /** - * - * *
      * The user's search query.
      *
@@ -682,13 +637,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -697,8 +652,6 @@ public java.lang.String getSearchQuery() { } } /** - * - * *
      * The user's search query.
      *
@@ -717,14 +670,15 @@ public java.lang.String getSearchQuery() {
      * 
* * 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 { @@ -732,8 +686,6 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { } } /** - * - * *
      * The user's search query.
      *
@@ -752,22 +704,18 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
      * 
* * string search_query = 1; - * * @param value The searchQuery to set. * @return This builder for chaining. */ - public Builder setSearchQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } searchQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The user's search query.
      *
@@ -786,7 +734,6 @@ public Builder setSearchQuery(java.lang.String value) {
      * 
* * string search_query = 1; - * * @return This builder for chaining. */ public Builder clearSearchQuery() { @@ -796,8 +743,6 @@ public Builder clearSearchQuery() { return this; } /** - * - * *
      * The user's search query.
      *
@@ -816,14 +761,12 @@ public Builder clearSearchQuery() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); searchQuery_ = value; bitField0_ |= 0x00000001; @@ -833,8 +776,6 @@ public Builder setSearchQueryBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -850,13 +791,13 @@ public Builder setSearchQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 2; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -865,8 +806,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -882,14 +821,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 2; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -897,8 +837,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -914,22 +852,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 2; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -945,7 +879,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 2; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -955,8 +888,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -972,14 +903,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 2; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000002; @@ -987,10 +916,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private int offset_; + private int offset_ ; /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1006,7 +933,6 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int32 offset = 3; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -1014,8 +940,6 @@ public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1031,7 +955,6 @@ public boolean hasOffset() {
      * 
* * optional int32 offset = 3; - * * @return The offset. */ @java.lang.Override @@ -1039,8 +962,6 @@ public int getOffset() { return offset_; } /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1056,7 +977,6 @@ public int getOffset() {
      * 
* * optional int32 offset = 3; - * * @param value The offset to set. * @return This builder for chaining. */ @@ -1068,8 +988,6 @@ public Builder setOffset(int value) { return this; } /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1085,7 +1003,6 @@ public Builder setOffset(int value) {
      * 
* * optional int32 offset = 3; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -1094,9 +1011,9 @@ public Builder clearOffset() { 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); } @@ -1106,12 +1023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchInfo) private static final com.google.cloud.discoveryengine.v1.SearchInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchInfo(); } @@ -1120,27 +1037,27 @@ public static com.google.cloud.discoveryengine.v1.SearchInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,4 +1072,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.SearchInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java similarity index 83% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java index 36173caaa92f..3970e444298c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface SearchInfoOrBuilder - extends +public interface SearchInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user's search query.
    *
@@ -44,13 +26,10 @@ public interface SearchInfoOrBuilder
    * 
* * string search_query = 1; - * * @return The searchQuery. */ java.lang.String getSearchQuery(); /** - * - * *
    * The user's search query.
    *
@@ -69,14 +48,12 @@ public interface SearchInfoOrBuilder
    * 
* * string search_query = 1; - * * @return The bytes for searchQuery. */ - com.google.protobuf.ByteString getSearchQueryBytes(); + com.google.protobuf.ByteString + getSearchQueryBytes(); /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -92,13 +69,10 @@ public interface SearchInfoOrBuilder
    * 
* * string order_by = 2; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -114,14 +88,12 @@ public interface SearchInfoOrBuilder
    * 
* * string order_by = 2; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -137,13 +109,10 @@ public interface SearchInfoOrBuilder
    * 
* * optional int32 offset = 3; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -159,7 +128,6 @@ public interface SearchInfoOrBuilder
    * 
* * optional int32 offset = 3; - * * @return The offset. */ int getOffset(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java index 93eb842f4a88..2c7b176b82b1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for
  * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest}
  */
-public final class SearchRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SearchRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest)
     SearchRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SearchRequest.newBuilder() to construct.
   private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SearchRequest() {
     servingConfig_ = "";
     branch_ = "";
@@ -52,140 +34,124 @@ private SearchRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SearchRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_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 11:
         return internalGetParams();
       case 22:
         return internalGetUserLabels();
       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.discoveryengine.v1.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.SearchRequest.class,
-            com.google.cloud.discoveryengine.v1.SearchRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.SearchRequest.class, com.google.cloud.discoveryengine.v1.SearchRequest.Builder.class);
   }
 
-  public interface ImageQueryOrBuilder
-      extends
+  public interface ImageQueryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.ImageQuery)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return Whether the imageBytes field is set. */ boolean hasImageBytes(); /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The imageBytes. */ java.lang.String getImageBytes(); /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The bytes for imageBytes. */ - com.google.protobuf.ByteString getImageBytesBytes(); + com.google.protobuf.ByteString + getImageBytesBytes(); com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.ImageCase getImageCase(); } /** - * - * *
    * Specifies the image query input.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ImageQuery} */ - public static final class ImageQuery extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ImageQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) ImageQueryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageQuery.newBuilder() to construct. private ImageQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageQuery() {} + private ImageQuery() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.class, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.class, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder.class); } private int imageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object image_; - public enum ImageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_BYTES(1), IMAGE_NOT_SET(0); private final int value; - private ImageCase(int value) { this.value = value; } @@ -201,50 +167,42 @@ public static ImageCase valueOf(int value) { public static ImageCase forNumber(int value) { switch (value) { - case 1: - return IMAGE_BYTES; - case 0: - return IMAGE_NOT_SET; - default: - return null; + case 1: return IMAGE_BYTES; + case 0: return IMAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ImageCase getImageCase() { - return ImageCase.forNumber(imageCase_); + public ImageCase + getImageCase() { + return ImageCase.forNumber( + imageCase_); } public static final int IMAGE_BYTES_FIELD_NUMBER = 1; /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return Whether the imageBytes field is set. */ public boolean hasImageBytes() { return imageCase_ == 1; } /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The imageBytes. */ public java.lang.String getImageBytes() { @@ -255,7 +213,8 @@ public java.lang.String getImageBytes() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (imageCase_ == 1) { image_ = s; @@ -264,25 +223,24 @@ public java.lang.String getImageBytes() { } } /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The bytes for imageBytes. */ - public com.google.protobuf.ByteString getImageBytesBytes() { + public com.google.protobuf.ByteString + getImageBytesBytes() { java.lang.Object ref = ""; if (imageCase_ == 1) { ref = image_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (imageCase_ == 1) { image_ = b; } @@ -293,7 +251,6 @@ public com.google.protobuf.ByteString getImageBytesBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +262,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 (imageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -329,18 +287,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.discoveryengine.v1.SearchRequest.ImageQuery)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery other = - (com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery other = (com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) obj; if (!getImageCase().equals(other.getImageCase())) return false; switch (imageCase_) { case 1: - if (!getImageBytes().equals(other.getImageBytes())) return false; + if (!getImageBytes() + .equals(other.getImageBytes())) return false; break; case 0: default: @@ -370,94 +328,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery 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.discoveryengine.v1.SearchRequest.ImageQuery prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery 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 @@ -467,41 +420,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specifies the image query input.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ImageQuery} */ - 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.discoveryengine.v1.SearchRequest.ImageQuery) com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.class, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.class, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -512,14 +463,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance(); } @@ -534,23 +484,18 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery result = - new com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery result = new com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery result) { result.imageCase_ = imageCase_; result.image_ = this.image_; } @@ -559,41 +504,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery)other); } else { super.mergeFrom(other); return this; @@ -601,21 +543,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance()) return this; switch (other.getImageCase()) { - case IMAGE_BYTES: - { - imageCase_ = 1; - image_ = other.image_; - onChanged(); - break; - } - case IMAGE_NOT_SET: - { - break; - } + case IMAGE_BYTES: { + imageCase_ = 1; + image_ = other.image_; + onChanged(); + break; + } + case IMAGE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -643,20 +581,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - imageCase_ = 1; - image_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 1; + image_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -666,12 +602,12 @@ public Builder mergeFrom( } // finally return this; } - private int imageCase_ = 0; private java.lang.Object image_; - - public ImageCase getImageCase() { - return ImageCase.forNumber(imageCase_); + public ImageCase + getImageCase() { + return ImageCase.forNumber( + imageCase_); } public Builder clearImage() { @@ -684,15 +620,12 @@ public Builder clearImage() { private int bitField0_; /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return Whether the imageBytes field is set. */ @java.lang.Override @@ -700,15 +633,12 @@ public boolean hasImageBytes() { return imageCase_ == 1; } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return The imageBytes. */ @java.lang.Override @@ -718,7 +648,8 @@ public java.lang.String getImageBytes() { ref = image_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (imageCase_ == 1) { image_ = s; @@ -729,26 +660,25 @@ public java.lang.String getImageBytes() { } } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return The bytes for imageBytes. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytesBytes() { + public com.google.protobuf.ByteString + getImageBytesBytes() { java.lang.Object ref = ""; if (imageCase_ == 1) { ref = image_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (imageCase_ == 1) { image_ = b; } @@ -758,37 +688,30 @@ public com.google.protobuf.ByteString getImageBytesBytes() { } } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @param value The imageBytes to set. * @return This builder for chaining. */ - public Builder setImageBytes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } imageCase_ = 1; image_ = value; onChanged(); return this; } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return This builder for chaining. */ public Builder clearImageBytes() { @@ -800,29 +723,24 @@ public Builder clearImageBytes() { return this; } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @param value The bytes for imageBytes to set. * @return This builder for chaining. */ - public Builder setImageBytesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); imageCase_ = 1; image_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -835,44 +753,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.ImageQuery) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -884,62 +799,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FacetSpecOrBuilder - extends + public interface FacetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the facetKey field is set. */ boolean hasFacetKey(); /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The facetKey. */ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getFacetKey(); /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder(); /** - * - * *
      * Maximum of facet values that should be returned for this facet. If
      * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -949,14 +846,11 @@ public interface FacetSpecOrBuilder
      * 
* * int32 limit = 2; - * * @return The limit. */ int getLimit(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -989,13 +883,11 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @return A list containing the excludedFilterKeys. */ - java.util.List getExcludedFilterKeysList(); + java.util.List + getExcludedFilterKeysList(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -1028,13 +920,10 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @return The count of excludedFilterKeys. */ int getExcludedFilterKeysCount(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -1067,14 +956,11 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the element to return. * @return The excludedFilterKeys at the given index. */ java.lang.String getExcludedFilterKeys(int index); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -1107,15 +993,13 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the value to return. * @return The bytes of the excludedFilterKeys at the given index. */ - com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index); + com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index); /** - * - * *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined automatically.
@@ -1148,63 +1032,56 @@ public interface FacetSpecOrBuilder
      * 
* * bool enable_dynamic_position = 4; - * * @return The enableDynamicPosition. */ boolean getEnableDynamicPosition(); } /** - * - * *
    * A facet specification to perform faceted search.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.FacetSpec} */ - public static final class FacetSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FacetSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) FacetSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FacetSpec.newBuilder() to construct. private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FacetSpec() { - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FacetSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder.class); } - public interface FacetKeyOrBuilder - extends + public interface FacetKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -1212,13 +1089,10 @@ public interface FacetKeyOrBuilder
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -1226,14 +1100,12 @@ public interface FacetKeyOrBuilder
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1242,10 +1114,9 @@ public interface FacetKeyOrBuilder
        *
        * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
        */
-      java.util.List getIntervalsList();
+      java.util.List 
+          getIntervalsList();
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1256,8 +1127,6 @@ public interface FacetKeyOrBuilder
        */
       com.google.cloud.discoveryengine.v1.Interval getIntervals(int index);
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1268,8 +1137,6 @@ public interface FacetKeyOrBuilder
        */
       int getIntervalsCount();
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1278,11 +1145,9 @@ public interface FacetKeyOrBuilder
        *
        * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
        */
-      java.util.List
+      java.util.List 
           getIntervalsOrBuilderList();
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1291,11 +1156,10 @@ public interface FacetKeyOrBuilder
        *
        * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
        */
-      com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuilder(int index);
+      com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuilder(
+          int index);
 
       /**
-       *
-       *
        * 
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1306,13 +1170,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @return A list containing the restrictedValues. */ - java.util.List getRestrictedValuesList(); + java.util.List + getRestrictedValuesList(); /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1323,13 +1185,10 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @return The count of restrictedValues. */ int getRestrictedValuesCount(); /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1340,14 +1199,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the element to return. * @return The restrictedValues at the given index. */ java.lang.String getRestrictedValues(int index); /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1358,15 +1214,13 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the value to return. * @return The bytes of the restrictedValues at the given index. */ - com.google.protobuf.ByteString getRestrictedValuesBytes(int index); + com.google.protobuf.ByteString + getRestrictedValuesBytes(int index); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1376,13 +1230,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @return A list containing the prefixes. */ - java.util.List getPrefixesList(); + java.util.List + getPrefixesList(); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1392,13 +1244,10 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @return The count of prefixes. */ int getPrefixesCount(); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1408,14 +1257,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ java.lang.String getPrefixes(int index); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1425,15 +1271,13 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - com.google.protobuf.ByteString getPrefixesBytes(int index); + com.google.protobuf.ByteString + getPrefixesBytes(int index); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1443,13 +1287,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @return A list containing the contains. */ - java.util.List getContainsList(); + java.util.List + getContainsList(); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1459,13 +1301,10 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @return The count of contains. */ int getContainsCount(); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1475,14 +1314,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @param index The index of the element to return. * @return The contains at the given index. */ java.lang.String getContains(int index); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1492,29 +1328,24 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @param index The index of the value to return. * @return The bytes of the contains at the given index. */ - com.google.protobuf.ByteString getContainsBytes(int index); + com.google.protobuf.ByteString + getContainsBytes(int index); /** - * - * *
        * True to make facet keys case insensitive when getting faceting
        * values with prefixes or contains; false otherwise.
        * 
* * bool case_insensitive = 6; - * * @return The caseInsensitive. */ boolean getCaseInsensitive(); /** - * - * *
        * The order in which documents are returned.
        *
@@ -1536,13 +1367,10 @@ public interface FacetKeyOrBuilder
        * 
* * string order_by = 7; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
        * The order in which documents are returned.
        *
@@ -1564,67 +1392,63 @@ public interface FacetKeyOrBuilder
        * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } /** - * - * *
      * Specifies how a facet is computed.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey} */ - public static final class FacetKey extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FacetKey extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) FacetKeyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FacetKey.newBuilder() to construct. private FacetKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FacetKey() { key_ = ""; intervals_ = java.util.Collections.emptyList(); - restrictedValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); orderBy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FacetKey(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.class, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.class, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -1632,7 +1456,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ @java.lang.Override @@ -1641,15 +1464,14 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -1657,15 +1479,16 @@ public java.lang.String getKey() {
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -1674,12 +1497,9 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int INTERVALS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List intervals_; /** - * - * *
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1693,8 +1513,6 @@ public java.util.List getIntervals
         return intervals_;
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1704,13 +1522,11 @@ public java.util.List getIntervals
        * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
        */
       @java.lang.Override
-      public java.util.List
+      public java.util.List 
           getIntervalsOrBuilderList() {
         return intervals_;
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1724,8 +1540,6 @@ public int getIntervalsCount() {
         return intervals_.size();
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1739,8 +1553,6 @@ public com.google.cloud.discoveryengine.v1.Interval getIntervals(int index) {
         return intervals_.get(index);
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1756,13 +1568,10 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuild
       }
 
       public static final int RESTRICTED_VALUES_FIELD_NUMBER = 3;
-
       @SuppressWarnings("serial")
       private com.google.protobuf.LazyStringArrayList restrictedValues_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
       /**
-       *
-       *
        * 
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1773,15 +1582,13 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuild
        * 
* * repeated string restricted_values = 3; - * * @return A list containing the restrictedValues. */ - public com.google.protobuf.ProtocolStringList getRestrictedValuesList() { + public com.google.protobuf.ProtocolStringList + getRestrictedValuesList() { return restrictedValues_; } /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1792,15 +1599,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedValuesList() {
        * 
* * repeated string restricted_values = 3; - * * @return The count of restrictedValues. */ public int getRestrictedValuesCount() { return restrictedValues_.size(); } /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1811,7 +1615,6 @@ public int getRestrictedValuesCount() {
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the element to return. * @return The restrictedValues at the given index. */ @@ -1819,8 +1622,6 @@ public java.lang.String getRestrictedValues(int index) { return restrictedValues_.get(index); } /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1831,22 +1632,19 @@ public java.lang.String getRestrictedValues(int index) {
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the value to return. * @return The bytes of the restrictedValues at the given index. */ - public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { + public com.google.protobuf.ByteString + getRestrictedValuesBytes(int index) { return restrictedValues_.getByteString(index); } public static final int PREFIXES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1856,15 +1654,13 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) {
        * 
* * repeated string prefixes = 4; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { return prefixes_; } /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1874,15 +1670,12 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() {
        * 
* * repeated string prefixes = 4; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1892,7 +1685,6 @@ public int getPrefixesCount() {
        * 
* * repeated string prefixes = 4; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -1900,8 +1692,6 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1911,22 +1701,19 @@ public java.lang.String getPrefixes(int index) {
        * 
* * repeated string prefixes = 4; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } public static final int CONTAINS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1936,15 +1723,13 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) {
        * 
* * repeated string contains = 5; - * * @return A list containing the contains. */ - public com.google.protobuf.ProtocolStringList getContainsList() { + public com.google.protobuf.ProtocolStringList + getContainsList() { return contains_; } /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1954,15 +1739,12 @@ public com.google.protobuf.ProtocolStringList getContainsList() {
        * 
* * repeated string contains = 5; - * * @return The count of contains. */ public int getContainsCount() { return contains_.size(); } /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1972,7 +1754,6 @@ public int getContainsCount() {
        * 
* * repeated string contains = 5; - * * @param index The index of the element to return. * @return The contains at the given index. */ @@ -1980,8 +1761,6 @@ public java.lang.String getContains(int index) { return contains_.get(index); } /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1991,26 +1770,23 @@ public java.lang.String getContains(int index) {
        * 
* * repeated string contains = 5; - * * @param index The index of the value to return. * @return The bytes of the contains at the given index. */ - public com.google.protobuf.ByteString getContainsBytes(int index) { + public com.google.protobuf.ByteString + getContainsBytes(int index) { return contains_.getByteString(index); } public static final int CASE_INSENSITIVE_FIELD_NUMBER = 6; private boolean caseInsensitive_ = false; /** - * - * *
        * True to make facet keys case insensitive when getting faceting
        * values with prefixes or contains; false otherwise.
        * 
* * bool case_insensitive = 6; - * * @return The caseInsensitive. */ @java.lang.Override @@ -2019,12 +1795,9 @@ public boolean getCaseInsensitive() { } public static final int ORDER_BY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
        * The order in which documents are returned.
        *
@@ -2046,7 +1819,6 @@ public boolean getCaseInsensitive() {
        * 
* * string order_by = 7; - * * @return The orderBy. */ @java.lang.Override @@ -2055,15 +1827,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
        * The order in which documents are returned.
        *
@@ -2085,15 +1856,16 @@ public java.lang.String getOrderBy() {
        * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -2102,7 +1874,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2114,7 +1885,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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -2122,8 +1894,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, intervals_.get(i)); } for (int i = 0; i < restrictedValues_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, restrictedValues_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, restrictedValues_.getRaw(i)); } for (int i = 0; i < prefixes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, prefixes_.getRaw(i)); @@ -2150,7 +1921,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } for (int i = 0; i < intervals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, intervals_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, intervals_.get(i)); } { int dataSize = 0; @@ -2177,7 +1949,8 @@ public int getSerializedSize() { size += 1 * getContainsList().size(); } if (caseInsensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, caseInsensitive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, caseInsensitive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, orderBy_); @@ -2190,22 +1963,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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey other = - (com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getIntervalsList().equals(other.getIntervalsList())) return false; - if (!getRestrictedValuesList().equals(other.getRestrictedValuesList())) return false; - if (!getPrefixesList().equals(other.getPrefixesList())) return false; - if (!getContainsList().equals(other.getContainsList())) return false; - if (getCaseInsensitive() != other.getCaseInsensitive()) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey other = (com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getIntervalsList() + .equals(other.getIntervalsList())) return false; + if (!getRestrictedValuesList() + .equals(other.getRestrictedValuesList())) return false; + if (!getPrefixesList() + .equals(other.getPrefixesList())) return false; + if (!getContainsList() + .equals(other.getContainsList())) return false; + if (getCaseInsensitive() + != other.getCaseInsensitive()) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2236,7 +2014,8 @@ public int hashCode() { hash = (53 * hash) + getContainsList().hashCode(); } hash = (37 * hash) + CASE_INSENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseInsensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaseInsensitive()); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2245,96 +2024,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey 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 @@ -2344,43 +2116,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specifies how a facet is computed.
        * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey} */ - 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.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.class, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder - .class); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.class, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2393,31 +2161,31 @@ public Builder clear() { intervalsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); - restrictedValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); caseInsensitive_ = false; orderBy_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey build() { - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result = - buildPartial(); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2426,18 +2194,14 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey buil @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result = - new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey(this); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result = new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result) { if (intervalsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { intervals_ = java.util.Collections.unmodifiableList(intervals_); @@ -2449,8 +2213,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -2479,54 +2242,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey other) { + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -2550,10 +2305,9 @@ public Builder mergeFrom( intervalsBuilder_ = null; intervals_ = other.intervals_; bitField0_ = (bitField0_ & ~0x00000002); - intervalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIntervalsFieldBuilder() - : null; + intervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntervalsFieldBuilder() : null; } else { intervalsBuilder_.addAllMessages(other.intervals_); } @@ -2623,66 +2377,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1.Interval m = - input.readMessage( - com.google.cloud.discoveryengine.v1.Interval.parser(), - extensionRegistry); - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - intervals_.add(m); - } else { - intervalsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRestrictedValuesIsMutable(); - restrictedValues_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrefixesIsMutable(); - prefixes_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContainsIsMutable(); - contains_.add(s); - break; - } // case 42 - case 48: - { - caseInsensitive_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1.Interval m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Interval.parser(), + extensionRegistry); + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.add(m); + } else { + intervalsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedValuesIsMutable(); + restrictedValues_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrefixesIsMutable(); + prefixes_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContainsIsMutable(); + contains_.add(s); + break; + } // case 42 + case 48: { + caseInsensitive_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2692,13 +2438,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -2706,13 +2449,13 @@ public Builder mergeFrom(
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -2721,8 +2464,6 @@ public java.lang.String getKey() { } } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -2730,14 +2471,15 @@ public java.lang.String getKey() {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2745,8 +2487,6 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -2754,22 +2494,18 @@ public com.google.protobuf.ByteString getKeyBytes() {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -2777,7 +2513,6 @@ public Builder setKey(java.lang.String value) {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -2787,8 +2522,6 @@ public Builder clearKey() { return this; } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1.Document] object, over which
@@ -2796,14 +2529,12 @@ public Builder clearKey() {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -2812,25 +2543,18 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { } private java.util.List intervals_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIntervalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - intervals_ = - new java.util.ArrayList(intervals_); + intervals_ = new java.util.ArrayList(intervals_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Interval, - com.google.cloud.discoveryengine.v1.Interval.Builder, - com.google.cloud.discoveryengine.v1.IntervalOrBuilder> - intervalsBuilder_; + com.google.cloud.discoveryengine.v1.Interval, com.google.cloud.discoveryengine.v1.Interval.Builder, com.google.cloud.discoveryengine.v1.IntervalOrBuilder> intervalsBuilder_; /** - * - * *
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2847,8 +2571,6 @@ public java.util.List getIntervals
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2865,8 +2587,6 @@ public int getIntervalsCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2883,8 +2603,6 @@ public com.google.cloud.discoveryengine.v1.Interval getIntervals(int index) {
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2893,7 +2611,8 @@ public com.google.cloud.discoveryengine.v1.Interval getIntervals(int index) {
          *
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
-        public Builder setIntervals(int index, com.google.cloud.discoveryengine.v1.Interval value) {
+        public Builder setIntervals(
+            int index, com.google.cloud.discoveryengine.v1.Interval value) {
           if (intervalsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -2907,8 +2626,6 @@ public Builder setIntervals(int index, com.google.cloud.discoveryengine.v1.Inter
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2929,8 +2646,6 @@ public Builder setIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2953,8 +2668,6 @@ public Builder addIntervals(com.google.cloud.discoveryengine.v1.Interval value)
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2963,7 +2676,8 @@ public Builder addIntervals(com.google.cloud.discoveryengine.v1.Interval value)
          *
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
-        public Builder addIntervals(int index, com.google.cloud.discoveryengine.v1.Interval value) {
+        public Builder addIntervals(
+            int index, com.google.cloud.discoveryengine.v1.Interval value) {
           if (intervalsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -2977,8 +2691,6 @@ public Builder addIntervals(int index, com.google.cloud.discoveryengine.v1.Inter
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2999,8 +2711,6 @@ public Builder addIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3021,8 +2731,6 @@ public Builder addIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3035,7 +2743,8 @@ public Builder addAllIntervals(
             java.lang.Iterable values) {
           if (intervalsBuilder_ == null) {
             ensureIntervalsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intervals_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(
+                values, intervals_);
             onChanged();
           } else {
             intervalsBuilder_.addAllMessages(values);
@@ -3043,8 +2752,6 @@ public Builder addAllIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3064,8 +2771,6 @@ public Builder clearIntervals() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3085,8 +2790,6 @@ public Builder removeIntervals(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3095,12 +2798,11 @@ public Builder removeIntervals(int index) {
          *
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
-        public com.google.cloud.discoveryengine.v1.Interval.Builder getIntervalsBuilder(int index) {
+        public com.google.cloud.discoveryengine.v1.Interval.Builder getIntervalsBuilder(
+            int index) {
           return getIntervalsFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3112,14 +2814,11 @@ public com.google.cloud.discoveryengine.v1.Interval.Builder getIntervalsBuilder(
         public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuilder(
             int index) {
           if (intervalsBuilder_ == null) {
-            return intervals_.get(index);
-          } else {
+            return intervals_.get(index);  } else {
             return intervalsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3128,8 +2827,8 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuild
          *
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
-        public java.util.List
-            getIntervalsOrBuilderList() {
+        public java.util.List 
+             getIntervalsOrBuilderList() {
           if (intervalsBuilder_ != null) {
             return intervalsBuilder_.getMessageOrBuilderList();
           } else {
@@ -3137,8 +2836,6 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuild
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3148,12 +2845,10 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalsOrBuild
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
         public com.google.cloud.discoveryengine.v1.Interval.Builder addIntervalsBuilder() {
-          return getIntervalsFieldBuilder()
-              .addBuilder(com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance());
+          return getIntervalsFieldBuilder().addBuilder(
+              com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3162,13 +2857,12 @@ public com.google.cloud.discoveryengine.v1.Interval.Builder addIntervalsBuilder(
          *
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
-        public com.google.cloud.discoveryengine.v1.Interval.Builder addIntervalsBuilder(int index) {
-          return getIntervalsFieldBuilder()
-              .addBuilder(index, com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance());
+        public com.google.cloud.discoveryengine.v1.Interval.Builder addIntervalsBuilder(
+            int index) {
+          return getIntervalsFieldBuilder().addBuilder(
+              index, com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3177,22 +2871,16 @@ public com.google.cloud.discoveryengine.v1.Interval.Builder addIntervalsBuilder(
          *
          * repeated .google.cloud.discoveryengine.v1.Interval intervals = 2;
          */
-        public java.util.List
-            getIntervalsBuilderList() {
+        public java.util.List 
+             getIntervalsBuilderList() {
           return getIntervalsFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.Interval,
-                com.google.cloud.discoveryengine.v1.Interval.Builder,
-                com.google.cloud.discoveryengine.v1.IntervalOrBuilder>
+            com.google.cloud.discoveryengine.v1.Interval, com.google.cloud.discoveryengine.v1.Interval.Builder, com.google.cloud.discoveryengine.v1.IntervalOrBuilder> 
             getIntervalsFieldBuilder() {
           if (intervalsBuilder_ == null) {
-            intervalsBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.cloud.discoveryengine.v1.Interval,
-                    com.google.cloud.discoveryengine.v1.Interval.Builder,
-                    com.google.cloud.discoveryengine.v1.IntervalOrBuilder>(
+            intervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.discoveryengine.v1.Interval, com.google.cloud.discoveryengine.v1.Interval.Builder, com.google.cloud.discoveryengine.v1.IntervalOrBuilder>(
                     intervals_,
                     ((bitField0_ & 0x00000002) != 0),
                     getParentForChildren(),
@@ -3204,7 +2892,6 @@ public com.google.cloud.discoveryengine.v1.Interval.Builder addIntervalsBuilder(
 
         private com.google.protobuf.LazyStringArrayList restrictedValues_ =
             com.google.protobuf.LazyStringArrayList.emptyList();
-
         private void ensureRestrictedValuesIsMutable() {
           if (!restrictedValues_.isModifiable()) {
             restrictedValues_ = new com.google.protobuf.LazyStringArrayList(restrictedValues_);
@@ -3212,8 +2899,6 @@ private void ensureRestrictedValuesIsMutable() {
           bitField0_ |= 0x00000004;
         }
         /**
-         *
-         *
          * 
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3224,16 +2909,14 @@ private void ensureRestrictedValuesIsMutable() {
          * 
* * repeated string restricted_values = 3; - * * @return A list containing the restrictedValues. */ - public com.google.protobuf.ProtocolStringList getRestrictedValuesList() { + public com.google.protobuf.ProtocolStringList + getRestrictedValuesList() { restrictedValues_.makeImmutable(); return restrictedValues_; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3244,15 +2927,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedValuesList() {
          * 
* * repeated string restricted_values = 3; - * * @return The count of restrictedValues. */ public int getRestrictedValuesCount() { return restrictedValues_.size(); } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3263,7 +2943,6 @@ public int getRestrictedValuesCount() {
          * 
* * repeated string restricted_values = 3; - * * @param index The index of the element to return. * @return The restrictedValues at the given index. */ @@ -3271,8 +2950,6 @@ public java.lang.String getRestrictedValues(int index) { return restrictedValues_.get(index); } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3283,16 +2960,14 @@ public java.lang.String getRestrictedValues(int index) {
          * 
* * repeated string restricted_values = 3; - * * @param index The index of the value to return. * @return The bytes of the restrictedValues at the given index. */ - public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { + public com.google.protobuf.ByteString + getRestrictedValuesBytes(int index) { return restrictedValues_.getByteString(index); } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3303,15 +2978,13 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) {
          * 
* * repeated string restricted_values = 3; - * * @param index The index to set the value at. * @param value The restrictedValues to set. * @return This builder for chaining. */ - public Builder setRestrictedValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRestrictedValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRestrictedValuesIsMutable(); restrictedValues_.set(index, value); bitField0_ |= 0x00000004; @@ -3319,8 +2992,6 @@ public Builder setRestrictedValues(int index, java.lang.String value) { return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3331,14 +3002,12 @@ public Builder setRestrictedValues(int index, java.lang.String value) {
          * 
* * repeated string restricted_values = 3; - * * @param value The restrictedValues to add. * @return This builder for chaining. */ - public Builder addRestrictedValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRestrictedValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRestrictedValuesIsMutable(); restrictedValues_.add(value); bitField0_ |= 0x00000004; @@ -3346,8 +3015,6 @@ public Builder addRestrictedValues(java.lang.String value) { return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3358,20 +3025,19 @@ public Builder addRestrictedValues(java.lang.String value) {
          * 
* * repeated string restricted_values = 3; - * * @param values The restrictedValues to add. * @return This builder for chaining. */ - public Builder addAllRestrictedValues(java.lang.Iterable values) { + public Builder addAllRestrictedValues( + java.lang.Iterable values) { ensureRestrictedValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedValues_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3382,19 +3048,16 @@ public Builder addAllRestrictedValues(java.lang.Iterable value
          * 
* * repeated string restricted_values = 3; - * * @return This builder for chaining. */ public Builder clearRestrictedValues() { - restrictedValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3405,14 +3068,12 @@ public Builder clearRestrictedValues() {
          * 
* * repeated string restricted_values = 3; - * * @param value The bytes of the restrictedValues to add. * @return This builder for chaining. */ - public Builder addRestrictedValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRestrictedValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRestrictedValuesIsMutable(); restrictedValues_.add(value); @@ -3423,7 +3084,6 @@ public Builder addRestrictedValuesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePrefixesIsMutable() { if (!prefixes_.isModifiable()) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); @@ -3431,8 +3091,6 @@ private void ensurePrefixesIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3442,16 +3100,14 @@ private void ensurePrefixesIsMutable() {
          * 
* * repeated string prefixes = 4; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { prefixes_.makeImmutable(); return prefixes_; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3461,15 +3117,12 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() {
          * 
* * repeated string prefixes = 4; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3479,7 +3132,6 @@ public int getPrefixesCount() {
          * 
* * repeated string prefixes = 4; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -3487,8 +3139,6 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3498,16 +3148,14 @@ public java.lang.String getPrefixes(int index) {
          * 
* * repeated string prefixes = 4; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3517,15 +3165,13 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) {
          * 
* * repeated string prefixes = 4; - * * @param index The index to set the value at. * @param value The prefixes to set. * @return This builder for chaining. */ - public Builder setPrefixes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.set(index, value); bitField0_ |= 0x00000008; @@ -3533,8 +3179,6 @@ public Builder setPrefixes(int index, java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3544,14 +3188,12 @@ public Builder setPrefixes(int index, java.lang.String value) {
          * 
* * repeated string prefixes = 4; - * * @param value The prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.add(value); bitField0_ |= 0x00000008; @@ -3559,8 +3201,6 @@ public Builder addPrefixes(java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3570,20 +3210,19 @@ public Builder addPrefixes(java.lang.String value) {
          * 
* * repeated string prefixes = 4; - * * @param values The prefixes to add. * @return This builder for chaining. */ - public Builder addAllPrefixes(java.lang.Iterable values) { + public Builder addAllPrefixes( + java.lang.Iterable values) { ensurePrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prefixes_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3593,19 +3232,16 @@ public Builder addAllPrefixes(java.lang.Iterable values) {
          * 
* * repeated string prefixes = 4; - * * @return This builder for chaining. */ public Builder clearPrefixes() { - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3615,14 +3251,12 @@ public Builder clearPrefixes() {
          * 
* * repeated string prefixes = 4; - * * @param value The bytes of the prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePrefixesIsMutable(); prefixes_.add(value); @@ -3633,7 +3267,6 @@ public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContainsIsMutable() { if (!contains_.isModifiable()) { contains_ = new com.google.protobuf.LazyStringArrayList(contains_); @@ -3641,8 +3274,6 @@ private void ensureContainsIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3652,16 +3283,14 @@ private void ensureContainsIsMutable() {
          * 
* * repeated string contains = 5; - * * @return A list containing the contains. */ - public com.google.protobuf.ProtocolStringList getContainsList() { + public com.google.protobuf.ProtocolStringList + getContainsList() { contains_.makeImmutable(); return contains_; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3671,15 +3300,12 @@ public com.google.protobuf.ProtocolStringList getContainsList() {
          * 
* * repeated string contains = 5; - * * @return The count of contains. */ public int getContainsCount() { return contains_.size(); } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3689,7 +3315,6 @@ public int getContainsCount() {
          * 
* * repeated string contains = 5; - * * @param index The index of the element to return. * @return The contains at the given index. */ @@ -3697,8 +3322,6 @@ public java.lang.String getContains(int index) { return contains_.get(index); } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3708,16 +3331,14 @@ public java.lang.String getContains(int index) {
          * 
* * repeated string contains = 5; - * * @param index The index of the value to return. * @return The bytes of the contains at the given index. */ - public com.google.protobuf.ByteString getContainsBytes(int index) { + public com.google.protobuf.ByteString + getContainsBytes(int index) { return contains_.getByteString(index); } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3727,15 +3348,13 @@ public com.google.protobuf.ByteString getContainsBytes(int index) {
          * 
* * repeated string contains = 5; - * * @param index The index to set the value at. * @param value The contains to set. * @return This builder for chaining. */ - public Builder setContains(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContains( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContainsIsMutable(); contains_.set(index, value); bitField0_ |= 0x00000010; @@ -3743,8 +3362,6 @@ public Builder setContains(int index, java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3754,14 +3371,12 @@ public Builder setContains(int index, java.lang.String value) {
          * 
* * repeated string contains = 5; - * * @param value The contains to add. * @return This builder for chaining. */ - public Builder addContains(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContains( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContainsIsMutable(); contains_.add(value); bitField0_ |= 0x00000010; @@ -3769,8 +3384,6 @@ public Builder addContains(java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3780,20 +3393,19 @@ public Builder addContains(java.lang.String value) {
          * 
* * repeated string contains = 5; - * * @param values The contains to add. * @return This builder for chaining. */ - public Builder addAllContains(java.lang.Iterable values) { + public Builder addAllContains( + java.lang.Iterable values) { ensureContainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contains_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3803,19 +3415,16 @@ public Builder addAllContains(java.lang.Iterable values) {
          * 
* * repeated string contains = 5; - * * @return This builder for chaining. */ public Builder clearContains() { - contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3825,14 +3434,12 @@ public Builder clearContains() {
          * 
* * repeated string contains = 5; - * * @param value The bytes of the contains to add. * @return This builder for chaining. */ - public Builder addContainsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContainsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContainsIsMutable(); contains_.add(value); @@ -3841,17 +3448,14 @@ public Builder addContainsBytes(com.google.protobuf.ByteString value) { return this; } - private boolean caseInsensitive_; + private boolean caseInsensitive_ ; /** - * - * *
          * True to make facet keys case insensitive when getting faceting
          * values with prefixes or contains; false otherwise.
          * 
* * bool case_insensitive = 6; - * * @return The caseInsensitive. */ @java.lang.Override @@ -3859,15 +3463,12 @@ public boolean getCaseInsensitive() { return caseInsensitive_; } /** - * - * *
          * True to make facet keys case insensitive when getting faceting
          * values with prefixes or contains; false otherwise.
          * 
* * bool case_insensitive = 6; - * * @param value The caseInsensitive to set. * @return This builder for chaining. */ @@ -3879,15 +3480,12 @@ public Builder setCaseInsensitive(boolean value) { return this; } /** - * - * *
          * True to make facet keys case insensitive when getting faceting
          * values with prefixes or contains; false otherwise.
          * 
* * bool case_insensitive = 6; - * * @return This builder for chaining. */ public Builder clearCaseInsensitive() { @@ -3899,8 +3497,6 @@ public Builder clearCaseInsensitive() { private java.lang.Object orderBy_ = ""; /** - * - * *
          * The order in which documents are returned.
          *
@@ -3922,13 +3518,13 @@ public Builder clearCaseInsensitive() {
          * 
* * string order_by = 7; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -3937,8 +3533,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
          * The order in which documents are returned.
          *
@@ -3960,14 +3554,15 @@ public java.lang.String getOrderBy() {
          * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -3975,8 +3570,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
          * The order in which documents are returned.
          *
@@ -3998,22 +3591,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
          * 
* * string order_by = 7; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
          * The order in which documents are returned.
          *
@@ -4035,7 +3624,6 @@ public Builder setOrderBy(java.lang.String value) {
          * 
* * string order_by = 7; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -4045,8 +3633,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
          * The order in which documents are returned.
          *
@@ -4068,21 +3654,18 @@ public Builder clearOrderBy() {
          * 
* * string order_by = 7; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4095,45 +3678,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FacetKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4145,25 +3724,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int FACET_KEY_FIELD_NUMBER = 1; private com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facetKey_; /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the facetKey field is set. */ @java.lang.Override @@ -4171,50 +3745,32 @@ public boolean hasFacetKey() { return facetKey_ != null; } /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The facetKey. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getFacetKey() { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + return facetKey_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder() { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder() { + return facetKey_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } public static final int LIMIT_FIELD_NUMBER = 2; private int limit_ = 0; /** - * - * *
      * Maximum of facet values that should be returned for this facet. If
      * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -4224,7 +3780,6 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getF
      * 
* * int32 limit = 2; - * * @return The limit. */ @java.lang.Override @@ -4233,13 +3788,10 @@ public int getLimit() { } public static final int EXCLUDED_FILTER_KEYS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4272,15 +3824,13 @@ public int getLimit() {
      * 
* * repeated string excluded_filter_keys = 3; - * * @return A list containing the excludedFilterKeys. */ - public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() { + public com.google.protobuf.ProtocolStringList + getExcludedFilterKeysList() { return excludedFilterKeys_; } /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4313,15 +3863,12 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
      * 
* * repeated string excluded_filter_keys = 3; - * * @return The count of excludedFilterKeys. */ public int getExcludedFilterKeysCount() { return excludedFilterKeys_.size(); } /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4354,7 +3901,6 @@ public int getExcludedFilterKeysCount() {
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the element to return. * @return The excludedFilterKeys at the given index. */ @@ -4362,8 +3908,6 @@ public java.lang.String getExcludedFilterKeys(int index) { return excludedFilterKeys_.get(index); } /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4396,19 +3940,17 @@ public java.lang.String getExcludedFilterKeys(int index) {
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the value to return. * @return The bytes of the excludedFilterKeys at the given index. */ - public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { + public com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index) { return excludedFilterKeys_.getByteString(index); } public static final int ENABLE_DYNAMIC_POSITION_FIELD_NUMBER = 4; private boolean enableDynamicPosition_ = false; /** - * - * *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined automatically.
@@ -4441,7 +3983,6 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
      * 
* * bool enable_dynamic_position = 4; - * * @return The enableDynamicPosition. */ @java.lang.Override @@ -4450,7 +3991,6 @@ public boolean getEnableDynamicPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4462,7 +4002,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 (facetKey_ != null) { output.writeMessage(1, getFacetKey()); } @@ -4470,8 +4011,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32(2, limit_); } for (int i = 0; i < excludedFilterKeys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, excludedFilterKeys_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludedFilterKeys_.getRaw(i)); } if (enableDynamicPosition_ != false) { output.writeBool(4, enableDynamicPosition_); @@ -4486,10 +4026,12 @@ public int getSerializedSize() { size = 0; if (facetKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFacetKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFacetKey()); } if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, limit_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, limit_); } { int dataSize = 0; @@ -4500,7 +4042,8 @@ public int getSerializedSize() { size += 1 * getExcludedFilterKeysList().size(); } if (enableDynamicPosition_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableDynamicPosition_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableDynamicPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4510,21 +4053,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.discoveryengine.v1.SearchRequest.FacetSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) obj; if (hasFacetKey() != other.hasFacetKey()) return false; if (hasFacetKey()) { - if (!getFacetKey().equals(other.getFacetKey())) return false; - } - if (getLimit() != other.getLimit()) return false; - if (!getExcludedFilterKeysList().equals(other.getExcludedFilterKeysList())) return false; - if (getEnableDynamicPosition() != other.getEnableDynamicPosition()) return false; + if (!getFacetKey() + .equals(other.getFacetKey())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getExcludedFilterKeysList() + .equals(other.getExcludedFilterKeysList())) return false; + if (getEnableDynamicPosition() + != other.getEnableDynamicPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4547,101 +4093,97 @@ public int hashCode() { hash = (53 * hash) + getExcludedFilterKeysList().hashCode(); } hash = (37 * hash) + ENABLE_DYNAMIC_POSITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDynamicPosition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDynamicPosition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec 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.discoveryengine.v1.SearchRequest.FacetSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec 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 @@ -4651,41 +4193,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A facet specification to perform faceted search.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.FacetSpec} */ - 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.discoveryengine.v1.SearchRequest.FacetSpec) com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4696,20 +4236,20 @@ public Builder clear() { facetKeyBuilder_ = null; } limit_ = 0; - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); enableDynamicPosition_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance(); } @@ -4724,20 +4264,18 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.facetKey_ = facetKeyBuilder_ == null ? facetKey_ : facetKeyBuilder_.build(); + result.facetKey_ = facetKeyBuilder_ == null + ? facetKey_ + : facetKeyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.limit_ = limit_; @@ -4755,41 +4293,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.discoveryengine.v1.SearchRequest.FacetSpec) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec)other); } else { super.mergeFrom(other); return this; @@ -4797,9 +4332,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance()) return this; if (other.hasFacetKey()) { mergeFacetKey(other.getFacetKey()); } @@ -4845,38 +4378,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getFacetKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - limit_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExcludedFilterKeysIsMutable(); - excludedFilterKeys_.add(s); - break; - } // case 26 - case 32: - { - enableDynamicPosition_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getFacetKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + limit_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.add(s); + break; + } // case 26 + case 32: { + enableDynamicPosition_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4886,67 +4416,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facetKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder> - facetKeyBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder> facetKeyBuilder_; /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the facetKey field is set. */ public boolean hasFacetKey() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The facetKey. */ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey getFacetKey() { if (facetKeyBuilder_ == null) { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + return facetKey_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } else { return facetKeyBuilder_.getMessage(); } } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFacetKey( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey value) { + public Builder setFacetKey(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey value) { if (facetKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4960,19 +4468,14 @@ public Builder setFacetKey( return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFacetKey( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder builderForValue) { if (facetKeyBuilder_ == null) { facetKey_ = builderForValue.build(); } else { @@ -4983,24 +4486,17 @@ public Builder setFacetKey( return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeFacetKey( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey value) { + public Builder mergeFacetKey(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey value) { if (facetKeyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && facetKey_ != null - && facetKey_ - != com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + facetKey_ != null && + facetKey_ != com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance()) { getFacetKeyBuilder().mergeFrom(value); } else { facetKey_ = value; @@ -5013,15 +4509,11 @@ public Builder mergeFacetKey( return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFacetKey() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5034,76 +4526,55 @@ public Builder clearFacetKey() { return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder - getFacetKeyBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder getFacetKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFacetKeyFieldBuilder().getBuilder(); } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder() { if (facetKeyBuilder_ != null) { return facetKeyBuilder_.getMessageOrBuilder(); } else { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + return facetKey_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder> getFacetKeyFieldBuilder() { if (facetKeyBuilder_ == null) { - facetKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder>( - getFacetKey(), getParentForChildren(), isClean()); + facetKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyOrBuilder>( + getFacetKey(), + getParentForChildren(), + isClean()); facetKey_ = null; } return facetKeyBuilder_; } - private int limit_; + private int limit_ ; /** - * - * *
        * Maximum of facet values that should be returned for this facet. If
        * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -5113,7 +4584,6 @@ public Builder clearFacetKey() {
        * 
* * int32 limit = 2; - * * @return The limit. */ @java.lang.Override @@ -5121,8 +4591,6 @@ public int getLimit() { return limit_; } /** - * - * *
        * Maximum of facet values that should be returned for this facet. If
        * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -5132,7 +4600,6 @@ public int getLimit() {
        * 
* * int32 limit = 2; - * * @param value The limit to set. * @return This builder for chaining. */ @@ -5144,8 +4611,6 @@ public Builder setLimit(int value) { return this; } /** - * - * *
        * Maximum of facet values that should be returned for this facet. If
        * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -5155,7 +4620,6 @@ public Builder setLimit(int value) {
        * 
* * int32 limit = 2; - * * @return This builder for chaining. */ public Builder clearLimit() { @@ -5167,7 +4631,6 @@ public Builder clearLimit() { private com.google.protobuf.LazyStringArrayList excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExcludedFilterKeysIsMutable() { if (!excludedFilterKeys_.isModifiable()) { excludedFilterKeys_ = new com.google.protobuf.LazyStringArrayList(excludedFilterKeys_); @@ -5175,8 +4638,6 @@ private void ensureExcludedFilterKeysIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5209,16 +4670,14 @@ private void ensureExcludedFilterKeysIsMutable() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @return A list containing the excludedFilterKeys. */ - public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() { + public com.google.protobuf.ProtocolStringList + getExcludedFilterKeysList() { excludedFilterKeys_.makeImmutable(); return excludedFilterKeys_; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5251,15 +4710,12 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @return The count of excludedFilterKeys. */ public int getExcludedFilterKeysCount() { return excludedFilterKeys_.size(); } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5292,7 +4748,6 @@ public int getExcludedFilterKeysCount() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the element to return. * @return The excludedFilterKeys at the given index. */ @@ -5300,8 +4755,6 @@ public java.lang.String getExcludedFilterKeys(int index) { return excludedFilterKeys_.get(index); } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5334,16 +4787,14 @@ public java.lang.String getExcludedFilterKeys(int index) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the value to return. * @return The bytes of the excludedFilterKeys at the given index. */ - public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { + public com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index) { return excludedFilterKeys_.getByteString(index); } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5376,15 +4827,13 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index to set the value at. * @param value The excludedFilterKeys to set. * @return This builder for chaining. */ - public Builder setExcludedFilterKeys(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExcludedFilterKeys( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExcludedFilterKeysIsMutable(); excludedFilterKeys_.set(index, value); bitField0_ |= 0x00000004; @@ -5392,8 +4841,6 @@ public Builder setExcludedFilterKeys(int index, java.lang.String value) { return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5426,14 +4873,12 @@ public Builder setExcludedFilterKeys(int index, java.lang.String value) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param value The excludedFilterKeys to add. * @return This builder for chaining. */ - public Builder addExcludedFilterKeys(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExcludedFilterKeys( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExcludedFilterKeysIsMutable(); excludedFilterKeys_.add(value); bitField0_ |= 0x00000004; @@ -5441,8 +4886,6 @@ public Builder addExcludedFilterKeys(java.lang.String value) { return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5475,20 +4918,19 @@ public Builder addExcludedFilterKeys(java.lang.String value) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param values The excludedFilterKeys to add. * @return This builder for chaining. */ - public Builder addAllExcludedFilterKeys(java.lang.Iterable values) { + public Builder addAllExcludedFilterKeys( + java.lang.Iterable values) { ensureExcludedFilterKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedFilterKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, excludedFilterKeys_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5521,19 +4963,16 @@ public Builder addAllExcludedFilterKeys(java.lang.Iterable val
        * 
* * repeated string excluded_filter_keys = 3; - * * @return This builder for chaining. */ public Builder clearExcludedFilterKeys() { - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5566,14 +5005,12 @@ public Builder clearExcludedFilterKeys() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param value The bytes of the excludedFilterKeys to add. * @return This builder for chaining. */ - public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExcludedFilterKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExcludedFilterKeysIsMutable(); excludedFilterKeys_.add(value); @@ -5582,10 +5019,8 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) return this; } - private boolean enableDynamicPosition_; + private boolean enableDynamicPosition_ ; /** - * - * *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined automatically.
@@ -5618,7 +5053,6 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value)
        * 
* * bool enable_dynamic_position = 4; - * * @return The enableDynamicPosition. */ @java.lang.Override @@ -5626,8 +5060,6 @@ public boolean getEnableDynamicPosition() { return enableDynamicPosition_; } /** - * - * *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined automatically.
@@ -5660,7 +5092,6 @@ public boolean getEnableDynamicPosition() {
        * 
* * bool enable_dynamic_position = 4; - * * @param value The enableDynamicPosition to set. * @return This builder for chaining. */ @@ -5672,8 +5103,6 @@ public Builder setEnableDynamicPosition(boolean value) { return this; } /** - * - * *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined automatically.
@@ -5706,7 +5135,6 @@ public Builder setEnableDynamicPosition(boolean value) {
        * 
* * bool enable_dynamic_position = 4; - * * @return This builder for chaining. */ public Builder clearEnableDynamicPosition() { @@ -5715,7 +5143,6 @@ public Builder clearEnableDynamicPosition() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5728,13 +5155,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.FacetSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec(); } @@ -5743,28 +5169,27 @@ public static com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FacetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5779,16 +5204,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BoostSpecOrBuilder - extends + public interface BoostSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5796,15 +5219,11 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - java.util.List + java.util.List getConditionBoostSpecsList(); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5812,15 +5231,10 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - getConditionBoostSpecs(int index); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5828,14 +5242,10 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ int getConditionBoostSpecsCount(); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5843,18 +5253,11 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> + java.util.List getConditionBoostSpecsOrBuilderList(); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5862,65 +5265,56 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder - getConditionBoostSpecsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index); } /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.BoostSpec} */ - public static final class BoostSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BoostSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) BoostSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoostSpec.newBuilder() to construct. private BoostSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoostSpec() { conditionBoostSpecs_ = 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 BoostSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder.class); } - public interface ConditionBoostSpecOrBuilder - extends + public interface ConditionBoostSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -5936,13 +5330,10 @@ public interface ConditionBoostSpecOrBuilder
        * 
* * string condition = 1; - * * @return The condition. */ java.lang.String getCondition(); /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -5958,14 +5349,12 @@ public interface ConditionBoostSpecOrBuilder
        * 
* * string condition = 1; - * * @return The bytes for condition. */ - com.google.protobuf.ByteString getConditionBytes(); + com.google.protobuf.ByteString + getConditionBytes(); /** - * - * *
        * Strength of the condition boost, which should be in [-1, 1]. Negative
        * boost means demotion. Default is 0.0.
@@ -5987,65 +5376,54 @@ public interface ConditionBoostSpecOrBuilder
        * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
      * Boost applies to documents which match a condition.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec} */ - public static final class ConditionBoostSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConditionBoostSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) ConditionBoostSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConditionBoostSpec.newBuilder() to construct. private ConditionBoostSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConditionBoostSpec() { condition_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConditionBoostSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .class, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder.class); } public static final int CONDITION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -6061,7 +5439,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * string condition = 1; - * * @return The condition. */ @java.lang.Override @@ -6070,15 +5447,14 @@ public java.lang.String getCondition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; } } /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -6094,15 +5470,16 @@ public java.lang.String getCondition() {
        * 
* * string condition = 1; - * * @return The bytes for condition. */ @java.lang.Override - public com.google.protobuf.ByteString getConditionBytes() { + public com.google.protobuf.ByteString + getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); condition_ = b; return b; } else { @@ -6113,8 +5490,6 @@ public com.google.protobuf.ByteString getConditionBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
        * Strength of the condition boost, which should be in [-1, 1]. Negative
        * boost means demotion. Default is 0.0.
@@ -6136,7 +5511,6 @@ public com.google.protobuf.ByteString getConditionBytes() {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -6145,7 +5519,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6157,7 +5530,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(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } @@ -6177,7 +5551,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6187,19 +5562,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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) obj; - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6214,110 +5588,97 @@ public int hashCode() { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec 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 @@ -6327,45 +5688,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Boost applies to documents which match a condition.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec} */ - 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.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .class, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6376,23 +5731,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - build() { - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec result = - buildPartial(); + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec build() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6400,20 +5751,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.condition_ = condition_; @@ -6427,56 +5772,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec other) { + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()) return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; bitField0_ |= 0x00000001; @@ -6511,25 +5846,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - boost_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6539,13 +5871,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object condition_ = ""; /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6561,13 +5890,13 @@ public Builder mergeFrom(
          * 
* * string condition = 1; - * * @return The condition. */ public java.lang.String getCondition() { java.lang.Object ref = condition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; @@ -6576,8 +5905,6 @@ public java.lang.String getCondition() { } } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6593,14 +5920,15 @@ public java.lang.String getCondition() {
          * 
* * string condition = 1; - * * @return The bytes for condition. */ - public com.google.protobuf.ByteString getConditionBytes() { + public com.google.protobuf.ByteString + getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); condition_ = b; return b; } else { @@ -6608,8 +5936,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6625,22 +5951,18 @@ public com.google.protobuf.ByteString getConditionBytes() {
          * 
* * string condition = 1; - * * @param value The condition to set. * @return This builder for chaining. */ - public Builder setCondition(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCondition( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } condition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6656,7 +5978,6 @@ public Builder setCondition(java.lang.String value) {
          * 
* * string condition = 1; - * * @return This builder for chaining. */ public Builder clearCondition() { @@ -6666,8 +5987,6 @@ public Builder clearCondition() { return this; } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6683,14 +6002,12 @@ public Builder clearCondition() {
          * 
* * string condition = 1; - * * @param value The bytes for condition to set. * @return This builder for chaining. */ - public Builder setConditionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); condition_ = value; bitField0_ |= 0x00000001; @@ -6698,10 +6015,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { return this; } - private float boost_; + private float boost_ ; /** - * - * *
          * Strength of the condition boost, which should be in [-1, 1]. Negative
          * boost means demotion. Default is 0.0.
@@ -6723,7 +6038,6 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
          * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -6731,8 +6045,6 @@ public float getBoost() { return boost_; } /** - * - * *
          * Strength of the condition boost, which should be in [-1, 1]. Negative
          * boost means demotion. Default is 0.0.
@@ -6754,7 +6066,6 @@ public float getBoost() {
          * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ @@ -6766,8 +6077,6 @@ public Builder setBoost(float value) { return this; } /** - * - * *
          * Strength of the condition boost, which should be in [-1, 1]. Negative
          * boost means demotion. Default is 0.0.
@@ -6789,7 +6098,6 @@ public Builder setBoost(float value) {
          * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -6798,7 +6106,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6811,46 +6118,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConditionBoostSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionBoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6862,21 +6164,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CONDITION_BOOST_SPECS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec> - conditionBoostSpecs_; + private java.util.List conditionBoostSpecs_; /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6884,19 +6181,13 @@ public com.google.protobuf.Parser getParserForType() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec> - getConditionBoostSpecsList() { + public java.util.List getConditionBoostSpecsList() { return conditionBoostSpecs_; } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6904,21 +6195,14 @@ public com.google.protobuf.Parser getParserForType() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> + public java.util.List getConditionBoostSpecsOrBuilderList() { return conditionBoostSpecs_; } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6926,17 +6210,13 @@ public com.google.protobuf.Parser getParserForType() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override public int getConditionBoostSpecsCount() { return conditionBoostSpecs_.size(); } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6944,18 +6224,13 @@ public int getConditionBoostSpecsCount() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - getConditionBoostSpecs(int index) { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index) { return conditionBoostSpecs_.get(index); } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6963,18 +6238,15 @@ public int getConditionBoostSpecsCount() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder - getConditionBoostSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index) { return conditionBoostSpecs_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6986,7 +6258,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 < conditionBoostSpecs_.size(); i++) { output.writeMessage(1, conditionBoostSpecs_.get(i)); } @@ -7000,9 +6273,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < conditionBoostSpecs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, conditionBoostSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conditionBoostSpecs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7012,15 +6284,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.discoveryengine.v1.SearchRequest.BoostSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) obj; - if (!getConditionBoostSpecsList().equals(other.getConditionBoostSpecsList())) return false; + if (!getConditionBoostSpecsList() + .equals(other.getConditionBoostSpecsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7042,94 +6314,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec 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.discoveryengine.v1.SearchRequest.BoostSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec 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 @@ -7139,42 +6406,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.BoostSpec} */ - 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.discoveryengine.v1.SearchRequest.BoostSpec) com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } - @java.lang.Override + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; @@ -7189,14 +6454,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance(); } @@ -7211,18 +6475,14 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec(this); + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec result) { if (conditionBoostSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { conditionBoostSpecs_ = java.util.Collections.unmodifiableList(conditionBoostSpecs_); @@ -7234,8 +6494,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec result) { int from_bitField0_ = bitField0_; } @@ -7243,41 +6502,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.discoveryengine.v1.SearchRequest.BoostSpec) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec)other); } else { super.mergeFrom(other); return this; @@ -7285,9 +6541,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance()) return this; if (conditionBoostSpecsBuilder_ == null) { if (!other.conditionBoostSpecs_.isEmpty()) { if (conditionBoostSpecs_.isEmpty()) { @@ -7306,10 +6560,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.Boost conditionBoostSpecsBuilder_ = null; conditionBoostSpecs_ = other.conditionBoostSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - conditionBoostSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConditionBoostSpecsFieldBuilder() - : null; + conditionBoostSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionBoostSpecsFieldBuilder() : null; } else { conditionBoostSpecsBuilder_.addAllMessages(other.conditionBoostSpecs_); } @@ -7341,28 +6594,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec m = - input.readMessage( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpec.parser(), - extensionRegistry); - if (conditionBoostSpecsBuilder_ == null) { - ensureConditionBoostSpecsIsMutable(); - conditionBoostSpecs_.add(m); - } else { - conditionBoostSpecsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.parser(), + extensionRegistry); + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(m); + } else { + conditionBoostSpecsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7372,34 +6622,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec> - conditionBoostSpecs_ = java.util.Collections.emptyList(); - + private java.util.List conditionBoostSpecs_ = + java.util.Collections.emptyList(); private void ensureConditionBoostSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - conditionBoostSpecs_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec>( - conditionBoostSpecs_); + conditionBoostSpecs_ = new java.util.ArrayList(conditionBoostSpecs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> - conditionBoostSpecsBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> conditionBoostSpecsBuilder_; /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7407,13 +6644,9 @@ private void ensureConditionBoostSpecsIsMutable() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec> - getConditionBoostSpecsList() { + public java.util.List getConditionBoostSpecsList() { if (conditionBoostSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditionBoostSpecs_); } else { @@ -7421,8 +6654,6 @@ private void ensureConditionBoostSpecsIsMutable() { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7430,9 +6661,7 @@ private void ensureConditionBoostSpecsIsMutable() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public int getConditionBoostSpecsCount() { if (conditionBoostSpecsBuilder_ == null) { @@ -7442,8 +6671,6 @@ public int getConditionBoostSpecsCount() { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7451,12 +6678,9 @@ public int getConditionBoostSpecsCount() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - getConditionBoostSpecs(int index) { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index) { if (conditionBoostSpecsBuilder_ == null) { return conditionBoostSpecs_.get(index); } else { @@ -7464,8 +6688,6 @@ public int getConditionBoostSpecsCount() { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7473,13 +6695,10 @@ public int getConditionBoostSpecsCount() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder setConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec value) { + int index, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec value) { if (conditionBoostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7493,8 +6712,6 @@ public Builder setConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7502,14 +6719,10 @@ public Builder setConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder setConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); conditionBoostSpecs_.set(index, builderForValue.build()); @@ -7520,8 +6733,6 @@ public Builder setConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7529,12 +6740,9 @@ public Builder setConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public Builder addConditionBoostSpecs( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec value) { + public Builder addConditionBoostSpecs(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec value) { if (conditionBoostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7548,8 +6756,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7557,13 +6763,10 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec value) { + int index, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec value) { if (conditionBoostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7577,8 +6780,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7586,13 +6787,10 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addConditionBoostSpecs( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); conditionBoostSpecs_.add(builderForValue.build()); @@ -7603,8 +6801,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7612,14 +6808,10 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); conditionBoostSpecs_.add(index, builderForValue.build()); @@ -7630,8 +6822,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7639,19 +6829,14 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addAllConditionBoostSpecs( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpec> - values) { + java.lang.Iterable values) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditionBoostSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditionBoostSpecs_); onChanged(); } else { conditionBoostSpecsBuilder_.addAllMessages(values); @@ -7659,8 +6844,6 @@ public Builder addAllConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7668,9 +6851,7 @@ public Builder addAllConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder clearConditionBoostSpecs() { if (conditionBoostSpecsBuilder_ == null) { @@ -7683,8 +6864,6 @@ public Builder clearConditionBoostSpecs() { return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7692,9 +6871,7 @@ public Builder clearConditionBoostSpecs() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder removeConditionBoostSpecs(int index) { if (conditionBoostSpecsBuilder_ == null) { @@ -7707,8 +6884,6 @@ public Builder removeConditionBoostSpecs(int index) { return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7716,17 +6891,13 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - getConditionBoostSpecsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder( + int index) { return getConditionBoostSpecsFieldBuilder().getBuilder(index); } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7734,21 +6905,16 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder - getConditionBoostSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index) { if (conditionBoostSpecsBuilder_ == null) { - return conditionBoostSpecs_.get(index); - } else { + return conditionBoostSpecs_.get(index); } else { return conditionBoostSpecsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7756,15 +6922,10 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> - getConditionBoostSpecsOrBuilderList() { + public java.util.List + getConditionBoostSpecsOrBuilderList() { if (conditionBoostSpecsBuilder_ != null) { return conditionBoostSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -7772,8 +6933,6 @@ public Builder removeConditionBoostSpecs(int index) { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7781,20 +6940,13 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - addConditionBoostSpecsBuilder() { - return getConditionBoostSpecsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder() { + return getConditionBoostSpecsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()); } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7802,21 +6954,14 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - addConditionBoostSpecsBuilder(int index) { - return getConditionBoostSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder( + int index) { + return getConditionBoostSpecsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()); } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7824,32 +6969,18 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder> - getConditionBoostSpecsBuilderList() { + public java.util.List + getConditionBoostSpecsBuilderList() { return getConditionBoostSpecsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsFieldBuilder() { if (conditionBoostSpecsBuilder_ == null) { - conditionBoostSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder>( + conditionBoostSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder>( conditionBoostSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -7858,7 +6989,6 @@ public Builder removeConditionBoostSpecs(int index) { } return conditionBoostSpecsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7871,13 +7001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.BoostSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec(); } @@ -7886,28 +7015,27 @@ public static com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoostSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7922,47 +7050,35 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface QueryExpansionSpecOrBuilder - extends + public interface QueryExpansionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The enum numeric value on the wire for condition. */ int getConditionValue(); /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The condition. */ com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition getCondition(); /** - * - * *
      * Whether to pin unexpanded results. If this field is set to true,
      * unexpanded products are always at the top of the search results, followed
@@ -7970,14 +7086,11 @@ public interface QueryExpansionSpecOrBuilder
      * 
* * bool pin_unexpanded_results = 2; - * * @return The pinUnexpandedResults. */ boolean getPinUnexpandedResults(); } /** - * - * *
    * Specification to determine under which conditions query expansion should
    * occur.
@@ -7985,55 +7098,49 @@ public interface QueryExpansionSpecOrBuilder
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec}
    */
-  public static final class QueryExpansionSpec extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class QueryExpansionSpec extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec)
       QueryExpansionSpecOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use QueryExpansionSpec.newBuilder() to construct.
     private QueryExpansionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private QueryExpansionSpec() {
       condition_ = 0;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new QueryExpansionSpec();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.class,
-              com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder.class);
+              com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * Enum describing under which condition query expansion should occur.
      * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition} + * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition} */ - public enum Condition implements com.google.protobuf.ProtocolMessageEnum { + public enum Condition + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified query expansion condition. In this case, server behavior
        * defaults to
@@ -8044,8 +7151,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       CONDITION_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Disabled query expansion. Only the exact search query is used, even if
        * [SearchResponse.total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size]
@@ -8056,8 +7161,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       DISABLED(1),
       /**
-       *
-       *
        * 
        * Automatic query expansion built by the Search API.
        * 
@@ -8069,8 +7172,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified query expansion condition. In this case, server behavior
        * defaults to
@@ -8081,8 +7182,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CONDITION_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Disabled query expansion. Only the exact search query is used, even if
        * [SearchResponse.total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size]
@@ -8093,8 +7192,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int DISABLED_VALUE = 1;
       /**
-       *
-       *
        * 
        * Automatic query expansion built by the Search API.
        * 
@@ -8103,6 +7200,7 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUTO_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -8127,51 +7225,49 @@ public static Condition valueOf(int value) { */ public static Condition forNumber(int value) { switch (value) { - case 0: - return CONDITION_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return AUTO; - default: - return null; + case 0: return CONDITION_UNSPECIFIED; + case 1: return DISABLED; + case 2: return AUTO; + 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< + Condition> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Condition findValueByNumber(int number) { + return Condition.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Condition findValueByNumber(int number) { - return Condition.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.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDescriptor().getEnumTypes().get(0); } private static final Condition[] VALUES = values(); - public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Condition 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; @@ -8191,54 +7287,34 @@ private Condition(int value) { public static final int CONDITION_FIELD_NUMBER = 1; private int condition_ = 0; /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The enum numeric value on the wire for condition. */ - @java.lang.Override - public int getConditionValue() { + @java.lang.Override public int getConditionValue() { return condition_; } /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The condition. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition result = - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.forNumber( - condition_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition getCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition result = com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.forNumber(condition_); + return result == null ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.UNRECOGNIZED : result; } public static final int PIN_UNEXPANDED_RESULTS_FIELD_NUMBER = 2; private boolean pinUnexpandedResults_ = false; /** - * - * *
      * Whether to pin unexpanded results. If this field is set to true,
      * unexpanded products are always at the top of the search results, followed
@@ -8246,7 +7322,6 @@ public int getConditionValue() {
      * 
* * bool pin_unexpanded_results = 2; - * * @return The pinUnexpandedResults. */ @java.lang.Override @@ -8255,7 +7330,6 @@ public boolean getPinUnexpandedResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8267,11 +7341,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (condition_ - != com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (condition_ != com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.CONDITION_UNSPECIFIED.getNumber()) { output.writeEnum(1, condition_); } if (pinUnexpandedResults_ != false) { @@ -8286,14 +7358,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (condition_ - != com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); + if (condition_ != com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.CONDITION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, condition_); } if (pinUnexpandedResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, pinUnexpandedResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, pinUnexpandedResults_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8303,16 +7374,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.discoveryengine.v1.SearchRequest.QueryExpansionSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) obj; if (condition_ != other.condition_) return false; - if (getPinUnexpandedResults() != other.getPinUnexpandedResults()) return false; + if (getPinUnexpandedResults() + != other.getPinUnexpandedResults()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8327,102 +7398,97 @@ public int hashCode() { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + condition_; hash = (37 * hash) + PIN_UNEXPANDED_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPinUnexpandedResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinUnexpandedResults()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1.SearchRequest.QueryExpansionSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1.SearchRequest.QueryExpansionSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec 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 @@ -8432,8 +7498,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specification to determine under which conditions query expansion should
      * occur.
@@ -8441,34 +7505,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec}
      */
-    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.discoveryengine.v1.SearchRequest.QueryExpansionSpec)
         com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.discoveryengine.v1.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.discoveryengine.v1.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable
+        return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.class,
-                com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder.class);
+                com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8479,22 +7542,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.discoveryengine.v1.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec
-          getDefaultInstanceForType() {
-        return com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec
-            .getDefaultInstance();
+      public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec getDefaultInstanceForType() {
+        return com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec build() {
-        com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec result =
-            buildPartial();
+        com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8503,17 +7563,13 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec buil
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec buildPartial() {
-        com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec result =
-            new com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec result) {
+      private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.condition_ = condition_;
@@ -8527,53 +7583,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) {
-          return mergeFrom(
-              (com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) other);
+          return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec other) {
-        if (other
-            == com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec other) {
+        if (other == com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance()) return this;
         if (other.condition_ != 0) {
           setConditionValue(other.getConditionValue());
         }
@@ -8606,25 +7655,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  condition_ = input.readEnum();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  pinUnexpandedResults_ = input.readBool();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                condition_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                pinUnexpandedResults_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8634,40 +7680,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private int condition_ = 0;
       /**
-       *
-       *
        * 
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The enum numeric value on the wire for condition. */ - @java.lang.Override - public int getConditionValue() { + @java.lang.Override public int getConditionValue() { return condition_; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @param value The enum numeric value on the wire for condition to set. * @return This builder for chaining. */ @@ -8678,47 +7712,30 @@ public Builder setConditionValue(int value) { return this; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The condition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition result = - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - .forNumber(condition_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - .UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition getCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition result = com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.forNumber(condition_); + return result == null ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.UNRECOGNIZED : result; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @param value The condition to set. * @return This builder for chaining. */ - public Builder setCondition( - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition value) { + public Builder setCondition(com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition value) { if (value == null) { throw new NullPointerException(); } @@ -8728,17 +7745,12 @@ public Builder setCondition( return this; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return This builder for chaining. */ public Builder clearCondition() { @@ -8748,10 +7760,8 @@ public Builder clearCondition() { return this; } - private boolean pinUnexpandedResults_; + private boolean pinUnexpandedResults_ ; /** - * - * *
        * Whether to pin unexpanded results. If this field is set to true,
        * unexpanded products are always at the top of the search results, followed
@@ -8759,7 +7769,6 @@ public Builder clearCondition() {
        * 
* * bool pin_unexpanded_results = 2; - * * @return The pinUnexpandedResults. */ @java.lang.Override @@ -8767,8 +7776,6 @@ public boolean getPinUnexpandedResults() { return pinUnexpandedResults_; } /** - * - * *
        * Whether to pin unexpanded results. If this field is set to true,
        * unexpanded products are always at the top of the search results, followed
@@ -8776,7 +7783,6 @@ public boolean getPinUnexpandedResults() {
        * 
* * bool pin_unexpanded_results = 2; - * * @param value The pinUnexpandedResults to set. * @return This builder for chaining. */ @@ -8788,8 +7794,6 @@ public Builder setPinUnexpandedResults(boolean value) { return this; } /** - * - * *
        * Whether to pin unexpanded results. If this field is set to true,
        * unexpanded products are always at the top of the search results, followed
@@ -8797,7 +7801,6 @@ public Builder setPinUnexpandedResults(boolean value) {
        * 
* * bool pin_unexpanded_results = 2; - * * @return This builder for chaining. */ public Builder clearPinUnexpandedResults() { @@ -8806,7 +7809,6 @@ public Builder clearPinUnexpandedResults() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8819,44 +7821,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryExpansionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExpansionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8868,105 +7867,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SpellCorrectionSpecOrBuilder - extends + public interface SpellCorrectionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * *
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The mode. */ com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode getMode(); } /** - * - * *
    * The specification for query spell correction.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec} */ - public static final class SpellCorrectionSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SpellCorrectionSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) SpellCorrectionSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpellCorrectionSpec.newBuilder() to construct. private SpellCorrectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpellCorrectionSpec() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpellCorrectionSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder.class); } /** - * - * *
      * Enum describing under which mode spell correction should occur.
      * 
* * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified spell correction mode. In this case, server behavior
        * defaults to
@@ -8977,8 +7960,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       MODE_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Search API will try to find a spell suggestion if there
        * is any and put in the
@@ -8990,8 +7971,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       SUGGESTION_ONLY(1),
       /**
-       *
-       *
        * 
        * Automatic spell correction built by the Search API. Search will
        * be based on the corrected query if found.
@@ -9004,8 +7983,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified spell correction mode. In this case, server behavior
        * defaults to
@@ -9016,8 +7993,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int MODE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Search API will try to find a spell suggestion if there
        * is any and put in the
@@ -9029,8 +8004,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int SUGGESTION_ONLY_VALUE = 1;
       /**
-       *
-       *
        * 
        * Automatic spell correction built by the Search API. Search will
        * be based on the corrected query if found.
@@ -9040,6 +8013,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int AUTO_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -9064,51 +8038,49 @@ public static Mode valueOf(int value) {
        */
       public static Mode forNumber(int value) {
         switch (value) {
-          case 0:
-            return MODE_UNSPECIFIED;
-          case 1:
-            return SUGGESTION_ONLY;
-          case 2:
-            return AUTO;
-          default:
-            return null;
+          case 0: return MODE_UNSPECIFIED;
+          case 1: return SUGGESTION_ONLY;
+          case 2: return AUTO;
+          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<
+          Mode> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Mode findValueByNumber(int number) {
+                return Mode.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Mode findValueByNumber(int number) {
-              return Mode.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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final Mode[] VALUES = values();
 
-      public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Mode 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;
@@ -9128,49 +8100,34 @@ private Mode(int value) {
     public static final int MODE_FIELD_NUMBER = 1;
     private int mode_ = 0;
     /**
-     *
-     *
      * 
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The mode. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode getMode() { - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode result = - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.forNumber( - mode_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode result = com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.forNumber(mode_); + return result == null ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9182,11 +8139,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode - .MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } getUnknownFields().writeTo(output); @@ -9198,11 +8153,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode - .MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + if (mode_ != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9212,13 +8165,12 @@ 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) obj; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -9240,95 +8192,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec 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 @@ -9338,43 +8284,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The specification for query spell correction.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec} */ - 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.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder - .class); + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -9384,22 +8326,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec build() { - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec result = - buildPartial(); + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9408,17 +8347,13 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec bui @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mode_ = mode_; @@ -9429,54 +8364,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec other) { + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } @@ -9506,19 +8433,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9528,40 +8453,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int mode_ = 0; /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -9572,46 +8487,32 @@ public Builder setModeValue(int value) { return this; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode getMode() { - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode result = - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.forNumber( - mode_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode - .UNRECOGNIZED - : result; + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode result = com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.forNumber(mode_); + return result == null ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED : result; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMode( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode value) { + public Builder setMode(com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode value) { if (value == null) { throw new NullPointerException(); } @@ -9621,17 +8522,13 @@ public Builder setMode( return this; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return This builder for chaining. */ public Builder clearMode() { @@ -9640,7 +8537,6 @@ public Builder clearMode() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9653,45 +8549,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpellCorrectionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpellCorrectionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9703,159 +8595,120 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContentSearchSpecOrBuilder - extends + public interface ContentSearchSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return Whether the snippetSpec field is set. */ boolean hasSnippetSpec(); /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return The snippetSpec. */ - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec(); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec(); /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder - getSnippetSpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder(); /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return Whether the summarySpec field is set. */ boolean hasSummarySpec(); /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return The summarySpec. */ - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec(); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec(); /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder(); } /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec} */ - public static final class ContentSearchSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ContentSearchSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) ContentSearchSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContentSearchSpec.newBuilder() to construct. private ContentSearchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ContentSearchSpec() {} + private ContentSearchSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContentSearchSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder.class); } - public interface SnippetSpecOrBuilder - extends + public interface SnippetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * [DEPRECATED] This field is deprecated. To control snippet return, use
        * `return_snippet` field. For backwards compatibility, we will return
@@ -9863,36 +8716,26 @@ public interface SnippetSpecOrBuilder
        * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=304 * @return The maxSnippetCount. */ - @java.lang.Deprecated - int getMaxSnippetCount(); + @java.lang.Deprecated int getMaxSnippetCount(); /** - * - * *
        * [DEPRECATED] This field is deprecated and will have no affect on the
        * snippet.
        * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=308 * @return The referenceOnly. */ - @java.lang.Deprecated - boolean getReferenceOnly(); + @java.lang.Deprecated boolean getReferenceOnly(); /** - * - * *
        * If `true`, then return snippet. If no snippet can be generated, we
        * return "No snippet is available for this page." A `snippet_status` with
@@ -9900,61 +8743,52 @@ public interface SnippetSpecOrBuilder
        * 
* * bool return_snippet = 3; - * * @return The returnSnippet. */ boolean getReturnSnippet(); } /** - * - * *
      * A specification for configuring snippets in a search response.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec} */ - public static final class SnippetSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SnippetSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) SnippetSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnippetSpec.newBuilder() to construct. private SnippetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SnippetSpec() {} + private SnippetSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SnippetSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .class, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder.class); } public static final int MAX_SNIPPET_COUNT_FIELD_NUMBER = 1; private int maxSnippetCount_ = 0; /** - * - * *
        * [DEPRECATED] This field is deprecated. To control snippet return, use
        * `return_snippet` field. For backwards compatibility, we will return
@@ -9962,46 +8796,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=304 * @return The maxSnippetCount. */ @java.lang.Override - @java.lang.Deprecated - public int getMaxSnippetCount() { + @java.lang.Deprecated public int getMaxSnippetCount() { return maxSnippetCount_; } public static final int REFERENCE_ONLY_FIELD_NUMBER = 2; private boolean referenceOnly_ = false; /** - * - * *
        * [DEPRECATED] This field is deprecated and will have no affect on the
        * snippet.
        * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=308 * @return The referenceOnly. */ @java.lang.Override - @java.lang.Deprecated - public boolean getReferenceOnly() { + @java.lang.Deprecated public boolean getReferenceOnly() { return referenceOnly_; } public static final int RETURN_SNIPPET_FIELD_NUMBER = 3; private boolean returnSnippet_ = false; /** - * - * *
        * If `true`, then return snippet. If no snippet can be generated, we
        * return "No snippet is available for this page." A `snippet_status` with
@@ -10009,7 +8833,6 @@ public boolean getReferenceOnly() {
        * 
* * bool return_snippet = 3; - * * @return The returnSnippet. */ @java.lang.Override @@ -10018,7 +8841,6 @@ public boolean getReturnSnippet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10030,7 +8852,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 (maxSnippetCount_ != 0) { output.writeInt32(1, maxSnippetCount_); } @@ -10050,13 +8873,16 @@ public int getSerializedSize() { size = 0; if (maxSnippetCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxSnippetCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxSnippetCount_); } if (referenceOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, referenceOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, referenceOnly_); } if (returnSnippet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, returnSnippet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, returnSnippet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10066,19 +8892,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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) obj; - if (getMaxSnippetCount() != other.getMaxSnippetCount()) return false; - if (getReferenceOnly() != other.getReferenceOnly()) return false; - if (getReturnSnippet() != other.getReturnSnippet()) return false; + if (getMaxSnippetCount() + != other.getMaxSnippetCount()) return false; + if (getReferenceOnly() + != other.getReferenceOnly()) return false; + if (getReturnSnippet() + != other.getReturnSnippet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10093,112 +8919,100 @@ public int hashCode() { hash = (37 * hash) + MAX_SNIPPET_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxSnippetCount(); hash = (37 * hash) + REFERENCE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferenceOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReferenceOnly()); hash = (37 * hash) + RETURN_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnSnippet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnSnippet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec 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 @@ -10208,45 +9022,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A specification for configuring snippets in a search response.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec} */ - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .class, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -10258,23 +9066,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - build() { - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec result = - buildPartial(); + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec build() { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10282,21 +9086,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxSnippetCount_ = maxSnippetCount_; @@ -10313,56 +9110,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec other) { + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance()) return this; if (other.getMaxSnippetCount() != 0) { setMaxSnippetCount(other.getMaxSnippetCount()); } @@ -10398,31 +9185,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - maxSnippetCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - referenceOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - returnSnippet_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + maxSnippetCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + referenceOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + returnSnippet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10432,13 +9215,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int maxSnippetCount_; + private int maxSnippetCount_ ; /** - * - * *
          * [DEPRECATED] This field is deprecated. To control snippet return, use
          * `return_snippet` field. For backwards compatibility, we will return
@@ -10446,20 +9226,15 @@ public Builder mergeFrom(
          * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=304 * @return The maxSnippetCount. */ @java.lang.Override - @java.lang.Deprecated - public int getMaxSnippetCount() { + @java.lang.Deprecated public int getMaxSnippetCount() { return maxSnippetCount_; } /** - * - * *
          * [DEPRECATED] This field is deprecated. To control snippet return, use
          * `return_snippet` field. For backwards compatibility, we will return
@@ -10467,15 +9242,12 @@ public int getMaxSnippetCount() {
          * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=304 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setMaxSnippetCount(int value) { + @java.lang.Deprecated public Builder setMaxSnippetCount(int value) { maxSnippetCount_ = value; bitField0_ |= 0x00000001; @@ -10483,8 +9255,6 @@ public Builder setMaxSnippetCount(int value) { return this; } /** - * - * *
          * [DEPRECATED] This field is deprecated. To control snippet return, use
          * `return_snippet` field. For backwards compatibility, we will return
@@ -10492,59 +9262,46 @@ public Builder setMaxSnippetCount(int value) {
          * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=304 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearMaxSnippetCount() { + @java.lang.Deprecated public Builder clearMaxSnippetCount() { bitField0_ = (bitField0_ & ~0x00000001); maxSnippetCount_ = 0; onChanged(); return this; } - private boolean referenceOnly_; + private boolean referenceOnly_ ; /** - * - * *
          * [DEPRECATED] This field is deprecated and will have no affect on the
          * snippet.
          * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=308 * @return The referenceOnly. */ @java.lang.Override - @java.lang.Deprecated - public boolean getReferenceOnly() { + @java.lang.Deprecated public boolean getReferenceOnly() { return referenceOnly_; } /** - * - * *
          * [DEPRECATED] This field is deprecated and will have no affect on the
          * snippet.
          * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=308 * @param value The referenceOnly to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setReferenceOnly(boolean value) { + @java.lang.Deprecated public Builder setReferenceOnly(boolean value) { referenceOnly_ = value; bitField0_ |= 0x00000002; @@ -10552,32 +9309,25 @@ public Builder setReferenceOnly(boolean value) { return this; } /** - * - * *
          * [DEPRECATED] This field is deprecated and will have no affect on the
          * snippet.
          * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1/search_service.proto;l=308 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearReferenceOnly() { + @java.lang.Deprecated public Builder clearReferenceOnly() { bitField0_ = (bitField0_ & ~0x00000002); referenceOnly_ = false; onChanged(); return this; } - private boolean returnSnippet_; + private boolean returnSnippet_ ; /** - * - * *
          * If `true`, then return snippet. If no snippet can be generated, we
          * return "No snippet is available for this page." A `snippet_status` with
@@ -10585,7 +9335,6 @@ public Builder clearReferenceOnly() {
          * 
* * bool return_snippet = 3; - * * @return The returnSnippet. */ @java.lang.Override @@ -10593,8 +9342,6 @@ public boolean getReturnSnippet() { return returnSnippet_; } /** - * - * *
          * If `true`, then return snippet. If no snippet can be generated, we
          * return "No snippet is available for this page." A `snippet_status` with
@@ -10602,7 +9349,6 @@ public boolean getReturnSnippet() {
          * 
* * bool return_snippet = 3; - * * @param value The returnSnippet to set. * @return This builder for chaining. */ @@ -10614,8 +9360,6 @@ public Builder setReturnSnippet(boolean value) { return this; } /** - * - * *
          * If `true`, then return snippet. If no snippet can be generated, we
          * return "No snippet is available for this page." A `snippet_status` with
@@ -10623,7 +9367,6 @@ public Builder setReturnSnippet(boolean value) {
          * 
* * bool return_snippet = 3; - * * @return This builder for chaining. */ public Builder clearReturnSnippet() { @@ -10632,7 +9375,6 @@ public Builder clearReturnSnippet() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10645,46 +9387,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SnippetSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnippetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnippetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10696,20 +9433,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SummarySpecOrBuilder - extends + public interface SummarySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The number of top results to generate the summary from. If the number
        * of results returned is less than `summaryResultCount`, the summary is
@@ -10719,14 +9453,11 @@ public interface SummarySpecOrBuilder
        * 
* * int32 summary_result_count = 1; - * * @return The summaryResultCount. */ int getSummaryResultCount(); /** - * - * *
        * Specifies whether to include citations in the summary. The default
        * value is `false`.
@@ -10748,14 +9479,11 @@ public interface SummarySpecOrBuilder
        * 
* * bool include_citations = 2; - * * @return The includeCitations. */ boolean getIncludeCitations(); /** - * - * *
        * Specifies whether to filter out adversarial queries. The default value
        * is `false`.
@@ -10770,14 +9498,11 @@ public interface SummarySpecOrBuilder
        * 
* * bool ignore_adversarial_query = 3; - * * @return The ignoreAdversarialQuery. */ boolean getIgnoreAdversarialQuery(); /** - * - * *
        * Specifies whether to filter out queries that are not summary-seeking.
        * The default value is `false`.
@@ -10793,91 +9518,76 @@ public interface SummarySpecOrBuilder
        * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return The ignoreNonSummarySeekingQuery. */ boolean getIgnoreNonSummarySeekingQuery(); /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
      * A specification for configuring a summary returned in a search
      * response.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec} */ - public static final class SummarySpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SummarySpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) SummarySpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SummarySpec.newBuilder() to construct. private SummarySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SummarySpec() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SummarySpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .class, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder.class); } public static final int SUMMARY_RESULT_COUNT_FIELD_NUMBER = 1; private int summaryResultCount_ = 0; /** - * - * *
        * The number of top results to generate the summary from. If the number
        * of results returned is less than `summaryResultCount`, the summary is
@@ -10887,7 +9597,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * int32 summary_result_count = 1; - * * @return The summaryResultCount. */ @java.lang.Override @@ -10898,8 +9607,6 @@ public int getSummaryResultCount() { public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 2; private boolean includeCitations_ = false; /** - * - * *
        * Specifies whether to include citations in the summary. The default
        * value is `false`.
@@ -10921,7 +9628,6 @@ public int getSummaryResultCount() {
        * 
* * bool include_citations = 2; - * * @return The includeCitations. */ @java.lang.Override @@ -10932,8 +9638,6 @@ public boolean getIncludeCitations() { public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 3; private boolean ignoreAdversarialQuery_ = false; /** - * - * *
        * Specifies whether to filter out adversarial queries. The default value
        * is `false`.
@@ -10948,7 +9652,6 @@ public boolean getIncludeCitations() {
        * 
* * bool ignore_adversarial_query = 3; - * * @return The ignoreAdversarialQuery. */ @java.lang.Override @@ -10959,8 +9662,6 @@ public boolean getIgnoreAdversarialQuery() { public static final int IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER = 4; private boolean ignoreNonSummarySeekingQuery_ = false; /** - * - * *
        * Specifies whether to filter out queries that are not summary-seeking.
        * The default value is `false`.
@@ -10976,7 +9677,6 @@ public boolean getIgnoreAdversarialQuery() {
        * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return The ignoreNonSummarySeekingQuery. */ @java.lang.Override @@ -10985,19 +9685,15 @@ public boolean getIgnoreNonSummarySeekingQuery() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @return The languageCode. */ @java.lang.Override @@ -11006,30 +9702,30 @@ 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; } } /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @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 { @@ -11038,7 +9734,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11050,7 +9745,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 (summaryResultCount_ != 0) { output.writeInt32(1, summaryResultCount_); } @@ -11076,18 +9772,20 @@ public int getSerializedSize() { size = 0; if (summaryResultCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, summaryResultCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, summaryResultCount_); } if (includeCitations_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeCitations_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeCitations_); } if (ignoreAdversarialQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreAdversarialQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, ignoreAdversarialQuery_); } if (ignoreNonSummarySeekingQuery_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 4, ignoreNonSummarySeekingQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, ignoreNonSummarySeekingQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -11100,22 +9798,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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) obj; - - if (getSummaryResultCount() != other.getSummaryResultCount()) return false; - if (getIncludeCitations() != other.getIncludeCitations()) return false; - if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; - if (getIgnoreNonSummarySeekingQuery() != other.getIgnoreNonSummarySeekingQuery()) - return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) obj; + + if (getSummaryResultCount() + != other.getSummaryResultCount()) return false; + if (getIncludeCitations() + != other.getIncludeCitations()) return false; + if (getIgnoreAdversarialQuery() + != other.getIgnoreAdversarialQuery()) return false; + if (getIgnoreNonSummarySeekingQuery() + != other.getIgnoreNonSummarySeekingQuery()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11130,13 +9829,14 @@ public int hashCode() { hash = (37 * hash) + SUMMARY_RESULT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getSummaryResultCount(); hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCitations()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeCitations()); hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreAdversarialQuery()); hash = (37 * hash) + IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getIgnoreNonSummarySeekingQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreNonSummarySeekingQuery()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -11144,104 +9844,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec 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 @@ -11251,46 +9937,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A specification for configuring a summary returned in a search
        * response.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec} */ - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .class, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -11304,23 +9984,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - build() { - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec result = - buildPartial(); + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec build() { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11328,21 +10004,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.summaryResultCount_ = summaryResultCount_; @@ -11365,56 +10034,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec other) { + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) return this; if (other.getSummaryResultCount() != 0) { setSummaryResultCount(other.getSummaryResultCount()); } @@ -11458,43 +10117,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - summaryResultCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - includeCitations_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ignoreAdversarialQuery_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ignoreNonSummarySeekingQuery_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 50: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + summaryResultCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + includeCitations_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ignoreAdversarialQuery_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ignoreNonSummarySeekingQuery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11504,13 +10157,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int summaryResultCount_; + private int summaryResultCount_ ; /** - * - * *
          * The number of top results to generate the summary from. If the number
          * of results returned is less than `summaryResultCount`, the summary is
@@ -11520,7 +10170,6 @@ public Builder mergeFrom(
          * 
* * int32 summary_result_count = 1; - * * @return The summaryResultCount. */ @java.lang.Override @@ -11528,8 +10177,6 @@ public int getSummaryResultCount() { return summaryResultCount_; } /** - * - * *
          * The number of top results to generate the summary from. If the number
          * of results returned is less than `summaryResultCount`, the summary is
@@ -11539,7 +10186,6 @@ public int getSummaryResultCount() {
          * 
* * int32 summary_result_count = 1; - * * @param value The summaryResultCount to set. * @return This builder for chaining. */ @@ -11551,8 +10197,6 @@ public Builder setSummaryResultCount(int value) { return this; } /** - * - * *
          * The number of top results to generate the summary from. If the number
          * of results returned is less than `summaryResultCount`, the summary is
@@ -11562,7 +10206,6 @@ public Builder setSummaryResultCount(int value) {
          * 
* * int32 summary_result_count = 1; - * * @return This builder for chaining. */ public Builder clearSummaryResultCount() { @@ -11572,10 +10215,8 @@ public Builder clearSummaryResultCount() { return this; } - private boolean includeCitations_; + private boolean includeCitations_ ; /** - * - * *
          * Specifies whether to include citations in the summary. The default
          * value is `false`.
@@ -11597,7 +10238,6 @@ public Builder clearSummaryResultCount() {
          * 
* * bool include_citations = 2; - * * @return The includeCitations. */ @java.lang.Override @@ -11605,8 +10245,6 @@ public boolean getIncludeCitations() { return includeCitations_; } /** - * - * *
          * Specifies whether to include citations in the summary. The default
          * value is `false`.
@@ -11628,7 +10266,6 @@ public boolean getIncludeCitations() {
          * 
* * bool include_citations = 2; - * * @param value The includeCitations to set. * @return This builder for chaining. */ @@ -11640,8 +10277,6 @@ public Builder setIncludeCitations(boolean value) { return this; } /** - * - * *
          * Specifies whether to include citations in the summary. The default
          * value is `false`.
@@ -11663,7 +10298,6 @@ public Builder setIncludeCitations(boolean value) {
          * 
* * bool include_citations = 2; - * * @return This builder for chaining. */ public Builder clearIncludeCitations() { @@ -11673,10 +10307,8 @@ public Builder clearIncludeCitations() { return this; } - private boolean ignoreAdversarialQuery_; + private boolean ignoreAdversarialQuery_ ; /** - * - * *
          * Specifies whether to filter out adversarial queries. The default value
          * is `false`.
@@ -11691,7 +10323,6 @@ public Builder clearIncludeCitations() {
          * 
* * bool ignore_adversarial_query = 3; - * * @return The ignoreAdversarialQuery. */ @java.lang.Override @@ -11699,8 +10330,6 @@ public boolean getIgnoreAdversarialQuery() { return ignoreAdversarialQuery_; } /** - * - * *
          * Specifies whether to filter out adversarial queries. The default value
          * is `false`.
@@ -11715,7 +10344,6 @@ public boolean getIgnoreAdversarialQuery() {
          * 
* * bool ignore_adversarial_query = 3; - * * @param value The ignoreAdversarialQuery to set. * @return This builder for chaining. */ @@ -11727,8 +10355,6 @@ public Builder setIgnoreAdversarialQuery(boolean value) { return this; } /** - * - * *
          * Specifies whether to filter out adversarial queries. The default value
          * is `false`.
@@ -11743,7 +10369,6 @@ public Builder setIgnoreAdversarialQuery(boolean value) {
          * 
* * bool ignore_adversarial_query = 3; - * * @return This builder for chaining. */ public Builder clearIgnoreAdversarialQuery() { @@ -11753,10 +10378,8 @@ public Builder clearIgnoreAdversarialQuery() { return this; } - private boolean ignoreNonSummarySeekingQuery_; + private boolean ignoreNonSummarySeekingQuery_ ; /** - * - * *
          * Specifies whether to filter out queries that are not summary-seeking.
          * The default value is `false`.
@@ -11772,7 +10395,6 @@ public Builder clearIgnoreAdversarialQuery() {
          * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return The ignoreNonSummarySeekingQuery. */ @java.lang.Override @@ -11780,8 +10402,6 @@ public boolean getIgnoreNonSummarySeekingQuery() { return ignoreNonSummarySeekingQuery_; } /** - * - * *
          * Specifies whether to filter out queries that are not summary-seeking.
          * The default value is `false`.
@@ -11797,7 +10417,6 @@ public boolean getIgnoreNonSummarySeekingQuery() {
          * 
* * bool ignore_non_summary_seeking_query = 4; - * * @param value The ignoreNonSummarySeekingQuery to set. * @return This builder for chaining. */ @@ -11809,8 +10428,6 @@ public Builder setIgnoreNonSummarySeekingQuery(boolean value) { return this; } /** - * - * *
          * Specifies whether to filter out queries that are not summary-seeking.
          * The default value is `false`.
@@ -11826,7 +10443,6 @@ public Builder setIgnoreNonSummarySeekingQuery(boolean value) {
          * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return This builder for chaining. */ public Builder clearIgnoreNonSummarySeekingQuery() { @@ -11838,21 +10454,19 @@ public Builder clearIgnoreNonSummarySeekingQuery() { private java.lang.Object languageCode_ = ""; /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @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; @@ -11861,22 +10475,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @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 { @@ -11884,37 +10497,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -11924,29 +10530,24 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11959,46 +10560,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SummarySpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12010,27 +10606,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippetSpec_; /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return Whether the snippetSpec field is set. */ @java.lang.Override @@ -12038,63 +10628,40 @@ public boolean hasSnippetSpec() { return snippetSpec_ != null; } /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return The snippetSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec() { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder() { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return Whether the summarySpec field is set. */ @java.lang.Override @@ -12102,50 +10669,32 @@ public boolean hasSummarySpec() { return summarySpec_ != null; } /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return The summarySpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12157,7 +10706,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 (snippetSpec_ != null) { output.writeMessage(1, getSnippetSpec()); } @@ -12174,10 +10724,12 @@ public int getSerializedSize() { size = 0; if (snippetSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnippetSpec()); } if (summarySpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSummarySpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12187,21 +10739,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.discoveryengine.v1.SearchRequest.ContentSearchSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec other = (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) obj; if (hasSnippetSpec() != other.hasSnippetSpec()) return false; if (hasSnippetSpec()) { - if (!getSnippetSpec().equals(other.getSnippetSpec())) return false; + if (!getSnippetSpec() + .equals(other.getSnippetSpec())) return false; } if (hasSummarySpec() != other.hasSummarySpec()) return false; if (hasSummarySpec()) { - if (!getSummarySpec().equals(other.getSummarySpec())) return false; + if (!getSummarySpec() + .equals(other.getSummarySpec())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -12228,95 +10781,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec 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.discoveryengine.v1.SearchRequest.ContentSearchSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec 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 @@ -12326,42 +10873,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec} */ - 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.discoveryengine.v1.SearchRequest.ContentSearchSpec) com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.class, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -12380,16 +10924,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance(); } @java.lang.Override @@ -12403,25 +10945,23 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec build @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec result = new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snippetSpec_ = - snippetSpecBuilder_ == null ? snippetSpec_ : snippetSpecBuilder_.build(); + result.snippetSpec_ = snippetSpecBuilder_ == null + ? snippetSpec_ + : snippetSpecBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.summarySpec_ = - summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build(); + result.summarySpec_ = summarySpecBuilder_ == null + ? summarySpec_ + : summarySpecBuilder_.build(); } } @@ -12429,53 +10969,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec other) { + if (other == com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance()) return this; if (other.hasSnippetSpec()) { mergeSnippetSpec(other.getSnippetSpec()); } @@ -12508,25 +11041,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSnippetSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSummarySpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSnippetSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSummarySpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12536,74 +11070,48 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippetSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> - snippetSpecBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder> snippetSpecBuilder_; /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return Whether the snippetSpec field is set. */ public boolean hasSnippetSpec() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return The snippetSpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec() { if (snippetSpecBuilder_ == null) { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } else { return snippetSpecBuilder_.getMessage(); } } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec value) { + public Builder setSnippetSpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec value) { if (snippetSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12617,20 +11125,15 @@ public Builder setSnippetSpec( return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue) { if (snippetSpecBuilder_ == null) { snippetSpec_ = builderForValue.build(); } else { @@ -12641,25 +11144,18 @@ public Builder setSnippetSpec( return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public Builder mergeSnippetSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec value) { + public Builder mergeSnippetSpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec value) { if (snippetSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snippetSpec_ != null - && snippetSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + snippetSpec_ != null && + snippetSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance()) { getSnippetSpecBuilder().mergeFrom(value); } else { snippetSpec_ = value; @@ -12672,16 +11168,12 @@ public Builder mergeSnippetSpec( return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ public Builder clearSnippetSpec() { bitField0_ = (bitField0_ & ~0x00000001); @@ -12694,144 +11186,96 @@ public Builder clearSnippetSpec() { return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder - getSnippetSpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder getSnippetSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSnippetSpecFieldBuilder().getBuilder(); } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder() { if (snippetSpecBuilder_ != null) { return snippetSpecBuilder_.getMessageOrBuilder(); } else { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + return snippetSpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder> getSnippetSpecFieldBuilder() { if (snippetSpecBuilder_ == null) { - snippetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder>(getSnippetSpec(), getParentForChildren(), isClean()); + snippetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder>( + getSnippetSpec(), + getParentForChildren(), + isClean()); snippetSpec_ = null; } return snippetSpecBuilder_; } - private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> - summarySpecBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> summarySpecBuilder_; /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return Whether the summarySpec field is set. */ public boolean hasSummarySpec() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return The summarySpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { if (summarySpecBuilder_ == null) { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } else { return summarySpecBuilder_.getMessage(); } } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { + public Builder setSummarySpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12845,20 +11289,15 @@ public Builder setSummarySpec( return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue) { if (summarySpecBuilder_ == null) { summarySpec_ = builderForValue.build(); } else { @@ -12869,25 +11308,18 @@ public Builder setSummarySpec( return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public Builder mergeSummarySpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { + public Builder mergeSummarySpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && summarySpec_ != null - && summarySpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + summarySpec_ != null && + summarySpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) { getSummarySpecBuilder().mergeFrom(value); } else { summarySpec_ = value; @@ -12900,16 +11332,12 @@ public Builder mergeSummarySpec( return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ public Builder clearSummarySpec() { bitField0_ = (bitField0_ & ~0x00000002); @@ -12922,79 +11350,55 @@ public Builder clearSummarySpec() { return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder - getSummarySpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSummarySpecFieldBuilder().getBuilder(); } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { if (summarySpecBuilder_ != null) { return summarySpecBuilder_.getMessageOrBuilder(); } else { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> getSummarySpecFieldBuilder() { if (summarySpecBuilder_ == null) { - summarySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); + summarySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder>( + getSummarySpec(), + getParentForChildren(), + isClean()); summarySpec_ = null; } return summarySpecBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13007,44 +11411,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentSearchSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentSearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13056,19 +11457,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SERVING_CONFIG_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object servingConfig_ = ""; /** - * - * *
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -13076,10 +11474,7 @@ public com.google.protobuf.Parser getParserForType() {
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ @java.lang.Override @@ -13088,15 +11483,14 @@ public java.lang.String getServingConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -13104,18 +11498,17 @@ public java.lang.String getServingConfig() {
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -13124,12 +11517,9 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } public static final int BRANCH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object branch_ = ""; /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -13139,7 +11529,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The branch. */ @java.lang.Override @@ -13148,15 +11537,14 @@ public java.lang.String getBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); branch_ = s; return s; } } /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -13166,15 +11554,16 @@ public java.lang.String getBranch() {
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for branch. */ @java.lang.Override - public com.google.protobuf.ByteString getBranchBytes() { + public com.google.protobuf.ByteString + getBranchBytes() { java.lang.Object ref = branch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); branch_ = b; return b; } else { @@ -13183,18 +11572,14 @@ public com.google.protobuf.ByteString getBranchBytes() { } public static final int QUERY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The query. */ @java.lang.Override @@ -13203,29 +11588,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -13236,14 +11621,11 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int IMAGE_QUERY_FIELD_NUMBER = 19; private com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery imageQuery_; /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * * @return Whether the imageQuery field is set. */ @java.lang.Override @@ -13251,25 +11633,18 @@ public boolean hasImageQuery() { return imageQuery_ != null; } /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * * @return The imageQuery. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getImageQuery() { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } /** - * - * *
    * Raw image query.
    * 
@@ -13277,18 +11652,13 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getImageQuer * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder() { + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
    * return. If unspecified, defaults to a reasonable value. The maximum allowed
@@ -13298,7 +11668,6 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getImageQuer
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -13307,12 +11676,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -13325,7 +11691,6 @@ public int getPageSize() {
    * 
* * string page_token = 5; - * * @return The pageToken. */ @java.lang.Override @@ -13334,15 +11699,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -13355,15 +11719,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 5; - * * @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 { @@ -13374,8 +11739,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int OFFSET_FIELD_NUMBER = 6; private int offset_ = 0; /** - * - * *
    * A 0-indexed integer that specifies the current offset (that is, starting
    * result location, amongst the
@@ -13388,7 +11751,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 offset = 6; - * * @return The offset. */ @java.lang.Override @@ -13397,12 +11759,9 @@ public int getOffset() { } public static final int FILTER_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -13412,7 +11771,6 @@ public int getOffset() {
    * 
* * string filter = 7; - * * @return The filter. */ @java.lang.Override @@ -13421,15 +11779,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; } } /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -13439,15 +11796,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 7; - * * @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 { @@ -13456,12 +11814,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -13472,7 +11827,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 8; - * * @return The orderBy. */ @java.lang.Override @@ -13481,15 +11835,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -13500,15 +11853,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -13519,8 +11873,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int USER_INFO_FIELD_NUMBER = 21; private com.google.cloud.discoveryengine.v1.UserInfo userInfo_; /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -13529,7 +11881,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -13537,8 +11888,6 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -13547,18 +11896,13 @@ public boolean hasUserInfo() {
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * * @return The userInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -13570,18 +11914,13 @@ public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder() {
-    return userInfo_ == null
-        ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()
-        : userInfo_;
+    return userInfo_ == null ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_;
   }
 
   public static final int FACET_SPECS_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
   private java.util.List facetSpecs_;
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -13592,13 +11931,10 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde
    * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;
    */
   @java.lang.Override
-  public java.util.List
-      getFacetSpecsList() {
+  public java.util.List getFacetSpecsList() {
     return facetSpecs_;
   }
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -13609,14 +11945,11 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde
    * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>
+  public java.util.List 
       getFacetSpecsOrBuilderList() {
     return facetSpecs_;
   }
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -13631,8 +11964,6 @@ public int getFacetSpecsCount() {
     return facetSpecs_.size();
   }
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -13647,8 +11978,6 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getFacetSpecs
     return facetSpecs_.get(index);
   }
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -13659,22 +11988,19 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getFacetSpecs
    * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;
    */
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder
-      getFacetSpecsOrBuilder(int index) {
+  public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder(
+      int index) {
     return facetSpecs_.get(index);
   }
 
   public static final int BOOST_SPEC_FIELD_NUMBER = 10;
   private com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boostSpec_;
   /**
-   *
-   *
    * 
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * * @return Whether the boostSpec field is set. */ @java.lang.Override @@ -13682,25 +12008,18 @@ public boolean hasBoostSpec() { return boostSpec_ != null; } /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * * @return The boostSpec. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getBoostSpec() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } /** - * - * *
    * Boost specification to boost certain documents.
    * 
@@ -13708,45 +12027,37 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getBoostSpec( * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } public static final int PARAMS_FIELD_NUMBER = 11; - 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.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - @SuppressWarnings("serial") - 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_; } - public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Additional search parameters.
    *
@@ -13762,21 +12073,20 @@ public int getParamsCount() {
    * map<string, .google.protobuf.Value> params = 11;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -13796,8 +12106,6 @@ public java.util.Map getParamsMap()
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -13813,19 +12121,17 @@ public java.util.Map getParamsMap()
    * map<string, .google.protobuf.Value> params = 11;
    */
   @java.lang.Override
-  public /* nullable */ com.google.protobuf.Value getParamsOrDefault(
+  public /* nullable */
+com.google.protobuf.Value getParamsOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetParams().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -13841,11 +12147,11 @@ public java.util.Map getParamsMap()
    * map<string, .google.protobuf.Value> params = 11;
    */
   @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();
     }
@@ -13855,17 +12161,12 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) {
   public static final int QUERY_EXPANSION_SPEC_FIELD_NUMBER = 13;
   private com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec queryExpansionSpec_;
   /**
-   *
-   *
    * 
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return Whether the queryExpansionSpec field is set. */ @java.lang.Override @@ -13873,61 +12174,40 @@ public boolean hasQueryExpansionSpec() { return queryExpansionSpec_ != null; } /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return The queryExpansionSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - getQueryExpansionSpec() { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance() - : queryExpansionSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec getQueryExpansionSpec() { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder() { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance() - : queryExpansionSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder() { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } public static final int SPELL_CORRECTION_SPEC_FIELD_NUMBER = 14; - private com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - spellCorrectionSpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spellCorrectionSpec_; /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return Whether the spellCorrectionSpec field is set. */ @java.lang.Override @@ -13935,53 +12215,35 @@ public boolean hasSpellCorrectionSpec() { return spellCorrectionSpec_ != null; } /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return The spellCorrectionSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec() { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance() - : spellCorrectionSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec() { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance() - : spellCorrectionSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder() { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -14000,7 +12262,6 @@ public boolean hasSpellCorrectionSpec() {
    * 
* * string user_pseudo_id = 15; - * * @return The userPseudoId. */ @java.lang.Override @@ -14009,15 +12270,14 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -14036,15 +12296,16 @@ public java.lang.String getUserPseudoId() {
    * 
* * string user_pseudo_id = 15; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -14055,16 +12316,11 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER = 24; private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec contentSearchSpec_; /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return Whether the contentSearchSpec field is set. */ @java.lang.Override @@ -14072,56 +12328,38 @@ public boolean hasContentSearchSpec() { return contentSearchSpec_ != null; } /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return The contentSearchSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - getContentSearchSpec() { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance() - : contentSearchSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec getContentSearchSpec() { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance() - : contentSearchSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder() { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } public static final int SAFE_SEARCH_FIELD_NUMBER = 20; private boolean safeSearch_ = false; /** - * - * *
    * Whether to turn on safe search. This is only supported for
    * website search.
    * 
* * bool safe_search = 20; - * * @return The safeSearch. */ @java.lang.Override @@ -14130,34 +12368,32 @@ public boolean getSafeSearch() { } public static final int USER_LABELS_FIELD_NUMBER = 22; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_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.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -14181,21 +12417,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 22;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -14223,8 +12458,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -14248,19 +12481,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 22;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -14284,11 +12515,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 22;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -14296,7 +12527,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -14308,7 +12538,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(servingConfig_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_);
     }
@@ -14339,8 +12570,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (boostSpec_ != null) {
       output.writeMessage(10, getBoostSpec());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 11);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        11);
     if (queryExpansionSpec_ != null) {
       output.writeMessage(13, getQueryExpansionSpec());
     }
@@ -14359,8 +12594,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (userInfo_ != null) {
       output.writeMessage(21, getUserInfo());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 22);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetUserLabels(),
+        UserLabelsDefaultEntryHolder.defaultEntry,
+        22);
     if (contentSearchSpec_ != null) {
       output.writeMessage(24, getContentSearchSpec());
     }
@@ -14383,13 +12622,15 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_);
     }
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(4, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_);
     }
     if (offset_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(6, offset_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_);
@@ -14398,52 +12639,59 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_);
     }
     for (int i = 0; i < facetSpecs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, facetSpecs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, facetSpecs_.get(i));
     }
     if (boostSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getBoostSpec());
-    }
-    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(11, params__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getBoostSpec());
+    }
+    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(11, params__);
     }
     if (queryExpansionSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getQueryExpansionSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getQueryExpansionSpec());
     }
     if (spellCorrectionSpec_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSpellCorrectionSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getSpellCorrectionSpec());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, userPseudoId_);
     }
     if (imageQuery_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getImageQuery());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, getImageQuery());
     }
     if (safeSearch_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, safeSearch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(20, safeSearch_);
     }
     if (userInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUserInfo());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry userLabels__ =
-          UserLabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, userLabels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getUserInfo());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(22, userLabels__);
     }
     if (contentSearchSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getContentSearchSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(24, getContentSearchSpec());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -14453,51 +12701,69 @@ 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.discoveryengine.v1.SearchRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1.SearchRequest other =
-        (com.google.cloud.discoveryengine.v1.SearchRequest) obj;
+    com.google.cloud.discoveryengine.v1.SearchRequest other = (com.google.cloud.discoveryengine.v1.SearchRequest) obj;
 
-    if (!getServingConfig().equals(other.getServingConfig())) return false;
-    if (!getBranch().equals(other.getBranch())) return false;
-    if (!getQuery().equals(other.getQuery())) return false;
+    if (!getServingConfig()
+        .equals(other.getServingConfig())) return false;
+    if (!getBranch()
+        .equals(other.getBranch())) return false;
+    if (!getQuery()
+        .equals(other.getQuery())) return false;
     if (hasImageQuery() != other.hasImageQuery()) return false;
     if (hasImageQuery()) {
-      if (!getImageQuery().equals(other.getImageQuery())) return false;
-    }
-    if (getPageSize() != other.getPageSize()) return false;
-    if (!getPageToken().equals(other.getPageToken())) return false;
-    if (getOffset() != other.getOffset()) return false;
-    if (!getFilter().equals(other.getFilter())) return false;
-    if (!getOrderBy().equals(other.getOrderBy())) return false;
+      if (!getImageQuery()
+          .equals(other.getImageQuery())) return false;
+    }
+    if (getPageSize()
+        != other.getPageSize()) return false;
+    if (!getPageToken()
+        .equals(other.getPageToken())) return false;
+    if (getOffset()
+        != other.getOffset()) return false;
+    if (!getFilter()
+        .equals(other.getFilter())) return false;
+    if (!getOrderBy()
+        .equals(other.getOrderBy())) 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 (!getFacetSpecsList().equals(other.getFacetSpecsList())) return false;
+    if (!getFacetSpecsList()
+        .equals(other.getFacetSpecsList())) return false;
     if (hasBoostSpec() != other.hasBoostSpec()) return false;
     if (hasBoostSpec()) {
-      if (!getBoostSpec().equals(other.getBoostSpec())) return false;
+      if (!getBoostSpec()
+          .equals(other.getBoostSpec())) return false;
     }
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
     if (hasQueryExpansionSpec() != other.hasQueryExpansionSpec()) return false;
     if (hasQueryExpansionSpec()) {
-      if (!getQueryExpansionSpec().equals(other.getQueryExpansionSpec())) return false;
+      if (!getQueryExpansionSpec()
+          .equals(other.getQueryExpansionSpec())) return false;
     }
     if (hasSpellCorrectionSpec() != other.hasSpellCorrectionSpec()) return false;
     if (hasSpellCorrectionSpec()) {
-      if (!getSpellCorrectionSpec().equals(other.getSpellCorrectionSpec())) return false;
+      if (!getSpellCorrectionSpec()
+          .equals(other.getSpellCorrectionSpec())) return false;
     }
-    if (!getUserPseudoId().equals(other.getUserPseudoId())) return false;
+    if (!getUserPseudoId()
+        .equals(other.getUserPseudoId())) return false;
     if (hasContentSearchSpec() != other.hasContentSearchSpec()) return false;
     if (hasContentSearchSpec()) {
-      if (!getContentSearchSpec().equals(other.getContentSearchSpec())) return false;
+      if (!getContentSearchSpec()
+          .equals(other.getContentSearchSpec())) return false;
     }
-    if (getSafeSearch() != other.getSafeSearch()) return false;
-    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
+    if (getSafeSearch()
+        != other.getSafeSearch()) return false;
+    if (!internalGetUserLabels().equals(
+        other.internalGetUserLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -14560,7 +12826,8 @@ public int hashCode() {
       hash = (53 * hash) + getContentSearchSpec().hashCode();
     }
     hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getSafeSearch());
     if (!internalGetUserLabels().getMap().isEmpty()) {
       hash = (37 * hash) + USER_LABELS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetUserLabels().hashCode();
@@ -14571,103 +12838,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.SearchRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1.SearchRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.SearchRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.SearchRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest 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.discoveryengine.v1.SearchRequest 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
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -14676,56 +12938,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest}
    */
-  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.discoveryengine.v1.SearchRequest)
       com.google.cloud.discoveryengine.v1.SearchRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 11:
           return internalGetParams();
         case 22:
           return internalGetUserLabels();
         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 11:
           return internalGetMutableParams();
         case 22:
           return internalGetMutableUserLabels();
         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.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.SearchRequest.class,
-              com.google.cloud.discoveryengine.v1.SearchRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.SearchRequest.class, com.google.cloud.discoveryengine.v1.SearchRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -14783,9 +13048,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor;
     }
 
     @java.lang.Override
@@ -14804,18 +13069,14 @@ public com.google.cloud.discoveryengine.v1.SearchRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.SearchRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.SearchRequest result =
-          new com.google.cloud.discoveryengine.v1.SearchRequest(this);
+      com.google.cloud.discoveryengine.v1.SearchRequest result = new com.google.cloud.discoveryengine.v1.SearchRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.SearchRequest result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchRequest result) {
       if (facetSpecsBuilder_ == null) {
         if (((bitField0_ & 0x00000400) != 0)) {
           facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_);
@@ -14839,7 +13100,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest res
         result.query_ = query_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.imageQuery_ = imageQueryBuilder_ == null ? imageQuery_ : imageQueryBuilder_.build();
+        result.imageQuery_ = imageQueryBuilder_ == null
+            ? imageQuery_
+            : imageQueryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.pageSize_ = pageSize_;
@@ -14857,35 +13120,36 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest res
         result.orderBy_ = orderBy_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build();
+        result.userInfo_ = userInfoBuilder_ == null
+            ? userInfo_
+            : userInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build();
+        result.boostSpec_ = boostSpecBuilder_ == null
+            ? boostSpec_
+            : boostSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
         result.params_ = internalGetParams();
         result.params_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.queryExpansionSpec_ =
-            queryExpansionSpecBuilder_ == null
-                ? queryExpansionSpec_
-                : queryExpansionSpecBuilder_.build();
+        result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null
+            ? queryExpansionSpec_
+            : queryExpansionSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.spellCorrectionSpec_ =
-            spellCorrectionSpecBuilder_ == null
-                ? spellCorrectionSpec_
-                : spellCorrectionSpecBuilder_.build();
+        result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null
+            ? spellCorrectionSpec_
+            : spellCorrectionSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
         result.userPseudoId_ = userPseudoId_;
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.contentSearchSpec_ =
-            contentSearchSpecBuilder_ == null
-                ? contentSearchSpec_
-                : contentSearchSpecBuilder_.build();
+        result.contentSearchSpec_ = contentSearchSpecBuilder_ == null
+            ? contentSearchSpec_
+            : contentSearchSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         result.safeSearch_ = safeSearch_;
@@ -14900,39 +13164,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest res
     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.discoveryengine.v1.SearchRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -14940,8 +13203,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.SearchRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.SearchRequest.getDefaultInstance()) return this;
       if (!other.getServingConfig().isEmpty()) {
         servingConfig_ = other.servingConfig_;
         bitField0_ |= 0x00000001;
@@ -15002,10 +13264,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other
             facetSpecsBuilder_ = null;
             facetSpecs_ = other.facetSpecs_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            facetSpecsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFacetSpecsFieldBuilder()
-                    : null;
+            facetSpecsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFacetSpecsFieldBuilder() : null;
           } else {
             facetSpecsBuilder_.addAllMessages(other.facetSpecs_);
           }
@@ -15014,7 +13275,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other
       if (other.hasBoostSpec()) {
         mergeBoostSpec(other.getBoostSpec());
       }
-      internalGetMutableParams().mergeFrom(other.internalGetParams());
+      internalGetMutableParams().mergeFrom(
+          other.internalGetParams());
       bitField0_ |= 0x00001000;
       if (other.hasQueryExpansionSpec()) {
         mergeQueryExpansionSpec(other.getQueryExpansionSpec());
@@ -15033,7 +13295,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other
       if (other.getSafeSearch() != false) {
         setSafeSearch(other.getSafeSearch());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00040000;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -15061,150 +13324,135 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                servingConfig_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                branch_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                query_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 32
-            case 42:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 42
-            case 48:
-              {
-                offset_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 48
-            case 58:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.parser(),
-                        extensionRegistry);
-                if (facetSpecsBuilder_ == null) {
-                  ensureFacetSpecsIsMutable();
-                  facetSpecs_.add(m);
-                } else {
-                  facetSpecsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.protobuf.MapEntry params__ =
-                    input.readMessage(
-                        ParamsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableParams()
-                    .getMutableMap()
-                    .put(params__.getKey(), params__.getValue());
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 90
-            case 106:
-              {
-                input.readMessage(
-                    getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(
-                    getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 122:
-              {
-                userPseudoId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 122
-            case 154:
-              {
-                input.readMessage(getImageQueryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 154
-            case 160:
-              {
-                safeSearch_ = input.readBool();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 160
-            case 170:
-              {
-                input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 170
-            case 178:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 178
-            case 194:
-              {
-                input.readMessage(
-                    getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 194
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              servingConfig_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              branch_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              query_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 32
+            case 42: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 42
+            case 48: {
+              offset_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 48
+            case 58: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.parser(),
+                      extensionRegistry);
+              if (facetSpecsBuilder_ == null) {
+                ensureFacetSpecsIsMutable();
+                facetSpecs_.add(m);
+              } else {
+                facetSpecsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getBoostSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 82
+            case 90: {
+              com.google.protobuf.MapEntry
+              params__ = input.readMessage(
+                  ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableParams().getMutableMap().put(
+                  params__.getKey(), params__.getValue());
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 90
+            case 106: {
+              input.readMessage(
+                  getQueryExpansionSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getSpellCorrectionSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 122: {
+              userPseudoId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 122
+            case 154: {
+              input.readMessage(
+                  getImageQueryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 154
+            case 160: {
+              safeSearch_ = input.readBool();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 160
+            case 170: {
+              input.readMessage(
+                  getUserInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 170
+            case 178: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 178
+            case 194: {
+              input.readMessage(
+                  getContentSearchSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 194
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -15214,13 +13462,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object servingConfig_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -15228,16 +13473,14 @@ public Builder mergeFrom(
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ public java.lang.String getServingConfig() { java.lang.Object ref = servingConfig_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; @@ -15246,8 +13489,6 @@ public java.lang.String getServingConfig() { } } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -15255,17 +13496,16 @@ public java.lang.String getServingConfig() {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -15273,8 +13513,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -15282,25 +13520,19 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } servingConfig_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -15308,10 +13540,7 @@ public Builder setServingConfig(java.lang.String value) {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearServingConfig() { @@ -15321,8 +13550,6 @@ public Builder clearServingConfig() { return this; } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -15330,17 +13557,13 @@ public Builder clearServingConfig() {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingConfig_ = value; bitField0_ |= 0x00000001; @@ -15350,8 +13573,6 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { private java.lang.Object branch_ = ""; /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -15361,13 +13582,13 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The branch. */ public java.lang.String getBranch() { java.lang.Object ref = branch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); branch_ = s; return s; @@ -15376,8 +13597,6 @@ public java.lang.String getBranch() { } } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -15387,14 +13606,15 @@ public java.lang.String getBranch() {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for branch. */ - public com.google.protobuf.ByteString getBranchBytes() { + public com.google.protobuf.ByteString + getBranchBytes() { java.lang.Object ref = branch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); branch_ = b; return b; } else { @@ -15402,8 +13622,6 @@ public com.google.protobuf.ByteString getBranchBytes() { } } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -15413,22 +13631,18 @@ public com.google.protobuf.ByteString getBranchBytes() {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @param value The branch to set. * @return This builder for chaining. */ - public Builder setBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } branch_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -15438,7 +13652,6 @@ public Builder setBranch(java.lang.String value) {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearBranch() { @@ -15448,8 +13661,6 @@ public Builder clearBranch() { return this; } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -15459,14 +13670,12 @@ public Builder clearBranch() {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for branch to set. * @return This builder for chaining. */ - public Builder setBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); branch_ = value; bitField0_ |= 0x00000002; @@ -15476,20 +13685,18 @@ public Builder setBranchBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -15498,21 +13705,20 @@ public java.lang.String getQuery() { } } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -15520,35 +13726,28 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @return This builder for chaining. */ public Builder clearQuery() { @@ -15558,21 +13757,17 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000004; @@ -15582,55 +13777,41 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery imageQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder> - imageQueryBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder> imageQueryBuilder_; /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * * @return Whether the imageQuery field is set. */ public boolean hasImageQuery() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * * @return The imageQuery. */ public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getImageQuery() { if (imageQueryBuilder_ == null) { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } else { return imageQueryBuilder_.getMessage(); } } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery value) { + public Builder setImageQuery(com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery value) { if (imageQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15644,8 +13825,6 @@ public Builder setImageQuery( return this; } /** - * - * *
      * Raw image query.
      * 
@@ -15664,22 +13843,17 @@ public Builder setImageQuery( return this; } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ - public Builder mergeImageQuery( - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery value) { + public Builder mergeImageQuery(com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery value) { if (imageQueryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && imageQuery_ != null - && imageQuery_ - != com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + imageQuery_ != null && + imageQuery_ != com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance()) { getImageQueryBuilder().mergeFrom(value); } else { imageQuery_ = value; @@ -15692,8 +13866,6 @@ public Builder mergeImageQuery( return this; } /** - * - * *
      * Raw image query.
      * 
@@ -15711,42 +13883,33 @@ public Builder clearImageQuery() { return this; } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder - getImageQueryBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder getImageQueryBuilder() { bitField0_ |= 0x00000008; onChanged(); return getImageQueryFieldBuilder().getBuilder(); } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder() { if (imageQueryBuilder_ != null) { return imageQueryBuilder_.getMessageOrBuilder(); } else { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return imageQuery_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } } /** - * - * *
      * Raw image query.
      * 
@@ -15754,26 +13917,21 @@ public Builder clearImageQuery() { * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder> getImageQueryFieldBuilder() { if (imageQueryBuilder_ == null) { - imageQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder>( - getImageQuery(), getParentForChildren(), isClean()); + imageQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder>( + getImageQuery(), + getParentForChildren(), + isClean()); imageQuery_ = null; } return imageQueryBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
      * return. If unspecified, defaults to a reasonable value. The maximum allowed
@@ -15783,7 +13941,6 @@ public Builder clearImageQuery() {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -15791,8 +13948,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
      * return. If unspecified, defaults to a reasonable value. The maximum allowed
@@ -15802,7 +13957,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -15814,8 +13968,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
      * return. If unspecified, defaults to a reasonable value. The maximum allowed
@@ -15825,7 +13977,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -15837,8 +13988,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -15851,13 +14000,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 5; - * * @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; @@ -15866,8 +14015,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -15880,14 +14027,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5; - * * @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 { @@ -15895,8 +14043,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -15909,22 +14055,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 5; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -15937,7 +14079,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 5; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -15947,8 +14088,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -15961,14 +14100,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 5; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000020; @@ -15976,10 +14113,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int offset_; + private int offset_ ; /** - * - * *
      * A 0-indexed integer that specifies the current offset (that is, starting
      * result location, amongst the
@@ -15992,7 +14127,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 offset = 6; - * * @return The offset. */ @java.lang.Override @@ -16000,8 +14134,6 @@ public int getOffset() { return offset_; } /** - * - * *
      * A 0-indexed integer that specifies the current offset (that is, starting
      * result location, amongst the
@@ -16014,7 +14146,6 @@ public int getOffset() {
      * 
* * int32 offset = 6; - * * @param value The offset to set. * @return This builder for chaining. */ @@ -16026,8 +14157,6 @@ public Builder setOffset(int value) { return this; } /** - * - * *
      * A 0-indexed integer that specifies the current offset (that is, starting
      * result location, amongst the
@@ -16040,7 +14169,6 @@ public Builder setOffset(int value) {
      * 
* * int32 offset = 6; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -16052,8 +14180,6 @@ public Builder clearOffset() { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -16063,13 +14189,13 @@ public Builder clearOffset() {
      * 
* * string filter = 7; - * * @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; @@ -16078,8 +14204,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -16089,14 +14213,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7; - * * @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 { @@ -16104,8 +14229,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -16115,22 +14238,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 7; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -16140,7 +14259,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 7; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -16150,8 +14268,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -16161,14 +14277,12 @@ public Builder clearFilter() {
      * 
* * string filter = 7; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000080; @@ -16178,8 +14292,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -16190,13 +14302,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 8; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -16205,8 +14317,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -16217,14 +14327,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -16232,8 +14343,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -16244,22 +14353,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 8; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -16270,7 +14375,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 8; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -16280,8 +14384,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -16292,14 +14394,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 8; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000100; @@ -16309,13 +14409,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserInfo, - com.google.cloud.discoveryengine.v1.UserInfo.Builder, - com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> - userInfoBuilder_; + com.google.cloud.discoveryengine.v1.UserInfo, com.google.cloud.discoveryengine.v1.UserInfo.Builder, com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> userInfoBuilder_; /** - * - * *
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16324,15 +14419,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16341,21 +14433,16 @@ public boolean hasUserInfo() {
      * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * * @return The userInfo. */ public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16379,8 +14466,6 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16401,9 +14486,7 @@ public Builder setUserInfo(
       onChanged();
       return this;
     }
-    /**
-     *
-     *
+    /**
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16415,9 +14498,9 @@ public Builder setUserInfo(
      */
     public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) {
       if (userInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && userInfo_ != null
-            && userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          userInfo_ != null &&
+          userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) {
           getUserInfoBuilder().mergeFrom(value);
         } else {
           userInfo_ = value;
@@ -16430,8 +14513,6 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16452,8 +14533,6 @@ public Builder clearUserInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16469,8 +14548,6 @@ public com.google.cloud.discoveryengine.v1.UserInfo.Builder getUserInfoBuilder()
       return getUserInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16484,14 +14561,11 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde
       if (userInfoBuilder_ != null) {
         return userInfoBuilder_.getMessageOrBuilder();
       } else {
-        return userInfo_ == null
-            ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()
-            : userInfo_;
+        return userInfo_ == null ?
+            com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -16502,43 +14576,32 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde
      * .google.cloud.discoveryengine.v1.UserInfo user_info = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.UserInfo,
-            com.google.cloud.discoveryengine.v1.UserInfo.Builder,
-            com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1.UserInfo, com.google.cloud.discoveryengine.v1.UserInfo.Builder, com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> 
         getUserInfoFieldBuilder() {
       if (userInfoBuilder_ == null) {
-        userInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.UserInfo,
-                com.google.cloud.discoveryengine.v1.UserInfo.Builder,
-                com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>(
-                getUserInfo(), getParentForChildren(), isClean());
+        userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.UserInfo, com.google.cloud.discoveryengine.v1.UserInfo.Builder, com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>(
+                getUserInfo(),
+                getParentForChildren(),
+                isClean());
         userInfo_ = null;
       }
       return userInfoBuilder_;
     }
 
-    private java.util.List
-        facetSpecs_ = java.util.Collections.emptyList();
-
+    private java.util.List facetSpecs_ =
+      java.util.Collections.emptyList();
     private void ensureFacetSpecsIsMutable() {
       if (!((bitField0_ & 0x00000400) != 0)) {
-        facetSpecs_ =
-            new java.util.ArrayList(
-                facetSpecs_);
+        facetSpecs_ = new java.util.ArrayList(facetSpecs_);
         bitField0_ |= 0x00000400;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec,
-            com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder,
-            com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>
-        facetSpecsBuilder_;
+        com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder> facetSpecsBuilder_;
 
     /**
-     *
-     *
      * 
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16546,11 +14609,9 @@ private void ensureFacetSpecsIsMutable() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ - public java.util.List - getFacetSpecsList() { + public java.util.List getFacetSpecsList() { if (facetSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(facetSpecs_); } else { @@ -16558,8 +14619,6 @@ private void ensureFacetSpecsIsMutable() { } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16567,8 +14626,7 @@ private void ensureFacetSpecsIsMutable() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public int getFacetSpecsCount() { if (facetSpecsBuilder_ == null) { @@ -16578,8 +14636,6 @@ public int getFacetSpecsCount() { } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16587,8 +14643,7 @@ public int getFacetSpecsCount() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getFacetSpecs(int index) { if (facetSpecsBuilder_ == null) { @@ -16598,8 +14653,6 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getFacetSpecs } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16607,8 +14660,7 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getFacetSpecs
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder setFacetSpecs( int index, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec value) { @@ -16625,8 +14677,6 @@ public Builder setFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16634,12 +14684,10 @@ public Builder setFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder setFacetSpecs( - int index, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder builderForValue) { if (facetSpecsBuilder_ == null) { ensureFacetSpecsIsMutable(); facetSpecs_.set(index, builderForValue.build()); @@ -16650,8 +14698,6 @@ public Builder setFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16659,11 +14705,9 @@ public Builder setFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ - public Builder addFacetSpecs( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec value) { + public Builder addFacetSpecs(com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec value) { if (facetSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16677,8 +14721,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16686,8 +14728,7 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addFacetSpecs( int index, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec value) { @@ -16704,8 +14745,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16713,8 +14752,7 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addFacetSpecs( com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder builderForValue) { @@ -16728,8 +14766,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16737,12 +14773,10 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addFacetSpecs( - int index, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder builderForValue) { if (facetSpecsBuilder_ == null) { ensureFacetSpecsIsMutable(); facetSpecs_.add(index, builderForValue.build()); @@ -16753,8 +14787,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16762,15 +14794,14 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addAllFacetSpecs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (facetSpecsBuilder_ == null) { ensureFacetSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facetSpecs_); onChanged(); } else { facetSpecsBuilder_.addAllMessages(values); @@ -16778,8 +14809,6 @@ public Builder addAllFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16787,8 +14816,7 @@ public Builder addAllFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { @@ -16801,8 +14829,6 @@ public Builder clearFacetSpecs() { return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16810,8 +14836,7 @@ public Builder clearFacetSpecs() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public Builder removeFacetSpecs(int index) { if (facetSpecsBuilder_ == null) { @@ -16824,8 +14849,6 @@ public Builder removeFacetSpecs(int index) { return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16833,16 +14856,13 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder getFacetSpecsBuilder( int index) { return getFacetSpecsFieldBuilder().getBuilder(index); } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16850,20 +14870,16 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder getFa
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder - getFacetSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( + int index) { if (facetSpecsBuilder_ == null) { - return facetSpecs_.get(index); - } else { + return facetSpecs_.get(index); } else { return facetSpecsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16871,12 +14887,10 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder getFa
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder> - getFacetSpecsOrBuilderList() { + public java.util.List + getFacetSpecsOrBuilderList() { if (facetSpecsBuilder_ != null) { return facetSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -16884,8 +14898,6 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder getFa } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16893,18 +14905,13 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder getFa
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder - addFacetSpecsBuilder() { - return getFacetSpecsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFacetSpecsBuilder() { + return getFacetSpecsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance()); } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16912,19 +14919,14 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder getFa
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFacetSpecsBuilder( int index) { - return getFacetSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance()); + return getFacetSpecsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.getDefaultInstance()); } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -16932,26 +14934,22 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFa
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; */ - public java.util.List - getFacetSpecsBuilderList() { + public java.util.List + getFacetSpecsBuilderList() { return getFacetSpecsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder> getFacetSpecsFieldBuilder() { if (facetSpecsBuilder_ == null) { - facetSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + facetSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>( + facetSpecs_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -16959,47 +14957,34 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFa private com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boostSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder> - boostSpecBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder> boostSpecBuilder_; /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * * @return The boostSpec. */ public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getBoostSpec() { if (boostSpecBuilder_ == null) { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } else { return boostSpecBuilder_.getMessage(); } } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -17020,8 +15005,6 @@ public Builder setBoostSpec(com.google.cloud.discoveryengine.v1.SearchRequest.Bo return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -17040,22 +15023,17 @@ public Builder setBoostSpec( return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder mergeBoostSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec value) { + public Builder mergeBoostSpec(com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && boostSpec_ != null - && boostSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + boostSpec_ != null && + boostSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance()) { getBoostSpecBuilder().mergeFrom(value); } else { boostSpec_ = value; @@ -17068,8 +15046,6 @@ public Builder mergeBoostSpec( return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -17087,42 +15063,33 @@ public Builder clearBoostSpec() { return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder - getBoostSpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { bitField0_ |= 0x00000800; onChanged(); return getBoostSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { if (boostSpecBuilder_ != null) { return boostSpecBuilder_.getMessageOrBuilder(); } else { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return boostSpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -17130,36 +15097,34 @@ public Builder clearBoostSpec() { * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder> getBoostSpecFieldBuilder() { if (boostSpecBuilder_ == null) { - boostSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder>( - getBoostSpec(), getParentForChildren(), isClean()); + boostSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), + getParentForChildren(), + isClean()); boostSpec_ = null; } return boostSpecBuilder_; } - 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() { 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() { 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(); @@ -17168,13 +15133,10 @@ public Builder clearBoostSpec() { onChanged(); return params_; } - public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Additional search parameters.
      *
@@ -17190,21 +15152,20 @@ public int getParamsCount() {
      * map<string, .google.protobuf.Value> params = 11;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -17224,8 +15185,6 @@ public java.util.Map getParamsMap()
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -17241,19 +15200,17 @@ public java.util.Map getParamsMap()
      * map<string, .google.protobuf.Value> params = 11;
      */
     @java.lang.Override
-    public /* nullable */ com.google.protobuf.Value getParamsOrDefault(
+    public /* nullable */
+com.google.protobuf.Value getParamsOrDefault(
         java.lang.String key,
         /* nullable */
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetParams().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -17269,25 +15226,23 @@ public java.util.Map getParamsMap()
      * map<string, .google.protobuf.Value> params = 11;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearParams() {
       bitField0_ = (bitField0_ & ~0x00001000);
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -17302,22 +15257,23 @@ public Builder clearParams() {
      *
      * map<string, .google.protobuf.Value> params = 11;
      */
-    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() {
       bitField0_ |= 0x00001000;
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -17332,20 +15288,17 @@ public java.util.Map getMutablePara
      *
      * map<string, .google.protobuf.Value> params = 11;
      */
-    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");
-      }
-      internalGetMutableParams().getMutableMap().put(key, value);
+    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"); }
+      internalGetMutableParams().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00001000;
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -17360,75 +15313,54 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value)
      *
      * map<string, .google.protobuf.Value> params = 11;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+    public Builder putAllParams(
+        java.util.Map values) {
+      internalGetMutableParams().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00001000;
       return this;
     }
 
-    private com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec
-        queryExpansionSpec_;
+    private com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec queryExpansionSpec_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec,
-            com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder,
-            com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder>
-        queryExpansionSpecBuilder_;
+        com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder> queryExpansionSpecBuilder_;
     /**
-     *
-     *
      * 
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return Whether the queryExpansionSpec field is set. */ public boolean hasQueryExpansionSpec() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return The queryExpansionSpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - getQueryExpansionSpec() { + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec getQueryExpansionSpec() { if (queryExpansionSpecBuilder_ == null) { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } else { return queryExpansionSpecBuilder_.getMessage(); } } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public Builder setQueryExpansionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec value) { + public Builder setQueryExpansionSpec(com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec value) { if (queryExpansionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17442,20 +15374,15 @@ public Builder setQueryExpansionSpec( return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ public Builder setQueryExpansionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder builderForValue) { if (queryExpansionSpecBuilder_ == null) { queryExpansionSpec_ = builderForValue.build(); } else { @@ -17466,25 +15393,18 @@ public Builder setQueryExpansionSpec( return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public Builder mergeQueryExpansionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec value) { + public Builder mergeQueryExpansionSpec(com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec value) { if (queryExpansionSpecBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && queryExpansionSpec_ != null - && queryExpansionSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + queryExpansionSpec_ != null && + queryExpansionSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance()) { getQueryExpansionSpecBuilder().mergeFrom(value); } else { queryExpansionSpec_ = value; @@ -17497,16 +15417,12 @@ public Builder mergeQueryExpansionSpec( return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ public Builder clearQueryExpansionSpec() { bitField0_ = (bitField0_ & ~0x00002000); @@ -17519,138 +15435,96 @@ public Builder clearQueryExpansionSpec() { return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder - getQueryExpansionSpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { bitField0_ |= 0x00002000; onChanged(); return getQueryExpansionSpecFieldBuilder().getBuilder(); } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder() { if (queryExpansionSpecBuilder_ != null) { return queryExpansionSpecBuilder_.getMessageOrBuilder(); } else { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + return queryExpansionSpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder> getQueryExpansionSpecFieldBuilder() { if (queryExpansionSpecBuilder_ == null) { - queryExpansionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder>( - getQueryExpansionSpec(), getParentForChildren(), isClean()); + queryExpansionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder>( + getQueryExpansionSpec(), + getParentForChildren(), + isClean()); queryExpansionSpec_ = null; } return queryExpansionSpecBuilder_; } - private com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - spellCorrectionSpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spellCorrectionSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder> - spellCorrectionSpecBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder> spellCorrectionSpecBuilder_; /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return The spellCorrectionSpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec() { + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec() { if (spellCorrectionSpecBuilder_ == null) { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } else { return spellCorrectionSpecBuilder_.getMessage(); } } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { + public Builder setSpellCorrectionSpec(com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17664,20 +15538,15 @@ public Builder setSpellCorrectionSpec( return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder builderForValue) { if (spellCorrectionSpecBuilder_ == null) { spellCorrectionSpec_ = builderForValue.build(); } else { @@ -17688,25 +15557,18 @@ public Builder setSpellCorrectionSpec( return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public Builder mergeSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { + public Builder mergeSpellCorrectionSpec(com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && spellCorrectionSpec_ != null - && spellCorrectionSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + spellCorrectionSpec_ != null && + spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance()) { getSpellCorrectionSpecBuilder().mergeFrom(value); } else { spellCorrectionSpec_ = value; @@ -17719,16 +15581,12 @@ public Builder mergeSpellCorrectionSpec( return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ public Builder clearSpellCorrectionSpec() { bitField0_ = (bitField0_ & ~0x00004000); @@ -17741,70 +15599,51 @@ public Builder clearSpellCorrectionSpec() { return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder - getSpellCorrectionSpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { bitField0_ |= 0x00004000; onChanged(); return getSpellCorrectionSpecFieldBuilder().getBuilder(); } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder() { if (spellCorrectionSpecBuilder_ != null) { return spellCorrectionSpecBuilder_.getMessageOrBuilder(); } else { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + return spellCorrectionSpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder> getSpellCorrectionSpecFieldBuilder() { if (spellCorrectionSpecBuilder_ == null) { - spellCorrectionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder>( - getSpellCorrectionSpec(), getParentForChildren(), isClean()); + spellCorrectionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder>( + getSpellCorrectionSpec(), + getParentForChildren(), + isClean()); spellCorrectionSpec_ = null; } return spellCorrectionSpecBuilder_; @@ -17812,8 +15651,6 @@ public Builder clearSpellCorrectionSpec() { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17832,13 +15669,13 @@ public Builder clearSpellCorrectionSpec() {
      * 
* * string user_pseudo_id = 15; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -17847,8 +15684,6 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17867,14 +15702,15 @@ public java.lang.String getUserPseudoId() {
      * 
* * string user_pseudo_id = 15; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -17882,8 +15718,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17902,22 +15736,18 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * 
* * string user_pseudo_id = 15; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17936,7 +15766,6 @@ public Builder setUserPseudoId(java.lang.String value) {
      * 
* * string user_pseudo_id = 15; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -17946,8 +15775,6 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17966,14 +15793,12 @@ public Builder clearUserPseudoId() {
      * 
* * string user_pseudo_id = 15; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00008000; @@ -17983,63 +15808,41 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec contentSearchSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> - contentSearchSpecBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> contentSearchSpecBuilder_; /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return Whether the contentSearchSpec field is set. */ public boolean hasContentSearchSpec() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return The contentSearchSpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - getContentSearchSpec() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec getContentSearchSpec() { if (contentSearchSpecBuilder_ == null) { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } else { return contentSearchSpecBuilder_.getMessage(); } } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { + public Builder setContentSearchSpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18053,19 +15856,14 @@ public Builder setContentSearchSpec( return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder builderForValue) { if (contentSearchSpecBuilder_ == null) { contentSearchSpec_ = builderForValue.build(); } else { @@ -18076,24 +15874,17 @@ public Builder setContentSearchSpec( return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public Builder mergeContentSearchSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { + public Builder mergeContentSearchSpec(com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && contentSearchSpec_ != null - && contentSearchSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + contentSearchSpec_ != null && + contentSearchSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance()) { getContentSearchSpecBuilder().mergeFrom(value); } else { contentSearchSpec_ = value; @@ -18106,15 +15897,11 @@ public Builder mergeContentSearchSpec( return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ public Builder clearContentSearchSpec() { bitField0_ = (bitField0_ & ~0x00010000); @@ -18127,83 +15914,61 @@ public Builder clearContentSearchSpec() { return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder - getContentSearchSpecBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { bitField0_ |= 0x00010000; onChanged(); return getContentSearchSpecFieldBuilder().getBuilder(); } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder() { if (contentSearchSpecBuilder_ != null) { return contentSearchSpecBuilder_.getMessageOrBuilder(); } else { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + return contentSearchSpec_ == null ? + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> getContentSearchSpecFieldBuilder() { if (contentSearchSpecBuilder_ == null) { - contentSearchSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder>( - getContentSearchSpec(), getParentForChildren(), isClean()); + contentSearchSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder>( + getContentSearchSpec(), + getParentForChildren(), + isClean()); contentSearchSpec_ = null; } return contentSearchSpecBuilder_; } - private boolean safeSearch_; + private boolean safeSearch_ ; /** - * - * *
      * Whether to turn on safe search. This is only supported for
      * website search.
      * 
* * bool safe_search = 20; - * * @return The safeSearch. */ @java.lang.Override @@ -18211,15 +15976,12 @@ public boolean getSafeSearch() { return safeSearch_; } /** - * - * *
      * Whether to turn on safe search. This is only supported for
      * website search.
      * 
* * bool safe_search = 20; - * * @param value The safeSearch to set. * @return This builder for chaining. */ @@ -18231,15 +15993,12 @@ public Builder setSafeSearch(boolean value) { return this; } /** - * - * *
      * Whether to turn on safe search. This is only supported for
      * website search.
      * 
* * bool safe_search = 20; - * * @return This builder for chaining. */ public Builder clearSafeSearch() { @@ -18249,8 +16008,8 @@ public Builder clearSafeSearch() { return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -18259,12 +16018,11 @@ public Builder clearSafeSearch() { } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -18273,13 +16031,10 @@ public Builder clearSafeSearch() { onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18303,21 +16058,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 22;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18345,8 +16099,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18370,19 +16122,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 22;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18406,25 +16156,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 22;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00040000);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18447,22 +16195,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 22;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00040000;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18485,20 +16234,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 22;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00040000;
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -18521,14 +16267,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 22;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00040000;
       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);
     }
 
@@ -18538,12 +16286,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest)
   private static final com.google.cloud.discoveryengine.v1.SearchRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest();
   }
@@ -18552,27 +16300,27 @@ public static com.google.cloud.discoveryengine.v1.SearchRequest getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SearchRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SearchRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -18587,4 +16335,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1.SearchRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java
similarity index 85%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java
index 2fdad7e1287a..ab1cc71ffd8b 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/search_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
-public interface SearchRequestOrBuilder
-    extends
+public interface SearchRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -33,16 +15,11 @@ public interface SearchRequestOrBuilder
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ java.lang.String getServingConfig(); /** - * - * *
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -50,17 +27,13 @@ public interface SearchRequestOrBuilder
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ - com.google.protobuf.ByteString getServingConfigBytes(); + com.google.protobuf.ByteString + getServingConfigBytes(); /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -70,13 +43,10 @@ public interface SearchRequestOrBuilder
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The branch. */ java.lang.String getBranch(); /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -86,63 +56,50 @@ public interface SearchRequestOrBuilder
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for branch. */ - com.google.protobuf.ByteString getBranchBytes(); + com.google.protobuf.ByteString + getBranchBytes(); /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * * @return Whether the imageQuery field is set. */ boolean hasImageQuery(); /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * * @return The imageQuery. */ com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery getImageQuery(); /** - * - * *
    * Raw image query.
    * 
@@ -152,8 +109,6 @@ public interface SearchRequestOrBuilder com.google.cloud.discoveryengine.v1.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder(); /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to
    * return. If unspecified, defaults to a reasonable value. The maximum allowed
@@ -163,14 +118,11 @@ public interface SearchRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -183,13 +135,10 @@ public interface SearchRequestOrBuilder
    * 
* * string page_token = 5; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -202,14 +151,12 @@ public interface SearchRequestOrBuilder
    * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A 0-indexed integer that specifies the current offset (that is, starting
    * result location, amongst the
@@ -222,14 +169,11 @@ public interface SearchRequestOrBuilder
    * 
* * int32 offset = 6; - * * @return The offset. */ int getOffset(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -239,13 +183,10 @@ public interface SearchRequestOrBuilder
    * 
* * string filter = 7; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -255,14 +196,12 @@ public interface SearchRequestOrBuilder
    * 
* * string filter = 7; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -273,13 +212,10 @@ public interface SearchRequestOrBuilder
    * 
* * string order_by = 8; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
@@ -290,14 +226,12 @@ public interface SearchRequestOrBuilder
    * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -306,13 +240,10 @@ public interface SearchRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -321,13 +252,10 @@ public interface SearchRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * * @return The userInfo. */ com.google.cloud.discoveryengine.v1.UserInfo getUserInfo(); /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -340,8 +268,6 @@ public interface SearchRequestOrBuilder
   com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -351,10 +277,9 @@ public interface SearchRequestOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;
    */
-  java.util.List getFacetSpecsList();
+  java.util.List 
+      getFacetSpecsList();
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -366,8 +291,6 @@ public interface SearchRequestOrBuilder
    */
   com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec getFacetSpecs(int index);
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -379,8 +302,6 @@ public interface SearchRequestOrBuilder
    */
   int getFacetSpecsCount();
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -390,11 +311,9 @@ public interface SearchRequestOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9;
    */
-  java.util.List
+  java.util.List 
       getFacetSpecsOrBuilderList();
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -408,32 +327,24 @@ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpe
       int index);
 
   /**
-   *
-   *
    * 
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * * @return Whether the boostSpec field is set. */ boolean hasBoostSpec(); /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * * @return The boostSpec. */ com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec getBoostSpec(); /** - * - * *
    * Boost specification to boost certain documents.
    * 
@@ -443,8 +354,6 @@ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpe com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); /** - * - * *
    * Additional search parameters.
    *
@@ -461,8 +370,6 @@ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpe
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -477,13 +384,15 @@ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpe
    *
    * map<string, .google.protobuf.Value> params = 11;
    */
-  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();
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -498,10 +407,9 @@ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpe
    *
    * map<string, .google.protobuf.Value> params = 11;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -517,13 +425,11 @@ com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder getFacetSpe
    * map<string, .google.protobuf.Value> params = 11;
    */
   /* 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);
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -538,101 +444,70 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, .google.protobuf.Value> params = 11;
    */
-  com.google.protobuf.Value getParamsOrThrow(java.lang.String key);
+  com.google.protobuf.Value getParamsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return Whether the queryExpansionSpec field is set. */ boolean hasQueryExpansionSpec(); /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return The queryExpansionSpec. */ com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec getQueryExpansionSpec(); /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder(); /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return Whether the spellCorrectionSpec field is set. */ boolean hasSpellCorrectionSpec(); /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return The spellCorrectionSpec. */ com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec(); /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -651,13 +526,10 @@ com.google.protobuf.Value getParamsOrDefault(
    * 
* * string user_pseudo_id = 15; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -676,70 +548,50 @@ com.google.protobuf.Value getParamsOrDefault(
    * 
* * string user_pseudo_id = 15; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return Whether the contentSearchSpec field is set. */ boolean hasContentSearchSpec(); /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return The contentSearchSpec. */ com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec getContentSearchSpec(); /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder(); /** - * - * *
    * Whether to turn on safe search. This is only supported for
    * website search.
    * 
* * bool safe_search = 20; - * * @return The safeSearch. */ boolean getSafeSearch(); /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -764,8 +616,6 @@ com.google.protobuf.Value getParamsOrDefault(
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -788,13 +638,15 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, string> user_labels = 22;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -817,10 +669,9 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, string> user_labels = 22;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -844,13 +695,11 @@ com.google.protobuf.Value getParamsOrDefault(
    * map<string, string> user_labels = 22;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -873,5 +722,6 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 22;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java
similarity index 71%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java
index 467341976f7e..841ad2fe4d62 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/search_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
 /**
- *
- *
  * 
  * Response message for
  * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse}
  */
-public final class SearchResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SearchResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse)
     SearchResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SearchResponse.newBuilder() to construct.
   private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SearchResponse() {
     results_ = java.util.Collections.emptyList();
     facets_ = java.util.Collections.emptyList();
@@ -50,86 +32,71 @@ private SearchResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SearchResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.SearchResponse.class,
-            com.google.cloud.discoveryengine.v1.SearchResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1.SearchResponse.class, com.google.cloud.discoveryengine.v1.SearchResponse.Builder.class);
   }
 
-  public interface SearchResultOrBuilder
-      extends
+  public interface SearchResultOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.SearchResult)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1.Document].
      * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
      * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1.Document].
      * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1.Document document = 2; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1.Document document = 2; - * * @return The document. */ com.google.cloud.discoveryengine.v1.Document getDocument(); /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
@@ -140,63 +107,55 @@ public interface SearchResultOrBuilder
     com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Represents the search results.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.SearchResult} */ - public static final class SearchResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SearchResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.SearchResult) SearchResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchResult.newBuilder() to construct. private SearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchResult() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.class, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.class, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder.class); } public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
      * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1.Document].
      * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -205,30 +164,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; } } /** - * - * *
      * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1.Document].
      * 
* * 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 { @@ -239,15 +198,12 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.Document document_; /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1.Document document = 2; - * * @return Whether the document field is set. */ @java.lang.Override @@ -255,26 +211,19 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1.Document document = 2; - * * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
@@ -284,13 +233,10 @@ public com.google.cloud.discoveryengine.v1.Document getDocument() {
      */
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() {
-      return document_ == null
-          ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()
-          : document_;
+      return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -302,7 +248,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_);
       }
@@ -322,7 +269,8 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
       }
       if (document_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getDocument());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -332,18 +280,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.discoveryengine.v1.SearchResponse.SearchResult)) {
         return super.equals(obj);
       }
-      com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult other =
-          (com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult) obj;
+      com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult other = (com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult) obj;
 
-      if (!getId().equals(other.getId())) return false;
+      if (!getId()
+          .equals(other.getId())) return false;
       if (hasDocument() != other.hasDocument()) return false;
       if (hasDocument()) {
-        if (!getDocument().equals(other.getDocument())) return false;
+        if (!getDocument()
+            .equals(other.getDocument())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -368,95 +317,89 @@ public int hashCode() {
     }
 
     public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult 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.discoveryengine.v1.SearchResponse.SearchResult 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.discoveryengine.v1.SearchResponse.SearchResult parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult 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.discoveryengine.v1.SearchResponse.SearchResult parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult 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.discoveryengine.v1.SearchResponse.SearchResult
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult 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.discoveryengine.v1.SearchResponse.SearchResult 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.discoveryengine.v1.SearchResponse.SearchResult prototype) {
+    public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult 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
@@ -466,42 +409,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Represents the search results.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.SearchResult} */ - 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.discoveryengine.v1.SearchResponse.SearchResult) com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.class, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.class, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -516,14 +456,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance(); } @@ -538,23 +477,21 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult buildPartial() { - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult result = - new com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult result = new com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); } } @@ -562,52 +499,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult other) { + if (other == com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; @@ -642,25 +573,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -670,26 +600,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1.Document].
        * 
* * 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; @@ -698,22 +625,21 @@ public java.lang.String getId() { } } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1.Document].
        * 
* * 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 { @@ -721,37 +647,30 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1.Document].
        * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1.Document].
        * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { @@ -761,22 +680,18 @@ public Builder clearId() { return this; } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1.Document].
        * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -786,49 +701,36 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> documentBuilder_; /** - * - * *
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
        * 
* * .google.cloud.discoveryengine.v1.Document document = 2; - * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
        * 
* * .google.cloud.discoveryengine.v1.Document document = 2; - * * @return The document. */ public com.google.cloud.discoveryengine.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -850,8 +752,6 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -871,8 +771,6 @@ public Builder setDocument(
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -882,9 +780,9 @@ public Builder setDocument(
        */
       public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) {
         if (documentBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && document_ != null
-              && document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            document_ != null &&
+            document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) {
             getDocumentBuilder().mergeFrom(value);
           } else {
             document_ = value;
@@ -897,8 +795,6 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value)
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -917,8 +813,6 @@ public Builder clearDocument() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -932,8 +826,6 @@ public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder()
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -945,14 +837,11 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
         if (documentBuilder_ != null) {
           return documentBuilder_.getMessageOrBuilder();
         } else {
-          return document_ == null
-              ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()
-              : document_;
+          return document_ == null ?
+              com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_;
         }
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -961,22 +850,18 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
        * .google.cloud.discoveryengine.v1.Document document = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.discoveryengine.v1.Document,
-              com.google.cloud.discoveryengine.v1.Document.Builder,
-              com.google.cloud.discoveryengine.v1.DocumentOrBuilder>
+          com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> 
           getDocumentFieldBuilder() {
         if (documentBuilder_ == null) {
-          documentBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.discoveryengine.v1.Document,
-                  com.google.cloud.discoveryengine.v1.Document.Builder,
-                  com.google.cloud.discoveryengine.v1.DocumentOrBuilder>(
-                  getDocument(), getParentForChildren(), isClean());
+          documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder>(
+                  getDocument(),
+                  getParentForChildren(),
+                  isClean());
           document_ = null;
         }
         return documentBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -989,44 +874,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.SearchResult)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.SearchResult)
-    private static final com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult();
     }
 
-    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult
-        getDefaultInstance() {
+    public static com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public SearchResult parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public SearchResult parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1038,136 +920,108 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface FacetOrBuilder
-      extends
+  public interface FacetOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.Facet)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - java.util.List + java.util.List getValuesList(); /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getValues(int index); /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ int getValuesCount(); /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> + java.util.List getValuesOrBuilderList(); /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( int index); /** - * - * *
      * Whether the facet is dynamically generated.
      * 
* * bool dynamic_facet = 3; - * * @return The dynamicFacet. */ boolean getDynamicFacet(); } /** - * - * *
    * A facet result.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Facet} */ - public static final class Facet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Facet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.Facet) FacetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Facet.newBuilder() to construct. private Facet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Facet() { key_ = ""; values_ = java.util.Collections.emptyList(); @@ -1175,70 +1029,58 @@ private Facet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Facet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.class, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder.class); } - public interface FacetValueOrBuilder - extends + public interface FacetValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1246,13 +1088,10 @@ public interface FacetValueOrBuilder
        * 
* * .google.cloud.discoveryengine.v1.Interval interval = 2; - * * @return Whether the interval field is set. */ boolean hasInterval(); /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1260,13 +1099,10 @@ public interface FacetValueOrBuilder
        * 
* * .google.cloud.discoveryengine.v1.Interval interval = 2; - * * @return The interval. */ com.google.cloud.discoveryengine.v1.Interval getInterval(); /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1278,77 +1114,66 @@ public interface FacetValueOrBuilder
       com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalOrBuilder();
 
       /**
-       *
-       *
        * 
        * Number of items that have this facet value.
        * 
* * int64 count = 3; - * * @return The count. */ long getCount(); - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.FacetValueCase - getFacetValueCase(); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase(); } /** - * - * *
      * A facet value which contains value names and their count.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue} */ - public static final class FacetValue extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FacetValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) FacetValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FacetValue.newBuilder() to construct. private FacetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FacetValue() {} + private FacetValue() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FacetValue(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.class, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder.class); } private int facetValueCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object facetValue_; - public enum FacetValueCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(1), INTERVAL(2), FACETVALUE_NOT_SET(0); private final int value; - private FacetValueCase(int value) { this.value = value; } @@ -1364,50 +1189,41 @@ public static FacetValueCase valueOf(int value) { public static FacetValueCase forNumber(int value) { switch (value) { - case 1: - return VALUE; - case 2: - return INTERVAL; - case 0: - return FACETVALUE_NOT_SET; - default: - return null; + case 1: return VALUE; + case 2: return INTERVAL; + case 0: return FACETVALUE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FacetValueCase getFacetValueCase() { - return FacetValueCase.forNumber(facetValueCase_); + public FacetValueCase + getFacetValueCase() { + return FacetValueCase.forNumber( + facetValueCase_); } public static final int VALUE_FIELD_NUMBER = 1; /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return Whether the value field is set. */ public boolean hasValue() { return facetValueCase_ == 1; } /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { @@ -1418,7 +1234,8 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (facetValueCase_ == 1) { facetValue_ = s; @@ -1427,24 +1244,23 @@ public java.lang.String getValue() { } } /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = ""; if (facetValueCase_ == 1) { ref = facetValue_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (facetValueCase_ == 1) { facetValue_ = b; } @@ -1456,8 +1272,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int INTERVAL_FIELD_NUMBER = 2; /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1465,7 +1279,6 @@ public com.google.protobuf.ByteString getValueBytes() {
        * 
* * .google.cloud.discoveryengine.v1.Interval interval = 2; - * * @return Whether the interval field is set. */ @java.lang.Override @@ -1473,8 +1286,6 @@ public boolean hasInterval() { return facetValueCase_ == 2; } /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1482,19 +1293,16 @@ public boolean hasInterval() {
        * 
* * .google.cloud.discoveryengine.v1.Interval interval = 2; - * * @return The interval. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Interval getInterval() { if (facetValueCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Interval) facetValue_; + return (com.google.cloud.discoveryengine.v1.Interval) facetValue_; } return com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance(); } /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1506,7 +1314,7 @@ public com.google.cloud.discoveryengine.v1.Interval getInterval() {
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalOrBuilder() {
         if (facetValueCase_ == 2) {
-          return (com.google.cloud.discoveryengine.v1.Interval) facetValue_;
+           return (com.google.cloud.discoveryengine.v1.Interval) facetValue_;
         }
         return com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance();
       }
@@ -1514,14 +1322,11 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalOrBuilde
       public static final int COUNT_FIELD_NUMBER = 3;
       private long count_ = 0L;
       /**
-       *
-       *
        * 
        * Number of items that have this facet value.
        * 
* * int64 count = 3; - * * @return The count. */ @java.lang.Override @@ -1530,7 +1335,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1542,7 +1346,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 (facetValueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, facetValue_); } @@ -1565,12 +1370,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, facetValue_); } if (facetValueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.discoveryengine.v1.Interval) facetValue_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1.Interval) facetValue_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, count_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1580,22 +1385,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.discoveryengine.v1.SearchResponse.Facet.FacetValue)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue other = - (com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) obj; + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue other = (com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) obj; - if (getCount() != other.getCount()) return false; + if (getCount() + != other.getCount()) return false; if (!getFacetValueCase().equals(other.getFacetValueCase())) return false; switch (facetValueCase_) { case 1: - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; break; case 2: - if (!getInterval().equals(other.getInterval())) return false; + if (!getInterval() + .equals(other.getInterval())) return false; break; case 0: default: @@ -1612,7 +1419,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); switch (facetValueCase_) { case 1: hash = (37 * hash) + VALUE_FIELD_NUMBER; @@ -1631,96 +1439,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue 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.discoveryengine.v1.SearchResponse.Facet.FacetValue 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.discoveryengine.v1.SearchResponse.Facet.FacetValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue 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.discoveryengine.v1.SearchResponse.Facet.FacetValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue 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.discoveryengine.v1.SearchResponse.Facet.FacetValue - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue 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.discoveryengine.v1.SearchResponse.Facet.FacetValue 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.discoveryengine.v1.SearchResponse.Facet.FacetValue prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue 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 @@ -1730,43 +1531,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A facet value which contains value names and their count.
        * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue} */ - 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.discoveryengine.v1.SearchResponse.Facet.FacetValue) com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - .class); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.class, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1781,22 +1578,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue build() { - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result = - buildPartial(); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1805,29 +1599,25 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue build @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue buildPartial() { - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result = - new com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result = new com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.count_ = count_; } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue result) { result.facetValueCase_ = facetValueCase_; result.facetValue_ = this.facetValue_; - if (facetValueCase_ == 2 && intervalBuilder_ != null) { + if (facetValueCase_ == 2 && + intervalBuilder_ != null) { result.facetValue_ = intervalBuilder_.build(); } } @@ -1836,74 +1626,63 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.discoveryengine.v1.SearchResponse.Facet.FacetValue) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue other) { + if (other == com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } switch (other.getFacetValueCase()) { - case VALUE: - { - facetValueCase_ = 1; - facetValue_ = other.facetValue_; - onChanged(); - break; - } - case INTERVAL: - { - mergeInterval(other.getInterval()); - break; - } - case FACETVALUE_NOT_SET: - { - break; - } + case VALUE: { + facetValueCase_ = 1; + facetValue_ = other.facetValue_; + onChanged(); + break; + } + case INTERVAL: { + mergeInterval(other.getInterval()); + break; + } + case FACETVALUE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1931,32 +1710,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - facetValueCase_ = 1; - facetValue_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); - facetValueCase_ = 2; - break; - } // case 18 - case 24: - { - count_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + facetValueCase_ = 1; + facetValue_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getIntervalFieldBuilder().getBuilder(), + extensionRegistry); + facetValueCase_ = 2; + break; + } // case 18 + case 24: { + count_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1966,12 +1743,12 @@ public Builder mergeFrom( } // finally return this; } - private int facetValueCase_ = 0; private java.lang.Object facetValue_; - - public FacetValueCase getFacetValueCase() { - return FacetValueCase.forNumber(facetValueCase_); + public FacetValueCase + getFacetValueCase() { + return FacetValueCase.forNumber( + facetValueCase_); } public Builder clearFacetValue() { @@ -1984,14 +1761,11 @@ public Builder clearFacetValue() { private int bitField0_; /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return Whether the value field is set. */ @java.lang.Override @@ -1999,14 +1773,11 @@ public boolean hasValue() { return facetValueCase_ == 1; } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -2016,7 +1787,8 @@ public java.lang.String getValue() { ref = facetValue_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (facetValueCase_ == 1) { facetValue_ = s; @@ -2027,25 +1799,24 @@ public java.lang.String getValue() { } } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = ""; if (facetValueCase_ == 1) { ref = facetValue_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (facetValueCase_ == 1) { facetValue_ = b; } @@ -2055,35 +1826,28 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } facetValueCase_ = 1; facetValue_ = value; onChanged(); return this; } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -2095,21 +1859,17 @@ public Builder clearValue() { return this; } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); facetValueCase_ = 1; facetValue_ = value; @@ -2118,13 +1878,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Interval, - com.google.cloud.discoveryengine.v1.Interval.Builder, - com.google.cloud.discoveryengine.v1.IntervalOrBuilder> - intervalBuilder_; + com.google.cloud.discoveryengine.v1.Interval, com.google.cloud.discoveryengine.v1.Interval.Builder, com.google.cloud.discoveryengine.v1.IntervalOrBuilder> intervalBuilder_; /** - * - * *
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2132,7 +1887,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
          * 
* * .google.cloud.discoveryengine.v1.Interval interval = 2; - * * @return Whether the interval field is set. */ @java.lang.Override @@ -2140,8 +1894,6 @@ public boolean hasInterval() { return facetValueCase_ == 2; } /** - * - * *
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2149,7 +1901,6 @@ public boolean hasInterval() {
          * 
* * .google.cloud.discoveryengine.v1.Interval interval = 2; - * * @return The interval. */ @java.lang.Override @@ -2167,8 +1918,6 @@ public com.google.cloud.discoveryengine.v1.Interval getInterval() { } } /** - * - * *
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2191,8 +1940,6 @@ public Builder setInterval(com.google.cloud.discoveryengine.v1.Interval value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2213,8 +1960,6 @@ public Builder setInterval(
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2225,14 +1970,10 @@ public Builder setInterval(
          */
         public Builder mergeInterval(com.google.cloud.discoveryengine.v1.Interval value) {
           if (intervalBuilder_ == null) {
-            if (facetValueCase_ == 2
-                && facetValue_
-                    != com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance()) {
-              facetValue_ =
-                  com.google.cloud.discoveryengine.v1.Interval.newBuilder(
-                          (com.google.cloud.discoveryengine.v1.Interval) facetValue_)
-                      .mergeFrom(value)
-                      .buildPartial();
+            if (facetValueCase_ == 2 &&
+                facetValue_ != com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance()) {
+              facetValue_ = com.google.cloud.discoveryengine.v1.Interval.newBuilder((com.google.cloud.discoveryengine.v1.Interval) facetValue_)
+                  .mergeFrom(value).buildPartial();
             } else {
               facetValue_ = value;
             }
@@ -2248,8 +1989,6 @@ public Builder mergeInterval(com.google.cloud.discoveryengine.v1.Interval value)
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2275,8 +2014,6 @@ public Builder clearInterval() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2289,8 +2026,6 @@ public com.google.cloud.discoveryengine.v1.Interval.Builder getIntervalBuilder()
           return getIntervalFieldBuilder().getBuilder();
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2311,8 +2046,6 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalOrBuilde
           }
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2322,19 +2055,14 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalOrBuilde
          * .google.cloud.discoveryengine.v1.Interval interval = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.Interval,
-                com.google.cloud.discoveryengine.v1.Interval.Builder,
-                com.google.cloud.discoveryengine.v1.IntervalOrBuilder>
+            com.google.cloud.discoveryengine.v1.Interval, com.google.cloud.discoveryengine.v1.Interval.Builder, com.google.cloud.discoveryengine.v1.IntervalOrBuilder> 
             getIntervalFieldBuilder() {
           if (intervalBuilder_ == null) {
             if (!(facetValueCase_ == 2)) {
               facetValue_ = com.google.cloud.discoveryengine.v1.Interval.getDefaultInstance();
             }
-            intervalBuilder_ =
-                new com.google.protobuf.SingleFieldBuilderV3<
-                    com.google.cloud.discoveryengine.v1.Interval,
-                    com.google.cloud.discoveryengine.v1.Interval.Builder,
-                    com.google.cloud.discoveryengine.v1.IntervalOrBuilder>(
+            intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.discoveryengine.v1.Interval, com.google.cloud.discoveryengine.v1.Interval.Builder, com.google.cloud.discoveryengine.v1.IntervalOrBuilder>(
                     (com.google.cloud.discoveryengine.v1.Interval) facetValue_,
                     getParentForChildren(),
                     isClean());
@@ -2345,16 +2073,13 @@ public com.google.cloud.discoveryengine.v1.IntervalOrBuilder getIntervalOrBuilde
           return intervalBuilder_;
         }
 
-        private long count_;
+        private long count_ ;
         /**
-         *
-         *
          * 
          * Number of items that have this facet value.
          * 
* * int64 count = 3; - * * @return The count. */ @java.lang.Override @@ -2362,14 +2087,11 @@ public long getCount() { return count_; } /** - * - * *
          * Number of items that have this facet value.
          * 
* * int64 count = 3; - * * @param value The count to set. * @return This builder for chaining. */ @@ -2381,14 +2103,11 @@ public Builder setCount(long value) { return this; } /** - * - * *
          * Number of items that have this facet value.
          * 
* * int64 count = 3; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -2397,7 +2116,6 @@ public Builder clearCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2410,45 +2128,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue) - private static final com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue(); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FacetValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2460,26 +2174,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -2488,30 +2198,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2520,97 +2230,74 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int VALUES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List - values_; + private java.util.List values_; /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public java.util.List - getValuesList() { + public java.util.List getValuesList() { return values_; } /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> + public java.util.List getValuesOrBuilderList() { return values_; } /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getValues( - int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getValues(int index) { return values_.get(index); } /** - * - * *
      * The facet values for this field.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder - getValuesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index) { return values_.get(index); } public static final int DYNAMIC_FACET_FIELD_NUMBER = 3; private boolean dynamicFacet_ = false; /** - * - * *
      * Whether the facet is dynamically generated.
      * 
* * bool dynamic_facet = 3; - * * @return The dynamicFacet. */ @java.lang.Override @@ -2619,7 +2306,6 @@ public boolean getDynamicFacet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2631,7 +2317,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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -2654,10 +2341,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, values_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, values_.get(i)); } if (dynamicFacet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dynamicFacet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, dynamicFacet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2667,17 +2356,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.discoveryengine.v1.SearchResponse.Facet)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchResponse.Facet other = - (com.google.cloud.discoveryengine.v1.SearchResponse.Facet) obj; + com.google.cloud.discoveryengine.v1.SearchResponse.Facet other = (com.google.cloud.discoveryengine.v1.SearchResponse.Facet) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (getDynamicFacet() != other.getDynamicFacet()) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (getDynamicFacet() + != other.getDynamicFacet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2696,101 +2387,97 @@ public int hashCode() { hash = (53 * hash) + getValuesList().hashCode(); } hash = (37 * hash) + DYNAMIC_FACET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDynamicFacet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDynamicFacet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet 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.discoveryengine.v1.SearchResponse.Facet prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchResponse.Facet 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 @@ -2800,41 +2487,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A facet result.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Facet} */ - 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.discoveryengine.v1.SearchResponse.Facet) com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.class, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.Facet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2852,9 +2537,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; } @java.lang.Override @@ -2873,18 +2558,14 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Facet buildPartial() { - com.google.cloud.discoveryengine.v1.SearchResponse.Facet result = - new com.google.cloud.discoveryengine.v1.SearchResponse.Facet(this); + com.google.cloud.discoveryengine.v1.SearchResponse.Facet result = new com.google.cloud.discoveryengine.v1.SearchResponse.Facet(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchResponse.Facet result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -2910,41 +2591,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse.Fa 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.discoveryengine.v1.SearchResponse.Facet) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.Facet) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.Facet)other); } else { super.mergeFrom(other); return this; @@ -2952,8 +2630,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.Facet other) { - if (other == com.google.cloud.discoveryengine.v1.SearchResponse.Facet.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.SearchResponse.Facet.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -2977,10 +2654,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.Face valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -3015,40 +2691,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue m = - input.readMessage( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - .parser(), - extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - dynamicFacet_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue m = + input.readMessage( + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + dynamicFacet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3058,26 +2729,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -3086,22 +2754,21 @@ public java.lang.String getKey() { } } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -3109,37 +2776,30 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -3149,22 +2809,18 @@ public Builder clearKey() { return this; } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -3172,36 +2828,26 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - values_ = java.util.Collections.emptyList(); - + private java.util.List values_ = + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - values_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue>(values_); + values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> - valuesBuilder_; + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> valuesBuilder_; /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public java.util.List - getValuesList() { + public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { @@ -3209,14 +2855,11 @@ private void ensureValuesIsMutable() { } } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public int getValuesCount() { if (valuesBuilder_ == null) { @@ -3226,17 +2869,13 @@ public int getValuesCount() { } } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getValues( - int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { @@ -3244,14 +2883,11 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue getVa } } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder setValues( int index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue value) { @@ -3268,19 +2904,14 @@ public Builder setValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder setValues( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); @@ -3291,17 +2922,13 @@ public Builder setValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public Builder addValues( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue value) { + public Builder addValues(com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3315,14 +2942,11 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder addValues( int index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue value) { @@ -3339,18 +2963,14 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder addValues( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -3361,19 +2981,14 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder addValues( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); @@ -3384,22 +2999,18 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder addAllValues( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue> - values) { + java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -3407,14 +3018,11 @@ public Builder addAllValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder clearValues() { if (valuesBuilder_ == null) { @@ -3427,14 +3035,11 @@ public Builder clearValues() { return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { @@ -3447,51 +3052,39 @@ public Builder removeValues(int index) { return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - getValuesBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder getValuesBuilder( + int index) { return getValuesFieldBuilder().getBuilder(index); } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder - getValuesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index) { if (valuesBuilder_ == null) { - return values_.get(index); - } else { + return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> - getValuesOrBuilderList() { + public java.util.List + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -3499,83 +3092,61 @@ public Builder removeValues(int index) { } } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.getDefaultInstance()); } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder - addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.getDefaultInstance()); } /** - * - * *
        * The facet values for this field.
        * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; */ - public java.util.List< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder> - getValuesBuilderList() { + public java.util.List + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder>( - values_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValueOrBuilder>( + values_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; } - private boolean dynamicFacet_; + private boolean dynamicFacet_ ; /** - * - * *
        * Whether the facet is dynamically generated.
        * 
* * bool dynamic_facet = 3; - * * @return The dynamicFacet. */ @java.lang.Override @@ -3583,14 +3154,11 @@ public boolean getDynamicFacet() { return dynamicFacet_; } /** - * - * *
        * Whether the facet is dynamically generated.
        * 
* * bool dynamic_facet = 3; - * * @param value The dynamicFacet to set. * @return This builder for chaining. */ @@ -3602,14 +3170,11 @@ public Builder setDynamicFacet(boolean value) { return this; } /** - * - * *
        * Whether the facet is dynamically generated.
        * 
* * bool dynamic_facet = 3; - * * @return This builder for chaining. */ public Builder clearDynamicFacet() { @@ -3618,7 +3183,6 @@ public Builder clearDynamicFacet() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3631,12 +3195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.Facet) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.Facet) private static final com.google.cloud.discoveryengine.v1.SearchResponse.Facet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse.Facet(); } @@ -3645,28 +3209,27 @@ public static com.google.cloud.discoveryengine.v1.SearchResponse.Facet getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Facet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Facet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3681,183 +3244,133 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.SearchResponse.Facet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SummaryOrBuilder - extends + public interface SummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.Summary) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The summaryText. */ java.lang.String getSummaryText(); /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The bytes for summaryText. */ - com.google.protobuf.ByteString getSummaryTextBytes(); + com.google.protobuf.ByteString + getSummaryTextBytes(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the summarySkippedReasons. */ - java.util.List - getSummarySkippedReasonsList(); + java.util.List getSummarySkippedReasonsList(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return The count of summarySkippedReasons. */ int getSummarySkippedReasonsCount(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the element to return. * @return The summarySkippedReasons at the given index. */ - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason - getSummarySkippedReasons(int index); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the enum numeric values on the wire for summarySkippedReasons. */ - java.util.List getSummarySkippedReasonsValueList(); + java.util.List + getSummarySkippedReasonsValueList(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of summarySkippedReasons at the given index. */ int getSummarySkippedReasonsValue(int index); /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return Whether the safetyAttributes field is set. */ boolean hasSafetyAttributes(); /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return The safetyAttributes. */ - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - getSafetyAttributes(); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes getSafetyAttributes(); /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder - getSafetyAttributesOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder(); } /** - * - * *
    * Summary of the top N search result specified by the summary spec.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Summary} */ - public static final class Summary extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Summary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.Summary) SummaryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Summary.newBuilder() to construct. private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Summary() { summaryText_ = ""; summarySkippedReasons_ = java.util.Collections.emptyList(); @@ -3865,39 +3378,34 @@ private Summary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Summary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.class, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder.class); } /** - * - * *
      * An Enum for summary-skipped reasons.
      * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason} + * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason} */ - public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageEnum { + public enum SummarySkippedReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Default value. The summary skipped reason is not specified.
        * 
@@ -3906,8 +3414,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE */ SUMMARY_SKIPPED_REASON_UNSPECIFIED(0), /** - * - * *
        * The adversarial query ignored case.
        *
@@ -3920,8 +3426,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       ADVERSARIAL_QUERY_IGNORED(1),
       /**
-       *
-       *
        * 
        * The non-summary seeking query ignored case.
        *
@@ -3934,8 +3438,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       NON_SUMMARY_SEEKING_QUERY_IGNORED(2),
       /**
-       *
-       *
        * 
        * The out-of-domain query ignored case.
        *
@@ -3948,8 +3450,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       OUT_OF_DOMAIN_QUERY_IGNORED(3),
       /**
-       *
-       *
        * 
        * The potential policy violation case.
        *
@@ -3961,8 +3461,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       POTENTIAL_POLICY_VIOLATION(4),
       /**
-       *
-       *
        * 
        * The LLM addon not enabled case.
        *
@@ -3976,8 +3474,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
       ;
 
       /**
-       *
-       *
        * 
        * Default value. The summary skipped reason is not specified.
        * 
@@ -3986,8 +3482,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE */ public static final int SUMMARY_SKIPPED_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The adversarial query ignored case.
        *
@@ -4000,8 +3494,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int ADVERSARIAL_QUERY_IGNORED_VALUE = 1;
       /**
-       *
-       *
        * 
        * The non-summary seeking query ignored case.
        *
@@ -4014,8 +3506,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int NON_SUMMARY_SEEKING_QUERY_IGNORED_VALUE = 2;
       /**
-       *
-       *
        * 
        * The out-of-domain query ignored case.
        *
@@ -4028,8 +3518,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int OUT_OF_DOMAIN_QUERY_IGNORED_VALUE = 3;
       /**
-       *
-       *
        * 
        * The potential policy violation case.
        *
@@ -4041,8 +3529,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int POTENTIAL_POLICY_VIOLATION_VALUE = 4;
       /**
-       *
-       *
        * 
        * The LLM addon not enabled case.
        *
@@ -4053,6 +3539,7 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int LLM_ADDON_NOT_ENABLED_VALUE = 5;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -4077,20 +3564,13 @@ public static SummarySkippedReason valueOf(int value) {
        */
       public static SummarySkippedReason forNumber(int value) {
         switch (value) {
-          case 0:
-            return SUMMARY_SKIPPED_REASON_UNSPECIFIED;
-          case 1:
-            return ADVERSARIAL_QUERY_IGNORED;
-          case 2:
-            return NON_SUMMARY_SEEKING_QUERY_IGNORED;
-          case 3:
-            return OUT_OF_DOMAIN_QUERY_IGNORED;
-          case 4:
-            return POTENTIAL_POLICY_VIOLATION;
-          case 5:
-            return LLM_ADDON_NOT_ENABLED;
-          default:
-            return null;
+          case 0: return SUMMARY_SKIPPED_REASON_UNSPECIFIED;
+          case 1: return ADVERSARIAL_QUERY_IGNORED;
+          case 2: return NON_SUMMARY_SEEKING_QUERY_IGNORED;
+          case 3: return OUT_OF_DOMAIN_QUERY_IGNORED;
+          case 4: return POTENTIAL_POLICY_VIOLATION;
+          case 5: return LLM_ADDON_NOT_ENABLED;
+          default: return null;
         }
       }
 
@@ -4098,31 +3578,29 @@ public static SummarySkippedReason forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          SummarySkippedReason> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public SummarySkippedReason findValueByNumber(int number) {
+                return SummarySkippedReason.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public SummarySkippedReason findValueByNumber(int number) {
-                  return SummarySkippedReason.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.discoveryengine.v1.SearchResponse.Summary.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final SummarySkippedReason[] VALUES = values();
@@ -4130,7 +3608,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static SummarySkippedReason 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;
@@ -4147,198 +3626,165 @@ private SummarySkippedReason(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason)
     }
 
-    public interface SafetyAttributesOrBuilder
-        extends
+    public interface SafetyAttributesOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return A list containing the categories. */ - java.util.List getCategoriesList(); + java.util.List + getCategoriesList(); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return The count of categories. */ int getCategoriesCount(); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @param index The index of the element to return. * @return The categories at the given index. */ java.lang.String getCategories(int index); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @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); /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return A list containing the scores. */ java.util.List getScoresList(); /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return The count of scores. */ int getScoresCount(); /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @param index The index of the element to return. * @return The scores at the given index. */ float getScores(int index); } /** - * - * *
      * Safety Attribute categories and their associated confidence scores.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes} */ - public static final class SafetyAttributes extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SafetyAttributes extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) SafetyAttributesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SafetyAttributes.newBuilder() to construct. private SafetyAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SafetyAttributes() { - categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); scores_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SafetyAttributes(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder - .class); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.class, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder.class); } public static final int CATEGORIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList getCategoriesList() { + public com.google.protobuf.ProtocolStringList + getCategoriesList() { return categories_; } /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -4346,78 +3792,65 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @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); } public static final int SCORES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList scores_; /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return A list containing the scores. */ @java.lang.Override - public java.util.List getScoresList() { + public java.util.List + getScoresList() { return scores_; } /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return The count of scores. */ public int getScoresCount() { return scores_.size(); } /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @param index The index of the element to return. * @return The scores at the given index. */ public float getScores(int index) { return scores_.getFloat(index); } - private int scoresMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4429,7 +3862,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(); for (int i = 0; i < categories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categories_.getRaw(i)); @@ -4464,7 +3898,8 @@ public int getSerializedSize() { size += dataSize; if (!getScoresList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } scoresMemoizedSerializedSize = dataSize; } @@ -4476,18 +3911,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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes other = - (com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) obj; + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes other = (com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) obj; - if (!getCategoriesList().equals(other.getCategoriesList())) return false; - if (!getScoresList().equals(other.getScoresList())) return false; + if (!getCategoriesList() + .equals(other.getCategoriesList())) return false; + if (!getScoresList() + .equals(other.getScoresList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4512,103 +3946,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - 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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - 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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes 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 @@ -4618,70 +4039,63 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Safety Attribute categories and their associated confidence scores.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes} */ - 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.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.class, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); scores_ = emptyFloatList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes build() { - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result = - buildPartial(); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4689,20 +4103,15 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttribut } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - buildPartial() { - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result = - new com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes(this); + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result = new com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result) { if (((bitField0_ & 0x00000002) != 0)) { scores_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); @@ -4710,8 +4119,7 @@ private void buildPartialRepeatedFields( result.scores_ = scores_; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { categories_.makeImmutable(); @@ -4723,56 +4131,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) - other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes other) { + if (other == com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance()) return this; if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; @@ -4819,53 +4217,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCategoriesIsMutable(); - categories_.add(s); - break; - } // case 10 - case 21: - { - float v = input.readFloat(); - ensureScoresIsMutable(); - scores_.addFloat(v); - break; - } // case 21 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureScoresIsMutable(); - while (input.getBytesUntilLimit() > 0) { - scores_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCategoriesIsMutable(); + categories_.add(s); + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureScoresIsMutable(); + scores_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureScoresIsMutable(); + while (input.getBytesUntilLimit() > 0) { + scores_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private com.google.protobuf.LazyStringArrayList categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCategoriesIsMutable() { if (!categories_.isModifiable()) { categories_ = new com.google.protobuf.LazyStringArrayList(categories_); @@ -4873,46 +4265,38 @@ private void ensureCategoriesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList getCategoriesList() { + public com.google.protobuf.ProtocolStringList + getCategoriesList() { categories_.makeImmutable(); return categories_; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -4920,39 +4304,33 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @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); } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCategories( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.set(index, value); bitField0_ |= 0x00000001; @@ -4960,22 +4338,18 @@ public Builder setCategories(int index, java.lang.String value) { return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @param value The categories to add. * @return This builder for chaining. */ - public Builder addCategories(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCategories( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.add(value); bitField0_ |= 0x00000001; @@ -4983,61 +4357,53 @@ public Builder addCategories(java.lang.String value) { return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @return This builder for chaining. */ public Builder clearCategories() { - categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @param value The bytes of the categories to add. * @return This builder for chaining. */ - public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCategoriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCategoriesIsMutable(); categories_.add(value); @@ -5047,7 +4413,6 @@ public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.FloatList scores_ = emptyFloatList(); - private void ensureScoresIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { scores_ = mutableCopy(scores_); @@ -5055,47 +4420,38 @@ private void ensureScoresIsMutable() { } } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @return A list containing the scores. */ - public java.util.List getScoresList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(scores_) - : scores_; + public java.util.List + getScoresList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(scores_) : scores_; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @return The count of scores. */ public int getScoresCount() { return scores_.size(); } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param index The index of the element to return. * @return The scores at the given index. */ @@ -5103,20 +4459,18 @@ public float getScores(int index) { return scores_.getFloat(index); } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param index The index to set the value at. * @param value The scores to set. * @return This builder for chaining. */ - public Builder setScores(int index, float value) { + public Builder setScores( + int index, float value) { ensureScoresIsMutable(); scores_.setFloat(index, value); @@ -5124,15 +4478,12 @@ public Builder setScores(int index, float value) { return this; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param value The scores to add. * @return This builder for chaining. */ @@ -5144,34 +4495,30 @@ public Builder addScores(float value) { return this; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param values The scores to add. * @return This builder for chaining. */ - public Builder addAllScores(java.lang.Iterable values) { + public Builder addAllScores( + java.lang.Iterable values) { ensureScoresIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scores_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scores_); onChanged(); return this; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @return This builder for chaining. */ public Builder clearScores() { @@ -5180,7 +4527,6 @@ public Builder clearScores() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5193,46 +4539,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes) - private static final com.google.cloud.discoveryengine.v1.SearchResponse.Summary - .SafetyAttributes - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes(); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafetyAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5244,25 +4585,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SUMMARY_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object summaryText_ = ""; /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The summaryText. */ @java.lang.Override @@ -5271,29 +4608,29 @@ public java.lang.String getSummaryText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summaryText_ = s; return s; } } /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The bytes for summaryText. */ @java.lang.Override - public com.google.protobuf.ByteString getSummaryTextBytes() { + public com.google.protobuf.ByteString + getSummaryTextBytes() { java.lang.Object ref = summaryText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summaryText_ = b; return b; } else { @@ -5302,64 +4639,38 @@ public com.google.protobuf.ByteString getSummaryTextBytes() { } public static final int SUMMARY_SKIPPED_REASONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List summarySkippedReasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason> - summarySkippedReasons_converter_ = + java.lang.Integer, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason> summarySkippedReasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason>() { - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason - convert(java.lang.Integer from) { - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason - result = - com.google.cloud.discoveryengine.v1.SearchResponse.Summary - .SummarySkippedReason.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary - .SummarySkippedReason.UNRECOGNIZED - : result; + java.lang.Integer, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason>() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason convert(java.lang.Integer from) { + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason result = com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason.forNumber(from); + return result == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason.UNRECOGNIZED : result; } }; /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the summarySkippedReasons. */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason> - getSummarySkippedReasonsList() { + public java.util.List getSummarySkippedReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason>( - summarySkippedReasons_, summarySkippedReasons_converter_); + java.lang.Integer, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason>(summarySkippedReasons_, summarySkippedReasons_converter_); } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return The count of summarySkippedReasons. */ @java.lang.Override @@ -5367,55 +4678,40 @@ public int getSummarySkippedReasonsCount() { return summarySkippedReasons_.size(); } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the element to return. * @return The summarySkippedReasons at the given index. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason - getSummarySkippedReasons(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index) { return summarySkippedReasons_converter_.convert(summarySkippedReasons_.get(index)); } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the enum numeric values on the wire for summarySkippedReasons. */ @java.lang.Override - public java.util.List getSummarySkippedReasonsValueList() { + public java.util.List + getSummarySkippedReasonsValueList() { return summarySkippedReasons_; } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of summarySkippedReasons at the given index. */ @@ -5423,24 +4719,17 @@ public java.util.List getSummarySkippedReasonsValueList() { public int getSummarySkippedReasonsValue(int index) { return summarySkippedReasons_.get(index); } - private int summarySkippedReasonsMemoizedSerializedSize; public static final int SAFETY_ATTRIBUTES_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - safetyAttributes_; + private com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safetyAttributes_; /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return Whether the safetyAttributes field is set. */ @java.lang.Override @@ -5448,50 +4737,32 @@ public boolean hasSafetyAttributes() { return safetyAttributes_ != null; } /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return The safetyAttributes. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - getSafetyAttributes() { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes getSafetyAttributes() { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder - getSafetyAttributesOrBuilder() { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder() { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5503,7 +4774,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summaryText_); @@ -5533,19 +4805,18 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < summarySkippedReasons_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - summarySkippedReasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(summarySkippedReasons_.get(i)); } size += dataSize; - if (!getSummarySkippedReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - summarySkippedReasonsMemoizedSerializedSize = dataSize; + if (!getSummarySkippedReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }summarySkippedReasonsMemoizedSerializedSize = dataSize; } if (safetyAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSafetyAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSafetyAttributes()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5555,19 +4826,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.discoveryengine.v1.SearchResponse.Summary)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchResponse.Summary other = - (com.google.cloud.discoveryengine.v1.SearchResponse.Summary) obj; + com.google.cloud.discoveryengine.v1.SearchResponse.Summary other = (com.google.cloud.discoveryengine.v1.SearchResponse.Summary) obj; - if (!getSummaryText().equals(other.getSummaryText())) return false; + if (!getSummaryText() + .equals(other.getSummaryText())) return false; if (!summarySkippedReasons_.equals(other.summarySkippedReasons_)) return false; if (hasSafetyAttributes() != other.hasSafetyAttributes()) return false; if (hasSafetyAttributes()) { - if (!getSafetyAttributes().equals(other.getSafetyAttributes())) return false; + if (!getSafetyAttributes() + .equals(other.getSafetyAttributes())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5596,94 +4868,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary 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.discoveryengine.v1.SearchResponse.Summary prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchResponse.Summary 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 @@ -5693,41 +4960,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Summary of the top N search result specified by the summary spec.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.Summary} */ - 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.discoveryengine.v1.SearchResponse.Summary) com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.class, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.class, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.Summary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5744,14 +5009,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance(); } @@ -5766,18 +5030,14 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Summary buildPartial() { - com.google.cloud.discoveryengine.v1.SearchResponse.Summary result = - new com.google.cloud.discoveryengine.v1.SearchResponse.Summary(this); + com.google.cloud.discoveryengine.v1.SearchResponse.Summary result = new com.google.cloud.discoveryengine.v1.SearchResponse.Summary(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchResponse.Summary result) { if (((bitField0_ & 0x00000002) != 0)) { summarySkippedReasons_ = java.util.Collections.unmodifiableList(summarySkippedReasons_); bitField0_ = (bitField0_ & ~0x00000002); @@ -5785,17 +5045,15 @@ private void buildPartialRepeatedFields( result.summarySkippedReasons_ = summarySkippedReasons_; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse.Summary result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.summaryText_ = summaryText_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.safetyAttributes_ = - safetyAttributesBuilder_ == null - ? safetyAttributes_ - : safetyAttributesBuilder_.build(); + result.safetyAttributes_ = safetyAttributesBuilder_ == null + ? safetyAttributes_ + : safetyAttributesBuilder_.build(); } } @@ -5803,41 +5061,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.discoveryengine.v1.SearchResponse.Summary) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.Summary) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.Summary)other); } else { super.mergeFrom(other); return this; @@ -5845,9 +5100,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.Summary other) { - if (other - == com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance()) return this; if (!other.getSummaryText().isEmpty()) { summaryText_ = other.summaryText_; bitField0_ |= 0x00000001; @@ -5892,45 +5145,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - summaryText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { + case 10: { + summaryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureSummarySkippedReasonsIsMutable(); summarySkippedReasons_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSummarySkippedReasonsIsMutable(); - summarySkippedReasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: - { - input.readMessage( - getSafetyAttributesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + input.readMessage( + getSafetyAttributesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5940,25 +5189,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object summaryText_ = ""; /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @return The summaryText. */ public java.lang.String getSummaryText() { java.lang.Object ref = summaryText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summaryText_ = s; return s; @@ -5967,21 +5213,20 @@ public java.lang.String getSummaryText() { } } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @return The bytes for summaryText. */ - public com.google.protobuf.ByteString getSummaryTextBytes() { + public com.google.protobuf.ByteString + getSummaryTextBytes() { java.lang.Object ref = summaryText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summaryText_ = b; return b; } else { @@ -5989,35 +5234,28 @@ public com.google.protobuf.ByteString getSummaryTextBytes() { } } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @param value The summaryText to set. * @return This builder for chaining. */ - public Builder setSummaryText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSummaryText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } summaryText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @return This builder for chaining. */ public Builder clearSummaryText() { @@ -6027,21 +5265,17 @@ public Builder clearSummaryText() { return this; } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @param value The bytes for summaryText to set. * @return This builder for chaining. */ - public Builder setSummaryTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSummaryTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summaryText_ = value; bitField0_ |= 0x00000001; @@ -6050,92 +5284,64 @@ public Builder setSummaryTextBytes(com.google.protobuf.ByteString value) { } private java.util.List summarySkippedReasons_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSummarySkippedReasonsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - summarySkippedReasons_ = - new java.util.ArrayList(summarySkippedReasons_); + summarySkippedReasons_ = new java.util.ArrayList(summarySkippedReasons_); bitField0_ |= 0x00000002; } } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the summarySkippedReasons. */ - public java.util.List< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason> - getSummarySkippedReasonsList() { + public java.util.List getSummarySkippedReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason>( - summarySkippedReasons_, summarySkippedReasons_converter_); + java.lang.Integer, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason>(summarySkippedReasons_, summarySkippedReasons_converter_); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return The count of summarySkippedReasons. */ public int getSummarySkippedReasonsCount() { return summarySkippedReasons_.size(); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the element to return. * @return The summarySkippedReasons at the given index. */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason - getSummarySkippedReasons(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index) { return summarySkippedReasons_converter_.convert(summarySkippedReasons_.get(index)); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index to set the value at. * @param value The summarySkippedReasons to set. * @return This builder for chaining. */ public Builder setSummarySkippedReasons( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason value) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason value) { if (value == null) { throw new NullPointerException(); } @@ -6145,22 +5351,16 @@ public Builder setSummarySkippedReasons( return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param value The summarySkippedReasons to add. * @return This builder for chaining. */ - public Builder addSummarySkippedReasons( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason value) { + public Builder addSummarySkippedReasons(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason value) { if (value == null) { throw new NullPointerException(); } @@ -6170,46 +5370,31 @@ public Builder addSummarySkippedReasons( return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param values The summarySkippedReasons to add. * @return This builder for chaining. */ public Builder addAllSummarySkippedReasons( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1.SearchResponse.Summary - .SummarySkippedReason> - values) { + java.lang.Iterable values) { ensureSummarySkippedReasonsIsMutable(); - for (com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason value : - values) { + for (com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason value : values) { summarySkippedReasons_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return This builder for chaining. */ public Builder clearSummarySkippedReasons() { @@ -6219,34 +5404,25 @@ public Builder clearSummarySkippedReasons() { return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the enum numeric values on the wire for summarySkippedReasons. */ - public java.util.List getSummarySkippedReasonsValueList() { + public java.util.List + getSummarySkippedReasonsValueList() { return java.util.Collections.unmodifiableList(summarySkippedReasons_); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of summarySkippedReasons at the given index. */ @@ -6254,39 +5430,30 @@ public int getSummarySkippedReasonsValue(int index) { return summarySkippedReasons_.get(index); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index to set the value at. * @param value The enum numeric value on the wire for summarySkippedReasons to set. * @return This builder for chaining. */ - public Builder setSummarySkippedReasonsValue(int index, int value) { + public Builder setSummarySkippedReasonsValue( + int index, int value) { ensureSummarySkippedReasonsIsMutable(); summarySkippedReasons_.set(index, value); onChanged(); return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param value The enum numeric value on the wire for summarySkippedReasons to add. * @return This builder for chaining. */ @@ -6297,17 +5464,12 @@ public Builder addSummarySkippedReasonsValue(int value) { return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param values The enum numeric values on the wire for summarySkippedReasons to add. * @return This builder for chaining. */ @@ -6321,69 +5483,46 @@ public Builder addAllSummarySkippedReasonsValue( return this; } - private com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - safetyAttributes_; + private com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safetyAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder> - safetyAttributesBuilder_; + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder> safetyAttributesBuilder_; /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return Whether the safetyAttributes field is set. */ public boolean hasSafetyAttributes() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return The safetyAttributes. */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - getSafetyAttributes() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes getSafetyAttributes() { if (safetyAttributesBuilder_ == null) { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } else { return safetyAttributesBuilder_.getMessage(); } } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public Builder setSafetyAttributes( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes value) { + public Builder setSafetyAttributes(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes value) { if (safetyAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6397,20 +5536,15 @@ public Builder setSafetyAttributes( return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ public Builder setSafetyAttributes( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder builderForValue) { if (safetyAttributesBuilder_ == null) { safetyAttributes_ = builderForValue.build(); } else { @@ -6421,25 +5555,18 @@ public Builder setSafetyAttributes( return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public Builder mergeSafetyAttributes( - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes value) { + public Builder mergeSafetyAttributes(com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes value) { if (safetyAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && safetyAttributes_ != null - && safetyAttributes_ - != com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + safetyAttributes_ != null && + safetyAttributes_ != com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance()) { getSafetyAttributesBuilder().mergeFrom(value); } else { safetyAttributes_ = value; @@ -6452,16 +5579,12 @@ public Builder mergeSafetyAttributes( return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ public Builder clearSafetyAttributes() { bitField0_ = (bitField0_ & ~0x00000004); @@ -6474,77 +5597,55 @@ public Builder clearSafetyAttributes() { return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder - getSafetyAttributesBuilder() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder getSafetyAttributesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSafetyAttributesFieldBuilder().getBuilder(); } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder - getSafetyAttributesOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder() { if (safetyAttributesBuilder_ != null) { return safetyAttributesBuilder_.getMessageOrBuilder(); } else { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + return safetyAttributes_ == null ? + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder> getSafetyAttributesFieldBuilder() { if (safetyAttributesBuilder_ == null) { - safetyAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - .Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary - .SafetyAttributesOrBuilder>( - getSafetyAttributes(), getParentForChildren(), isClean()); + safetyAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributesOrBuilder>( + getSafetyAttributes(), + getParentForChildren(), + isClean()); safetyAttributes_ = null; } return safetyAttributesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6557,13 +5658,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.Summary) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.Summary) - private static final com.google.cloud.discoveryengine.v1.SearchResponse.Summary - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchResponse.Summary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse.Summary(); } @@ -6572,28 +5672,27 @@ public static com.google.cloud.discoveryengine.v1.SearchResponse.Summary getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Summary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Summary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6608,29 +5707,24 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface QueryExpansionInfoOrBuilder - extends + public interface QueryExpansionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Bool describing whether query expansion has occurred.
      * 
* * bool expanded_query = 1; - * * @return The expandedQuery. */ boolean getExpandedQuery(); /** - * - * *
      * Number of pinned results. This field will only be set when expansion
      * happens and
@@ -6639,14 +5733,11 @@ public interface QueryExpansionInfoOrBuilder
      * 
* * int64 pinned_result_count = 2; - * * @return The pinnedResultCount. */ long getPinnedResultCount(); } /** - * - * *
    * Information describing query expansion including whether expansion has
    * occurred.
@@ -6654,50 +5745,46 @@ public interface QueryExpansionInfoOrBuilder
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo}
    */
-  public static final class QueryExpansionInfo extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class QueryExpansionInfo extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo)
       QueryExpansionInfoOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use QueryExpansionInfo.newBuilder() to construct.
     private QueryExpansionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private QueryExpansionInfo() {}
+    private QueryExpansionInfo() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new QueryExpansionInfo();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.class,
-              com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder.class);
+              com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.class, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder.class);
     }
 
     public static final int EXPANDED_QUERY_FIELD_NUMBER = 1;
     private boolean expandedQuery_ = false;
     /**
-     *
-     *
      * 
      * Bool describing whether query expansion has occurred.
      * 
* * bool expanded_query = 1; - * * @return The expandedQuery. */ @java.lang.Override @@ -6708,8 +5795,6 @@ public boolean getExpandedQuery() { public static final int PINNED_RESULT_COUNT_FIELD_NUMBER = 2; private long pinnedResultCount_ = 0L; /** - * - * *
      * Number of pinned results. This field will only be set when expansion
      * happens and
@@ -6718,7 +5803,6 @@ public boolean getExpandedQuery() {
      * 
* * int64 pinned_result_count = 2; - * * @return The pinnedResultCount. */ @java.lang.Override @@ -6727,7 +5811,6 @@ public long getPinnedResultCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6739,7 +5822,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 (expandedQuery_ != false) { output.writeBool(1, expandedQuery_); } @@ -6756,10 +5840,12 @@ public int getSerializedSize() { size = 0; if (expandedQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, expandedQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, expandedQuery_); } if (pinnedResultCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, pinnedResultCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, pinnedResultCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6769,16 +5855,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.discoveryengine.v1.SearchResponse.QueryExpansionInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo other = - (com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) obj; + com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo other = (com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) obj; - if (getExpandedQuery() != other.getExpandedQuery()) return false; - if (getPinnedResultCount() != other.getPinnedResultCount()) return false; + if (getExpandedQuery() + != other.getExpandedQuery()) return false; + if (getPinnedResultCount() + != other.getPinnedResultCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6791,104 +5878,100 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXPANDED_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandedQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpandedQuery()); hash = (37 * hash) + PINNED_RESULT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPinnedResultCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPinnedResultCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1.SearchResponse.QueryExpansionInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1.SearchResponse.QueryExpansionInfo prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo 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 @@ -6898,8 +5981,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information describing query expansion including whether expansion has
      * occurred.
@@ -6907,35 +5988,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo}
      */
-    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.discoveryengine.v1.SearchResponse.QueryExpansionInfo)
         com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.discoveryengine.v1.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.discoveryengine.v1.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable
+        return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.class,
-                com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder
-                    .class);
+                com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.class, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6946,22 +6025,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.discoveryengine.v1.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo
-          getDefaultInstanceForType() {
-        return com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo
-            .getDefaultInstance();
+      public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo getDefaultInstanceForType() {
+        return com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo build() {
-        com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo result =
-            buildPartial();
+        com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -6970,17 +6046,13 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo bui
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo buildPartial() {
-        com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo result =
-            new com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo result = new com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo result) {
+      private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.expandedQuery_ = expandedQuery_;
@@ -6994,54 +6066,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) {
-          return mergeFrom(
-              (com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) other);
+        if (other instanceof com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) {
+          return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo other) {
-        if (other
-            == com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo other) {
+        if (other == com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance()) return this;
         if (other.getExpandedQuery() != false) {
           setExpandedQuery(other.getExpandedQuery());
         }
@@ -7074,25 +6138,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  expandedQuery_ = input.readBool();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  pinnedResultCount_ = input.readInt64();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                expandedQuery_ = input.readBool();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                pinnedResultCount_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7102,19 +6163,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private boolean expandedQuery_;
+      private boolean expandedQuery_ ;
       /**
-       *
-       *
        * 
        * Bool describing whether query expansion has occurred.
        * 
* * bool expanded_query = 1; - * * @return The expandedQuery. */ @java.lang.Override @@ -7122,14 +6179,11 @@ public boolean getExpandedQuery() { return expandedQuery_; } /** - * - * *
        * Bool describing whether query expansion has occurred.
        * 
* * bool expanded_query = 1; - * * @param value The expandedQuery to set. * @return This builder for chaining. */ @@ -7141,14 +6195,11 @@ public Builder setExpandedQuery(boolean value) { return this; } /** - * - * *
        * Bool describing whether query expansion has occurred.
        * 
* * bool expanded_query = 1; - * * @return This builder for chaining. */ public Builder clearExpandedQuery() { @@ -7158,10 +6209,8 @@ public Builder clearExpandedQuery() { return this; } - private long pinnedResultCount_; + private long pinnedResultCount_ ; /** - * - * *
        * Number of pinned results. This field will only be set when expansion
        * happens and
@@ -7170,7 +6219,6 @@ public Builder clearExpandedQuery() {
        * 
* * int64 pinned_result_count = 2; - * * @return The pinnedResultCount. */ @java.lang.Override @@ -7178,8 +6226,6 @@ public long getPinnedResultCount() { return pinnedResultCount_; } /** - * - * *
        * Number of pinned results. This field will only be set when expansion
        * happens and
@@ -7188,7 +6234,6 @@ public long getPinnedResultCount() {
        * 
* * int64 pinned_result_count = 2; - * * @param value The pinnedResultCount to set. * @return This builder for chaining. */ @@ -7200,8 +6245,6 @@ public Builder setPinnedResultCount(long value) { return this; } /** - * - * *
        * Number of pinned results. This field will only be set when expansion
        * happens and
@@ -7210,7 +6253,6 @@ public Builder setPinnedResultCount(long value) {
        * 
* * int64 pinned_result_count = 2; - * * @return This builder for chaining. */ public Builder clearPinnedResultCount() { @@ -7219,7 +6261,6 @@ public Builder clearPinnedResultCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7232,45 +6273,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo) - private static final com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo(); } - public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryExpansionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExpansionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7282,19 +6319,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RESULTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List results_; /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -7302,13 +6336,10 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -7316,14 +6347,11 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -7335,8 +6363,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -7348,8 +6374,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getResult return results_.get(index); } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -7357,18 +6381,15 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getResult * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index) { return results_.get(index); } public static final int FACETS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List facets_; /** - * - * *
    * Results of facets requested by user.
    * 
@@ -7380,8 +6401,6 @@ public java.util.List return facets_; } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -7389,13 +6408,11 @@ public java.util.List * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getFacetsOrBuilderList() { return facets_; } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -7407,8 +6424,6 @@ public int getFacetsCount() { return facets_.size(); } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -7420,8 +6435,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet getFacets(int in return facets_.get(index); } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -7437,8 +6450,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFace public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** - * - * *
    * The estimated total count of matched items irrespective of pagination. The
    * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results]
@@ -7448,7 +6459,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFace
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -7457,12 +6467,9 @@ public int getTotalSize() { } public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object attributionToken_ = ""; /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -7471,7 +6478,6 @@ public int getTotalSize() {
    * 
* * string attribution_token = 4; - * * @return The attributionToken. */ @java.lang.Override @@ -7480,15 +6486,14 @@ public java.lang.String getAttributionToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; } } /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -7497,15 +6502,16 @@ public java.lang.String getAttributionToken() {
    * 
* * string attribution_token = 4; - * * @return The bytes for attributionToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -7514,12 +6520,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } public static final int REDIRECT_URI_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object redirectUri_ = ""; /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -7530,7 +6533,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * string redirect_uri = 12; - * * @return The redirectUri. */ @java.lang.Override @@ -7539,15 +6541,14 @@ public java.lang.String getRedirectUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; } } /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -7558,15 +6559,16 @@ public java.lang.String getRedirectUri() {
    * 
* * string redirect_uri = 12; - * * @return The bytes for redirectUri. */ @java.lang.Override - public com.google.protobuf.ByteString getRedirectUriBytes() { + public com.google.protobuf.ByteString + getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -7575,12 +6577,9 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -7589,7 +6588,6 @@ public com.google.protobuf.ByteString getRedirectUriBytes() {
    * 
* * string next_page_token = 5; - * * @return The nextPageToken. */ @java.lang.Override @@ -7598,15 +6596,14 @@ 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; } } /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -7615,15 +6612,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 5; - * * @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 { @@ -7632,12 +6630,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int CORRECTED_QUERY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object correctedQuery_ = ""; /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -7645,7 +6640,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    * 
* * string corrected_query = 7; - * * @return The correctedQuery. */ @java.lang.Override @@ -7654,15 +6648,14 @@ public java.lang.String getCorrectedQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); correctedQuery_ = s; return s; } } /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -7670,15 +6663,16 @@ public java.lang.String getCorrectedQuery() {
    * 
* * string corrected_query = 7; - * * @return The bytes for correctedQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getCorrectedQueryBytes() { + public com.google.protobuf.ByteString + getCorrectedQueryBytes() { java.lang.Object ref = correctedQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); correctedQuery_ = b; return b; } else { @@ -7689,8 +6683,6 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() { public static final int SUMMARY_FIELD_NUMBER = 9; private com.google.cloud.discoveryengine.v1.SearchResponse.Summary summary_; /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -7699,7 +6691,6 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() {
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * * @return Whether the summary field is set. */ @java.lang.Override @@ -7707,8 +6698,6 @@ public boolean hasSummary() { return summary_ != null; } /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -7717,18 +6706,13 @@ public boolean hasSummary() {
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * * @return The summary. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary() { - return summary_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_; } /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -7740,24 +6724,17 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() {
-    return summary_ == null
-        ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance()
-        : summary_;
+    return summary_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_;
   }
 
   public static final int QUERY_EXPANSION_INFO_FIELD_NUMBER = 14;
   private com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo queryExpansionInfo_;
   /**
-   *
-   *
    * 
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return Whether the queryExpansionInfo field is set. */ @java.lang.Override @@ -7765,46 +6742,30 @@ public boolean hasQueryExpansionInfo() { return queryExpansionInfo_ != null; } /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return The queryExpansionInfo. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - getQueryExpansionInfo() { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance() - : queryExpansionInfo_; + public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo getQueryExpansionInfo() { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder - getQueryExpansionInfoOrBuilder() { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance() - : queryExpansionInfo_; + public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder() { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7816,7 +6777,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)); } @@ -7854,13 +6816,16 @@ 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)); } for (int i = 0; i < facets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, facets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, facets_.get(i)); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attributionToken_); @@ -7872,13 +6837,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, correctedQuery_); } if (summary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSummary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSummary()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, redirectUri_); } if (queryExpansionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getQueryExpansionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getQueryExpansionInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7888,28 +6855,36 @@ 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.discoveryengine.v1.SearchResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchResponse other = - (com.google.cloud.discoveryengine.v1.SearchResponse) obj; - - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getFacetsList().equals(other.getFacetsList())) return false; - if (getTotalSize() != other.getTotalSize()) return false; - if (!getAttributionToken().equals(other.getAttributionToken())) return false; - if (!getRedirectUri().equals(other.getRedirectUri())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getCorrectedQuery().equals(other.getCorrectedQuery())) return false; + com.google.cloud.discoveryengine.v1.SearchResponse other = (com.google.cloud.discoveryengine.v1.SearchResponse) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getFacetsList() + .equals(other.getFacetsList())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getRedirectUri() + .equals(other.getRedirectUri())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getCorrectedQuery() + .equals(other.getCorrectedQuery())) return false; if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { - if (!getSummary().equals(other.getSummary())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; } if (hasQueryExpansionInfo() != other.hasQueryExpansionInfo()) return false; if (hasQueryExpansionInfo()) { - if (!getQueryExpansionInfo().equals(other.getQueryExpansionInfo())) return false; + if (!getQueryExpansionInfo() + .equals(other.getQueryExpansionInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7954,103 +6929,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.SearchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse 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.discoveryengine.v1.SearchResponse 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
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
@@ -8059,32 +7029,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse}
    */
-  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.discoveryengine.v1.SearchResponse)
       com.google.cloud.discoveryengine.v1.SearchResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.SearchResponse.class,
-              com.google.cloud.discoveryengine.v1.SearchResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1.SearchResponse.class, com.google.cloud.discoveryengine.v1.SearchResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.SearchResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -8122,9 +7093,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor;
     }
 
     @java.lang.Override
@@ -8143,18 +7114,14 @@ public com.google.cloud.discoveryengine.v1.SearchResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.SearchResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1.SearchResponse result =
-          new com.google.cloud.discoveryengine.v1.SearchResponse(this);
+      com.google.cloud.discoveryengine.v1.SearchResponse result = new com.google.cloud.discoveryengine.v1.SearchResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1.SearchResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1.SearchResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -8193,13 +7160,14 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse re
         result.correctedQuery_ = correctedQuery_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build();
+        result.summary_ = summaryBuilder_ == null
+            ? summary_
+            : summaryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.queryExpansionInfo_ =
-            queryExpansionInfoBuilder_ == null
-                ? queryExpansionInfo_
-                : queryExpansionInfoBuilder_.build();
+        result.queryExpansionInfo_ = queryExpansionInfoBuilder_ == null
+            ? queryExpansionInfo_
+            : queryExpansionInfoBuilder_.build();
       }
     }
 
@@ -8207,39 +7175,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse re
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.SearchResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.SearchResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -8247,8 +7214,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1.SearchResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.SearchResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -8267,10 +7233,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse othe
             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_);
           }
@@ -8294,10 +7259,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse othe
             facetsBuilder_ = null;
             facets_ = other.facets_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            facetsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFacetsFieldBuilder()
-                    : null;
+            facetsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFacetsFieldBuilder() : null;
           } else {
             facetsBuilder_.addAllMessages(other.facets_);
           }
@@ -8358,84 +7322,77 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.discoveryengine.v1.SearchResponse.Facet m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.SearchResponse.Facet.parser(),
-                        extensionRegistry);
-                if (facetsBuilder_ == null) {
-                  ensureFacetsIsMutable();
-                  facets_.add(m);
-                } else {
-                  facetsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 24:
-              {
-                totalSize_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                attributionToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 42
-            case 58:
-              {
-                correctedQuery_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 74:
-              {
-                input.readMessage(getSummaryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 74
-            case 98:
-              {
-                redirectUri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 98
-            case 114:
-              {
-                input.readMessage(
-                    getQueryExpansionInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 114
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.discoveryengine.v1.SearchResponse.Facet m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.SearchResponse.Facet.parser(),
+                      extensionRegistry);
+              if (facetsBuilder_ == null) {
+                ensureFacetsIsMutable();
+                facets_.add(m);
+              } else {
+                facetsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 24: {
+              totalSize_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              attributionToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 42
+            case 58: {
+              correctedQuery_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 74: {
+              input.readMessage(
+                  getSummaryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 74
+            case 98: {
+              redirectUri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 98
+            case 114: {
+              input.readMessage(
+                  getQueryExpansionInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 114
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8445,39 +7402,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        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.discoveryengine.v1.SearchResponse.SearchResult>(results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult,
-            com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder,
-            com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -8485,14 +7431,11 @@ private void ensureResultsIsMutable() { } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -8502,14 +7445,11 @@ public int getResultsCount() { } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getResults(int index) { if (resultsBuilder_ == null) { @@ -8519,14 +7459,11 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getResult } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder setResults( int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { @@ -8543,18 +7480,14 @@ public Builder setResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder setResults( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -8565,17 +7498,13 @@ public Builder setResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public Builder addResults( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { + public Builder addResults(com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8589,14 +7518,11 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder addResults( int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult value) { @@ -8613,14 +7539,11 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder addResults( com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { @@ -8634,18 +7557,14 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder addResults( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -8656,22 +7575,18 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder addAllResults( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult> - 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); @@ -8679,14 +7594,11 @@ public Builder addAllResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -8699,14 +7611,11 @@ public Builder clearResults() { return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -8719,50 +7628,39 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder - getResultsBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder getResultsBuilder( + int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -8770,99 +7668,74 @@ public Builder removeResults(int index) { } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder - addResultsBuilder(int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } private java.util.List facets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFacetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - facets_ = - new java.util.ArrayList( - facets_); + facets_ = new java.util.ArrayList(facets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder> - facetsBuilder_; + com.google.cloud.discoveryengine.v1.SearchResponse.Facet, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder> facetsBuilder_; /** - * - * *
      * Results of facets requested by user.
      * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ - public java.util.List - getFacetsList() { + public java.util.List getFacetsList() { if (facetsBuilder_ == null) { return java.util.Collections.unmodifiableList(facets_); } else { @@ -8870,8 +7743,6 @@ private void ensureFacetsIsMutable() { } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -8886,8 +7757,6 @@ public int getFacetsCount() { } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -8902,8 +7771,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet getFacets(int in } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -8925,8 +7792,6 @@ public Builder setFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -8934,8 +7799,7 @@ public Builder setFacets( * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ public Builder setFacets( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.set(index, builderForValue.build()); @@ -8946,8 +7810,6 @@ public Builder setFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -8968,8 +7830,6 @@ public Builder addFacets(com.google.cloud.discoveryengine.v1.SearchResponse.Face return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -8991,8 +7851,6 @@ public Builder addFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9011,8 +7869,6 @@ public Builder addFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9020,8 +7876,7 @@ public Builder addFacets( * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ public Builder addFacets( - int index, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.add(index, builderForValue.build()); @@ -9032,8 +7887,6 @@ public Builder addFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9041,11 +7894,11 @@ public Builder addFacets( * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ public Builder addAllFacets( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facets_); onChanged(); } else { facetsBuilder_.addAllMessages(values); @@ -9053,8 +7906,6 @@ public Builder addAllFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9072,8 +7923,6 @@ public Builder clearFacets() { return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9091,8 +7940,6 @@ public Builder removeFacets(int index) { return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9104,8 +7951,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder getFacet return getFacetsFieldBuilder().getBuilder(index); } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9115,23 +7960,19 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder getFacet public com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFacetsOrBuilder( int index) { if (facetsBuilder_ == null) { - return facets_.get(index); - } else { + return facets_.get(index); } else { return facetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Results of facets requested by user.
      * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder> - getFacetsOrBuilderList() { + public java.util.List + getFacetsOrBuilderList() { if (facetsBuilder_ != null) { return facetsBuilder_.getMessageOrBuilderList(); } else { @@ -9139,8 +7980,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFace } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9148,13 +7987,10 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFace * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder addFacetsBuilder() { - return getFacetsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.getDefaultInstance()); + return getFacetsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.Facet.getDefaultInstance()); } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -9163,45 +7999,37 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder addFacet */ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder addFacetsBuilder( int index) { - return getFacetsFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.getDefaultInstance()); + return getFacetsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.getDefaultInstance()); } /** - * - * *
      * Results of facets requested by user.
      * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ - public java.util.List - getFacetsBuilderList() { + public java.util.List + getFacetsBuilderList() { return getFacetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.Facet, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder> getFacetsFieldBuilder() { if (facetsBuilder_ == null) { - facetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Facet, - com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder>( - facets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.Facet, com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder>( + facets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); facets_ = null; } return facetsBuilder_; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The estimated total count of matched items irrespective of pagination. The
      * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results]
@@ -9211,7 +8039,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Facet.Builder addFacet
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -9219,8 +8046,6 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The estimated total count of matched items irrespective of pagination. The
      * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results]
@@ -9230,7 +8055,6 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -9242,8 +8066,6 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The estimated total count of matched items irrespective of pagination. The
      * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results]
@@ -9253,7 +8075,6 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -9265,8 +8086,6 @@ public Builder clearTotalSize() { private java.lang.Object attributionToken_ = ""; /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -9275,13 +8094,13 @@ public Builder clearTotalSize() {
      * 
* * string attribution_token = 4; - * * @return The attributionToken. */ public java.lang.String getAttributionToken() { java.lang.Object ref = attributionToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; @@ -9290,8 +8109,6 @@ public java.lang.String getAttributionToken() { } } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -9300,14 +8117,15 @@ public java.lang.String getAttributionToken() {
      * 
* * string attribution_token = 4; - * * @return The bytes for attributionToken. */ - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -9315,8 +8133,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -9325,22 +8141,18 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
      * 
* * string attribution_token = 4; - * * @param value The attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributionToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -9349,7 +8161,6 @@ public Builder setAttributionToken(java.lang.String value) {
      * 
* * string attribution_token = 4; - * * @return This builder for chaining. */ public Builder clearAttributionToken() { @@ -9359,8 +8170,6 @@ public Builder clearAttributionToken() { return this; } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -9369,14 +8178,12 @@ public Builder clearAttributionToken() {
      * 
* * string attribution_token = 4; - * * @param value The bytes for attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributionToken_ = value; bitField0_ |= 0x00000008; @@ -9386,8 +8193,6 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object redirectUri_ = ""; /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -9398,13 +8203,13 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string redirect_uri = 12; - * * @return The redirectUri. */ public java.lang.String getRedirectUri() { java.lang.Object ref = redirectUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; @@ -9413,8 +8218,6 @@ public java.lang.String getRedirectUri() { } } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -9425,14 +8228,15 @@ public java.lang.String getRedirectUri() {
      * 
* * string redirect_uri = 12; - * * @return The bytes for redirectUri. */ - public com.google.protobuf.ByteString getRedirectUriBytes() { + public com.google.protobuf.ByteString + getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -9440,8 +8244,6 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { } } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -9452,22 +8254,18 @@ public com.google.protobuf.ByteString getRedirectUriBytes() {
      * 
* * string redirect_uri = 12; - * * @param value The redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRedirectUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } redirectUri_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -9478,7 +8276,6 @@ public Builder setRedirectUri(java.lang.String value) {
      * 
* * string redirect_uri = 12; - * * @return This builder for chaining. */ public Builder clearRedirectUri() { @@ -9488,8 +8285,6 @@ public Builder clearRedirectUri() { return this; } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -9500,14 +8295,12 @@ public Builder clearRedirectUri() {
      * 
* * string redirect_uri = 12; - * * @param value The bytes for redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRedirectUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); redirectUri_ = value; bitField0_ |= 0x00000010; @@ -9517,8 +8310,6 @@ public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -9527,13 +8318,13 @@ public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string next_page_token = 5; - * * @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; @@ -9542,8 +8333,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -9552,14 +8341,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 5; - * * @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 { @@ -9567,8 +8357,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -9577,22 +8365,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 5; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -9601,7 +8385,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 5; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -9611,8 +8394,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -9621,14 +8402,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 5; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000020; @@ -9638,8 +8417,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object correctedQuery_ = ""; /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -9647,13 +8424,13 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string corrected_query = 7; - * * @return The correctedQuery. */ public java.lang.String getCorrectedQuery() { java.lang.Object ref = correctedQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); correctedQuery_ = s; return s; @@ -9662,8 +8439,6 @@ public java.lang.String getCorrectedQuery() { } } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -9671,14 +8446,15 @@ public java.lang.String getCorrectedQuery() {
      * 
* * string corrected_query = 7; - * * @return The bytes for correctedQuery. */ - public com.google.protobuf.ByteString getCorrectedQueryBytes() { + public com.google.protobuf.ByteString + getCorrectedQueryBytes() { java.lang.Object ref = correctedQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); correctedQuery_ = b; return b; } else { @@ -9686,8 +8462,6 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() { } } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -9695,22 +8469,18 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() {
      * 
* * string corrected_query = 7; - * * @param value The correctedQuery to set. * @return This builder for chaining. */ - public Builder setCorrectedQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCorrectedQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } correctedQuery_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -9718,7 +8488,6 @@ public Builder setCorrectedQuery(java.lang.String value) {
      * 
* * string corrected_query = 7; - * * @return This builder for chaining. */ public Builder clearCorrectedQuery() { @@ -9728,8 +8497,6 @@ public Builder clearCorrectedQuery() { return this; } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -9737,14 +8504,12 @@ public Builder clearCorrectedQuery() {
      * 
* * string corrected_query = 7; - * * @param value The bytes for correctedQuery to set. * @return This builder for chaining. */ - public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCorrectedQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); correctedQuery_ = value; bitField0_ |= 0x00000040; @@ -9754,13 +8519,8 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.SearchResponse.Summary summary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> - summaryBuilder_; + com.google.cloud.discoveryengine.v1.SearchResponse.Summary, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> summaryBuilder_; /** - * - * *
      * A summary as part of the search results.
      * This field is only returned if
@@ -9769,15 +8529,12 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * * @return Whether the summary field is set. */ public boolean hasSummary() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * A summary as part of the search results.
      * This field is only returned if
@@ -9786,21 +8543,16 @@ public boolean hasSummary() {
      * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * * @return The summary. */ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary() { if (summaryBuilder_ == null) { - return summary_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_; } else { return summaryBuilder_.getMessage(); } } /** - * - * *
      * A summary as part of the search results.
      * This field is only returned if
@@ -9824,8 +8576,6 @@ public Builder setSummary(com.google.cloud.discoveryengine.v1.SearchResponse.Sum
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -9847,8 +8597,6 @@ public Builder setSummary(
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -9860,11 +8608,9 @@ public Builder setSummary(
      */
     public Builder mergeSummary(com.google.cloud.discoveryengine.v1.SearchResponse.Summary value) {
       if (summaryBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && summary_ != null
-            && summary_
-                != com.google.cloud.discoveryengine.v1.SearchResponse.Summary
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          summary_ != null &&
+          summary_ != com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance()) {
           getSummaryBuilder().mergeFrom(value);
         } else {
           summary_ = value;
@@ -9877,8 +8623,6 @@ public Builder mergeSummary(com.google.cloud.discoveryengine.v1.SearchResponse.S
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -9899,8 +8643,6 @@ public Builder clearSummary() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -9916,8 +8658,6 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder getSum
       return getSummaryFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -9927,19 +8667,15 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder getSum
      *
      * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;
      */
-    public com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder
-        getSummaryOrBuilder() {
+    public com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() {
       if (summaryBuilder_ != null) {
         return summaryBuilder_.getMessageOrBuilder();
       } else {
-        return summary_ == null
-            ? com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance()
-            : summary_;
+        return summary_ == null ?
+            com.google.cloud.discoveryengine.v1.SearchResponse.Summary.getDefaultInstance() : summary_;
       }
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -9950,82 +8686,56 @@ public com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder getSum
      * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchResponse.Summary,
-            com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder,
-            com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder>
+        com.google.cloud.discoveryengine.v1.SearchResponse.Summary, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder> 
         getSummaryFieldBuilder() {
       if (summaryBuilder_ == null) {
-        summaryBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.SearchResponse.Summary,
-                com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder,
-                com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder>(
-                getSummary(), getParentForChildren(), isClean());
+        summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.SearchResponse.Summary, com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder>(
+                getSummary(),
+                getParentForChildren(),
+                isClean());
         summary_ = null;
       }
       return summaryBuilder_;
     }
 
-    private com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo
-        queryExpansionInfo_;
+    private com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo queryExpansionInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo,
-            com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder,
-            com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder>
-        queryExpansionInfoBuilder_;
+        com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder> queryExpansionInfoBuilder_;
     /**
-     *
-     *
      * 
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return Whether the queryExpansionInfo field is set. */ public boolean hasQueryExpansionInfo() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return The queryExpansionInfo. */ - public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - getQueryExpansionInfo() { + public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo getQueryExpansionInfo() { if (queryExpansionInfoBuilder_ == null) { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - .getDefaultInstance() - : queryExpansionInfo_; + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } else { return queryExpansionInfoBuilder_.getMessage(); } } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public Builder setQueryExpansionInfo( - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo value) { + public Builder setQueryExpansionInfo(com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo value) { if (queryExpansionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10039,19 +8749,14 @@ public Builder setQueryExpansionInfo( return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ public Builder setQueryExpansionInfo( - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder builderForValue) { if (queryExpansionInfoBuilder_ == null) { queryExpansionInfo_ = builderForValue.build(); } else { @@ -10062,24 +8767,17 @@ public Builder setQueryExpansionInfo( return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public Builder mergeQueryExpansionInfo( - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo value) { + public Builder mergeQueryExpansionInfo(com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo value) { if (queryExpansionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && queryExpansionInfo_ != null - && queryExpansionInfo_ - != com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + queryExpansionInfo_ != null && + queryExpansionInfo_ != com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance()) { getQueryExpansionInfoBuilder().mergeFrom(value); } else { queryExpansionInfo_ = value; @@ -10092,15 +8790,11 @@ public Builder mergeQueryExpansionInfo( return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ public Builder clearQueryExpansionInfo() { bitField0_ = (bitField0_ & ~0x00000100); @@ -10113,74 +8807,55 @@ public Builder clearQueryExpansionInfo() { return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder - getQueryExpansionInfoBuilder() { + public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder getQueryExpansionInfoBuilder() { bitField0_ |= 0x00000100; onChanged(); return getQueryExpansionInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder - getQueryExpansionInfoOrBuilder() { + public com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder() { if (queryExpansionInfoBuilder_ != null) { return queryExpansionInfoBuilder_.getMessageOrBuilder(); } else { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - .getDefaultInstance() - : queryExpansionInfo_; + return queryExpansionInfo_ == null ? + com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo, - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder> + com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder> getQueryExpansionInfoFieldBuilder() { if (queryExpansionInfoBuilder_ == null) { - queryExpansionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo, - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder, - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder>( - getQueryExpansionInfo(), getParentForChildren(), isClean()); + queryExpansionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder>( + getQueryExpansionInfo(), + getParentForChildren(), + isClean()); queryExpansionInfo_ = null; } return queryExpansionInfoBuilder_; } - @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); } @@ -10190,12 +8865,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse) private static final com.google.cloud.discoveryengine.v1.SearchResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchResponse(); } @@ -10204,27 +8879,27 @@ public static com.google.cloud.discoveryengine.v1.SearchResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10239,4 +8914,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.SearchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java similarity index 82% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java index 1a17405b5d28..e7eab7772e6f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/search_service.proto package com.google.cloud.discoveryengine.v1; -public interface SearchResponseOrBuilder - extends +public interface SearchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -44,8 +25,6 @@ public interface SearchResponseOrBuilder */ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResult getResults(int index); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -54,19 +33,15 @@ public interface SearchResponseOrBuilder */ int getResultsCount(); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
@@ -77,18 +52,15 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu int index); /** - * - * *
    * Results of facets requested by user.
    * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ - java.util.List getFacetsList(); + java.util.List + getFacetsList(); /** - * - * *
    * Results of facets requested by user.
    * 
@@ -97,8 +69,6 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu */ com.google.cloud.discoveryengine.v1.SearchResponse.Facet getFacets(int index); /** - * - * *
    * Results of facets requested by user.
    * 
@@ -107,30 +77,25 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu */ int getFacetsCount(); /** - * - * *
    * Results of facets requested by user.
    * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ - java.util.List + java.util.List getFacetsOrBuilderList(); /** - * - * *
    * Results of facets requested by user.
    * 
* * repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; */ - com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index); + com.google.cloud.discoveryengine.v1.SearchResponse.FacetOrBuilder getFacetsOrBuilder( + int index); /** - * - * *
    * The estimated total count of matched items irrespective of pagination. The
    * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results]
@@ -140,14 +105,11 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -156,13 +118,10 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string attribution_token = 4; - * * @return The attributionToken. */ java.lang.String getAttributionToken(); /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from
@@ -171,14 +130,12 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string attribution_token = 4; - * * @return The bytes for attributionToken. */ - com.google.protobuf.ByteString getAttributionTokenBytes(); + com.google.protobuf.ByteString + getAttributionTokenBytes(); /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -189,13 +146,10 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string redirect_uri = 12; - * * @return The redirectUri. */ java.lang.String getRedirectUri(); /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -206,14 +160,12 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string redirect_uri = 12; - * * @return The bytes for redirectUri. */ - com.google.protobuf.ByteString getRedirectUriBytes(); + com.google.protobuf.ByteString + getRedirectUriBytes(); /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -222,13 +174,10 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string next_page_token = 5; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token]
@@ -237,14 +186,12 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string next_page_token = 5; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -252,13 +199,10 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string corrected_query = 7; - * * @return The correctedQuery. */ java.lang.String getCorrectedQuery(); /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -266,14 +210,12 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * string corrected_query = 7; - * * @return The bytes for correctedQuery. */ - com.google.protobuf.ByteString getCorrectedQueryBytes(); + com.google.protobuf.ByteString + getCorrectedQueryBytes(); /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -282,13 +224,10 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * * @return Whether the summary field is set. */ boolean hasSummary(); /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -297,13 +236,10 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
    * 
* * .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * * @return The summary. */ com.google.cloud.discoveryengine.v1.SearchResponse.Summary getSummary(); /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -316,44 +252,29 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu
   com.google.cloud.discoveryengine.v1.SearchResponse.SummaryOrBuilder getSummaryOrBuilder();
 
   /**
-   *
-   *
    * 
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return Whether the queryExpansionInfo field is set. */ boolean hasQueryExpansionInfo(); /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return The queryExpansionInfo. */ com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo getQueryExpansionInfo(); /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder - getQueryExpansionInfoOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder(); } diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java new file mode 100644 index 000000000000..14b90ff6c6a5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java @@ -0,0 +1,404 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/search_service.proto + +package com.google.cloud.discoveryengine.v1; + +public final class SearchServiceProto { + private SearchServiceProto() {} + 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_discoveryengine_v1_SearchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/discoveryengine/v1/search" + + "_service.proto\022\037google.cloud.discoveryen" + + "gine.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032,google/cloud/discoveryengine/v1/comm" + + "on.proto\032.google/cloud/discoveryengine/v" + + "1/document.proto\032\034google/protobuf/struct" + + ".proto\"\350\024\n\rSearchRequest\022M\n\016serving_conf" + + "ig\030\001 \001(\tB5\342A\001\002\372A.\n,discoveryengine.googl" + + "eapis.com/ServingConfig\022:\n\006branch\030\002 \001(\tB" + + "*\372A\'\n%discoveryengine.googleapis.com/Bra" + + "nch\022\r\n\005query\030\003 \001(\t\022N\n\013image_query\030\023 \001(\0132" + + "9.google.cloud.discoveryengine.v1.Search" + + "Request.ImageQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n" + + "\npage_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022\016\n\006fil" + + "ter\030\007 \001(\t\022\020\n\010order_by\030\010 \001(\t\022<\n\tuser_info" + + "\030\025 \001(\0132).google.cloud.discoveryengine.v1" + + ".UserInfo\022M\n\013facet_specs\030\t \003(\01328.google." + + "cloud.discoveryengine.v1.SearchRequest.F" + + "acetSpec\022L\n\nboost_spec\030\n \001(\01328.google.cl" + + "oud.discoveryengine.v1.SearchRequest.Boo" + + "stSpec\022J\n\006params\030\013 \003(\0132:.google.cloud.di" + + "scoveryengine.v1.SearchRequest.ParamsEnt" + + "ry\022_\n\024query_expansion_spec\030\r \001(\0132A.googl" + + "e.cloud.discoveryengine.v1.SearchRequest" + + ".QueryExpansionSpec\022a\n\025spell_correction_" + + "spec\030\016 \001(\0132B.google.cloud.discoveryengin" + + "e.v1.SearchRequest.SpellCorrectionSpec\022\026" + + "\n\016user_pseudo_id\030\017 \001(\t\022]\n\023content_search" + + "_spec\030\030 \001(\0132@.google.cloud.discoveryengi" + + "ne.v1.SearchRequest.ContentSearchSpec\022\023\n" + + "\013safe_search\030\024 \001(\010\022S\n\013user_labels\030\026 \003(\0132" + + ">.google.cloud.discoveryengine.v1.Search" + + "Request.UserLabelsEntry\032,\n\nImageQuery\022\025\n" + + "\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032\376\002\n\tFacetS" + + "pec\022Z\n\tfacet_key\030\001 \001(\0132A.google.cloud.di" + + "scoveryengine.v1.SearchRequest.FacetSpec" + + ".FacetKeyB\004\342A\001\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024exclud" + + "ed_filter_keys\030\003 \003(\t\022\037\n\027enable_dynamic_p" + + "osition\030\004 \001(\010\032\306\001\n\010FacetKey\022\021\n\003key\030\001 \001(\tB" + + "\004\342A\001\002\022<\n\tintervals\030\002 \003(\0132).google.cloud." + + "discoveryengine.v1.Interval\022\031\n\021restricte" + + "d_values\030\003 \003(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010cont" + + "ains\030\005 \003(\t\022\030\n\020case_insensitive\030\006 \001(\010\022\020\n\010" + + "order_by\030\007 \001(\t\032\257\001\n\tBoostSpec\022j\n\025conditio" + + "n_boost_specs\030\001 \003(\0132K.google.cloud.disco" + + "veryengine.v1.SearchRequest.BoostSpec.Co" + + "nditionBoostSpec\0326\n\022ConditionBoostSpec\022\021" + + "\n\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\032\324\001\n\022Que" + + "ryExpansionSpec\022^\n\tcondition\030\001 \001(\0162K.goo" + + "gle.cloud.discoveryengine.v1.SearchReque" + + "st.QueryExpansionSpec.Condition\022\036\n\026pin_u" + + "nexpanded_results\030\002 \001(\010\">\n\tCondition\022\031\n\025" + + "CONDITION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n" + + "\004AUTO\020\002\032\251\001\n\023SpellCorrectionSpec\022U\n\004mode\030" + + "\001 \001(\0162G.google.cloud.discoveryengine.v1." + + "SearchRequest.SpellCorrectionSpec.Mode\";" + + "\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTI" + + "ON_ONLY\020\001\022\010\n\004AUTO\020\002\032\351\003\n\021ContentSearchSpe" + + "c\022b\n\014snippet_spec\030\001 \001(\0132L.google.cloud.d" + + "iscoveryengine.v1.SearchRequest.ContentS" + + "earchSpec.SnippetSpec\022b\n\014summary_spec\030\002 " + + "\001(\0132L.google.cloud.discoveryengine.v1.Se" + + "archRequest.ContentSearchSpec.SummarySpe" + + "c\032`\n\013SnippetSpec\022\035\n\021max_snippet_count\030\001 " + + "\001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001\022\026\n\016r" + + "eturn_snippet\030\003 \001(\010\032\251\001\n\013SummarySpec\022\034\n\024s" + + "ummary_result_count\030\001 \001(\005\022\031\n\021include_cit" + + "ations\030\002 \001(\010\022 \n\030ignore_adversarial_query" + + "\030\003 \001(\010\022(\n ignore_non_summary_seeking_que" + + "ry\030\004 \001(\010\022\025\n\rlanguage_code\030\006 \001(\t\032E\n\013Param" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\0321\n\017UserLabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\372\n\n\016Se" + + "archResponse\022M\n\007results\030\001 \003(\0132<.google.c" + + "loud.discoveryengine.v1.SearchResponse.S" + + "earchResult\022E\n\006facets\030\002 \003(\01325.google.clo" + + "ud.discoveryengine.v1.SearchResponse.Fac" + + "et\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021attribution_to" + + "ken\030\004 \001(\t\022\024\n\014redirect_uri\030\014 \001(\t\022\027\n\017next_" + + "page_token\030\005 \001(\t\022\027\n\017corrected_query\030\007 \001(" + + "\t\022H\n\007summary\030\t \001(\01327.google.cloud.discov" + + "eryengine.v1.SearchResponse.Summary\022`\n\024q" + + "uery_expansion_info\030\016 \001(\0132B.google.cloud" + + ".discoveryengine.v1.SearchResponse.Query" + + "ExpansionInfo\032W\n\014SearchResult\022\n\n\002id\030\001 \001(" + + "\t\022;\n\010document\030\002 \001(\0132).google.cloud.disco" + + "veryengine.v1.Document\032\371\001\n\005Facet\022\013\n\003key\030" + + "\001 \001(\t\022P\n\006values\030\002 \003(\0132@.google.cloud.dis" + + "coveryengine.v1.SearchResponse.Facet.Fac" + + "etValue\022\025\n\rdynamic_facet\030\003 \001(\010\032z\n\nFacetV" + + "alue\022\017\n\005value\030\001 \001(\tH\000\022=\n\010interval\030\002 \001(\0132" + + ").google.cloud.discoveryengine.v1.Interv" + + "alH\000\022\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032\216\004\n\007S" + + "ummary\022\024\n\014summary_text\030\001 \001(\t\022m\n\027summary_" + + "skipped_reasons\030\002 \003(\0162L.google.cloud.dis" + + "coveryengine.v1.SearchResponse.Summary.S" + + "ummarySkippedReason\022c\n\021safety_attributes" + + "\030\003 \001(\0132H.google.cloud.discoveryengine.v1" + + ".SearchResponse.Summary.SafetyAttributes" + + "\0326\n\020SafetyAttributes\022\022\n\ncategories\030\001 \003(\t" + + "\022\016\n\006scores\030\002 \003(\002\"\340\001\n\024SummarySkippedReaso" + + "n\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020" + + "\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!NON_" + + "SUMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OUT_O" + + "F_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_PO" + + "LICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_ENABLE" + + "D\020\005\032I\n\022QueryExpansionInfo\022\026\n\016expanded_qu" + + "ery\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001(\0032\223" + + "\003\n\rSearchService\022\255\002\n\006Search\022..google.clo" + + "ud.discoveryengine.v1.SearchRequest\032/.go" + + "ogle.cloud.discoveryengine.v1.SearchResp" + + "onse\"\301\001\202\323\344\223\002\272\001\"P/v1/{serving_config=proj" + + "ects/*/locations/*/dataStores/*/servingC" + + "onfigs/*}:search:\001*Zc\"^/v1/{serving_conf" + + "ig=projects/*/locations/*/collections/*/" + + "dataStores/*/servingConfigs/*}:search:\001*" + + "\032R\312A\036discoveryengine.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\205\002\n#com.google.cloud.discoveryengin" + + "e.v1B\022SearchServiceProtoP\001ZMcloud.google" + + ".com/go/discoveryengine/apiv1/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037" + + "Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Google" + + "::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor, + new java.lang.String[] { "ServingConfig", "Branch", "Query", "ImageQuery", "PageSize", "PageToken", "Offset", "Filter", "OrderBy", "UserInfo", "FacetSpecs", "BoostSpec", "Params", "QueryExpansionSpec", "SpellCorrectionSpec", "UserPseudoId", "ContentSearchSpec", "SafeSearch", "UserLabels", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor, + new java.lang.String[] { "ImageBytes", "Image", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor, + new java.lang.String[] { "FacetKey", "Limit", "ExcludedFilterKeys", "EnableDynamicPosition", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_FacetSpec_FacetKey_descriptor, + new java.lang.String[] { "Key", "Intervals", "RestrictedValues", "Prefixes", "Contains", "CaseInsensitive", "OrderBy", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor, + new java.lang.String[] { "ConditionBoostSpecs", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor, + new java.lang.String[] { "Condition", "Boost", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_QueryExpansionSpec_descriptor, + new java.lang.String[] { "Condition", "PinUnexpandedResults", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_SpellCorrectionSpec_descriptor, + new java.lang.String[] { "Mode", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor, + new java.lang.String[] { "SnippetSpec", "SummarySpec", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor, + new java.lang.String[] { "MaxSnippetCount", "ReferenceOnly", "ReturnSnippet", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_SummarySpec_descriptor, + new java.lang.String[] { "SummaryResultCount", "IncludeCitations", "IgnoreAdversarialQuery", "IgnoreNonSummarySeekingQuery", "LanguageCode", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor, + new java.lang.String[] { "Results", "Facets", "TotalSize", "AttributionToken", "RedirectUri", "NextPageToken", "CorrectedQuery", "Summary", "QueryExpansionInfo", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor, + new java.lang.String[] { "Id", "Document", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor, + new java.lang.String[] { "Key", "Values", "DynamicFacet", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_FacetValue_descriptor, + new java.lang.String[] { "Value", "Interval", "Count", "FacetValue", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor, + new java.lang.String[] { "SummaryText", "SummarySkippedReasons", "SafetyAttributes", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_Summary_SafetyAttributes_descriptor, + new java.lang.String[] { "Categories", "Scores", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor, + new java.lang.String[] { "ExpandedQuery", "PinnedResultCount", }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java index ee0537460a11..b4f8f4592ef0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInput.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Defines text input.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.TextInput} */ -public final class TextInput extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextInput extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.TextInput) TextInputOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextInput.newBuilder() to construct. private TextInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextInput() { input_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextInput(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.TextInput.class, - com.google.cloud.discoveryengine.v1.TextInput.Builder.class); + com.google.cloud.discoveryengine.v1.TextInput.class, com.google.cloud.discoveryengine.v1.TextInput.Builder.class); } public static final int INPUT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object input_ = ""; /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The input. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getInput() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); input_ = s; return s; } } /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The bytes for input. */ @java.lang.Override - public com.google.protobuf.ByteString getInputBytes() { + public com.google.protobuf.ByteString + getInputBytes() { java.lang.Object ref = input_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); input_ = b; return b; } else { @@ -116,14 +93,11 @@ public com.google.protobuf.ByteString getInputBytes() { public static final int CONTEXT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.ConversationContext context_; /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * * @return Whether the context field is set. */ @java.lang.Override @@ -131,25 +105,18 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * * @return The context. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationContext getContext() { - return context_ == null - ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() : context_; } /** - * - * *
    * Conversation context of the input.
    * 
@@ -158,13 +125,10 @@ public com.google.cloud.discoveryengine.v1.ConversationContext getContext() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder getContextOrBuilder() { - return context_ == null - ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() : context_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(input_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, input_); } @@ -196,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, input_); } if (context_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getContext()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,18 +172,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.discoveryengine.v1.TextInput)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.TextInput other = - (com.google.cloud.discoveryengine.v1.TextInput) obj; + com.google.cloud.discoveryengine.v1.TextInput other = (com.google.cloud.discoveryengine.v1.TextInput) obj; - if (!getInput().equals(other.getInput())) return false; + if (!getInput() + .equals(other.getInput())) return false; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext().equals(other.getContext())) return false; + if (!getContext() + .equals(other.getContext())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -241,136 +208,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.TextInput parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.TextInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.TextInput 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.discoveryengine.v1.TextInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.TextInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.TextInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.TextInput 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.discoveryengine.v1.TextInput parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.TextInput 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.discoveryengine.v1.TextInput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.TextInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.TextInput 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.discoveryengine.v1.TextInput 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.discoveryengine.v1.TextInput 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.discoveryengine.v1.TextInput 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; } /** - * - * *
    * Defines text input.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.TextInput} */ - 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.discoveryengine.v1.TextInput) com.google.cloud.discoveryengine.v1.TextInputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_TextInput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.TextInput.class, - com.google.cloud.discoveryengine.v1.TextInput.Builder.class); + com.google.cloud.discoveryengine.v1.TextInput.class, com.google.cloud.discoveryengine.v1.TextInput.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.TextInput.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationProto - .internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationProto.internal_static_google_cloud_discoveryengine_v1_TextInput_descriptor; } @java.lang.Override @@ -406,11 +369,8 @@ public com.google.cloud.discoveryengine.v1.TextInput build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.TextInput buildPartial() { - com.google.cloud.discoveryengine.v1.TextInput result = - new com.google.cloud.discoveryengine.v1.TextInput(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.TextInput result = new com.google.cloud.discoveryengine.v1.TextInput(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -421,7 +381,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.TextInput result) result.input_ = input_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); } } @@ -429,39 +391,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.TextInput result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.TextInput) { - return mergeFrom((com.google.cloud.discoveryengine.v1.TextInput) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.TextInput)other); } else { super.mergeFrom(other); return this; @@ -504,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,25 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object input_ = ""; /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @return The input. */ public java.lang.String getInput() { java.lang.Object ref = input_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); input_ = s; return s; @@ -559,21 +516,20 @@ public java.lang.String getInput() { } } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @return The bytes for input. */ - public com.google.protobuf.ByteString getInputBytes() { + public com.google.protobuf.ByteString + getInputBytes() { java.lang.Object ref = input_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); input_ = b; return b; } else { @@ -581,35 +537,28 @@ public com.google.protobuf.ByteString getInputBytes() { } } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @param value The input to set. * @return This builder for chaining. */ - public Builder setInput(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInput( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } input_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @return This builder for chaining. */ public Builder clearInput() { @@ -619,21 +568,17 @@ public Builder clearInput() { return this; } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @param value The bytes for input to set. * @return This builder for chaining. */ - public Builder setInputBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); input_ = value; bitField0_ |= 0x00000001; @@ -643,47 +588,34 @@ public Builder setInputBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.ConversationContext context_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ConversationContext, - com.google.cloud.discoveryengine.v1.ConversationContext.Builder, - com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder> - contextBuilder_; + com.google.cloud.discoveryengine.v1.ConversationContext, com.google.cloud.discoveryengine.v1.ConversationContext.Builder, com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder> contextBuilder_; /** - * - * *
      * Conversation context of the input.
      * 
* * .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * * @return Whether the context field is set. */ public boolean hasContext() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Conversation context of the input.
      * 
* * .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * * @return The context. */ public com.google.cloud.discoveryengine.v1.ConversationContext getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * Conversation context of the input.
      * 
@@ -704,8 +636,6 @@ public Builder setContext(com.google.cloud.discoveryengine.v1.ConversationContex return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -724,8 +654,6 @@ public Builder setContext( return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -734,10 +662,9 @@ public Builder setContext( */ public Builder mergeContext(com.google.cloud.discoveryengine.v1.ConversationContext value) { if (contextBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && context_ != null - && context_ - != com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + context_ != null && + context_ != com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance()) { getContextBuilder().mergeFrom(value); } else { context_ = value; @@ -750,8 +677,6 @@ public Builder mergeContext(com.google.cloud.discoveryengine.v1.ConversationCont return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -769,8 +694,6 @@ public Builder clearContext() { return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -783,8 +706,6 @@ public com.google.cloud.discoveryengine.v1.ConversationContext.Builder getContex return getContextFieldBuilder().getBuilder(); } /** - * - * *
      * Conversation context of the input.
      * 
@@ -795,14 +716,11 @@ public com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder getConte if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { - return context_ == null - ? com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? + com.google.cloud.discoveryengine.v1.ConversationContext.getDefaultInstance() : context_; } } /** - * - * *
      * Conversation context of the input.
      * 
@@ -810,24 +728,21 @@ public com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder getConte * .google.cloud.discoveryengine.v1.ConversationContext context = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ConversationContext, - com.google.cloud.discoveryengine.v1.ConversationContext.Builder, - com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder> + com.google.cloud.discoveryengine.v1.ConversationContext, com.google.cloud.discoveryengine.v1.ConversationContext.Builder, com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { - contextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.ConversationContext, - com.google.cloud.discoveryengine.v1.ConversationContext.Builder, - com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder>( - getContext(), getParentForChildren(), isClean()); + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.ConversationContext, com.google.cloud.discoveryengine.v1.ConversationContext.Builder, com.google.cloud.discoveryengine.v1.ConversationContextOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); context_ = null; } return contextBuilder_; } - @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); } @@ -837,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.TextInput) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.TextInput) private static final com.google.cloud.discoveryengine.v1.TextInput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.TextInput(); } @@ -851,27 +766,27 @@ public static com.google.cloud.discoveryengine.v1.TextInput getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -886,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.TextInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java similarity index 63% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java index 75f2c01e2848..a45579031db2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TextInputOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversation.proto package com.google.cloud.discoveryengine.v1; -public interface TextInputOrBuilder - extends +public interface TextInputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.TextInput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The input. */ java.lang.String getInput(); /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The bytes for input. */ - com.google.protobuf.ByteString getInputBytes(); + com.google.protobuf.ByteString + getInputBytes(); /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * * @return The context. */ com.google.cloud.discoveryengine.v1.ConversationContext getContext(); /** - * - * *
    * Conversation context of the input.
    * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java similarity index 78% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java index 5e0f9a3180a4..cc8391986d6b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * A transaction represents the entire purchase transaction.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.TransactionInfo} */ -public final class TransactionInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.TransactionInfo) TransactionInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionInfo.newBuilder() to construct. private TransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransactionInfo() { currency_ = ""; transactionId_ = ""; @@ -44,31 +26,28 @@ private TransactionInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.TransactionInfo.class, - com.google.cloud.discoveryengine.v1.TransactionInfo.Builder.class); + com.google.cloud.discoveryengine.v1.TransactionInfo.class, com.google.cloud.discoveryengine.v1.TransactionInfo.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private float value_ = 0F; /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -76,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the value field is set. */ @java.lang.Override @@ -84,8 +62,6 @@ public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -93,7 +69,6 @@ public boolean hasValue() {
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -102,18 +77,14 @@ public float getValue() { } public static final int CURRENCY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object currency_ = ""; /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currency. */ @java.lang.Override @@ -122,29 +93,29 @@ public java.lang.String getCurrency() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } } /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currency. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyBytes() { + public com.google.protobuf.ByteString + getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currency_ = b; return b; } else { @@ -153,18 +124,14 @@ public com.google.protobuf.ByteString getCurrencyBytes() { } public static final int TRANSACTION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The transactionId. */ @java.lang.Override @@ -173,29 +140,29 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -206,14 +173,11 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { public static final int TAX_FIELD_NUMBER = 4; private float tax_ = 0F; /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return Whether the tax field is set. */ @java.lang.Override @@ -221,14 +185,11 @@ public boolean hasTax() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return The tax. */ @java.lang.Override @@ -239,8 +200,6 @@ public float getTax() { public static final int COST_FIELD_NUMBER = 5; private float cost_ = 0F; /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -252,7 +211,6 @@ public float getTax() {
    * 
* * optional float cost = 5; - * * @return Whether the cost field is set. */ @java.lang.Override @@ -260,8 +218,6 @@ public boolean hasCost() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -273,7 +229,6 @@ public boolean hasCost() {
    * 
* * optional float cost = 5; - * * @return The cost. */ @java.lang.Override @@ -284,8 +239,6 @@ public float getCost() { public static final int DISCOUNT_VALUE_FIELD_NUMBER = 6; private float discountValue_ = 0F; /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -310,7 +263,6 @@ public float getCost() {
    * 
* * optional float discount_value = 6; - * * @return Whether the discountValue field is set. */ @java.lang.Override @@ -318,8 +270,6 @@ public boolean hasDiscountValue() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -344,7 +294,6 @@ public boolean hasDiscountValue() {
    * 
* * optional float discount_value = 6; - * * @return The discountValue. */ @java.lang.Override @@ -353,7 +302,6 @@ public float getDiscountValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,7 +313,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 (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, value_); } @@ -394,7 +343,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, value_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currency_); @@ -403,13 +353,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, tax_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, tax_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, cost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, cost_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, discountValue_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, discountValue_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -419,35 +372,40 @@ 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.discoveryengine.v1.TransactionInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.TransactionInfo other = - (com.google.cloud.discoveryengine.v1.TransactionInfo) obj; + com.google.cloud.discoveryengine.v1.TransactionInfo other = (com.google.cloud.discoveryengine.v1.TransactionInfo) obj; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (java.lang.Float.floatToIntBits(getValue()) - != java.lang.Float.floatToIntBits(other.getValue())) return false; + != java.lang.Float.floatToIntBits( + other.getValue())) return false; } - if (!getCurrency().equals(other.getCurrency())) return false; - if (!getTransactionId().equals(other.getTransactionId())) return false; + if (!getCurrency() + .equals(other.getCurrency())) return false; + if (!getTransactionId() + .equals(other.getTransactionId())) return false; if (hasTax() != other.hasTax()) return false; if (hasTax()) { if (java.lang.Float.floatToIntBits(getTax()) - != java.lang.Float.floatToIntBits(other.getTax())) return false; + != java.lang.Float.floatToIntBits( + other.getTax())) return false; } if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (java.lang.Float.floatToIntBits(getCost()) - != java.lang.Float.floatToIntBits(other.getCost())) return false; + != java.lang.Float.floatToIntBits( + other.getCost())) return false; } if (hasDiscountValue() != other.hasDiscountValue()) return false; if (hasDiscountValue()) { if (java.lang.Float.floatToIntBits(getDiscountValue()) - != java.lang.Float.floatToIntBits(other.getDiscountValue())) return false; + != java.lang.Float.floatToIntBits( + other.getDiscountValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -462,7 +420,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getValue()); } hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); @@ -470,15 +429,18 @@ public int hashCode() { hash = (53 * hash) + getTransactionId().hashCode(); if (hasTax()) { hash = (37 * hash) + TAX_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTax()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTax()); } if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getCost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getCost()); } if (hasDiscountValue()) { hash = (37 * hash) + DISCOUNT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDiscountValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDiscountValue()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -486,135 +448,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.TransactionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.TransactionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.TransactionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.TransactionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo 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.discoveryengine.v1.TransactionInfo} */ - 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.discoveryengine.v1.TransactionInfo) com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.TransactionInfo.class, - com.google.cloud.discoveryengine.v1.TransactionInfo.Builder.class); + com.google.cloud.discoveryengine.v1.TransactionInfo.class, com.google.cloud.discoveryengine.v1.TransactionInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.TransactionInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -629,9 +587,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; } @java.lang.Override @@ -650,11 +608,8 @@ public com.google.cloud.discoveryengine.v1.TransactionInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.TransactionInfo buildPartial() { - com.google.cloud.discoveryengine.v1.TransactionInfo result = - new com.google.cloud.discoveryengine.v1.TransactionInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.TransactionInfo result = new com.google.cloud.discoveryengine.v1.TransactionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -691,39 +646,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.TransactionInfo r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.TransactionInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.TransactionInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.TransactionInfo)other); } else { super.mergeFrom(other); return this; @@ -731,8 +685,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.TransactionInfo other) { - if (other == com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } @@ -781,49 +734,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - value_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: - { - currency_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - tax_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 45: - { - cost_ = input.readFloat(); - bitField0_ |= 0x00000010; - break; - } // case 45 - case 53: - { - discountValue_ = input.readFloat(); - bitField0_ |= 0x00000020; - break; - } // case 53 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + value_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + currency_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + tax_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 45: { + cost_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 45 + case 53: { + discountValue_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 53 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -833,13 +779,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float value_; + private float value_ ; /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -847,7 +790,6 @@ public Builder mergeFrom(
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the value field is set. */ @java.lang.Override @@ -855,8 +797,6 @@ public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -864,7 +804,6 @@ public boolean hasValue() {
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -872,8 +811,6 @@ public float getValue() { return value_; } /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -881,7 +818,6 @@ public float getValue() {
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ @@ -893,8 +829,6 @@ public Builder setValue(float value) { return this; } /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -902,7 +836,6 @@ public Builder setValue(float value) {
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -914,20 +847,18 @@ public Builder clearValue() { private java.lang.Object currency_ = ""; /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; @@ -936,21 +867,20 @@ public java.lang.String getCurrency() { } } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currency. */ - public com.google.protobuf.ByteString getCurrencyBytes() { + public com.google.protobuf.ByteString + getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currency_ = b; return b; } else { @@ -958,35 +888,28 @@ public com.google.protobuf.ByteString getCurrencyBytes() { } } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The currency to set. * @return This builder for chaining. */ - public Builder setCurrency(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrency( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } currency_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCurrency() { @@ -996,21 +919,17 @@ public Builder clearCurrency() { return this; } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for currency to set. * @return This builder for chaining. */ - public Builder setCurrencyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; bitField0_ |= 0x00000002; @@ -1020,20 +939,18 @@ public Builder setCurrencyBytes(com.google.protobuf.ByteString value) { private java.lang.Object transactionId_ = ""; /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -1042,21 +959,20 @@ public java.lang.String getTransactionId() { } } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -1064,35 +980,28 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -1102,21 +1011,17 @@ public Builder clearTransactionId() { return this; } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @param value The bytes for transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000004; @@ -1124,16 +1029,13 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { return this; } - private float tax_; + private float tax_ ; /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @return Whether the tax field is set. */ @java.lang.Override @@ -1141,14 +1043,11 @@ public boolean hasTax() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @return The tax. */ @java.lang.Override @@ -1156,14 +1055,11 @@ public float getTax() { return tax_; } /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @param value The tax to set. * @return This builder for chaining. */ @@ -1175,14 +1071,11 @@ public Builder setTax(float value) { return this; } /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @return This builder for chaining. */ public Builder clearTax() { @@ -1192,10 +1085,8 @@ public Builder clearTax() { return this; } - private float cost_; + private float cost_ ; /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1207,7 +1098,6 @@ public Builder clearTax() {
      * 
* * optional float cost = 5; - * * @return Whether the cost field is set. */ @java.lang.Override @@ -1215,8 +1105,6 @@ public boolean hasCost() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1228,7 +1116,6 @@ public boolean hasCost() {
      * 
* * optional float cost = 5; - * * @return The cost. */ @java.lang.Override @@ -1236,8 +1123,6 @@ public float getCost() { return cost_; } /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1249,7 +1134,6 @@ public float getCost() {
      * 
* * optional float cost = 5; - * * @param value The cost to set. * @return This builder for chaining. */ @@ -1261,8 +1145,6 @@ public Builder setCost(float value) { return this; } /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1274,7 +1156,6 @@ public Builder setCost(float value) {
      * 
* * optional float cost = 5; - * * @return This builder for chaining. */ public Builder clearCost() { @@ -1284,10 +1165,8 @@ public Builder clearCost() { return this; } - private float discountValue_; + private float discountValue_ ; /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1312,7 +1191,6 @@ public Builder clearCost() {
      * 
* * optional float discount_value = 6; - * * @return Whether the discountValue field is set. */ @java.lang.Override @@ -1320,8 +1198,6 @@ public boolean hasDiscountValue() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1346,7 +1222,6 @@ public boolean hasDiscountValue() {
      * 
* * optional float discount_value = 6; - * * @return The discountValue. */ @java.lang.Override @@ -1354,8 +1229,6 @@ public float getDiscountValue() { return discountValue_; } /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1380,7 +1253,6 @@ public float getDiscountValue() {
      * 
* * optional float discount_value = 6; - * * @param value The discountValue to set. * @return This builder for chaining. */ @@ -1392,8 +1264,6 @@ public Builder setDiscountValue(float value) { return this; } /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1418,7 +1288,6 @@ public Builder setDiscountValue(float value) {
      * 
* * optional float discount_value = 6; - * * @return This builder for chaining. */ public Builder clearDiscountValue() { @@ -1427,9 +1296,9 @@ public Builder clearDiscountValue() { 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); } @@ -1439,12 +1308,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.TransactionInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.TransactionInfo) private static final com.google.cloud.discoveryengine.v1.TransactionInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.TransactionInfo(); } @@ -1453,27 +1322,27 @@ public static com.google.cloud.discoveryengine.v1.TransactionInfo getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1488,4 +1357,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.TransactionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java similarity index 86% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java index c1c83202df60..61488b87abb6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TransactionInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface TransactionInfoOrBuilder - extends +public interface TransactionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.TransactionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -33,13 +15,10 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -47,89 +26,70 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ float getValue(); /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currency. */ java.lang.String getCurrency(); /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currency. */ - com.google.protobuf.ByteString getCurrencyBytes(); + com.google.protobuf.ByteString + getCurrencyBytes(); /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The transactionId. */ java.lang.String getTransactionId(); /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString getTransactionIdBytes(); + com.google.protobuf.ByteString + getTransactionIdBytes(); /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return Whether the tax field is set. */ boolean hasTax(); /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return The tax. */ float getTax(); /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -141,13 +101,10 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float cost = 5; - * * @return Whether the cost field is set. */ boolean hasCost(); /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -159,14 +116,11 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float cost = 5; - * * @return The cost. */ float getCost(); /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -191,13 +145,10 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float discount_value = 6; - * * @return Whether the discountValue field is set. */ boolean hasDiscountValue(); /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -222,7 +173,6 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float discount_value = 6; - * * @return The discountValue. */ float getDiscountValue(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java similarity index 65% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java index 6d050aaa900d..f29ac4a0aaf4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequest.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/conversational_search_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request for UpdateConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateConversationRequest} */ -public final class UpdateConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateConversationRequest) UpdateConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateConversationRequest.newBuilder() to construct. private UpdateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateConversationRequest() {} + private UpdateConversationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest.class, - com.google.cloud.discoveryengine.v1.UpdateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.UpdateConversationRequest.class, com.google.cloud.discoveryengine.v1.UpdateConversationRequest.Builder.class); } public static final int CONVERSATION_FIELD_NUMBER = 1; private com.google.cloud.discoveryengine.v1.Conversation conversation_; /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ @java.lang.Override @@ -80,47 +57,32 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -132,7 +94,6 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -140,8 +101,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -153,7 +112,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -161,8 +119,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -181,7 +137,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -193,7 +148,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 (conversation_ != null) {
       output.writeMessage(1, getConversation());
     }
@@ -210,10 +166,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (conversation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getConversation());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -223,21 +181,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.discoveryengine.v1.UpdateConversationRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1.UpdateConversationRequest other =
-        (com.google.cloud.discoveryengine.v1.UpdateConversationRequest) obj;
+    com.google.cloud.discoveryengine.v1.UpdateConversationRequest other = (com.google.cloud.discoveryengine.v1.UpdateConversationRequest) obj;
 
     if (hasConversation() != other.hasConversation()) return false;
     if (hasConversation()) {
-      if (!getConversation().equals(other.getConversation())) return false;
+      if (!getConversation()
+          .equals(other.getConversation())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -264,136 +223,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest 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.discoveryengine.v1.UpdateConversationRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1.UpdateConversationRequest 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 for UpdateConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateConversationRequest} */ - 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.discoveryengine.v1.UpdateConversationRequest) com.google.cloud.discoveryengine.v1.UpdateConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest.class, - com.google.cloud.discoveryengine.v1.UpdateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1.UpdateConversationRequest.class, com.google.cloud.discoveryengine.v1.UpdateConversationRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.UpdateConversationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,14 +366,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.UpdateConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.UpdateConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.UpdateConversationRequest.getDefaultInstance(); } @@ -434,24 +387,23 @@ public com.google.cloud.discoveryengine.v1.UpdateConversationRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.UpdateConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1.UpdateConversationRequest result = - new com.google.cloud.discoveryengine.v1.UpdateConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.UpdateConversationRequest result = new com.google.cloud.discoveryengine.v1.UpdateConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.UpdateConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.conversation_ = - conversationBuilder_ == null ? conversation_ : conversationBuilder_.build(); + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -459,39 +411,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.UpdateConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -499,9 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1.UpdateConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.UpdateConversationRequest.getDefaultInstance()) return this; if (other.hasConversation()) { mergeConversation(other.getConversation()); } @@ -534,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,63 +512,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.discoveryengine.v1.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ public com.google.cloud.discoveryengine.v1.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation(com.google.cloud.discoveryengine.v1.Conversation value) { if (conversationBuilder_ == null) { @@ -634,15 +564,11 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1.Conversation return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation( com.google.cloud.discoveryengine.v1.Conversation.Builder builderForValue) { @@ -656,22 +582,17 @@ public Builder setConversation( return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversation value) { if (conversationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && conversation_ != null - && conversation_ - != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance()) { getConversationBuilder().mergeFrom(value); } else { conversation_ = value; @@ -684,15 +605,11 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1.Conversatio return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConversation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -705,15 +622,11 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversationBuilder() { bitField0_ |= 0x00000001; @@ -721,48 +634,36 @@ public com.google.cloud.discoveryengine.v1.Conversation.Builder getConversationB return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.discoveryengine.v1.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Conversation, - com.google.cloud.discoveryengine.v1.Conversation.Builder, - com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Conversation, com.google.cloud.discoveryengine.v1.Conversation.Builder, com.google.cloud.discoveryengine.v1.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; @@ -770,13 +671,8 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation 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_; /** - * - * *
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -788,15 +684,12 @@ public com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversation
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -808,21 +701,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -849,8 +737,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -863,7 +749,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -874,8 +761,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -890,9 +775,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -905,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -930,8 +813,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -950,8 +831,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -968,14 +847,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_;
       }
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -989,24 +865,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1016,13 +889,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateConversationRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateConversationRequest)
-  private static final com.google.cloud.discoveryengine.v1.UpdateConversationRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.discoveryengine.v1.UpdateConversationRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateConversationRequest();
   }
@@ -1031,27 +903,27 @@ public static com.google.cloud.discoveryengine.v1.UpdateConversationRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateConversationRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateConversationRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1066,4 +938,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.discoveryengine.v1.UpdateConversationRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java
similarity index 65%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java
index bdd9e978a93d..8d8ccba58392 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateConversationRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/conversational_search_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
-public interface UpdateConversationRequestOrBuilder
-    extends
+public interface UpdateConversationRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateConversationRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ com.google.cloud.discoveryengine.v1.Conversation getConversation(); /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.ConversationOrBuilder getConversationOrBuilder(); /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -78,13 +46,10 @@ public interface UpdateConversationRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
@@ -96,13 +61,10 @@ public interface UpdateConversationRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java
similarity index 69%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java
index b12a7e8d9abb..e4d835b0986f 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/document_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
 /**
- *
- *
  * 
  * Request message for
  * [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1.DocumentService.UpdateDocument]
@@ -29,44 +12,41 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateDocumentRequest}
  */
-public final class UpdateDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateDocumentRequest)
     UpdateDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateDocumentRequest.newBuilder() to construct.
   private UpdateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateDocumentRequest() {}
+  private UpdateDocumentRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.class, com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.Builder.class);
   }
 
   public static final int DOCUMENT_FIELD_NUMBER = 1;
   private com.google.cloud.discoveryengine.v1.Document document_;
   /**
-   *
-   *
    * 
    * Required. The document to update/create.
    *
@@ -80,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -91,8 +68,6 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The document to update/create.
    *
@@ -106,21 +81,14 @@ public boolean hasDocument() {
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The document to update/create.
    *
@@ -134,22 +102,16 @@ public com.google.cloud.discoveryengine.v1.Document getDocument() {
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 2; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the
    * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new
@@ -157,7 +119,6 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
    * 
* * bool allow_missing = 2; - * * @return The allowMissing. */ @java.lang.Override @@ -166,7 +127,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +138,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 (document_ != null) { output.writeMessage(1, getDocument()); } @@ -195,10 +156,12 @@ public int getSerializedSize() { size = 0; if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocument()); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,19 +171,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.discoveryengine.v1.UpdateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.UpdateDocumentRequest other = - (com.google.cloud.discoveryengine.v1.UpdateDocumentRequest) obj; + com.google.cloud.discoveryengine.v1.UpdateDocumentRequest other = (com.google.cloud.discoveryengine.v1.UpdateDocumentRequest) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,111 +201,106 @@ public int hashCode() { hash = (53 * hash) + getDocument().hashCode(); } hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest 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.discoveryengine.v1.UpdateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest 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
    * [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1.DocumentService.UpdateDocument]
@@ -350,32 +309,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateDocumentRequest}
    */
-  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.discoveryengine.v1.UpdateDocumentRequest)
       com.google.cloud.discoveryengine.v1.UpdateDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.class, com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +350,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
@@ -411,11 +371,8 @@ public com.google.cloud.discoveryengine.v1.UpdateDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.UpdateDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.UpdateDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1.UpdateDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.UpdateDocumentRequest result = new com.google.cloud.discoveryengine.v1.UpdateDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -423,7 +380,9 @@ public com.google.cloud.discoveryengine.v1.UpdateDocumentRequest buildPartial()
     private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build();
+        result.document_ = documentBuilder_ == null
+            ? document_
+            : documentBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.allowMissing_ = allowMissing_;
@@ -434,39 +393,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateDocumentReq
     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.discoveryengine.v1.UpdateDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -474,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateDocumentRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.UpdateDocumentRequest.getDefaultInstance()) return this;
       if (other.hasDocument()) {
         mergeDocument(other.getDocument());
       }
@@ -508,25 +465,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getDocumentFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -536,18 +492,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.discoveryengine.v1.Document document_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Document,
-            com.google.cloud.discoveryengine.v1.Document.Builder,
-            com.google.cloud.discoveryengine.v1.DocumentOrBuilder>
-        documentBuilder_;
+        com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> documentBuilder_;
     /**
-     *
-     *
      * 
      * Required. The document to update/create.
      *
@@ -561,18 +511,13 @@ public Builder mergeFrom(
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The document to update/create.
      *
@@ -586,24 +531,17 @@ public boolean hasDocument() {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.discoveryengine.v1.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The document to update/create.
      *
@@ -617,9 +555,7 @@ public com.google.cloud.discoveryengine.v1.Document getDocument() {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) { if (documentBuilder_ == null) { @@ -635,8 +571,6 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) { return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -650,9 +584,7 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument( com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { @@ -666,8 +598,6 @@ public Builder setDocument( return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -681,15 +611,13 @@ public Builder setDocument(
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && document_ != null - && document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -702,8 +630,6 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -717,9 +643,7 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value)
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000001); @@ -732,8 +656,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -747,9 +669,7 @@ public Builder clearDocument() {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000001; @@ -757,8 +677,6 @@ public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder() return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document to update/create.
      *
@@ -772,22 +690,17 @@ public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder()
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The document to update/create.
      *
@@ -801,31 +714,24 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Document, - com.google.cloud.discoveryengine.v1.Document.Builder, - com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Document, com.google.cloud.discoveryengine.v1.Document.Builder, com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the
      * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new
@@ -833,7 +739,6 @@ public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilde
      * 
* * bool allow_missing = 2; - * * @return The allowMissing. */ @java.lang.Override @@ -841,8 +746,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the
      * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new
@@ -850,7 +753,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 2; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -862,8 +764,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * If set to true, and the
      * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new
@@ -871,7 +771,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 2; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -880,9 +779,9 @@ public Builder clearAllowMissing() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +791,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateDocumentRequest) private static final com.google.cloud.discoveryengine.v1.UpdateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateDocumentRequest(); } @@ -906,27 +805,27 @@ public static com.google.cloud.discoveryengine.v1.UpdateDocumentRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.UpdateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java index 43b9dc8cde70..299b053dae1c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/document_service.proto package com.google.cloud.discoveryengine.v1; -public interface UpdateDocumentRequestOrBuilder - extends +public interface UpdateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The document to update/create.
    *
@@ -39,16 +21,11 @@ public interface UpdateDocumentRequestOrBuilder
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Required. The document to update/create.
    *
@@ -62,16 +39,11 @@ public interface UpdateDocumentRequestOrBuilder
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ com.google.cloud.discoveryengine.v1.Document getDocument(); /** - * - * *
    * Required. The document to update/create.
    *
@@ -85,15 +57,11 @@ public interface UpdateDocumentRequestOrBuilder
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * If set to true, and the
    * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new
@@ -101,7 +69,6 @@ public interface UpdateDocumentRequestOrBuilder
    * 
* * bool allow_missing = 2; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java index c6a937c70986..888e4063dc6a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadata.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Metadata for UpdateSchema LRO.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateSchemaMetadata} */ -public final class UpdateSchemaMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateSchemaMetadata) UpdateSchemaMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSchemaMetadata.newBuilder() to construct. private UpdateSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSchemaMetadata() {} + private UpdateSchemaMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSchemaMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.class, com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -109,15 +83,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -125,15 +96,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -141,8 +109,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.
@@ -156,7 +122,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,7 +133,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (createTime_ != null) {
       output.writeMessage(1, getCreateTime());
     }
@@ -185,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -198,21 +166,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.discoveryengine.v1.UpdateSchemaMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata other =
-        (com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata) obj;
+    com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata other = (com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata) obj;
 
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -239,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata 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.discoveryengine.v1.UpdateSchemaMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for UpdateSchema LRO.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateSchemaMetadata} */ - 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.discoveryengine.v1.UpdateSchemaMetadata) com.google.cloud.discoveryengine.v1.UpdateSchemaMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.class, com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaMetadata_descriptor; } @java.lang.Override @@ -408,11 +372,8 @@ public com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata buildPartial() { - com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata result = - new com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata result = new com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -420,10 +381,14 @@ public com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -431,39 +396,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateSchemaMetad 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.discoveryengine.v1.UpdateSchemaMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata)other); } else { super.mergeFrom(other); return this; @@ -471,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata other) { - if (other == com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -505,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -599,15 +549,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -618,8 +567,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -628,9 +575,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -643,8 +590,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -662,8 +607,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -676,8 +619,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -688,14 +629,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.
      * 
@@ -703,17 +641,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -721,49 +656,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -785,8 +707,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.
@@ -794,7 +714,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -805,8 +726,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.
@@ -816,9 +735,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -831,8 +750,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.
@@ -851,8 +768,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -866,8 +781,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -879,14 +792,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.
@@ -895,24 +805,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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);
     }
 
@@ -922,12 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateSchemaMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateSchemaMetadata)
   private static final com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata();
   }
@@ -936,27 +843,27 @@ public static com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateSchemaMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateSchemaMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -971,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java
similarity index 70%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java
index 7deb97286bce..7b13edf9944d 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaMetadataOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
-public interface UpdateSchemaMetadataOrBuilder
-    extends
+public interface UpdateSchemaMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateSchemaMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface UpdateSchemaMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @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/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java
similarity index 64%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java
rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java
index afb0b88b6db3..aff38c98864f 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1;
 
 /**
- *
- *
  * 
  * Request message for
  * [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1.SchemaService.UpdateSchema]
@@ -29,52 +12,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateSchemaRequest}
  */
-public final class UpdateSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateSchemaRequest)
     UpdateSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateSchemaRequest.newBuilder() to construct.
   private UpdateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateSchemaRequest() {}
+  private UpdateSchemaRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.class, com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.Builder.class);
   }
 
   public static final int SCHEMA_FIELD_NUMBER = 1;
   private com.google.cloud.discoveryengine.v1.Schema schema_;
   /**
-   *
-   *
    * 
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ @java.lang.Override @@ -82,47 +59,32 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.Schema getSchema() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is
    * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] will be
@@ -130,7 +92,6 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder()
    * 
* * bool allow_missing = 3; - * * @return The allowMissing. */ @java.lang.Override @@ -139,7 +100,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +111,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 (schema_ != null) { output.writeMessage(1, getSchema()); } @@ -168,10 +129,12 @@ public int getSerializedSize() { size = 0; if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchema()); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,19 +144,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.discoveryengine.v1.UpdateSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.UpdateSchemaRequest other = - (com.google.cloud.discoveryengine.v1.UpdateSchemaRequest) obj; + com.google.cloud.discoveryengine.v1.UpdateSchemaRequest other = (com.google.cloud.discoveryengine.v1.UpdateSchemaRequest) obj; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; } - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,111 +174,106 @@ public int hashCode() { hash = (53 * hash) + getSchema().hashCode(); } hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest 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.discoveryengine.v1.UpdateSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest 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
    * [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1.SchemaService.UpdateSchema]
@@ -323,32 +282,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateSchemaRequest}
    */
-  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.discoveryengine.v1.UpdateSchemaRequest)
       com.google.cloud.discoveryengine.v1.UpdateSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.class, com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -363,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1_UpdateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -384,11 +344,8 @@ public com.google.cloud.discoveryengine.v1.UpdateSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.UpdateSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1.UpdateSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1.UpdateSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1.UpdateSchemaRequest result = new com.google.cloud.discoveryengine.v1.UpdateSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -396,7 +353,9 @@ public com.google.cloud.discoveryengine.v1.UpdateSchemaRequest buildPartial() {
     private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build();
+        result.schema_ = schemaBuilder_ == null
+            ? schema_
+            : schemaBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.allowMissing_ = allowMissing_;
@@ -407,39 +366,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateSchemaReque
     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.discoveryengine.v1.UpdateSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -447,8 +405,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1.UpdateSchemaRequest.getDefaultInstance()) return this;
       if (other.hasSchema()) {
         mergeSchema(other.getSchema());
       }
@@ -481,25 +438,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -509,63 +465,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.discoveryengine.v1.Schema schema_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.Schema,
-            com.google.cloud.discoveryengine.v1.Schema.Builder,
-            com.google.cloud.discoveryengine.v1.SchemaOrBuilder>
-        schemaBuilder_;
+        com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder> schemaBuilder_;
     /**
-     *
-     *
      * 
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ public com.google.cloud.discoveryengine.v1.Schema getSchema() { if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema value) { if (schemaBuilder_ == null) { @@ -581,17 +517,14 @@ public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema value) { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { + public Builder setSchema( + com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { @@ -602,21 +535,17 @@ public Builder setSchema(com.google.cloud.discoveryengine.v1.Schema.Builder buil return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSchema(com.google.cloud.discoveryengine.v1.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && schema_ != null - && schema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + schema_ != null && + schema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; @@ -629,15 +558,11 @@ public Builder mergeSchema(com.google.cloud.discoveryengine.v1.Schema value) { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000001); @@ -650,15 +575,11 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000001; @@ -666,57 +587,43 @@ public com.google.cloud.discoveryengine.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? + com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() : schema_; } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
      * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.Schema, com.google.cloud.discoveryengine.v1.Schema.Builder, com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); schema_ = null; } return schemaBuilder_; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is
      * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] will be
@@ -724,7 +631,6 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder()
      * 
* * bool allow_missing = 3; - * * @return The allowMissing. */ @java.lang.Override @@ -732,8 +638,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is
      * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] will be
@@ -741,7 +645,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 3; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -753,8 +656,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is
      * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] will be
@@ -762,7 +663,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 3; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -771,9 +671,9 @@ public Builder clearAllowMissing() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -783,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateSchemaRequest) private static final com.google.cloud.discoveryengine.v1.UpdateSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateSchemaRequest(); } @@ -797,27 +697,27 @@ public static com.google.cloud.discoveryengine.v1.UpdateSchemaRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.UpdateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java similarity index 53% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java index 4313b3fb9617..486267ef00cc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateSchemaRequestOrBuilder.java @@ -1,72 +1,40 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/schema_service.proto package com.google.cloud.discoveryengine.v1; -public interface UpdateSchemaRequestOrBuilder - extends +public interface UpdateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ com.google.cloud.discoveryengine.v1.Schema getSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update.
    * 
* - * - * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1.SchemaOrBuilder getSchemaOrBuilder(); /** - * - * *
    * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is
    * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] will be
@@ -74,7 +42,6 @@ public interface UpdateSchemaRequestOrBuilder
    * 
* * bool allow_missing = 3; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java similarity index 80% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java index 1242b593a456..a194ed0c5e07 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * UserEvent captures all metadata information Discovery Engine API needs to
  * know about how end users interact with customers' website.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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_ = "";
     userPseudoId_ = "";
@@ -45,49 +27,48 @@ private UserEvent() {
     attributionToken_ = "";
     filter_ = "";
     documents_ = java.util.Collections.emptyList();
-    tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    tagIds_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    promotionIds_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UserEvent();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_UserEvent_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 17:
         return internalGetAttributes();
       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.discoveryengine.v1.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1.UserEvent.class,
-            com.google.cloud.discoveryengine.v1.UserEvent.Builder.class);
+            com.google.cloud.discoveryengine.v1.UserEvent.class, com.google.cloud.discoveryengine.v1.UserEvent.Builder.class);
   }
 
   public static final int EVENT_TYPE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object eventType_ = "";
   /**
-   *
-   *
    * 
    * Required. User event type. Allowed values are:
    *
@@ -111,7 +92,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ @java.lang.Override @@ -120,15 +100,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:
    *
@@ -152,15 +131,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 { @@ -169,12 +149,9 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * Required. A unique identifier for tracking visitors.
    *
@@ -196,7 +173,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userPseudoId. */ @java.lang.Override @@ -205,15 +181,14 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * Required. A unique identifier for tracking visitors.
    *
@@ -235,15 +210,16 @@ public java.lang.String getUserPseudoId() {
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -254,8 +230,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { public static final int EVENT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -263,7 +237,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -271,8 +244,6 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -280,7 +251,6 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return The eventTime. */ @java.lang.Override @@ -288,8 +258,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -306,14 +274,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int USER_INFO_FIELD_NUMBER = 4;
   private com.google.cloud.discoveryengine.v1.UserInfo userInfo_;
   /**
-   *
-   *
    * 
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -321,25 +286,18 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * * @return The userInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
    * Information about the end user.
    * 
@@ -348,16 +306,12 @@ public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_; } public static final int DIRECT_USER_REQUEST_FIELD_NUMBER = 5; private boolean directUserRequest_ = false; /** - * - * *
    * Should set to true if the request is made directly from the end user, in
    * which case the
@@ -373,7 +327,6 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde
    * 
* * bool direct_user_request = 5; - * * @return The directUserRequest. */ @java.lang.Override @@ -382,12 +335,9 @@ public boolean getDirectUserRequest() { } public static final int SESSION_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object sessionId_ = ""; /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -402,7 +352,6 @@ public boolean getDirectUserRequest() {
    * 
* * string session_id = 6; - * * @return The sessionId. */ @java.lang.Override @@ -411,15 +360,14 @@ public java.lang.String getSessionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -434,15 +382,16 @@ public java.lang.String getSessionId() {
    * 
* * string session_id = 6; - * * @return The bytes for sessionId. */ @java.lang.Override - public com.google.protobuf.ByteString getSessionIdBytes() { + public com.google.protobuf.ByteString + getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sessionId_ = b; return b; } else { @@ -453,15 +402,12 @@ public com.google.protobuf.ByteString getSessionIdBytes() { public static final int PAGE_INFO_FIELD_NUMBER = 7; private com.google.cloud.discoveryengine.v1.PageInfo pageInfo_; /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * * @return Whether the pageInfo field is set. */ @java.lang.Override @@ -469,26 +415,19 @@ public boolean hasPageInfo() { return pageInfo_ != null; } /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * * @return The pageInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.PageInfo getPageInfo() { - return pageInfo_ == null - ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance() - : pageInfo_; + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance() : pageInfo_; } /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
@@ -498,18 +437,13 @@ public com.google.cloud.discoveryengine.v1.PageInfo getPageInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilder() {
-    return pageInfo_ == null
-        ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance()
-        : pageInfo_;
+    return pageInfo_ == null ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance() : pageInfo_;
   }
 
   public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 8;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object attributionToken_ = "";
   /**
-   *
-   *
    * 
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -533,7 +467,6 @@ public com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilde
    * 
* * string attribution_token = 8; - * * @return The attributionToken. */ @java.lang.Override @@ -542,15 +475,14 @@ public java.lang.String getAttributionToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; } } /** - * - * *
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -574,15 +506,16 @@ public java.lang.String getAttributionToken() {
    * 
* * string attribution_token = 8; - * * @return The bytes for attributionToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -591,12 +524,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -617,7 +547,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * string filter = 9; - * * @return The filter. */ @java.lang.Override @@ -626,15 +555,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; } } /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -655,15 +583,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 9; - * * @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 { @@ -672,12 +601,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int DOCUMENTS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List documents_; /** - * - * *
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -706,8 +632,6 @@ public java.util.List getDocum
     return documents_;
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -732,13 +656,11 @@ public java.util.List getDocum
    * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDocumentsOrBuilderList() {
     return documents_;
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -767,8 +689,6 @@ public int getDocumentsCount() {
     return documents_.size();
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -797,8 +717,6 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo getDocuments(int index)
     return documents_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -831,14 +749,11 @@ public com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrB
   public static final int PANEL_FIELD_NUMBER = 11;
   private com.google.cloud.discoveryengine.v1.PanelInfo panel_;
   /**
-   *
-   *
    * 
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * * @return Whether the panel field is set. */ @java.lang.Override @@ -846,25 +761,18 @@ public boolean hasPanel() { return panel_ != null; } /** - * - * *
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * * @return The panel. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.PanelInfo getPanel() { - return panel_ == null - ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() : panel_; } /** - * - * *
    * Panel metadata associated with this user event.
    * 
@@ -873,16 +781,12 @@ public com.google.cloud.discoveryengine.v1.PanelInfo getPanel() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder() { - return panel_ == null - ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() : panel_; } public static final int SEARCH_INFO_FIELD_NUMBER = 12; private com.google.cloud.discoveryengine.v1.SearchInfo searchInfo_; /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
    * details related to the event.
@@ -891,7 +795,6 @@ public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder(
    * 
* * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * * @return Whether the searchInfo field is set. */ @java.lang.Override @@ -899,8 +802,6 @@ public boolean hasSearchInfo() { return searchInfo_ != null; } /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
    * details related to the event.
@@ -909,18 +810,13 @@ public boolean hasSearchInfo() {
    * 
* * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * * @return The searchInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.SearchInfo getSearchInfo() { - return searchInfo_ == null - ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance() - : searchInfo_; + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance() : searchInfo_; } /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
    * details related to the event.
@@ -932,16 +828,12 @@ public com.google.cloud.discoveryengine.v1.SearchInfo getSearchInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBuilder() {
-    return searchInfo_ == null
-        ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance()
-        : searchInfo_;
+    return searchInfo_ == null ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance() : searchInfo_;
   }
 
   public static final int COMPLETION_INFO_FIELD_NUMBER = 13;
   private com.google.cloud.discoveryengine.v1.CompletionInfo completionInfo_;
   /**
-   *
-   *
    * 
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
    * details related to the event.
@@ -951,7 +843,6 @@ public com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBu
    * 
* * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * * @return Whether the completionInfo field is set. */ @java.lang.Override @@ -959,8 +850,6 @@ public boolean hasCompletionInfo() { return completionInfo_ != null; } /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
    * details related to the event.
@@ -970,18 +859,13 @@ public boolean hasCompletionInfo() {
    * 
* * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * * @return The completionInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.CompletionInfo getCompletionInfo() { - return completionInfo_ == null - ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance() - : completionInfo_; + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance() : completionInfo_; } /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
    * details related to the event.
@@ -994,22 +878,17 @@ public com.google.cloud.discoveryengine.v1.CompletionInfo getCompletionInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder getCompletionInfoOrBuilder() {
-    return completionInfo_ == null
-        ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance()
-        : completionInfo_;
+    return completionInfo_ == null ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance() : completionInfo_;
   }
 
   public static final int TRANSACTION_INFO_FIELD_NUMBER = 14;
   private com.google.cloud.discoveryengine.v1.TransactionInfo transactionInfo_;
   /**
-   *
-   *
    * 
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * * @return Whether the transactionInfo field is set. */ @java.lang.Override @@ -1017,25 +896,18 @@ public boolean hasTransactionInfo() { return transactionInfo_ != null; } /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * * @return The transactionInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.TransactionInfo getTransactionInfo() { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() - : transactionInfo_; + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() : transactionInfo_; } /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
@@ -1043,21 +915,15 @@ public com.google.cloud.discoveryengine.v1.TransactionInfo getTransactionInfo() * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder - getTransactionInfoOrBuilder() { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() - : transactionInfo_; + public com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder getTransactionInfoOrBuilder() { + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() : transactionInfo_; } public static final int TAG_IDS_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1065,15 +931,13 @@ public com.google.cloud.discoveryengine.v1.TransactionInfo getTransactionInfo()
    * 
* * repeated string tag_ids = 15; - * * @return A list containing the tagIds. */ - public com.google.protobuf.ProtocolStringList getTagIdsList() { + public com.google.protobuf.ProtocolStringList + getTagIdsList() { return tagIds_; } /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1081,15 +945,12 @@ public com.google.protobuf.ProtocolStringList getTagIdsList() {
    * 
* * repeated string tag_ids = 15; - * * @return The count of tagIds. */ public int getTagIdsCount() { return tagIds_.size(); } /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1097,7 +958,6 @@ public int getTagIdsCount() {
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the element to return. * @return The tagIds at the given index. */ @@ -1105,8 +965,6 @@ public java.lang.String getTagIds(int index) { return tagIds_.get(index); } /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1114,59 +972,50 @@ public java.lang.String getTagIds(int index) {
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the value to return. * @return The bytes of the tagIds at the given index. */ - public com.google.protobuf.ByteString getTagIdsBytes(int index) { + public com.google.protobuf.ByteString + getTagIdsBytes(int index) { return tagIds_.getByteString(index); } public static final int PROMOTION_IDS_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { return promotionIds_; } /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -1174,59 +1023,47 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } public static final int ATTRIBUTES_FIELD_NUMBER = 17; - private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> - defaultEntry = + java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.discoveryengine.v1.UserEventProto - .internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.discoveryengine.v1.CustomAttribute.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1.CustomAttribute.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> - internalGetAttributes() { + java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1256,26 +1093,23 @@ public int getAttributesCount() {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } - /** Use {@link #getAttributesMap()} instead. */ + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAttributes() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1305,17 +1139,13 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1345,24 +1175,20 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( + public /* nullable */ +com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.discoveryengine.v1.CustomAttribute defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.discoveryengine.v1.CustomAttribute defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1392,15 +1218,12 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -1412,14 +1235,11 @@ public com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow( public static final int MEDIA_INFO_FIELD_NUMBER = 18; private com.google.cloud.discoveryengine.v1.MediaInfo mediaInfo_; /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * * @return Whether the mediaInfo field is set. */ @java.lang.Override @@ -1427,25 +1247,18 @@ public boolean hasMediaInfo() { return mediaInfo_ != null; } /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * * @return The mediaInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.MediaInfo getMediaInfo() { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() : mediaInfo_; } /** - * - * *
    * Media-specific info.
    * 
@@ -1454,13 +1267,10 @@ public com.google.cloud.discoveryengine.v1.MediaInfo getMediaInfo() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder getMediaInfoOrBuilder() { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() : mediaInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1472,7 +1282,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_); } @@ -1521,8 +1332,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < promotionIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, promotionIds_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 17); if (mediaInfo_ != null) { output.writeMessage(18, getMediaInfo()); } @@ -1542,19 +1357,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userPseudoId_); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEventTime()); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUserInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUserInfo()); } if (directUserRequest_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, directUserRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, directUserRequest_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sessionId_); } if (pageInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPageInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPageInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, attributionToken_); @@ -1563,19 +1382,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, filter_); } for (int i = 0; i < documents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, documents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, documents_.get(i)); } if (panel_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPanel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getPanel()); } if (searchInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSearchInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSearchInfo()); } if (completionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCompletionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCompletionInfo()); } if (transactionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getTransactionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getTransactionInfo()); } { int dataSize = 0; @@ -1593,20 +1417,19 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPromotionIdsList().size(); } - for (java.util.Map.Entry - entry : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> - attributes__ = - AttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, attributes__); + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, attributes__); } if (mediaInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getMediaInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getMediaInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1616,55 +1439,72 @@ 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.discoveryengine.v1.UserEvent)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.UserEvent other = - (com.google.cloud.discoveryengine.v1.UserEvent) obj; + com.google.cloud.discoveryengine.v1.UserEvent other = (com.google.cloud.discoveryengine.v1.UserEvent) obj; - if (!getEventType().equals(other.getEventType())) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) 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 (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo().equals(other.getUserInfo())) return false; + if (!getUserInfo() + .equals(other.getUserInfo())) return false; } - if (getDirectUserRequest() != other.getDirectUserRequest()) return false; - if (!getSessionId().equals(other.getSessionId())) return false; + if (getDirectUserRequest() + != other.getDirectUserRequest()) return false; + if (!getSessionId() + .equals(other.getSessionId())) return false; if (hasPageInfo() != other.hasPageInfo()) return false; if (hasPageInfo()) { - if (!getPageInfo().equals(other.getPageInfo())) return false; - } - if (!getAttributionToken().equals(other.getAttributionToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getPageInfo() + .equals(other.getPageInfo())) return false; + } + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; if (hasPanel() != other.hasPanel()) return false; if (hasPanel()) { - if (!getPanel().equals(other.getPanel())) return false; + if (!getPanel() + .equals(other.getPanel())) return false; } if (hasSearchInfo() != other.hasSearchInfo()) return false; if (hasSearchInfo()) { - if (!getSearchInfo().equals(other.getSearchInfo())) return false; + if (!getSearchInfo() + .equals(other.getSearchInfo())) return false; } if (hasCompletionInfo() != other.hasCompletionInfo()) return false; if (hasCompletionInfo()) { - if (!getCompletionInfo().equals(other.getCompletionInfo())) return false; + if (!getCompletionInfo() + .equals(other.getCompletionInfo())) return false; } if (hasTransactionInfo() != other.hasTransactionInfo()) return false; if (hasTransactionInfo()) { - if (!getTransactionInfo().equals(other.getTransactionInfo())) return false; - } - if (!getTagIdsList().equals(other.getTagIdsList())) return false; - if (!getPromotionIdsList().equals(other.getPromotionIdsList())) return false; - if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getTransactionInfo() + .equals(other.getTransactionInfo())) return false; + } + if (!getTagIdsList() + .equals(other.getTagIdsList())) return false; + if (!getPromotionIdsList() + .equals(other.getPromotionIdsList())) return false; + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; if (hasMediaInfo() != other.hasMediaInfo()) return false; if (hasMediaInfo()) { - if (!getMediaInfo().equals(other.getMediaInfo())) return false; + if (!getMediaInfo() + .equals(other.getMediaInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1690,7 +1530,8 @@ public int hashCode() { hash = (53 * hash) + getUserInfo().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 = (37 * hash) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); if (hasPageInfo()) { @@ -1742,104 +1583,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.UserEvent parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.UserEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserEvent parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.UserEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.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 Discovery Engine API needs to
    * know about how end users interact with customers' website.
@@ -1847,52 +1683,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserEvent)
       com.google.cloud.discoveryengine.v1.UserEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 17:
           return internalGetAttributes();
         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 17:
           return internalGetMutableAttributes();
         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.discoveryengine.v1.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1.UserEvent.class,
-              com.google.cloud.discoveryengine.v1.UserEvent.Builder.class);
+              com.google.cloud.discoveryengine.v1.UserEvent.class, com.google.cloud.discoveryengine.v1.UserEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1.UserEvent.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1945,8 +1784,10 @@ public Builder clear() {
         transactionInfoBuilder_.dispose();
         transactionInfoBuilder_ = null;
       }
-      tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      tagIds_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      promotionIds_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       internalGetMutableAttributes().clear();
       mediaInfo_ = null;
       if (mediaInfoBuilder_ != null) {
@@ -1957,9 +1798,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1.UserEventProto.internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor;
     }
 
     @java.lang.Override
@@ -1978,12 +1819,9 @@ public com.google.cloud.discoveryengine.v1.UserEvent build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1.UserEvent buildPartial() {
-      com.google.cloud.discoveryengine.v1.UserEvent result =
-          new com.google.cloud.discoveryengine.v1.UserEvent(this);
+      com.google.cloud.discoveryengine.v1.UserEvent result = new com.google.cloud.discoveryengine.v1.UserEvent(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -2009,10 +1847,14 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserEvent result)
         result.userPseudoId_ = userPseudoId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build();
+        result.eventTime_ = eventTimeBuilder_ == null
+            ? eventTime_
+            : eventTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build();
+        result.userInfo_ = userInfoBuilder_ == null
+            ? userInfo_
+            : userInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.directUserRequest_ = directUserRequest_;
@@ -2021,7 +1863,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserEvent result)
         result.sessionId_ = sessionId_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build();
+        result.pageInfo_ = pageInfoBuilder_ == null
+            ? pageInfo_
+            : pageInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
         result.attributionToken_ = attributionToken_;
@@ -2030,18 +1874,24 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserEvent result)
         result.filter_ = filter_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.panel_ = panelBuilder_ == null ? panel_ : panelBuilder_.build();
+        result.panel_ = panelBuilder_ == null
+            ? panel_
+            : panelBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.searchInfo_ = searchInfoBuilder_ == null ? searchInfo_ : searchInfoBuilder_.build();
+        result.searchInfo_ = searchInfoBuilder_ == null
+            ? searchInfo_
+            : searchInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.completionInfo_ =
-            completionInfoBuilder_ == null ? completionInfo_ : completionInfoBuilder_.build();
+        result.completionInfo_ = completionInfoBuilder_ == null
+            ? completionInfo_
+            : completionInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.transactionInfo_ =
-            transactionInfoBuilder_ == null ? transactionInfo_ : transactionInfoBuilder_.build();
+        result.transactionInfo_ = transactionInfoBuilder_ == null
+            ? transactionInfo_
+            : transactionInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         tagIds_.makeImmutable();
@@ -2056,7 +1906,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserEvent result)
         result.attributes_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
-        result.mediaInfo_ = mediaInfoBuilder_ == null ? mediaInfo_ : mediaInfoBuilder_.build();
+        result.mediaInfo_ = mediaInfoBuilder_ == null
+            ? mediaInfo_
+            : mediaInfoBuilder_.build();
       }
     }
 
@@ -2064,39 +1916,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserEvent result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1.UserEvent) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1.UserEvent) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1.UserEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2160,10 +2011,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UserEvent other) {
             documentsBuilder_ = null;
             documents_ = other.documents_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            documentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDocumentsFieldBuilder()
-                    : null;
+            documentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDocumentsFieldBuilder() : null;
           } else {
             documentsBuilder_.addAllMessages(other.documents_);
           }
@@ -2201,7 +2051,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UserEvent other) {
         }
         onChanged();
       }
-      internalGetMutableAttributes().mergeFrom(other.internalGetAttributes());
+      internalGetMutableAttributes().mergeFrom(
+          other.internalGetAttributes());
       bitField0_ |= 0x00010000;
       if (other.hasMediaInfo()) {
         mergeMediaInfo(other.getMediaInfo());
@@ -2232,139 +2083,132 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                eventType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                userPseudoId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                directUserRequest_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                sessionId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                attributionToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.cloud.discoveryengine.v1.DocumentInfo m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1.DocumentInfo.parser(),
-                        extensionRegistry);
-                if (documentsBuilder_ == null) {
-                  ensureDocumentsIsMutable();
-                  documents_.add(m);
-                } else {
-                  documentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getPanelFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getSearchInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getCompletionInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getTransactionInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 114
-            case 122:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTagIdsIsMutable();
-                tagIds_.add(s);
-                break;
-              } // case 122
-            case 130:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePromotionIdsIsMutable();
-                promotionIds_.add(s);
-                break;
-              } // case 130
-            case 138:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute>
-                    attributes__ =
-                        input.readMessage(
-                            AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableAttributes()
-                    .getMutableMap()
-                    .put(attributes__.getKey(), attributes__.getValue());
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(getMediaInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 146
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              eventType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              userPseudoId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getUserInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              directUserRequest_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              sessionId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getPageInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              attributionToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              com.google.cloud.discoveryengine.v1.DocumentInfo m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1.DocumentInfo.parser(),
+                      extensionRegistry);
+              if (documentsBuilder_ == null) {
+                ensureDocumentsIsMutable();
+                documents_.add(m);
+              } else {
+                documentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getPanelFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getSearchInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getCompletionInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getTransactionInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 114
+            case 122: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTagIdsIsMutable();
+              tagIds_.add(s);
+              break;
+            } // case 122
+            case 130: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePromotionIdsIsMutable();
+              promotionIds_.add(s);
+              break;
+            } // case 130
+            case 138: {
+              com.google.protobuf.MapEntry
+              attributes__ = input.readMessage(
+                  AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAttributes().getMutableMap().put(
+                  attributes__.getKey(), attributes__.getValue());
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getMediaInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 146
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2374,13 +2218,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object eventType_ = "";
     /**
-     *
-     *
      * 
      * Required. User event type. Allowed values are:
      *
@@ -2404,13 +2245,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; @@ -2419,8 +2260,6 @@ public java.lang.String getEventType() { } } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2444,14 +2283,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 { @@ -2459,8 +2299,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2484,22 +2322,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEventType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } eventType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2523,7 +2357,6 @@ public Builder setEventType(java.lang.String value) {
      * 
* * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEventType() { @@ -2533,8 +2366,6 @@ public Builder clearEventType() { return this; } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2558,14 +2389,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); eventType_ = value; bitField0_ |= 0x00000001; @@ -2575,8 +2404,6 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2598,13 +2425,13 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -2613,8 +2440,6 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2636,14 +2461,15 @@ public java.lang.String getUserPseudoId() {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -2651,8 +2477,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2674,22 +2498,18 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2711,7 +2531,6 @@ public Builder setUserPseudoId(java.lang.String value) {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -2721,8 +2540,6 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2744,14 +2561,12 @@ public Builder clearUserPseudoId() {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00000002; @@ -2761,13 +2576,8 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2775,15 +2585,12 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2791,7 +2598,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2802,8 +2608,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2826,8 +2630,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2836,7 +2638,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 3;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
       } else {
@@ -2847,8 +2650,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2859,9 +2660,9 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && eventTime_ != null
-            && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          eventTime_ != null &&
+          eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEventTimeBuilder().mergeFrom(value);
         } else {
           eventTime_ = value;
@@ -2874,8 +2675,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2895,8 +2694,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2911,8 +2708,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2925,12 +2720,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -2940,17 +2734,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         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_;
@@ -2958,47 +2749,34 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.cloud.discoveryengine.v1.UserInfo userInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.UserInfo,
-            com.google.cloud.discoveryengine.v1.UserInfo.Builder,
-            com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>
-        userInfoBuilder_;
+        com.google.cloud.discoveryengine.v1.UserInfo, com.google.cloud.discoveryengine.v1.UserInfo.Builder, com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> userInfoBuilder_;
     /**
-     *
-     *
      * 
      * Information about the end user.
      * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Information about the end user.
      * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * * @return The userInfo. */ public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
      * Information about the end user.
      * 
@@ -3019,8 +2797,6 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3039,8 +2815,6 @@ public Builder setUserInfo( return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3049,9 +2823,9 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && userInfo_ != null - && userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + userInfo_ != null && + userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -3064,8 +2838,6 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3083,8 +2855,6 @@ public Builder clearUserInfo() { return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3097,8 +2867,6 @@ public com.google.cloud.discoveryengine.v1.UserInfo.Builder getUserInfoBuilder() return getUserInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the end user.
      * 
@@ -3109,14 +2877,11 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? + com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() : userInfo_; } } /** - * - * *
      * Information about the end user.
      * 
@@ -3124,26 +2889,21 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserInfo, - com.google.cloud.discoveryengine.v1.UserInfo.Builder, - com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> + com.google.cloud.discoveryengine.v1.UserInfo, com.google.cloud.discoveryengine.v1.UserInfo.Builder, com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserInfo, - com.google.cloud.discoveryengine.v1.UserInfo.Builder, - com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.UserInfo, com.google.cloud.discoveryengine.v1.UserInfo.Builder, com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); userInfo_ = null; } return userInfoBuilder_; } - private boolean directUserRequest_; + private boolean directUserRequest_ ; /** - * - * *
      * Should set to true if the request is made directly from the end user, in
      * which case the
@@ -3159,7 +2919,6 @@ public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilde
      * 
* * bool direct_user_request = 5; - * * @return The directUserRequest. */ @java.lang.Override @@ -3167,8 +2926,6 @@ public boolean getDirectUserRequest() { return directUserRequest_; } /** - * - * *
      * Should set to true if the request is made directly from the end user, in
      * which case the
@@ -3184,7 +2941,6 @@ public boolean getDirectUserRequest() {
      * 
* * bool direct_user_request = 5; - * * @param value The directUserRequest to set. * @return This builder for chaining. */ @@ -3196,8 +2952,6 @@ public Builder setDirectUserRequest(boolean value) { return this; } /** - * - * *
      * Should set to true if the request is made directly from the end user, in
      * which case the
@@ -3213,7 +2967,6 @@ public Builder setDirectUserRequest(boolean value) {
      * 
* * bool direct_user_request = 5; - * * @return This builder for chaining. */ public Builder clearDirectUserRequest() { @@ -3225,8 +2978,6 @@ public Builder clearDirectUserRequest() { private java.lang.Object sessionId_ = ""; /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3241,13 +2992,13 @@ public Builder clearDirectUserRequest() {
      * 
* * string session_id = 6; - * * @return The sessionId. */ public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; @@ -3256,8 +3007,6 @@ public java.lang.String getSessionId() { } } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3272,14 +3021,15 @@ public java.lang.String getSessionId() {
      * 
* * string session_id = 6; - * * @return The bytes for sessionId. */ - public com.google.protobuf.ByteString getSessionIdBytes() { + public com.google.protobuf.ByteString + getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sessionId_ = b; return b; } else { @@ -3287,8 +3037,6 @@ public com.google.protobuf.ByteString getSessionIdBytes() { } } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3303,22 +3051,18 @@ public com.google.protobuf.ByteString getSessionIdBytes() {
      * 
* * string session_id = 6; - * * @param value The sessionId to set. * @return This builder for chaining. */ - public Builder setSessionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSessionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sessionId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3333,7 +3077,6 @@ public Builder setSessionId(java.lang.String value) {
      * 
* * string session_id = 6; - * * @return This builder for chaining. */ public Builder clearSessionId() { @@ -3343,8 +3086,6 @@ public Builder clearSessionId() { return this; } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3359,14 +3100,12 @@ public Builder clearSessionId() {
      * 
* * string session_id = 6; - * * @param value The bytes for sessionId to set. * @return This builder for chaining. */ - public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSessionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionId_ = value; bitField0_ |= 0x00000020; @@ -3376,49 +3115,36 @@ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.PageInfo pageInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.PageInfo, - com.google.cloud.discoveryengine.v1.PageInfo.Builder, - com.google.cloud.discoveryengine.v1.PageInfoOrBuilder> - pageInfoBuilder_; + com.google.cloud.discoveryengine.v1.PageInfo, com.google.cloud.discoveryengine.v1.PageInfo.Builder, com.google.cloud.discoveryengine.v1.PageInfoOrBuilder> pageInfoBuilder_; /** - * - * *
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
      * 
* * .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
      * 
* * .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * * @return The pageInfo. */ public com.google.cloud.discoveryengine.v1.PageInfo getPageInfo() { if (pageInfoBuilder_ == null) { - return pageInfo_ == null - ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance() - : pageInfo_; + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance() : pageInfo_; } else { return pageInfoBuilder_.getMessage(); } } /** - * - * *
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3440,8 +3166,6 @@ public Builder setPageInfo(com.google.cloud.discoveryengine.v1.PageInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3461,8 +3185,6 @@ public Builder setPageInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3472,9 +3194,9 @@ public Builder setPageInfo(
      */
     public Builder mergePageInfo(com.google.cloud.discoveryengine.v1.PageInfo value) {
       if (pageInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && pageInfo_ != null
-            && pageInfo_ != com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          pageInfo_ != null &&
+          pageInfo_ != com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance()) {
           getPageInfoBuilder().mergeFrom(value);
         } else {
           pageInfo_ = value;
@@ -3487,8 +3209,6 @@ public Builder mergePageInfo(com.google.cloud.discoveryengine.v1.PageInfo value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3507,8 +3227,6 @@ public Builder clearPageInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3522,8 +3240,6 @@ public com.google.cloud.discoveryengine.v1.PageInfo.Builder getPageInfoBuilder()
       return getPageInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3535,14 +3251,11 @@ public com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilde
       if (pageInfoBuilder_ != null) {
         return pageInfoBuilder_.getMessageOrBuilder();
       } else {
-        return pageInfo_ == null
-            ? com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance()
-            : pageInfo_;
+        return pageInfo_ == null ?
+            com.google.cloud.discoveryengine.v1.PageInfo.getDefaultInstance() : pageInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3551,17 +3264,14 @@ public com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilde
      * .google.cloud.discoveryengine.v1.PageInfo page_info = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.PageInfo,
-            com.google.cloud.discoveryengine.v1.PageInfo.Builder,
-            com.google.cloud.discoveryengine.v1.PageInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1.PageInfo, com.google.cloud.discoveryengine.v1.PageInfo.Builder, com.google.cloud.discoveryengine.v1.PageInfoOrBuilder> 
         getPageInfoFieldBuilder() {
       if (pageInfoBuilder_ == null) {
-        pageInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.PageInfo,
-                com.google.cloud.discoveryengine.v1.PageInfo.Builder,
-                com.google.cloud.discoveryengine.v1.PageInfoOrBuilder>(
-                getPageInfo(), getParentForChildren(), isClean());
+        pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.PageInfo, com.google.cloud.discoveryengine.v1.PageInfo.Builder, com.google.cloud.discoveryengine.v1.PageInfoOrBuilder>(
+                getPageInfo(),
+                getParentForChildren(),
+                isClean());
         pageInfo_ = null;
       }
       return pageInfoBuilder_;
@@ -3569,8 +3279,6 @@ public com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilde
 
     private java.lang.Object attributionToken_ = "";
     /**
-     *
-     *
      * 
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3594,13 +3302,13 @@ public com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilde
      * 
* * string attribution_token = 8; - * * @return The attributionToken. */ public java.lang.String getAttributionToken() { java.lang.Object ref = attributionToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; @@ -3609,8 +3317,6 @@ public java.lang.String getAttributionToken() { } } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3634,14 +3340,15 @@ public java.lang.String getAttributionToken() {
      * 
* * string attribution_token = 8; - * * @return The bytes for attributionToken. */ - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -3649,8 +3356,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3674,22 +3379,18 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
      * 
* * string attribution_token = 8; - * * @param value The attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributionToken_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3713,7 +3414,6 @@ public Builder setAttributionToken(java.lang.String value) {
      * 
* * string attribution_token = 8; - * * @return This builder for chaining. */ public Builder clearAttributionToken() { @@ -3723,8 +3423,6 @@ public Builder clearAttributionToken() { return this; } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3748,14 +3446,12 @@ public Builder clearAttributionToken() {
      * 
* * string attribution_token = 8; - * * @param value The bytes for attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributionToken_ = value; bitField0_ |= 0x00000080; @@ -3765,8 +3461,6 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3787,13 +3481,13 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 9; - * * @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; @@ -3802,8 +3496,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3824,14 +3516,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 9; - * * @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 { @@ -3839,8 +3532,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3861,22 +3552,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 9; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3897,7 +3584,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 9; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -3907,8 +3593,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3929,14 +3613,12 @@ public Builder clearFilter() {
      * 
* * string filter = 9; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000100; @@ -3945,25 +3627,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } private java.util.List documents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - documents_ = - new java.util.ArrayList(documents_); + documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1.DocumentInfo, - com.google.cloud.discoveryengine.v1.DocumentInfo.Builder, - com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder> - documentsBuilder_; + com.google.cloud.discoveryengine.v1.DocumentInfo, com.google.cloud.discoveryengine.v1.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder> documentsBuilder_; /** - * - * *
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -3995,8 +3670,6 @@ public java.util.List getDocum
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4028,8 +3701,6 @@ public int getDocumentsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4061,8 +3732,6 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo getDocuments(int index)
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4086,7 +3755,8 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo getDocuments(int index)
      *
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
-    public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1.DocumentInfo value) {
+    public Builder setDocuments(
+        int index, com.google.cloud.discoveryengine.v1.DocumentInfo value) {
       if (documentsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4100,8 +3770,6 @@ public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1.Docum
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4137,8 +3805,6 @@ public Builder setDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4176,8 +3842,6 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1.DocumentInfo val
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4201,7 +3865,8 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1.DocumentInfo val
      *
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
-    public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1.DocumentInfo value) {
+    public Builder addDocuments(
+        int index, com.google.cloud.discoveryengine.v1.DocumentInfo value) {
       if (documentsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4215,8 +3880,6 @@ public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1.Docum
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4252,8 +3915,6 @@ public Builder addDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4289,8 +3950,6 @@ public Builder addDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4318,7 +3977,8 @@ public Builder addAllDocuments(
         java.lang.Iterable values) {
       if (documentsBuilder_ == null) {
         ensureDocumentsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, documents_);
         onChanged();
       } else {
         documentsBuilder_.addAllMessages(values);
@@ -4326,8 +3986,6 @@ public Builder addAllDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4362,8 +4020,6 @@ public Builder clearDocuments() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4398,8 +4054,6 @@ public Builder removeDocuments(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4423,12 +4077,11 @@ public Builder removeDocuments(int index) {
      *
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
-    public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder getDocumentsBuilder(int index) {
+    public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder getDocumentsBuilder(
+        int index) {
       return getDocumentsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4455,14 +4108,11 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder getDocumentsBuil
     public com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrBuilder(
         int index) {
       if (documentsBuilder_ == null) {
-        return documents_.get(index);
-      } else {
+        return documents_.get(index);  } else {
         return documentsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4486,8 +4136,8 @@ public com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrB
      *
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
-    public java.util.List
-        getDocumentsOrBuilderList() {
+    public java.util.List 
+         getDocumentsOrBuilderList() {
       if (documentsBuilder_ != null) {
         return documentsBuilder_.getMessageOrBuilderList();
       } else {
@@ -4495,8 +4145,6 @@ public com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrB
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4521,12 +4169,10 @@ public com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrB
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
     public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder addDocumentsBuilder() {
-      return getDocumentsFieldBuilder()
-          .addBuilder(com.google.cloud.discoveryengine.v1.DocumentInfo.getDefaultInstance());
+      return getDocumentsFieldBuilder().addBuilder(
+          com.google.cloud.discoveryengine.v1.DocumentInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4550,13 +4196,12 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder addDocumentsBuil
      *
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
-    public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder addDocumentsBuilder(int index) {
-      return getDocumentsFieldBuilder()
-          .addBuilder(index, com.google.cloud.discoveryengine.v1.DocumentInfo.getDefaultInstance());
+    public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder addDocumentsBuilder(
+        int index) {
+      return getDocumentsFieldBuilder().addBuilder(
+          index, com.google.cloud.discoveryengine.v1.DocumentInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
      * with this user event.
@@ -4580,23 +4225,20 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder addDocumentsBuil
      *
      * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
      */
-    public java.util.List
-        getDocumentsBuilderList() {
+    public java.util.List 
+         getDocumentsBuilderList() {
       return getDocumentsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.DocumentInfo,
-            com.google.cloud.discoveryengine.v1.DocumentInfo.Builder,
-            com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1.DocumentInfo, com.google.cloud.discoveryengine.v1.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder> 
         getDocumentsFieldBuilder() {
       if (documentsBuilder_ == null) {
-        documentsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.DocumentInfo,
-                com.google.cloud.discoveryengine.v1.DocumentInfo.Builder,
-                com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder>(
-                documents_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean());
+        documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.DocumentInfo, com.google.cloud.discoveryengine.v1.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder>(
+                documents_,
+                ((bitField0_ & 0x00000200) != 0),
+                getParentForChildren(),
+                isClean());
         documents_ = null;
       }
       return documentsBuilder_;
@@ -4604,47 +4246,34 @@ public com.google.cloud.discoveryengine.v1.DocumentInfo.Builder addDocumentsBuil
 
     private com.google.cloud.discoveryengine.v1.PanelInfo panel_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.PanelInfo,
-            com.google.cloud.discoveryengine.v1.PanelInfo.Builder,
-            com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder>
-        panelBuilder_;
+        com.google.cloud.discoveryengine.v1.PanelInfo, com.google.cloud.discoveryengine.v1.PanelInfo.Builder, com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder> panelBuilder_;
     /**
-     *
-     *
      * 
      * Panel metadata associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * * @return Whether the panel field is set. */ public boolean hasPanel() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Panel metadata associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * * @return The panel. */ public com.google.cloud.discoveryengine.v1.PanelInfo getPanel() { if (panelBuilder_ == null) { - return panel_ == null - ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() : panel_; } else { return panelBuilder_.getMessage(); } } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4665,15 +4294,14 @@ public Builder setPanel(com.google.cloud.discoveryengine.v1.PanelInfo value) { return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; */ - public Builder setPanel(com.google.cloud.discoveryengine.v1.PanelInfo.Builder builderForValue) { + public Builder setPanel( + com.google.cloud.discoveryengine.v1.PanelInfo.Builder builderForValue) { if (panelBuilder_ == null) { panel_ = builderForValue.build(); } else { @@ -4684,8 +4312,6 @@ public Builder setPanel(com.google.cloud.discoveryengine.v1.PanelInfo.Builder bu return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4694,9 +4320,9 @@ public Builder setPanel(com.google.cloud.discoveryengine.v1.PanelInfo.Builder bu */ public Builder mergePanel(com.google.cloud.discoveryengine.v1.PanelInfo value) { if (panelBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && panel_ != null - && panel_ != com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + panel_ != null && + panel_ != com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance()) { getPanelBuilder().mergeFrom(value); } else { panel_ = value; @@ -4709,8 +4335,6 @@ public Builder mergePanel(com.google.cloud.discoveryengine.v1.PanelInfo value) { return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4728,8 +4352,6 @@ public Builder clearPanel() { return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4742,8 +4364,6 @@ public com.google.cloud.discoveryengine.v1.PanelInfo.Builder getPanelBuilder() { return getPanelFieldBuilder().getBuilder(); } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4754,14 +4374,11 @@ public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder( if (panelBuilder_ != null) { return panelBuilder_.getMessageOrBuilder(); } else { - return panel_ == null - ? com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? + com.google.cloud.discoveryengine.v1.PanelInfo.getDefaultInstance() : panel_; } } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4769,17 +4386,14 @@ public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder( * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.PanelInfo, - com.google.cloud.discoveryengine.v1.PanelInfo.Builder, - com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder> + com.google.cloud.discoveryengine.v1.PanelInfo, com.google.cloud.discoveryengine.v1.PanelInfo.Builder, com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder> getPanelFieldBuilder() { if (panelBuilder_ == null) { - panelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.PanelInfo, - com.google.cloud.discoveryengine.v1.PanelInfo.Builder, - com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder>( - getPanel(), getParentForChildren(), isClean()); + panelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.PanelInfo, com.google.cloud.discoveryengine.v1.PanelInfo.Builder, com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder>( + getPanel(), + getParentForChildren(), + isClean()); panel_ = null; } return panelBuilder_; @@ -4787,13 +4401,8 @@ public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder( private com.google.cloud.discoveryengine.v1.SearchInfo searchInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.SearchInfo, - com.google.cloud.discoveryengine.v1.SearchInfo.Builder, - com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder> - searchInfoBuilder_; + com.google.cloud.discoveryengine.v1.SearchInfo, com.google.cloud.discoveryengine.v1.SearchInfo.Builder, com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder> searchInfoBuilder_; /** - * - * *
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4802,15 +4411,12 @@ public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder(
      * 
* * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * * @return Whether the searchInfo field is set. */ public boolean hasSearchInfo() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4819,21 +4425,16 @@ public boolean hasSearchInfo() {
      * 
* * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * * @return The searchInfo. */ public com.google.cloud.discoveryengine.v1.SearchInfo getSearchInfo() { if (searchInfoBuilder_ == null) { - return searchInfo_ == null - ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance() - : searchInfo_; + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance() : searchInfo_; } else { return searchInfoBuilder_.getMessage(); } } /** - * - * *
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4857,8 +4458,6 @@ public Builder setSearchInfo(com.google.cloud.discoveryengine.v1.SearchInfo valu
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4880,8 +4479,6 @@ public Builder setSearchInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4893,9 +4490,9 @@ public Builder setSearchInfo(
      */
     public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1.SearchInfo value) {
       if (searchInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0)
-            && searchInfo_ != null
-            && searchInfo_ != com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0) &&
+          searchInfo_ != null &&
+          searchInfo_ != com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance()) {
           getSearchInfoBuilder().mergeFrom(value);
         } else {
           searchInfo_ = value;
@@ -4908,8 +4505,6 @@ public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1.SearchInfo va
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4930,8 +4525,6 @@ public Builder clearSearchInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4947,8 +4540,6 @@ public com.google.cloud.discoveryengine.v1.SearchInfo.Builder getSearchInfoBuild
       return getSearchInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4962,14 +4553,11 @@ public com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBu
       if (searchInfoBuilder_ != null) {
         return searchInfoBuilder_.getMessageOrBuilder();
       } else {
-        return searchInfo_ == null
-            ? com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance()
-            : searchInfo_;
+        return searchInfo_ == null ?
+            com.google.cloud.discoveryengine.v1.SearchInfo.getDefaultInstance() : searchInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
      * details related to the event.
@@ -4980,17 +4568,14 @@ public com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBu
      * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.SearchInfo,
-            com.google.cloud.discoveryengine.v1.SearchInfo.Builder,
-            com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1.SearchInfo, com.google.cloud.discoveryengine.v1.SearchInfo.Builder, com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder> 
         getSearchInfoFieldBuilder() {
       if (searchInfoBuilder_ == null) {
-        searchInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.SearchInfo,
-                com.google.cloud.discoveryengine.v1.SearchInfo.Builder,
-                com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder>(
-                getSearchInfo(), getParentForChildren(), isClean());
+        searchInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.SearchInfo, com.google.cloud.discoveryengine.v1.SearchInfo.Builder, com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder>(
+                getSearchInfo(),
+                getParentForChildren(),
+                isClean());
         searchInfo_ = null;
       }
       return searchInfoBuilder_;
@@ -4998,13 +4583,8 @@ public com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBu
 
     private com.google.cloud.discoveryengine.v1.CompletionInfo completionInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.CompletionInfo,
-            com.google.cloud.discoveryengine.v1.CompletionInfo.Builder,
-            com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder>
-        completionInfoBuilder_;
+        com.google.cloud.discoveryengine.v1.CompletionInfo, com.google.cloud.discoveryengine.v1.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder> completionInfoBuilder_;
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5014,15 +4594,12 @@ public com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBu
      * 
* * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * * @return Whether the completionInfo field is set. */ public boolean hasCompletionInfo() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5032,21 +4609,16 @@ public boolean hasCompletionInfo() {
      * 
* * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * * @return The completionInfo. */ public com.google.cloud.discoveryengine.v1.CompletionInfo getCompletionInfo() { if (completionInfoBuilder_ == null) { - return completionInfo_ == null - ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance() - : completionInfo_; + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance() : completionInfo_; } else { return completionInfoBuilder_.getMessage(); } } /** - * - * *
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5071,8 +4643,6 @@ public Builder setCompletionInfo(com.google.cloud.discoveryengine.v1.CompletionI
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5095,8 +4665,6 @@ public Builder setCompletionInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5109,10 +4677,9 @@ public Builder setCompletionInfo(
      */
     public Builder mergeCompletionInfo(com.google.cloud.discoveryengine.v1.CompletionInfo value) {
       if (completionInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00001000) != 0)
-            && completionInfo_ != null
-            && completionInfo_
-                != com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00001000) != 0) &&
+          completionInfo_ != null &&
+          completionInfo_ != com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance()) {
           getCompletionInfoBuilder().mergeFrom(value);
         } else {
           completionInfo_ = value;
@@ -5125,8 +4692,6 @@ public Builder mergeCompletionInfo(com.google.cloud.discoveryengine.v1.Completio
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5148,8 +4713,6 @@ public Builder clearCompletionInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5166,8 +4729,6 @@ public com.google.cloud.discoveryengine.v1.CompletionInfo.Builder getCompletionI
       return getCompletionInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5178,19 +4739,15 @@ public com.google.cloud.discoveryengine.v1.CompletionInfo.Builder getCompletionI
      *
      * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13;
      */
-    public com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder
-        getCompletionInfoOrBuilder() {
+    public com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder getCompletionInfoOrBuilder() {
       if (completionInfoBuilder_ != null) {
         return completionInfoBuilder_.getMessageOrBuilder();
       } else {
-        return completionInfo_ == null
-            ? com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance()
-            : completionInfo_;
+        return completionInfo_ == null ?
+            com.google.cloud.discoveryengine.v1.CompletionInfo.getDefaultInstance() : completionInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5202,17 +4759,14 @@ public com.google.cloud.discoveryengine.v1.CompletionInfo.Builder getCompletionI
      * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.CompletionInfo,
-            com.google.cloud.discoveryengine.v1.CompletionInfo.Builder,
-            com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1.CompletionInfo, com.google.cloud.discoveryengine.v1.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder> 
         getCompletionInfoFieldBuilder() {
       if (completionInfoBuilder_ == null) {
-        completionInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1.CompletionInfo,
-                com.google.cloud.discoveryengine.v1.CompletionInfo.Builder,
-                com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder>(
-                getCompletionInfo(), getParentForChildren(), isClean());
+        completionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1.CompletionInfo, com.google.cloud.discoveryengine.v1.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder>(
+                getCompletionInfo(),
+                getParentForChildren(),
+                isClean());
         completionInfo_ = null;
       }
       return completionInfoBuilder_;
@@ -5220,47 +4774,34 @@ public com.google.cloud.discoveryengine.v1.CompletionInfo.Builder getCompletionI
 
     private com.google.cloud.discoveryengine.v1.TransactionInfo transactionInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1.TransactionInfo,
-            com.google.cloud.discoveryengine.v1.TransactionInfo.Builder,
-            com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder>
-        transactionInfoBuilder_;
+        com.google.cloud.discoveryengine.v1.TransactionInfo, com.google.cloud.discoveryengine.v1.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder> transactionInfoBuilder_;
     /**
-     *
-     *
      * 
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * * @return Whether the transactionInfo field is set. */ public boolean hasTransactionInfo() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * * @return The transactionInfo. */ public com.google.cloud.discoveryengine.v1.TransactionInfo getTransactionInfo() { if (transactionInfoBuilder_ == null) { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() - : transactionInfo_; + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() : transactionInfo_; } else { return transactionInfoBuilder_.getMessage(); } } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5281,8 +4822,6 @@ public Builder setTransactionInfo(com.google.cloud.discoveryengine.v1.Transactio return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5301,8 +4840,6 @@ public Builder setTransactionInfo( return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5311,10 +4848,9 @@ public Builder setTransactionInfo( */ public Builder mergeTransactionInfo(com.google.cloud.discoveryengine.v1.TransactionInfo value) { if (transactionInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && transactionInfo_ != null - && transactionInfo_ - != com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + transactionInfo_ != null && + transactionInfo_ != com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance()) { getTransactionInfoBuilder().mergeFrom(value); } else { transactionInfo_ = value; @@ -5327,8 +4863,6 @@ public Builder mergeTransactionInfo(com.google.cloud.discoveryengine.v1.Transact return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5346,8 +4880,6 @@ public Builder clearTransactionInfo() { return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5360,27 +4892,21 @@ public com.google.cloud.discoveryengine.v1.TransactionInfo.Builder getTransactio return getTransactionInfoFieldBuilder().getBuilder(); } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; */ - public com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder - getTransactionInfoOrBuilder() { + public com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder getTransactionInfoOrBuilder() { if (transactionInfoBuilder_ != null) { return transactionInfoBuilder_.getMessageOrBuilder(); } else { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() - : transactionInfo_; + return transactionInfo_ == null ? + com.google.cloud.discoveryengine.v1.TransactionInfo.getDefaultInstance() : transactionInfo_; } } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5388,17 +4914,14 @@ public com.google.cloud.discoveryengine.v1.TransactionInfo.Builder getTransactio * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TransactionInfo, - com.google.cloud.discoveryengine.v1.TransactionInfo.Builder, - com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder> + com.google.cloud.discoveryengine.v1.TransactionInfo, com.google.cloud.discoveryengine.v1.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder> getTransactionInfoFieldBuilder() { if (transactionInfoBuilder_ == null) { - transactionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.TransactionInfo, - com.google.cloud.discoveryengine.v1.TransactionInfo.Builder, - com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder>( - getTransactionInfo(), getParentForChildren(), isClean()); + transactionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.TransactionInfo, com.google.cloud.discoveryengine.v1.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder>( + getTransactionInfo(), + getParentForChildren(), + isClean()); transactionInfo_ = null; } return transactionInfoBuilder_; @@ -5406,7 +4929,6 @@ public com.google.cloud.discoveryengine.v1.TransactionInfo.Builder getTransactio private com.google.protobuf.LazyStringArrayList tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTagIdsIsMutable() { if (!tagIds_.isModifiable()) { tagIds_ = new com.google.protobuf.LazyStringArrayList(tagIds_); @@ -5414,8 +4936,6 @@ private void ensureTagIdsIsMutable() { bitField0_ |= 0x00004000; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5423,16 +4943,14 @@ private void ensureTagIdsIsMutable() {
      * 
* * repeated string tag_ids = 15; - * * @return A list containing the tagIds. */ - public com.google.protobuf.ProtocolStringList getTagIdsList() { + public com.google.protobuf.ProtocolStringList + getTagIdsList() { tagIds_.makeImmutable(); return tagIds_; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5440,15 +4958,12 @@ public com.google.protobuf.ProtocolStringList getTagIdsList() {
      * 
* * repeated string tag_ids = 15; - * * @return The count of tagIds. */ public int getTagIdsCount() { return tagIds_.size(); } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5456,7 +4971,6 @@ public int getTagIdsCount() {
      * 
* * repeated string tag_ids = 15; - * * @param index The index of the element to return. * @return The tagIds at the given index. */ @@ -5464,8 +4978,6 @@ public java.lang.String getTagIds(int index) { return tagIds_.get(index); } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5473,16 +4985,14 @@ public java.lang.String getTagIds(int index) {
      * 
* * repeated string tag_ids = 15; - * * @param index The index of the value to return. * @return The bytes of the tagIds at the given index. */ - public com.google.protobuf.ByteString getTagIdsBytes(int index) { + public com.google.protobuf.ByteString + getTagIdsBytes(int index) { return tagIds_.getByteString(index); } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5490,15 +5000,13 @@ public com.google.protobuf.ByteString getTagIdsBytes(int index) {
      * 
* * repeated string tag_ids = 15; - * * @param index The index to set the value at. * @param value The tagIds to set. * @return This builder for chaining. */ - public Builder setTagIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTagIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagIdsIsMutable(); tagIds_.set(index, value); bitField0_ |= 0x00004000; @@ -5506,8 +5014,6 @@ public Builder setTagIds(int index, java.lang.String value) { return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5515,14 +5021,12 @@ public Builder setTagIds(int index, java.lang.String value) {
      * 
* * repeated string tag_ids = 15; - * * @param value The tagIds to add. * @return This builder for chaining. */ - public Builder addTagIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagIdsIsMutable(); tagIds_.add(value); bitField0_ |= 0x00004000; @@ -5530,8 +5034,6 @@ public Builder addTagIds(java.lang.String value) { return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5539,20 +5041,19 @@ public Builder addTagIds(java.lang.String value) {
      * 
* * repeated string tag_ids = 15; - * * @param values The tagIds to add. * @return This builder for chaining. */ - public Builder addAllTagIds(java.lang.Iterable values) { + public Builder addAllTagIds( + java.lang.Iterable values) { ensureTagIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagIds_); bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5560,19 +5061,16 @@ public Builder addAllTagIds(java.lang.Iterable values) {
      * 
* * repeated string tag_ids = 15; - * * @return This builder for chaining. */ public Builder clearTagIds() { - tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - ; + tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000);; onChanged(); return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5580,14 +5078,12 @@ public Builder clearTagIds() {
      * 
* * repeated string tag_ids = 15; - * * @param value The bytes of the tagIds to add. * @return This builder for chaining. */ - public Builder addTagIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagIdsIsMutable(); tagIds_.add(value); @@ -5598,7 +5094,6 @@ public Builder addTagIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); @@ -5606,46 +5101,38 @@ private void ensurePromotionIdsIsMutable() { bitField0_ |= 0x00008000; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { promotionIds_.makeImmutable(); return promotionIds_; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -5653,39 +5140,33 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param index The index to set the value at. * @param value The promotionIds to set. * @return This builder for chaining. */ - public Builder setPromotionIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPromotionIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); bitField0_ |= 0x00008000; @@ -5693,22 +5174,18 @@ public Builder setPromotionIds(int index, java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param value The promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.add(value); bitField0_ |= 0x00008000; @@ -5716,61 +5193,53 @@ public Builder addPromotionIds(java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param values The promotionIds to add. * @return This builder for chaining. */ - public Builder addAllPromotionIds(java.lang.Iterable values) { + public Builder addAllPromotionIds( + java.lang.Iterable values) { ensurePromotionIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promotionIds_); bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @return This builder for chaining. */ public Builder clearPromotionIds() { - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - ; + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000);; onChanged(); return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param value The bytes of the promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); @@ -5780,11 +5249,8 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> + java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> attributes_; + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -5792,13 +5258,11 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { } return attributes_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.CustomAttribute> + private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { - attributes_ = - com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -5807,13 +5271,10 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { onChanged(); return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5843,26 +5304,23 @@ public int getAttributesCount() {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } - /** Use {@link #getAttributesMap()} instead. */ + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAttributes() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5892,17 +5350,13 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5932,25 +5386,20 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1.CustomAttribute - getAttributesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1.CustomAttribute defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1.CustomAttribute defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5980,15 +5429,12 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -5996,15 +5442,13 @@ public com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow( } return map.get(key); } - public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00010000); - internalGetMutableAttributes().getMutableMap().clear(); + internalGetMutableAttributes().getMutableMap() + .clear(); return this; } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6034,17 +5478,18 @@ public Builder clearAttributes() {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ - public Builder removeAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAttributes().getMutableMap().remove(key); + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAttributes().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { @@ -6052,8 +5497,6 @@ public Builder removeAttributes(java.lang.String key) { return internalGetMutableAttributes().getMutableMap(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6083,24 +5526,19 @@ public Builder removeAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ public Builder putAttributes( - java.lang.String key, com.google.cloud.discoveryengine.v1.CustomAttribute value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAttributes().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.discoveryengine.v1.CustomAttribute value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); bitField0_ |= 0x00010000; return this; } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6130,60 +5568,46 @@ public Builder putAttributes(
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ public Builder putAllAttributes( - java.util.Map - values) { - internalGetMutableAttributes().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); bitField0_ |= 0x00010000; return this; } private com.google.cloud.discoveryengine.v1.MediaInfo mediaInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.MediaInfo, - com.google.cloud.discoveryengine.v1.MediaInfo.Builder, - com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder> - mediaInfoBuilder_; + com.google.cloud.discoveryengine.v1.MediaInfo, com.google.cloud.discoveryengine.v1.MediaInfo.Builder, com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder> mediaInfoBuilder_; /** - * - * *
      * Media-specific info.
      * 
* * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * * @return Whether the mediaInfo field is set. */ public boolean hasMediaInfo() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
      * Media-specific info.
      * 
* * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * * @return The mediaInfo. */ public com.google.cloud.discoveryengine.v1.MediaInfo getMediaInfo() { if (mediaInfoBuilder_ == null) { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() : mediaInfo_; } else { return mediaInfoBuilder_.getMessage(); } } /** - * - * *
      * Media-specific info.
      * 
@@ -6204,8 +5628,6 @@ public Builder setMediaInfo(com.google.cloud.discoveryengine.v1.MediaInfo value) return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6224,8 +5646,6 @@ public Builder setMediaInfo( return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6234,9 +5654,9 @@ public Builder setMediaInfo( */ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1.MediaInfo value) { if (mediaInfoBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && mediaInfo_ != null - && mediaInfo_ != com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) && + mediaInfo_ != null && + mediaInfo_ != com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance()) { getMediaInfoBuilder().mergeFrom(value); } else { mediaInfo_ = value; @@ -6249,8 +5669,6 @@ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1.MediaInfo valu return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6268,8 +5686,6 @@ public Builder clearMediaInfo() { return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6282,8 +5698,6 @@ public com.google.cloud.discoveryengine.v1.MediaInfo.Builder getMediaInfoBuilder return getMediaInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Media-specific info.
      * 
@@ -6294,14 +5708,11 @@ public com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder getMediaInfoOrBuil if (mediaInfoBuilder_ != null) { return mediaInfoBuilder_.getMessageOrBuilder(); } else { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? + com.google.cloud.discoveryengine.v1.MediaInfo.getDefaultInstance() : mediaInfo_; } } /** - * - * *
      * Media-specific info.
      * 
@@ -6309,24 +5720,21 @@ public com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder getMediaInfoOrBuil * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.MediaInfo, - com.google.cloud.discoveryengine.v1.MediaInfo.Builder, - com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder> + com.google.cloud.discoveryengine.v1.MediaInfo, com.google.cloud.discoveryengine.v1.MediaInfo.Builder, com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder> getMediaInfoFieldBuilder() { if (mediaInfoBuilder_ == null) { - mediaInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.MediaInfo, - com.google.cloud.discoveryengine.v1.MediaInfo.Builder, - com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder>( - getMediaInfo(), getParentForChildren(), isClean()); + mediaInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.MediaInfo, com.google.cloud.discoveryengine.v1.MediaInfo.Builder, com.google.cloud.discoveryengine.v1.MediaInfoOrBuilder>( + getMediaInfo(), + getParentForChildren(), + isClean()); mediaInfo_ = null; } return mediaInfoBuilder_; } - @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); } @@ -6336,12 +5744,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UserEvent) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UserEvent) private static final com.google.cloud.discoveryengine.v1.UserEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UserEvent(); } @@ -6350,27 +5758,27 @@ public static com.google.cloud.discoveryengine.v1.UserEvent getDefaultInstance() 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6385,4 +5793,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.UserEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java similarity index 93% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java index ab9ee33e4f99..ddadc79b8b75 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event.proto package com.google.cloud.discoveryengine.v1; -public interface UserEventOrBuilder - extends +public interface UserEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UserEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. User event type. Allowed values are:
    *
@@ -49,13 +31,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:
    *
@@ -79,14 +58,12 @@ 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. A unique identifier for tracking visitors.
    *
@@ -108,13 +85,10 @@ public interface UserEventOrBuilder
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * Required. A unique identifier for tracking visitors.
    *
@@ -136,14 +110,12 @@ public interface UserEventOrBuilder
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -151,13 +123,10 @@ public interface UserEventOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -165,13 +134,10 @@ public interface UserEventOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents]
@@ -183,32 +149,24 @@ public interface UserEventOrBuilder
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * * @return The userInfo. */ com.google.cloud.discoveryengine.v1.UserInfo getUserInfo(); /** - * - * *
    * Information about the end user.
    * 
@@ -218,8 +176,6 @@ public interface UserEventOrBuilder com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder(); /** - * - * *
    * Should set to true if the request is made directly from the end user, in
    * which case the
@@ -235,14 +191,11 @@ public interface UserEventOrBuilder
    * 
* * bool direct_user_request = 5; - * * @return The directUserRequest. */ boolean getDirectUserRequest(); /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -257,13 +210,10 @@ public interface UserEventOrBuilder
    * 
* * string session_id = 6; - * * @return The sessionId. */ java.lang.String getSessionId(); /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -278,40 +228,32 @@ public interface UserEventOrBuilder
    * 
* * string session_id = 6; - * * @return The bytes for sessionId. */ - com.google.protobuf.ByteString getSessionIdBytes(); + com.google.protobuf.ByteString + getSessionIdBytes(); /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * * @return Whether the pageInfo field is set. */ boolean hasPageInfo(); /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * * @return The pageInfo. */ com.google.cloud.discoveryengine.v1.PageInfo getPageInfo(); /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
@@ -322,8 +264,6 @@ public interface UserEventOrBuilder
   com.google.cloud.discoveryengine.v1.PageInfoOrBuilder getPageInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -347,13 +287,10 @@ public interface UserEventOrBuilder
    * 
* * string attribution_token = 8; - * * @return The attributionToken. */ java.lang.String getAttributionToken(); /** - * - * *
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -377,14 +314,12 @@ public interface UserEventOrBuilder
    * 
* * string attribution_token = 8; - * * @return The bytes for attributionToken. */ - com.google.protobuf.ByteString getAttributionTokenBytes(); + com.google.protobuf.ByteString + getAttributionTokenBytes(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -405,13 +340,10 @@ public interface UserEventOrBuilder
    * 
* * string filter = 9; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -432,14 +364,12 @@ public interface UserEventOrBuilder
    * 
* * string filter = 9; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -463,10 +393,9 @@ public interface UserEventOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
    */
-  java.util.List getDocumentsList();
+  java.util.List 
+      getDocumentsList();
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -492,8 +421,6 @@ public interface UserEventOrBuilder
    */
   com.google.cloud.discoveryengine.v1.DocumentInfo getDocuments(int index);
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -519,8 +446,6 @@ public interface UserEventOrBuilder
    */
   int getDocumentsCount();
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -544,11 +469,9 @@ public interface UserEventOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
    */
-  java.util.List
+  java.util.List 
       getDocumentsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1.Document]s associated
    * with this user event.
@@ -572,35 +495,28 @@ public interface UserEventOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10;
    */
-  com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrBuilder(int index);
+  com.google.cloud.discoveryengine.v1.DocumentInfoOrBuilder getDocumentsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * * @return Whether the panel field is set. */ boolean hasPanel(); /** - * - * *
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * * @return The panel. */ com.google.cloud.discoveryengine.v1.PanelInfo getPanel(); /** - * - * *
    * Panel metadata associated with this user event.
    * 
@@ -610,8 +526,6 @@ public interface UserEventOrBuilder com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelOrBuilder(); /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
    * details related to the event.
@@ -620,13 +534,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * * @return Whether the searchInfo field is set. */ boolean hasSearchInfo(); /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
    * details related to the event.
@@ -635,13 +546,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * * @return The searchInfo. */ com.google.cloud.discoveryengine.v1.SearchInfo getSearchInfo(); /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
    * details related to the event.
@@ -654,8 +562,6 @@ public interface UserEventOrBuilder
   com.google.cloud.discoveryengine.v1.SearchInfoOrBuilder getSearchInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
    * details related to the event.
@@ -665,13 +571,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * * @return Whether the completionInfo field is set. */ boolean hasCompletionInfo(); /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
    * details related to the event.
@@ -681,13 +584,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * * @return The completionInfo. */ com.google.cloud.discoveryengine.v1.CompletionInfo getCompletionInfo(); /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery]
    * details related to the event.
@@ -701,32 +601,24 @@ public interface UserEventOrBuilder
   com.google.cloud.discoveryengine.v1.CompletionInfoOrBuilder getCompletionInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * * @return Whether the transactionInfo field is set. */ boolean hasTransactionInfo(); /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * * @return The transactionInfo. */ com.google.cloud.discoveryengine.v1.TransactionInfo getTransactionInfo(); /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
@@ -736,8 +628,6 @@ public interface UserEventOrBuilder com.google.cloud.discoveryengine.v1.TransactionInfoOrBuilder getTransactionInfoOrBuilder(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -745,13 +635,11 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @return A list containing the tagIds. */ - java.util.List getTagIdsList(); + java.util.List + getTagIdsList(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -759,13 +647,10 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @return The count of tagIds. */ int getTagIdsCount(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -773,14 +658,11 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the element to return. * @return The tagIds at the given index. */ java.lang.String getTagIds(int index); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -788,70 +670,58 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the value to return. * @return The bytes of the tagIds at the given index. */ - com.google.protobuf.ByteString getTagIdsBytes(int index); + com.google.protobuf.ByteString + getTagIdsBytes(int index); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return A list containing the promotionIds. */ - java.util.List getPromotionIdsList(); + java.util.List + getPromotionIdsList(); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return The count of promotionIds. */ int getPromotionIdsCount(); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ java.lang.String getPromotionIds(int index); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - com.google.protobuf.ByteString getPromotionIdsBytes(int index); + com.google.protobuf.ByteString + getPromotionIdsBytes(int index); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -881,13 +751,10 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ int getAttributesCount(); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -917,17 +784,17 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. */ - boolean containsAttributes(java.lang.String key); - /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map - getAttributes(); + getAttributes(); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -957,14 +824,11 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ java.util.Map - getAttributesMap(); + getAttributesMap(); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -994,17 +858,14 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ /* nullable */ - com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( +com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.discoveryengine.v1.CustomAttribute defaultValue); +com.google.cloud.discoveryengine.v1.CustomAttribute defaultValue); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1034,38 +895,30 @@ com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault(
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; */ - com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow(java.lang.String key); + com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow( + java.lang.String key); /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * * @return Whether the mediaInfo field is set. */ boolean hasMediaInfo(); /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * * @return The mediaInfo. */ com.google.cloud.discoveryengine.v1.MediaInfo getMediaInfo(); /** - * - * *
    * Media-specific info.
    * 
diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java new file mode 100644 index 000000000000..de61a35ff8f1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java @@ -0,0 +1,210 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/user_event.proto + +package com.google.cloud.discoveryengine.v1; + +public final class UserEventProto { + private UserEventProto() {} + 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_discoveryengine_v1_UserEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/discoveryengine/v1/user_e" + + "vent.proto\022\037google.cloud.discoveryengine" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032,google/cloud/di" + + "scoveryengine/v1/common.proto\032\036google/pr" + + "otobuf/duration.proto\032\037google/protobuf/t" + + "imestamp.proto\"\275\007\n\tUserEvent\022\030\n\nevent_ty" + + "pe\030\001 \001(\tB\004\342A\001\002\022\034\n\016user_pseudo_id\030\002 \001(\tB\004" + + "\342A\001\002\022.\n\nevent_time\030\003 \001(\0132\032.google.protob" + + "uf.Timestamp\022<\n\tuser_info\030\004 \001(\0132).google" + + ".cloud.discoveryengine.v1.UserInfo\022\033\n\023di" + + "rect_user_request\030\005 \001(\010\022\022\n\nsession_id\030\006 " + + "\001(\t\022<\n\tpage_info\030\007 \001(\0132).google.cloud.di" + + "scoveryengine.v1.PageInfo\022\031\n\021attribution" + + "_token\030\010 \001(\t\022\016\n\006filter\030\t \001(\t\022@\n\tdocument" + + "s\030\n \003(\0132-.google.cloud.discoveryengine.v" + + "1.DocumentInfo\0229\n\005panel\030\013 \001(\0132*.google.c" + + "loud.discoveryengine.v1.PanelInfo\022@\n\013sea" + + "rch_info\030\014 \001(\0132+.google.cloud.discoverye" + + "ngine.v1.SearchInfo\022H\n\017completion_info\030\r" + + " \001(\0132/.google.cloud.discoveryengine.v1.C" + + "ompletionInfo\022J\n\020transaction_info\030\016 \001(\0132" + + "0.google.cloud.discoveryengine.v1.Transa" + + "ctionInfo\022\017\n\007tag_ids\030\017 \003(\t\022\025\n\rpromotion_" + + "ids\030\020 \003(\t\022N\n\nattributes\030\021 \003(\0132:.google.c" + + "loud.discoveryengine.v1.UserEvent.Attrib" + + "utesEntry\022>\n\nmedia_info\030\022 \001(\0132*.google.c" + + "loud.discoveryengine.v1.MediaInfo\032c\n\017Att" + + "ributesEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\013" + + "20.google.cloud.discoveryengine.v1.Custo" + + "mAttribute:\0028\001\"Y\n\010PageInfo\022\023\n\013pageview_i" + + "d\030\001 \001(\t\022\025\n\rpage_category\030\002 \001(\t\022\013\n\003uri\030\003 " + + "\001(\t\022\024\n\014referrer_uri\030\004 \001(\t\"T\n\nSearchInfo\022" + + "\024\n\014search_query\030\001 \001(\t\022\020\n\010order_by\030\002 \001(\t\022" + + "\023\n\006offset\030\003 \001(\005H\000\210\001\001B\t\n\007_offset\"H\n\016Compl" + + "etionInfo\022\033\n\023selected_suggestion\030\001 \001(\t\022\031" + + "\n\021selected_position\030\002 \001(\005\"\313\001\n\017Transactio" + + "nInfo\022\030\n\005value\030\001 \001(\002B\004\342A\001\002H\000\210\001\001\022\026\n\010curre" + + "ncy\030\002 \001(\tB\004\342A\001\002\022\026\n\016transaction_id\030\003 \001(\t\022" + + "\020\n\003tax\030\004 \001(\002H\001\210\001\001\022\021\n\004cost\030\005 \001(\002H\002\210\001\001\022\033\n\016" + + "discount_value\030\006 \001(\002H\003\210\001\001B\010\n\006_valueB\006\n\004_" + + "taxB\007\n\005_costB\021\n\017_discount_value\"\273\001\n\014Docu" + + "mentInfo\022\014\n\002id\030\001 \001(\tH\000\022<\n\004name\030\002 \001(\tB,\372A" + + ")\n\'discoveryengine.googleapis.com/Docume" + + "ntH\000\022\r\n\003uri\030\006 \001(\tH\000\022\025\n\010quantity\030\003 \001(\005H\001\210" + + "\001\001\022\025\n\rpromotion_ids\030\004 \003(\tB\025\n\023document_de" + + "scriptorB\013\n\t_quantity\"\225\001\n\tPanelInfo\022\026\n\010p" + + "anel_id\030\002 \001(\tB\004\342A\001\002\022\024\n\014display_name\030\003 \001(" + + "\t\022\033\n\016panel_position\030\004 \001(\005H\000\210\001\001\022\031\n\014total_" + + "panels\030\005 \001(\005H\001\210\001\001B\021\n\017_panel_positionB\017\n\r" + + "_total_panels\"\215\001\n\tMediaInfo\022:\n\027media_pro" + + "gress_duration\030\001 \001(\0132\031.google.protobuf.D" + + "uration\022&\n\031media_progress_percentage\030\002 \001" + + "(\002H\000\210\001\001B\034\n\032_media_progress_percentageB\201\002" + + "\n#com.google.cloud.discoveryengine.v1B\016U" + + "serEventProtoP\001ZMcloud.google.com/go/dis" + + "coveryengine/apiv1/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Googl" + + "e.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clou" + + "d\\DiscoveryEngine\\V1\352\002\"Google::Cloud::Di" + + "scoveryEngine::V1b\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.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_UserEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor, + new java.lang.String[] { "EventType", "UserPseudoId", "EventTime", "UserInfo", "DirectUserRequest", "SessionId", "PageInfo", "AttributionToken", "Filter", "Documents", "Panel", "SearchInfo", "CompletionInfo", "TransactionInfo", "TagIds", "PromotionIds", "Attributes", "MediaInfo", }); + internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_PageInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_PageInfo_descriptor, + new java.lang.String[] { "PageviewId", "PageCategory", "Uri", "ReferrerUri", }); + internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1_SearchInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchInfo_descriptor, + new java.lang.String[] { "SearchQuery", "OrderBy", "Offset", "Offset", }); + internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1_CompletionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CompletionInfo_descriptor, + new java.lang.String[] { "SelectedSuggestion", "SelectedPosition", }); + internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1_TransactionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_TransactionInfo_descriptor, + new java.lang.String[] { "Value", "Currency", "TransactionId", "Tax", "Cost", "DiscountValue", "Value", "Tax", "Cost", "DiscountValue", }); + internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1_DocumentInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DocumentInfo_descriptor, + new java.lang.String[] { "Id", "Name", "Uri", "Quantity", "PromotionIds", "DocumentDescriptor", "Quantity", }); + internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1_PanelInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_PanelInfo_descriptor, + new java.lang.String[] { "PanelId", "DisplayName", "PanelPosition", "TotalPanels", "PanelPosition", "TotalPanels", }); + internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1_MediaInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_MediaInfo_descriptor, + new java.lang.String[] { "MediaProgressDuration", "MediaProgressPercentage", "MediaProgressPercentage", }); + 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.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java new file mode 100644 index 000000000000..824b522dd91e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java @@ -0,0 +1,134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/user_event_service.proto + +package com.google.cloud.discoveryengine.v1; + +public final class UserEventServiceProto { + private UserEventServiceProto() {} + 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_discoveryengine_v1_WriteUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1/user_e" + + "vent_service.proto\022\037google.cloud.discove" + + "ryengine.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/httpbody" + + ".proto\032\031google/api/resource.proto\0323googl" + + "e/cloud/discoveryengine/v1/import_config" + + ".proto\0320google/cloud/discoveryengine/v1/" + + "user_event.proto\032#google/longrunning/ope" + + "rations.proto\"\264\001\n\025WriteUserEventRequest\022" + + "A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengin" + + "e.googleapis.com/DataStore\022I\n\nuser_event" + + "\030\002 \001(\0132*.google.cloud.discoveryengine.v1" + + ".UserEventB\004\342A\001\002H\000\210\001\001B\r\n\013_user_event\"\252\001\n" + + "\027CollectUserEventRequest\022A\n\006parent\030\001 \001(\t" + + "B1\342A\001\002\372A*\n(discoveryengine.googleapis.co" + + "m/DataStore\022\030\n\nuser_event\030\002 \001(\tB\004\342A\001\002\022\020\n" + + "\003uri\030\003 \001(\tH\000\210\001\001\022\020\n\003ets\030\004 \001(\003H\001\210\001\001B\006\n\004_ur" + + "iB\006\n\004_ets2\253\010\n\020UserEventService\022\254\002\n\016Write" + + "UserEvent\0226.google.cloud.discoveryengine" + + ".v1.WriteUserEventRequest\032*.google.cloud" + + ".discoveryengine.v1.UserEvent\"\265\001\202\323\344\223\002\256\001\"" + + "A/v1/{parent=projects/*/locations/*/data" + + "Stores/*}/userEvents:write:\nuser_eventZ]" + + "\"O/v1/{parent=projects/*/locations/*/col" + + "lections/*/dataStores/*}/userEvents:writ" + + "e:\nuser_event\022\206\002\n\020CollectUserEvent\0228.goo" + + "gle.cloud.discoveryengine.v1.CollectUser" + + "EventRequest\032\024.google.api.HttpBody\"\241\001\202\323\344" + + "\223\002\232\001\022C/v1/{parent=projects/*/locations/*" + + "/dataStores/*}/userEvents:collectZS\022Q/v1" + + "/{parent=projects/*/locations/*/collecti" + + "ons/*/dataStores/*}/userEvents:collect\022\212" + + "\003\n\020ImportUserEvents\0228.google.cloud.disco" + + "veryengine.v1.ImportUserEventsRequest\032\035." + + "google.longrunning.Operation\"\234\002\312At\n8goog" + + "le.cloud.discoveryengine.v1.ImportUserEv" + + "entsResponse\0228google.cloud.discoveryengi" + + "ne.v1.ImportUserEventsMetadata\202\323\344\223\002\236\001\"B/" + + "v1/{parent=projects/*/locations/*/dataSt" + + "ores/*}/userEvents:import:\001*ZU\"P/v1/{par" + + "ent=projects/*/locations/*/collections/*" + + "/dataStores/*}/userEvents:import:\001*\032R\312A\036" + + "discoveryengine.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\210\002\n#com.google.cloud.discoveryengine.v1B" + + "\025UserEventServiceProtoP\001ZMcloud.google.c" + + "om/go/discoveryengine/apiv1/discoveryeng" + + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" + + "E\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::" + + "Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.HttpBodyProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor, + new java.lang.String[] { "Parent", "UserEvent", "UserEvent", }); + internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CollectUserEventRequest_descriptor, + new java.lang.String[] { "Parent", "UserEvent", "Uri", "Ets", "Uri", "Ets", }); + 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.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.HttpBodyProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.UserEventProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java similarity index 74% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java index 7f9b39f4dba6..47bf9ccefac9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/common.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Information of an end user.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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() { userId_ = ""; userAgent_ = ""; @@ -44,32 +26,28 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.UserInfo.class, - com.google.cloud.discoveryengine.v1.UserInfo.Builder.class); + com.google.cloud.discoveryengine.v1.UserInfo.class, com.google.cloud.discoveryengine.v1.UserInfo.Builder.class); } public static final int USER_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object userId_ = ""; /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -85,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string user_id = 1; - * * @return The userId. */ @java.lang.Override @@ -94,15 +71,14 @@ 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; } } /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -118,15 +94,16 @@ public java.lang.String getUserId() {
    * 
* * string user_id = 1; - * * @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 { @@ -135,12 +112,9 @@ public com.google.protobuf.ByteString getUserIdBytes() { } public static final int USER_AGENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -156,7 +130,6 @@ public com.google.protobuf.ByteString getUserIdBytes() {
    * 
* * string user_agent = 2; - * * @return The userAgent. */ @java.lang.Override @@ -165,15 +138,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; } } /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -189,15 +161,16 @@ public java.lang.String getUserAgent() {
    * 
* * string user_agent = 2; - * * @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 { @@ -206,7 +179,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +190,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(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_); } @@ -248,16 +221,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.discoveryengine.v1.UserInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.UserInfo other = - (com.google.cloud.discoveryengine.v1.UserInfo) obj; + com.google.cloud.discoveryengine.v1.UserInfo other = (com.google.cloud.discoveryengine.v1.UserInfo) obj; - if (!getUserId().equals(other.getUserId())) return false; - if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUserAgent() + .equals(other.getUserAgent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,136 +252,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1.UserInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1.UserInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.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 an end user.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.UserInfo) com.google.cloud.discoveryengine.v1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.UserInfo.class, - com.google.cloud.discoveryengine.v1.UserInfo.Builder.class); + com.google.cloud.discoveryengine.v1.UserInfo.class, com.google.cloud.discoveryengine.v1.UserInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.UserInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.CommonProto - .internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto.internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; } @java.lang.Override @@ -439,11 +409,8 @@ public com.google.cloud.discoveryengine.v1.UserInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.UserInfo buildPartial() { - com.google.cloud.discoveryengine.v1.UserInfo result = - new com.google.cloud.discoveryengine.v1.UserInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.UserInfo result = new com.google.cloud.discoveryengine.v1.UserInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -462,39 +429,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserInfo result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.UserInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1.UserInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.UserInfo)other); } else { super.mergeFrom(other); return this; @@ -539,25 +505,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - userId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - userAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,13 +530,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object userId_ = ""; /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -589,13 +549,13 @@ public Builder mergeFrom(
      * 
* * string user_id = 1; - * * @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; @@ -604,8 +564,6 @@ public java.lang.String getUserId() { } } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -621,14 +579,15 @@ public java.lang.String getUserId() {
      * 
* * string user_id = 1; - * * @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 { @@ -636,8 +595,6 @@ public com.google.protobuf.ByteString getUserIdBytes() { } } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -653,22 +610,18 @@ public com.google.protobuf.ByteString getUserIdBytes() {
      * 
* * string user_id = 1; - * * @param value The userId to set. * @return This builder for chaining. */ - public Builder setUserId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -684,7 +637,6 @@ public Builder setUserId(java.lang.String value) {
      * 
* * string user_id = 1; - * * @return This builder for chaining. */ public Builder clearUserId() { @@ -694,8 +646,6 @@ public Builder clearUserId() { return this; } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -711,14 +661,12 @@ public Builder clearUserId() {
      * 
* * string user_id = 1; - * * @param value The bytes for userId to set. * @return This builder for chaining. */ - public Builder setUserIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; bitField0_ |= 0x00000001; @@ -728,8 +676,6 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object userAgent_ = ""; /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -745,13 +691,13 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string user_agent = 2; - * * @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; @@ -760,8 +706,6 @@ public java.lang.String getUserAgent() { } } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -777,14 +721,15 @@ public java.lang.String getUserAgent() {
      * 
* * string user_agent = 2; - * * @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 { @@ -792,8 +737,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -809,22 +752,18 @@ public com.google.protobuf.ByteString getUserAgentBytes() {
      * 
* * string user_agent = 2; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserAgent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userAgent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -840,7 +779,6 @@ public Builder setUserAgent(java.lang.String value) {
      * 
* * string user_agent = 2; - * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -850,8 +788,6 @@ public Builder clearUserAgent() { return this; } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -867,23 +803,21 @@ public Builder clearUserAgent() {
      * 
* * string user_agent = 2; - * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserAgentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000002; 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); } @@ -893,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UserInfo) private static final com.google.cloud.discoveryengine.v1.UserInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UserInfo(); } @@ -907,27 +841,27 @@ public static com.google.cloud.discoveryengine.v1.UserInfo getDefaultInstance() 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -942,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java similarity index 78% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java index ea432818077d..a40f1decc743 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/common.proto package com.google.cloud.discoveryengine.v1; -public interface UserInfoOrBuilder - extends +public interface UserInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UserInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -41,13 +23,10 @@ public interface UserInfoOrBuilder
    * 
* * string user_id = 1; - * * @return The userId. */ java.lang.String getUserId(); /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -63,14 +42,12 @@ public interface UserInfoOrBuilder
    * 
* * string user_id = 1; - * * @return The bytes for userId. */ - com.google.protobuf.ByteString getUserIdBytes(); + com.google.protobuf.ByteString + getUserIdBytes(); /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -86,13 +63,10 @@ public interface UserInfoOrBuilder
    * 
* * string user_agent = 2; - * * @return The userAgent. */ java.lang.String getUserAgent(); /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -108,8 +82,8 @@ public interface UserInfoOrBuilder
    * 
* * string user_agent = 2; - * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString getUserAgentBytes(); + com.google.protobuf.ByteString + getUserAgentBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java similarity index 61% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java index 2710e4bbb20d..c528619e7ae6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1/user_event_service.proto package com.google.cloud.discoveryengine.v1; /** - * - * *
  * Request message for WriteUserEvent method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.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.discoveryengine.v1.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(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.WriteUserEventRequest.class, - com.google.cloud.discoveryengine.v1.WriteUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1.WriteUserEventRequest.class, com.google.cloud.discoveryengine.v1.WriteUserEventRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -87,32 +62,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 DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -123,16 +96,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.UserEvent userEvent_; /** - * - * *
    * Required. User event to write.
    * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ @java.lang.Override @@ -140,44 +108,30 @@ public boolean hasUserEvent() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. User event to write.
    * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserEvent getUserEvent() { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() : userEvent_; } /** - * - * *
    * Required. User event to write.
    * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventOrBuilder() { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() : userEvent_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +143,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_); } @@ -209,7 +164,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUserEvent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,18 +175,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.discoveryengine.v1.WriteUserEventRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.WriteUserEventRequest other = - (com.google.cloud.discoveryengine.v1.WriteUserEventRequest) obj; + com.google.cloud.discoveryengine.v1.WriteUserEventRequest other = (com.google.cloud.discoveryengine.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,127 +212,119 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.WriteUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.WriteUserEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.WriteUserEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.WriteUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.WriteUserEventRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1.WriteUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1.WriteUserEventRequest 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.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.WriteUserEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.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.discoveryengine.v1.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.discoveryengine.v1.WriteUserEventRequest) com.google.cloud.discoveryengine.v1.WriteUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.WriteUserEventRequest.class, - com.google.cloud.discoveryengine.v1.WriteUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1.WriteUserEventRequest.class, com.google.cloud.discoveryengine.v1.WriteUserEventRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1.WriteUserEventRequest.newBuilder() @@ -383,17 +332,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) { getUserEventFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1_WriteUserEventRequest_descriptor; } @java.lang.Override @@ -429,11 +378,8 @@ public com.google.cloud.discoveryengine.v1.WriteUserEventRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1.WriteUserEventRequest buildPartial() { - com.google.cloud.discoveryengine.v1.WriteUserEventRequest result = - new com.google.cloud.discoveryengine.v1.WriteUserEventRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1.WriteUserEventRequest result = new com.google.cloud.discoveryengine.v1.WriteUserEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -445,7 +391,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.WriteUserEventReq } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.userEvent_ = userEventBuilder_ == null ? userEvent_ : userEventBuilder_.build(); + result.userEvent_ = userEventBuilder_ == null + ? userEvent_ + : userEventBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -455,39 +403,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.WriteUserEventReq 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.discoveryengine.v1.WriteUserEventRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1.WriteUserEventRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1.WriteUserEventRequest)other); } else { super.mergeFrom(other); return this; @@ -495,8 +442,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WriteUserEventRequest other) { - if (other == com.google.cloud.discoveryengine.v1.WriteUserEventRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1.WriteUserEventRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -531,25 +477,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUserEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUserEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,28 +504,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -589,24 +529,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -614,41 +551,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -658,24 +584,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,58 +605,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserEvent, - com.google.cloud.discoveryengine.v1.UserEvent.Builder, - com.google.cloud.discoveryengine.v1.UserEventOrBuilder> - userEventBuilder_; + com.google.cloud.discoveryengine.v1.UserEvent, com.google.cloud.discoveryengine.v1.UserEvent.Builder, com.google.cloud.discoveryengine.v1.UserEventOrBuilder> userEventBuilder_; /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ public com.google.cloud.discoveryengine.v1.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() : userEvent_; } else { return userEventBuilder_.getMessage(); } } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent(com.google.cloud.discoveryengine.v1.UserEvent value) { if (userEventBuilder_ == null) { @@ -752,15 +653,11 @@ public Builder setUserEvent(com.google.cloud.discoveryengine.v1.UserEvent value) return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent( com.google.cloud.discoveryengine.v1.UserEvent.Builder builderForValue) { @@ -774,21 +671,17 @@ public Builder setUserEvent( return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1.UserEvent value) { if (userEventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && userEvent_ != null - && userEvent_ != com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + userEvent_ != null && + userEvent_ != com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance()) { getUserEventBuilder().mergeFrom(value); } else { userEvent_ = value; @@ -801,15 +694,11 @@ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1.UserEvent valu return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvent() { bitField0_ = (bitField0_ & ~0x00000002); @@ -822,15 +711,11 @@ public Builder clearUserEvent() { return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.UserEvent.Builder getUserEventBuilder() { bitField0_ |= 0x00000002; @@ -838,55 +723,43 @@ public com.google.cloud.discoveryengine.v1.UserEvent.Builder getUserEventBuilder return getUserEventFieldBuilder().getBuilder(); } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? + com.google.cloud.discoveryengine.v1.UserEvent.getDefaultInstance() : userEvent_; } } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserEvent, - com.google.cloud.discoveryengine.v1.UserEvent.Builder, - com.google.cloud.discoveryengine.v1.UserEventOrBuilder> + com.google.cloud.discoveryengine.v1.UserEvent, com.google.cloud.discoveryengine.v1.UserEvent.Builder, com.google.cloud.discoveryengine.v1.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1.UserEvent, - com.google.cloud.discoveryengine.v1.UserEvent.Builder, - com.google.cloud.discoveryengine.v1.UserEventOrBuilder>( - getUserEvent(), getParentForChildren(), isClean()); + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1.UserEvent, com.google.cloud.discoveryengine.v1.UserEvent.Builder, com.google.cloud.discoveryengine.v1.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); } @@ -896,12 +769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WriteUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WriteUserEventRequest) private static final com.google.cloud.discoveryengine.v1.WriteUserEventRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WriteUserEventRequest(); } @@ -910,27 +783,27 @@ public static com.google.cloud.discoveryengine.v1.WriteUserEventRequest getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +818,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1.WriteUserEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java new file mode 100644 index 000000000000..45350588de58 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WriteUserEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1/user_event_service.proto + +package com.google.cloud.discoveryengine.v1; + +public interface WriteUserEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WriteUserEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + boolean hasUserEvent(); + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + com.google.cloud.discoveryengine.v1.UserEvent getUserEvent(); + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1.UserEventOrBuilder getUserEventOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto b/owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto rename to owl-bot-staging/java-discoveryengine/v1/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/AsyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/AsyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/AsyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/AsyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/SyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/SyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/completequery/SyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservicesettings/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservicesettings/completequery/SyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservicesettings/completequery/SyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservicesettings/completequery/SyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/AsyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/AsyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/AsyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/AsyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/AsyncCreateConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/AsyncCreateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/AsyncCreateConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/AsyncCreateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/AsyncGetConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/AsyncGetConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/AsyncGetConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/AsyncGetConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/getconversation/SyncGetConversationString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversations.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversations.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversations.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversations.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversations.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversations.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversations.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversations.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/listconversations/SyncListConversationsString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/AsyncCreateDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/AsyncCreateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/AsyncCreateDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/AsyncCreateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/AsyncDeleteDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/AsyncDeleteDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/AsyncDeleteDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/AsyncDeleteDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/deletedocument/SyncDeleteDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/AsyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/AsyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/AsyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/AsyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentDocumentname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/getdocument/SyncGetDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocuments.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocuments.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocumentsLRO.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocumentsLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocumentsLRO.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/AsyncImportDocumentsLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/SyncImportDocuments.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/SyncImportDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/SyncImportDocuments.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/importdocuments/SyncImportDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocuments.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocuments.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocumentsPaged.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocumentsPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocumentsPaged.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/AsyncListDocumentsPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocuments.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocuments.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsBranchname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsBranchname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsBranchname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsBranchname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/listdocuments/SyncListDocumentsString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocuments.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocuments.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/SyncPurgeDocuments.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/SyncPurgeDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/SyncPurgeDocuments.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/purgedocuments/SyncPurgeDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/AsyncUpdateDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/AsyncUpdateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/AsyncUpdateDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/AsyncUpdateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/SyncUpdateDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/SyncUpdateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/SyncUpdateDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservice/updatedocument/SyncUpdateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservicesettings/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservicesettings/getdocument/SyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservicesettings/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/documentservicesettings/getdocument/SyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchemaLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchemaLRO.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/AsyncCreateSchemaLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/AsyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/AsyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/AsyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/AsyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/getschema/SyncGetSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemas.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemas.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemas.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemas.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemasPaged.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemasPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemasPaged.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/AsyncListSchemasPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemas.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemas.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemas.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemas.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasDatastorename.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasDatastorename.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasDatastorename.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasDatastorename.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasString.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasString.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/listschemas/SyncListSchemasString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchemaLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchemaLRO.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/AsyncUpdateSchemaLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/SyncUpdateSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/SyncUpdateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/SyncUpdateSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservice/updateschema/SyncUpdateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservicesettings/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservicesettings/getschema/SyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservicesettings/getschema/SyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/schemaservicesettings/getschema/SyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservicesettings/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservicesettings/search/SyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservicesettings/search/SyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservicesettings/search/SyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/documentservicestubsettings/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/documentservicestubsettings/getdocument/SyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/documentservicestubsettings/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/documentservicestubsettings/getdocument/SyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/schemaservicestubsettings/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/schemaservicestubsettings/getschema/SyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/schemaservicestubsettings/getschema/SyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/schemaservicestubsettings/getschema/SyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/searchservicestubsettings/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/searchservicestubsettings/search/SyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/searchservicestubsettings/search/SyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/searchservicestubsettings/search/SyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/AsyncCollectUserEvent.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/AsyncCollectUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/AsyncCollectUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/AsyncCollectUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/SyncCollectUserEvent.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/SyncCollectUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/SyncCollectUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/collectuserevent/SyncCollectUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEvents.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEvents.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEvents.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEvents.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEventsLRO.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEventsLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEventsLRO.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/AsyncImportUserEventsLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/SyncImportUserEvents.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/SyncImportUserEvents.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/SyncImportUserEvents.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/importuserevents/SyncImportUserEvents.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/AsyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/AsyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/AsyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/AsyncWriteUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/SyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservice/writeuserevent/SyncWriteUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1/samples/snippets/generated/com/google/cloud/discoveryengine/v1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java new file mode 100644 index 000000000000..0c20f2a232ab --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java @@ -0,0 +1,281 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for Auto-Completion. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+ *   CompleteQueryRequest request =
+ *       CompleteQueryRequest.newBuilder()
+ *           .setDataStore(
+ *               DataStoreName.ofProjectLocationDataStoreName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ *                   .toString())
+ *           .setQuery("query107944136")
+ *           .setQueryModel("queryModel-184930495")
+ *           .setUserPseudoId("userPseudoId-1155274652")
+ *           .setIncludeTailSuggestions(true)
+ *           .build();
+ *   CompleteQueryResponse response = completionServiceClient.completeQuery(request);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+   *   CompleteQueryRequest request =
+   *       CompleteQueryRequest.newBuilder()
+   *           .setDataStore(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setQueryModel("queryModel-184930495")
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setIncludeTailSuggestions(true)
+   *           .build();
+   *   CompleteQueryResponse response = completionServiceClient.completeQuery(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) { + return completeQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Completes the specified user input with keyword suggestions. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+   *   CompleteQueryRequest request =
+   *       CompleteQueryRequest.newBuilder()
+   *           .setDataStore(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setQueryModel("queryModel-184930495")
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setIncludeTailSuggestions(true)
+   *           .build();
+   *   ApiFuture future =
+   *       completionServiceClient.completeQueryCallable().futureCall(request);
+   *   // Do something.
+   *   CompleteQueryResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable completeQueryCallable() { + return stub.completeQueryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java new file mode 100644 index 000000000000..65b9e4fc1576 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java @@ -0,0 +1,209 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CompletionServiceClient}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to completeQuery. */ + public UnaryCallSettings.Builder + completeQuerySettings() { + return getStubSettingsBuilder().completeQuerySettings(); + } + + @Override + public CompletionServiceSettings build() throws IOException { + return new CompletionServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java new file mode 100644 index 000000000000..275691b6c8e6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java @@ -0,0 +1,1193 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.ConversationalSearchServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.ConversationalSearchServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for conversational search. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+ *     ConversationalSearchServiceClient.create()) {
+ *   ConversationName name =
+ *       ConversationName.ofProjectLocationDataStoreConversationName(
+ *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]");
+ *   TextInput query = TextInput.newBuilder().build();
+ *   ConverseConversationResponse response =
+ *       conversationalSearchServiceClient.converseConversation(name, query);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ConversationName name =
+   *       ConversationName.ofProjectLocationDataStoreConversationName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]");
+   *   TextInput query = TextInput.newBuilder().build();
+   *   ConverseConversationResponse response =
+   *       conversationalSearchServiceClient.converseConversation(name, query);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Conversation to get. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. + * Use + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` + * to activate auto session mode, which automatically creates a new conversation inside a + * ConverseConversation session. + * @param query Required. Current user input. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConverseConversationResponse converseConversation( + ConversationName name, TextInput query) { + ConverseConversationRequest request = + ConverseConversationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setQuery(query) + .build(); + return converseConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Converses a conversation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   String name =
+   *       ConversationName.ofProjectLocationDataStoreConversationName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *           .toString();
+   *   TextInput query = TextInput.newBuilder().build();
+   *   ConverseConversationResponse response =
+   *       conversationalSearchServiceClient.converseConversation(name, query);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Conversation to get. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. + * Use + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` + * to activate auto session mode, which automatically creates a new conversation inside a + * ConverseConversation session. + * @param query Required. Current user input. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConverseConversationResponse converseConversation(String name, TextInput query) { + ConverseConversationRequest request = + ConverseConversationRequest.newBuilder().setName(name).setQuery(query).build(); + return converseConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Converses a conversation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ConverseConversationRequest request =
+   *       ConverseConversationRequest.newBuilder()
+   *           .setName(
+   *               ConversationName.ofProjectLocationDataStoreConversationName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *                   .toString())
+   *           .setQuery(TextInput.newBuilder().build())
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build())
+   *           .build();
+   *   ConverseConversationResponse response =
+   *       conversationalSearchServiceClient.converseConversation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConverseConversationResponse converseConversation( + ConverseConversationRequest request) { + return converseConversationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Converses a conversation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ConverseConversationRequest request =
+   *       ConverseConversationRequest.newBuilder()
+   *           .setName(
+   *               ConversationName.ofProjectLocationDataStoreConversationName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *                   .toString())
+   *           .setQuery(TextInput.newBuilder().build())
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       conversationalSearchServiceClient.converseConversationCallable().futureCall(request);
+   *   // Do something.
+   *   ConverseConversationResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + converseConversationCallable() { + return stub.converseConversationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already + * exists, an ALREADY_EXISTS error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   DataStoreName parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+   *   Conversation conversation = Conversation.newBuilder().build();
+   *   Conversation response =
+   *       conversationalSearchServiceClient.createConversation(parent, conversation);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent data store. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * @param conversation Required. The conversation to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation createConversation(DataStoreName parent, Conversation conversation) { + CreateConversationRequest request = + CreateConversationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConversation(conversation) + .build(); + return createConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already + * exists, an ALREADY_EXISTS error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   String parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *           .toString();
+   *   Conversation conversation = Conversation.newBuilder().build();
+   *   Conversation response =
+   *       conversationalSearchServiceClient.createConversation(parent, conversation);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent data store. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * @param conversation Required. The conversation to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation createConversation(String parent, Conversation conversation) { + CreateConversationRequest request = + CreateConversationRequest.newBuilder() + .setParent(parent) + .setConversation(conversation) + .build(); + return createConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already + * exists, an ALREADY_EXISTS error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   CreateConversationRequest request =
+   *       CreateConversationRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .build();
+   *   Conversation response = conversationalSearchServiceClient.createConversation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation createConversation(CreateConversationRequest request) { + return createConversationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already + * exists, an ALREADY_EXISTS error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   CreateConversationRequest request =
+   *       CreateConversationRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       conversationalSearchServiceClient.createConversationCallable().futureCall(request);
+   *   // Do something.
+   *   Conversation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createConversationCallable() { + return stub.createConversationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not + * exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ConversationName name =
+   *       ConversationName.ofProjectLocationDataStoreConversationName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]");
+   *   conversationalSearchServiceClient.deleteConversation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Conversation to delete. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(ConversationName name) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not + * exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   String name =
+   *       ConversationName.ofProjectLocationDataStoreConversationName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *           .toString();
+   *   conversationalSearchServiceClient.deleteConversation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Conversation to delete. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(String name) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder().setName(name).build(); + deleteConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not + * exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   DeleteConversationRequest request =
+   *       DeleteConversationRequest.newBuilder()
+   *           .setName(
+   *               ConversationName.ofProjectLocationDataStoreConversationName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *                   .toString())
+   *           .build();
+   *   conversationalSearchServiceClient.deleteConversation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(DeleteConversationRequest request) { + deleteConversationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Conversation. + * + *

If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not + * exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   DeleteConversationRequest request =
+   *       DeleteConversationRequest.newBuilder()
+   *           .setName(
+   *               ConversationName.ofProjectLocationDataStoreConversationName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conversationalSearchServiceClient.deleteConversationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteConversationCallable() { + return stub.deleteConversationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Conversation. + * + *

[Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action type cannot be + * changed. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update + * does not exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   Conversation conversation = Conversation.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Conversation response =
+   *       conversationalSearchServiceClient.updateConversation(conversation, updateMask);
+   * }
+   * }
+ * + * @param conversation Required. The Conversation to update. + * @param updateMask Indicates which fields in the provided + * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update. The following + * are NOT supported: + *
    + *
  • [conversation.name][] + *
+ *

If not set or empty, all supported fields are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation updateConversation(Conversation conversation, FieldMask updateMask) { + UpdateConversationRequest request = + UpdateConversationRequest.newBuilder() + .setConversation(conversation) + .setUpdateMask(updateMask) + .build(); + return updateConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Conversation. + * + *

[Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action type cannot be + * changed. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update + * does not exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

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

[Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action type cannot be + * changed. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update + * does not exist, a NOT_FOUND error is returned. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ConversationName name =
+   *       ConversationName.ofProjectLocationDataStoreConversationName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]");
+   *   Conversation response = conversationalSearchServiceClient.getConversation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Conversation to get. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation getConversation(ConversationName name) { + GetConversationRequest request = + GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Conversation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   String name =
+   *       ConversationName.ofProjectLocationDataStoreConversationName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *           .toString();
+   *   Conversation response = conversationalSearchServiceClient.getConversation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Conversation to get. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation getConversation(String name) { + GetConversationRequest request = GetConversationRequest.newBuilder().setName(name).build(); + return getConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Conversation. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   GetConversationRequest request =
+   *       GetConversationRequest.newBuilder()
+   *           .setName(
+   *               ConversationName.ofProjectLocationDataStoreConversationName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       conversationalSearchServiceClient.getConversationCallable().futureCall(request);
+   *   // Do something.
+   *   Conversation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getConversationCallable() { + return stub.getConversationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Conversations by their parent + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   DataStoreName parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+   *   for (Conversation element :
+   *       conversationalSearchServiceClient.listConversations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The data store resource name. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversationsPagedResponse listConversations(DataStoreName parent) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConversations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Conversations by their parent + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   String parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *           .toString();
+   *   for (Conversation element :
+   *       conversationalSearchServiceClient.listConversations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The data store resource name. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversationsPagedResponse listConversations(String parent) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder().setParent(parent).build(); + return listConversations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Conversations by their parent + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ListConversationsRequest request =
+   *       ListConversationsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Conversation element :
+   *       conversationalSearchServiceClient.listConversations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversationsPagedResponse listConversations(ListConversationsRequest request) { + return listConversationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Conversations by their parent + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ListConversationsRequest request =
+   *       ListConversationsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       conversationalSearchServiceClient.listConversationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Conversation element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConversationsPagedCallable() { + return stub.listConversationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Conversations by their parent + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   ListConversationsRequest request =
+   *       ListConversationsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListConversationsResponse response =
+   *         conversationalSearchServiceClient.listConversationsCallable().call(request);
+   *     for (Conversation element : response.getConversationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConversationsCallable() { + return stub.listConversationsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListConversationsPagedResponse + extends AbstractPagedListResponse< + ListConversationsRequest, + ListConversationsResponse, + Conversation, + ListConversationsPage, + ListConversationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConversationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConversationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConversationsPagedResponse(ListConversationsPage page) { + super(page, ListConversationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConversationsPage + extends AbstractPage< + ListConversationsRequest, + ListConversationsResponse, + Conversation, + ListConversationsPage> { + + private ListConversationsPage( + PageContext context, + ListConversationsResponse response) { + super(context, response); + } + + private static ListConversationsPage createEmptyPage() { + return new ListConversationsPage(null, null); + } + + @Override + protected ListConversationsPage createPage( + PageContext context, + ListConversationsResponse response) { + return new ListConversationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConversationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConversationsRequest, + ListConversationsResponse, + Conversation, + ListConversationsPage, + ListConversationsFixedSizeCollection> { + + private ListConversationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConversationsFixedSizeCollection createEmptyCollection() { + return new ListConversationsFixedSizeCollection(null, 0); + } + + @Override + protected ListConversationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConversationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java new file mode 100644 index 000000000000..80f2d658ea1f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java @@ -0,0 +1,280 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.ConversationalSearchServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConversationalSearchServiceClient}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to converseConversation. */ + public UnaryCallSettings.Builder + converseConversationSettings() { + return getStubSettingsBuilder().converseConversationSettings(); + } + + /** Returns the builder for the settings used for calls to createConversation. */ + public UnaryCallSettings.Builder + createConversationSettings() { + return getStubSettingsBuilder().createConversationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversation. */ + public UnaryCallSettings.Builder + deleteConversationSettings() { + return getStubSettingsBuilder().deleteConversationSettings(); + } + + /** Returns the builder for the settings used for calls to updateConversation. */ + public UnaryCallSettings.Builder + updateConversationSettings() { + return getStubSettingsBuilder().updateConversationSettings(); + } + + /** Returns the builder for the settings used for calls to getConversation. */ + public UnaryCallSettings.Builder + getConversationSettings() { + return getStubSettingsBuilder().getConversationSettings(); + } + + /** Returns the builder for the settings used for calls to listConversations. */ + public PagedCallSettings.Builder< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return getStubSettingsBuilder().listConversationsSettings(); + } + + @Override + public ConversationalSearchServiceSettings build() throws IOException { + return new ConversationalSearchServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java new file mode 100644 index 000000000000..2a5837e9c27c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java @@ -0,0 +1,1257 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.DocumentServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.DocumentServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for ingesting + * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the customer's website. + * + *

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DocumentServiceClient implements BackgroundResource { + private final DocumentServiceSettings settings; + private final DocumentServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of DocumentServiceClient with default settings. */ + public static final DocumentServiceClient create() throws IOException { + return create(DocumentServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DocumentServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DocumentServiceClient create(DocumentServiceSettings settings) + throws IOException { + return new DocumentServiceClient(settings); + } + + /** + * Constructs an instance of DocumentServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(DocumentServiceSettings). + */ + public static final DocumentServiceClient create(DocumentServiceStub stub) { + return new DocumentServiceClient(stub); + } + + /** + * Constructs an instance of DocumentServiceClient, 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 DocumentServiceClient(DocumentServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DocumentServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected DocumentServiceClient(DocumentServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final DocumentServiceSettings getSettings() { + return settings; + } + + public DocumentServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   DocumentName name =
+   *       DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]");
+   *   Document response = documentServiceClient.getDocument(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of + * [Document][google.cloud.discoveryengine.v1alpha.Document], such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + *

If the caller does not have permission to access the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

If the requested [Document][google.cloud.discoveryengine.v1alpha.Document] does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document getDocument(DocumentName name) { + GetDocumentRequest request = + GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDocument(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   String name =
+   *       DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
+   *           .toString();
+   *   Document response = documentServiceClient.getDocument(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of + * [Document][google.cloud.discoveryengine.v1alpha.Document], such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + *

If the caller does not have permission to access the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

If the requested [Document][google.cloud.discoveryengine.v1alpha.Document] does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document getDocument(String name) { + GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name).build(); + return getDocument(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   GetDocumentRequest request =
+   *       GetDocumentRequest.newBuilder()
+   *           .setName(
+   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
+   *                   .toString())
+   *           .build();
+   *   Document response = documentServiceClient.getDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document getDocument(GetDocumentRequest request) { + return getDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   GetDocumentRequest request =
+   *       GetDocumentRequest.newBuilder()
+   *           .setName(
+   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = documentServiceClient.getDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Document response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDocumentCallable() { + return stub.getDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   BranchName parent =
+   *       BranchName.ofProjectLocationDataStoreBranchName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]");
+   *   for (Document element : documentServiceClient.listDocuments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + * Use `default_branch` as the branch ID, to list documents under the default branch. + *

If the caller does not have permission to list + * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this branch, regardless of + * whether or not this branch exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDocumentsPagedResponse listDocuments(BranchName parent) { + ListDocumentsRequest request = + ListDocumentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDocuments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   String parent =
+   *       BranchName.ofProjectLocationDataStoreBranchName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *           .toString();
+   *   for (Document element : documentServiceClient.listDocuments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + * Use `default_branch` as the branch ID, to list documents under the default branch. + *

If the caller does not have permission to list + * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this branch, regardless of + * whether or not this branch exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDocumentsPagedResponse listDocuments(String parent) { + ListDocumentsRequest request = ListDocumentsRequest.newBuilder().setParent(parent).build(); + return listDocuments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ListDocumentsRequest request =
+   *       ListDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Document element : documentServiceClient.listDocuments(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDocumentsPagedResponse listDocuments(ListDocumentsRequest request) { + return listDocumentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ListDocumentsRequest request =
+   *       ListDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.listDocumentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Document element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDocumentsPagedCallable() { + return stub.listDocumentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   BranchName parent =
+   *       BranchName.ofProjectLocationDataStoreBranchName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]");
+   *   Document document = Document.newBuilder().build();
+   *   String documentId = "documentId-814940266";
+   *   Document response = documentServiceClient.createDocument(parent, document, documentId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + * @param document Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to + * create. + * @param documentId Required. The ID to use for the + * [Document][google.cloud.discoveryengine.v1alpha.Document], which will become the final + * component of the [Document.name][google.cloud.discoveryengine.v1alpha.Document.name]. + *

If the caller does not have permission to create the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

This field must be unique among all + * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same + * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent]. Otherwise, an + * `ALREADY_EXISTS` error is returned. + *

This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document createDocument(BranchName parent, Document document, String documentId) { + CreateDocumentRequest request = + CreateDocumentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDocument(document) + .setDocumentId(documentId) + .build(); + return createDocument(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   String parent =
+   *       BranchName.ofProjectLocationDataStoreBranchName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *           .toString();
+   *   Document document = Document.newBuilder().build();
+   *   String documentId = "documentId-814940266";
+   *   Document response = documentServiceClient.createDocument(parent, document, documentId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + * @param document Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to + * create. + * @param documentId Required. The ID to use for the + * [Document][google.cloud.discoveryengine.v1alpha.Document], which will become the final + * component of the [Document.name][google.cloud.discoveryengine.v1alpha.Document.name]. + *

If the caller does not have permission to create the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

This field must be unique among all + * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same + * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent]. Otherwise, an + * `ALREADY_EXISTS` error is returned. + *

This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with + * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document createDocument(String parent, Document document, String documentId) { + CreateDocumentRequest request = + CreateDocumentRequest.newBuilder() + .setParent(parent) + .setDocument(document) + .setDocumentId(documentId) + .build(); + return createDocument(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   CreateDocumentRequest request =
+   *       CreateDocumentRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setDocument(Document.newBuilder().build())
+   *           .setDocumentId("documentId-814940266")
+   *           .build();
+   *   Document response = documentServiceClient.createDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document createDocument(CreateDocumentRequest request) { + return createDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   CreateDocumentRequest request =
+   *       CreateDocumentRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setDocument(Document.newBuilder().build())
+   *           .setDocumentId("documentId-814940266")
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.createDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Document response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDocumentCallable() { + return stub.createDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDocumentRequest request =
+   *       UpdateDocumentRequest.newBuilder()
+   *           .setDocument(Document.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   Document response = documentServiceClient.updateDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document updateDocument(UpdateDocumentRequest request) { + return updateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDocumentRequest request =
+   *       UpdateDocumentRequest.newBuilder()
+   *           .setDocument(Document.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.updateDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   Document response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDocumentCallable() { + return stub.updateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   DocumentName name =
+   *       DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]");
+   *   documentServiceClient.deleteDocument(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of + * [Document][google.cloud.discoveryengine.v1alpha.Document], such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + *

If the caller does not have permission to delete the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDocument(DocumentName name) { + DeleteDocumentRequest request = + DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDocument(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   String name =
+   *       DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
+   *           .toString();
+   *   documentServiceClient.deleteDocument(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of + * [Document][google.cloud.discoveryengine.v1alpha.Document], such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + *

If the caller does not have permission to delete the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDocument(String name) { + DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name).build(); + deleteDocument(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   DeleteDocumentRequest request =
+   *       DeleteDocumentRequest.newBuilder()
+   *           .setName(
+   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
+   *                   .toString())
+   *           .build();
+   *   documentServiceClient.deleteDocument(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDocument(DeleteDocumentRequest request) { + deleteDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   DeleteDocumentRequest request =
+   *       DeleteDocumentRequest.newBuilder()
+   *           .setName(
+   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = documentServiceClient.deleteDocumentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDocumentCallable() { + return stub.deleteDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request + * processing may be synchronous. Non-existing items will be created. + * + *

Note: It is possible for a subset of the + * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be successfully updated. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ImportDocumentsRequest request =
+   *       ImportDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
+   *           .setAutoGenerateIds(true)
+   *           .setIdField("idField1629396127")
+   *           .build();
+   *   ImportDocumentsResponse response = documentServiceClient.importDocumentsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + importDocumentsAsync(ImportDocumentsRequest request) { + return importDocumentsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request + * processing may be synchronous. Non-existing items will be created. + * + *

Note: It is possible for a subset of the + * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be successfully updated. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ImportDocumentsRequest request =
+   *       ImportDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
+   *           .setAutoGenerateIds(true)
+   *           .setIdField("idField1629396127")
+   *           .build();
+   *   OperationFuture future =
+   *       documentServiceClient.importDocumentsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportDocumentsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationCallable() { + return stub.importDocumentsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Bulk import of multiple [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request + * processing may be synchronous. Non-existing items will be created. + * + *

Note: It is possible for a subset of the + * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be successfully updated. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ImportDocumentsRequest request =
+   *       ImportDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
+   *           .setAutoGenerateIds(true)
+   *           .setIdField("idField1629396127")
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.importDocumentsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importDocumentsCallable() { + return stub.importDocumentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Document][google.cloud.discoveryengine.v1alpha.Document]s in + * a branch. + * + *

This process is asynchronous. Depending on the number of + * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, this operation can + * take hours to complete. Before the delete operation completes, some + * [Document][google.cloud.discoveryengine.v1alpha.Document]s might still be returned by + * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] + * or + * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. + * + *

To get a list of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be + * deleted, set + * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force] + * to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   PurgeDocumentsRequest request =
+   *       PurgeDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeDocumentsResponse response = documentServiceClient.purgeDocumentsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeDocumentsAsync( + PurgeDocumentsRequest request) { + return purgeDocumentsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Document][google.cloud.discoveryengine.v1alpha.Document]s in + * a branch. + * + *

This process is asynchronous. Depending on the number of + * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, this operation can + * take hours to complete. Before the delete operation completes, some + * [Document][google.cloud.discoveryengine.v1alpha.Document]s might still be returned by + * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] + * or + * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. + * + *

To get a list of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be + * deleted, set + * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force] + * to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   PurgeDocumentsRequest request =
+   *       PurgeDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       documentServiceClient.purgeDocumentsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeDocumentsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationCallable() { + return stub.purgeDocumentsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Document][google.cloud.discoveryengine.v1alpha.Document]s in + * a branch. + * + *

This process is asynchronous. Depending on the number of + * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, this operation can + * take hours to complete. Before the delete operation completes, some + * [Document][google.cloud.discoveryengine.v1alpha.Document]s might still be returned by + * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] + * or + * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. + * + *

To get a list of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be + * deleted, set + * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force] + * to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   PurgeDocumentsRequest request =
+   *       PurgeDocumentsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.purgeDocumentsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeDocumentsCallable() { + return stub.purgeDocumentsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDocumentsPagedResponse + extends AbstractPagedListResponse< + ListDocumentsRequest, + ListDocumentsResponse, + Document, + ListDocumentsPage, + ListDocumentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDocumentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDocumentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDocumentsPagedResponse(ListDocumentsPage page) { + super(page, ListDocumentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDocumentsPage + extends AbstractPage< + ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { + + private ListDocumentsPage( + PageContext context, + ListDocumentsResponse response) { + super(context, response); + } + + private static ListDocumentsPage createEmptyPage() { + return new ListDocumentsPage(null, null); + } + + @Override + protected ListDocumentsPage createPage( + PageContext context, + ListDocumentsResponse response) { + return new ListDocumentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDocumentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDocumentsRequest, + ListDocumentsResponse, + Document, + ListDocumentsPage, + ListDocumentsFixedSizeCollection> { + + private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDocumentsFixedSizeCollection createEmptyCollection() { + return new ListDocumentsFixedSizeCollection(null, 0); + } + + @Override + protected ListDocumentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDocumentsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java new file mode 100644 index 000000000000..2d2ff8303ad7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java @@ -0,0 +1,305 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.DocumentServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DocumentServiceClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceSettings.Builder documentServiceSettingsBuilder =
+ *     DocumentServiceSettings.newBuilder();
+ * documentServiceSettingsBuilder
+ *     .getDocumentSettings()
+ *     .setRetrySettings(
+ *         documentServiceSettingsBuilder
+ *             .getDocumentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DocumentServiceSettings documentServiceSettings = documentServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DocumentServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getDocument. */ + public UnaryCallSettings getDocumentSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).getDocumentSettings(); + } + + /** Returns the object with the settings used for calls to listDocuments. */ + public PagedCallSettings + listDocumentsSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).listDocumentsSettings(); + } + + /** Returns the object with the settings used for calls to createDocument. */ + public UnaryCallSettings createDocumentSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).createDocumentSettings(); + } + + /** Returns the object with the settings used for calls to updateDocument. */ + public UnaryCallSettings updateDocumentSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).updateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to deleteDocument. */ + public UnaryCallSettings deleteDocumentSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).deleteDocumentSettings(); + } + + /** Returns the object with the settings used for calls to importDocuments. */ + public UnaryCallSettings importDocumentsSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).importDocumentsSettings(); + } + + /** Returns the object with the settings used for calls to importDocuments. */ + public OperationCallSettings< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).importDocumentsOperationSettings(); + } + + /** Returns the object with the settings used for calls to purgeDocuments. */ + public UnaryCallSettings purgeDocumentsSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).purgeDocumentsSettings(); + } + + /** Returns the object with the settings used for calls to purgeDocuments. */ + public OperationCallSettings< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).purgeDocumentsOperationSettings(); + } + + public static final DocumentServiceSettings create(DocumentServiceStubSettings stub) + throws IOException { + return new DocumentServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DocumentServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DocumentServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DocumentServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DocumentServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DocumentServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DocumentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DocumentServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DocumentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DocumentServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DocumentServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DocumentServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DocumentServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DocumentServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DocumentServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DocumentServiceStubSettings.newHttpJsonBuilder()); + } + + public DocumentServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DocumentServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getDocument. */ + public UnaryCallSettings.Builder getDocumentSettings() { + return getStubSettingsBuilder().getDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to listDocuments. */ + public PagedCallSettings.Builder< + ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse> + listDocumentsSettings() { + return getStubSettingsBuilder().listDocumentsSettings(); + } + + /** Returns the builder for the settings used for calls to createDocument. */ + public UnaryCallSettings.Builder createDocumentSettings() { + return getStubSettingsBuilder().createDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to updateDocument. */ + public UnaryCallSettings.Builder updateDocumentSettings() { + return getStubSettingsBuilder().updateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDocument. */ + public UnaryCallSettings.Builder deleteDocumentSettings() { + return getStubSettingsBuilder().deleteDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to importDocuments. */ + public UnaryCallSettings.Builder importDocumentsSettings() { + return getStubSettingsBuilder().importDocumentsSettings(); + } + + /** Returns the builder for the settings used for calls to importDocuments. */ + public OperationCallSettings.Builder< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationSettings() { + return getStubSettingsBuilder().importDocumentsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to purgeDocuments. */ + public UnaryCallSettings.Builder purgeDocumentsSettings() { + return getStubSettingsBuilder().purgeDocumentsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeDocuments. */ + public OperationCallSettings.Builder< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationSettings() { + return getStubSettingsBuilder().purgeDocumentsOperationSettings(); + } + + @Override + public DocumentServiceSettings build() throws IOException { + return new DocumentServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java new file mode 100644 index 000000000000..a5cee701a056 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java @@ -0,0 +1,290 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.RecommendationServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.RecommendationServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for making recommendations. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RecommendationServiceClient recommendationServiceClient =
+ *     RecommendationServiceClient.create()) {
+ *   RecommendRequest request =
+ *       RecommendRequest.newBuilder()
+ *           .setServingConfig(
+ *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ *                   .toString())
+ *           .setUserEvent(UserEvent.newBuilder().build())
+ *           .setPageSize(883849137)
+ *           .setFilter("filter-1274492040")
+ *           .setValidateOnly(true)
+ *           .putAllParams(new HashMap())
+ *           .putAllUserLabels(new HashMap())
+ *           .build();
+ *   RecommendResponse response = recommendationServiceClient.recommend(request);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (RecommendationServiceClient recommendationServiceClient =
+   *     RecommendationServiceClient.create()) {
+   *   RecommendRequest request =
+   *       RecommendRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setUserEvent(UserEvent.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setFilter("filter-1274492040")
+   *           .setValidateOnly(true)
+   *           .putAllParams(new HashMap())
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   RecommendResponse response = recommendationServiceClient.recommend(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RecommendResponse recommend(RecommendRequest request) { + return recommendCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Makes a recommendation, which requires a contextual user event. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (RecommendationServiceClient recommendationServiceClient =
+   *     RecommendationServiceClient.create()) {
+   *   RecommendRequest request =
+   *       RecommendRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setUserEvent(UserEvent.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setFilter("filter-1274492040")
+   *           .setValidateOnly(true)
+   *           .putAllParams(new HashMap())
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       recommendationServiceClient.recommendCallable().futureCall(request);
+   *   // Do something.
+   *   RecommendResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable recommendCallable() { + return stub.recommendCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java new file mode 100644 index 000000000000..9398e1865355 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java @@ -0,0 +1,210 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.RecommendationServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RecommendationServiceClient}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to recommend. */ + public UnaryCallSettings.Builder recommendSettings() { + return getStubSettingsBuilder().recommendSettings(); + } + + @Override + public RecommendationServiceSettings build() throws IOException { + return new RecommendationServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java new file mode 100644 index 000000000000..92ab547720c8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.SchemaServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.SchemaServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

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

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

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SchemaServiceClient implements BackgroundResource { + private final SchemaServiceSettings settings; + private final SchemaServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of SchemaServiceClient with default settings. */ + public static final SchemaServiceClient create() throws IOException { + return create(SchemaServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SchemaServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SchemaServiceClient create(SchemaServiceSettings settings) + throws IOException { + return new SchemaServiceClient(settings); + } + + /** + * Constructs an instance of SchemaServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(SchemaServiceSettings). + */ + public static final SchemaServiceClient create(SchemaServiceStub stub) { + return new SchemaServiceClient(stub); + } + + /** + * Constructs an instance of SchemaServiceClient, 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 SchemaServiceClient(SchemaServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SchemaServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected SchemaServiceClient(SchemaServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final SchemaServiceSettings getSettings() { + return settings; + } + + public SchemaServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   SchemaName name =
+   *       SchemaName.ofProjectLocationDataStoreSchemaName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]");
+   *   Schema response = schemaServiceClient.getSchema(name);
+   * }
+   * }
+ * + * @param name Required. The full resource name of the schema, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema getSchema(SchemaName name) { + GetSchemaRequest request = + GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   String name =
+   *       SchemaName.ofProjectLocationDataStoreSchemaName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *           .toString();
+   *   Schema response = schemaServiceClient.getSchema(name);
+   * }
+   * }
+ * + * @param name Required. The full resource name of the schema, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema getSchema(String name) { + GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name).build(); + return getSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   GetSchemaRequest request =
+   *       GetSchemaRequest.newBuilder()
+   *           .setName(
+   *               SchemaName.ofProjectLocationDataStoreSchemaName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   Schema response = schemaServiceClient.getSchema(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema getSchema(GetSchemaRequest request) { + return getSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   GetSchemaRequest request =
+   *       GetSchemaRequest.newBuilder()
+   *           .setName(
+   *               SchemaName.ofProjectLocationDataStoreSchemaName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = schemaServiceClient.getSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   Schema response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSchemaCallable() { + return stub.getSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   DataStoreName parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+   *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent data store resource name, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemasPagedResponse listSchemas(DataStoreName parent) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSchemas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   String parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *           .toString();
+   *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent data store resource name, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemasPagedResponse listSchemas(String parent) { + ListSchemasRequest request = ListSchemasRequest.newBuilder().setParent(parent).build(); + return listSchemas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   ListSchemasRequest request =
+   *       ListSchemasRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Schema element : schemaServiceClient.listSchemas(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { + return listSchemasPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   ListSchemasRequest request =
+   *       ListSchemasRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Schema element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSchemasPagedCallable() { + return stub.listSchemasPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   DataStoreName parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+   *   Schema schema = Schema.newBuilder().build();
+   *   String schemaId = "schemaId-697673060";
+   *   Schema response = schemaServiceClient.createSchemaAsync(parent, schema, schemaId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent data store resource name, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + * @param schema Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to create. + * @param schemaId Required. The ID to use for the + * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become the final + * component of the [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name]. + *

This field should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard + * with a length limit of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSchemaAsync( + DataStoreName parent, Schema schema, String schemaId) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSchema(schema) + .setSchemaId(schemaId) + .build(); + return createSchemaAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   String parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *           .toString();
+   *   Schema schema = Schema.newBuilder().build();
+   *   String schemaId = "schemaId-697673060";
+   *   Schema response = schemaServiceClient.createSchemaAsync(parent, schema, schemaId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent data store resource name, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + * @param schema Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to create. + * @param schemaId Required. The ID to use for the + * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become the final + * component of the [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name]. + *

This field should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard + * with a length limit of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSchemaAsync( + String parent, Schema schema, String schemaId) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent(parent) + .setSchema(schema) + .setSchemaId(schemaId) + .build(); + return createSchemaAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   CreateSchemaRequest request =
+   *       CreateSchemaRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setSchema(Schema.newBuilder().build())
+   *           .setSchemaId("schemaId-697673060")
+   *           .build();
+   *   Schema response = schemaServiceClient.createSchemaAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSchemaAsync( + CreateSchemaRequest request) { + return createSchemaOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   CreateSchemaRequest request =
+   *       CreateSchemaRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setSchema(Schema.newBuilder().build())
+   *           .setSchemaId("schemaId-697673060")
+   *           .build();
+   *   OperationFuture future =
+   *       schemaServiceClient.createSchemaOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Schema response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createSchemaOperationCallable() { + return stub.createSchemaOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   CreateSchemaRequest request =
+   *       CreateSchemaRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setSchema(Schema.newBuilder().build())
+   *           .setSchemaId("schemaId-697673060")
+   *           .build();
+   *   ApiFuture future = schemaServiceClient.createSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createSchemaCallable() { + return stub.createSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   UpdateSchemaRequest request =
+   *       UpdateSchemaRequest.newBuilder()
+   *           .setSchema(Schema.newBuilder().build())
+   *           .setAllowMissing(true)
+   *           .build();
+   *   OperationFuture future =
+   *       schemaServiceClient.updateSchemaOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Schema response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateSchemaOperationCallable() { + return stub.updateSchemaOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   SchemaName name =
+   *       SchemaName.ofProjectLocationDataStoreSchemaName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]");
+   *   schemaServiceClient.deleteSchemaAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full resource name of the schema, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSchemaAsync(SchemaName name) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteSchemaAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   String name =
+   *       SchemaName.ofProjectLocationDataStoreSchemaName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *           .toString();
+   *   schemaServiceClient.deleteSchemaAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full resource name of the schema, in the format of + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSchemaAsync(String name) { + DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name).build(); + return deleteSchemaAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   DeleteSchemaRequest request =
+   *       DeleteSchemaRequest.newBuilder()
+   *           .setName(
+   *               SchemaName.ofProjectLocationDataStoreSchemaName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   schemaServiceClient.deleteSchemaAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSchemaAsync( + DeleteSchemaRequest request) { + return deleteSchemaOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   DeleteSchemaRequest request =
+   *       DeleteSchemaRequest.newBuilder()
+   *           .setName(
+   *               SchemaName.ofProjectLocationDataStoreSchemaName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       schemaServiceClient.deleteSchemaOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteSchemaOperationCallable() { + return stub.deleteSchemaOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
+   *   DeleteSchemaRequest request =
+   *       DeleteSchemaRequest.newBuilder()
+   *           .setName(
+   *               SchemaName.ofProjectLocationDataStoreSchemaName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = schemaServiceClient.deleteSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteSchemaCallable() { + return stub.deleteSchemaCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSchemasPagedResponse + extends AbstractPagedListResponse< + ListSchemasRequest, + ListSchemasResponse, + Schema, + ListSchemasPage, + ListSchemasFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSchemasPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSchemasPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSchemasPagedResponse(ListSchemasPage page) { + super(page, ListSchemasFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSchemasPage + extends AbstractPage { + + private ListSchemasPage( + PageContext context, + ListSchemasResponse response) { + super(context, response); + } + + private static ListSchemasPage createEmptyPage() { + return new ListSchemasPage(null, null); + } + + @Override + protected ListSchemasPage createPage( + PageContext context, + ListSchemasResponse response) { + return new ListSchemasPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSchemasFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSchemasRequest, + ListSchemasResponse, + Schema, + ListSchemasPage, + ListSchemasFixedSizeCollection> { + + private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSchemasFixedSizeCollection createEmptyCollection() { + return new ListSchemasFixedSizeCollection(null, 0); + } + + @Override + protected ListSchemasFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSchemasFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java new file mode 100644 index 000000000000..4da437299e5a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java @@ -0,0 +1,292 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.SchemaServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SchemaServiceClient}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSchema. */ + public UnaryCallSettings.Builder getSchemaSettings() { + return getStubSettingsBuilder().getSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to listSchemas. */ + public PagedCallSettings.Builder< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + listSchemasSettings() { + return getStubSettingsBuilder().listSchemasSettings(); + } + + /** Returns the builder for the settings used for calls to createSchema. */ + public UnaryCallSettings.Builder createSchemaSettings() { + return getStubSettingsBuilder().createSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to createSchema. */ + public OperationCallSettings.Builder + createSchemaOperationSettings() { + return getStubSettingsBuilder().createSchemaOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateSchema. */ + public UnaryCallSettings.Builder updateSchemaSettings() { + return getStubSettingsBuilder().updateSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to updateSchema. */ + public OperationCallSettings.Builder + updateSchemaOperationSettings() { + return getStubSettingsBuilder().updateSchemaOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSchema. */ + public UnaryCallSettings.Builder deleteSchemaSettings() { + return getStubSettingsBuilder().deleteSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSchema. */ + public OperationCallSettings.Builder + deleteSchemaOperationSettings() { + return getStubSettingsBuilder().deleteSchemaOperationSettings(); + } + + @Override + public SchemaServiceSettings build() throws IOException { + return new SchemaServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java new file mode 100644 index 000000000000..029d5edd69d8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java @@ -0,0 +1,483 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.SearchServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.SearchServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for search. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+ *   SearchRequest request =
+ *       SearchRequest.newBuilder()
+ *           .setServingConfig(
+ *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ *                   .toString())
+ *           .setBranch(
+ *               BranchName.ofProjectLocationDataStoreBranchName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+ *                   .toString())
+ *           .setQuery("query107944136")
+ *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+ *           .setPageSize(883849137)
+ *           .setPageToken("pageToken873572522")
+ *           .setOffset(-1019779949)
+ *           .setFilter("filter-1274492040")
+ *           .setOrderBy("orderBy-1207110587")
+ *           .setUserInfo(UserInfo.newBuilder().build())
+ *           .addAllFacetSpecs(new ArrayList())
+ *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+ *           .putAllParams(new HashMap())
+ *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+ *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+ *           .setUserPseudoId("userPseudoId-1155274652")
+ *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+ *           .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build())
+ *           .setRankingExpression("rankingExpression2110320494")
+ *           .setSafeSearch(true)
+ *           .putAllUserLabels(new HashMap())
+ *           .build();
+ *   for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) {
+ *     // doThingsWith(element);
+ *   }
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setBranch(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOffset(-1019779949)
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .addAllFacetSpecs(new ArrayList())
+   *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+   *           .putAllParams(new HashMap())
+   *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+   *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+   *           .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build())
+   *           .setRankingExpression("rankingExpression2110320494")
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchPagedResponse search(SearchRequest request) { + return searchPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a search. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setBranch(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOffset(-1019779949)
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .addAllFacetSpecs(new ArrayList())
+   *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+   *           .putAllParams(new HashMap())
+   *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+   *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+   *           .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build())
+   *           .setRankingExpression("rankingExpression2110320494")
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       searchServiceClient.searchPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (SearchResponse.SearchResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable searchPagedCallable() { + return stub.searchPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a search. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+   *   SearchRequest request =
+   *       SearchRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setBranch(
+   *               BranchName.ofProjectLocationDataStoreBranchName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOffset(-1019779949)
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .addAllFacetSpecs(new ArrayList())
+   *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+   *           .putAllParams(new HashMap())
+   *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+   *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+   *           .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build())
+   *           .setRankingExpression("rankingExpression2110320494")
+   *           .setSafeSearch(true)
+   *           .putAllUserLabels(new HashMap())
+   *           .build();
+   *   while (true) {
+   *     SearchResponse response = searchServiceClient.searchCallable().call(request);
+   *     for (SearchResponse.SearchResult element : response.getResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable searchCallable() { + return stub.searchCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class SearchPagedResponse + extends AbstractPagedListResponse< + SearchRequest, + SearchResponse, + SearchResponse.SearchResult, + SearchPage, + SearchFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new SearchPagedResponse(input), MoreExecutors.directExecutor()); + } + + private SearchPagedResponse(SearchPage page) { + super(page, SearchFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchPage + extends AbstractPage { + + private SearchPage( + PageContext context, + SearchResponse response) { + super(context, response); + } + + private static SearchPage createEmptyPage() { + return new SearchPage(null, null); + } + + @Override + protected SearchPage createPage( + PageContext context, + SearchResponse response) { + return new SearchPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchRequest, + SearchResponse, + SearchResponse.SearchResult, + SearchPage, + SearchFixedSizeCollection> { + + private SearchFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchFixedSizeCollection createEmptyCollection() { + return new SearchFixedSizeCollection(null, 0); + } + + @Override + protected SearchFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java new file mode 100644 index 000000000000..2f941071663a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java @@ -0,0 +1,211 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.SearchServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SearchServiceClient}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to search. */ + public PagedCallSettings.Builder + searchSettings() { + return getStubSettingsBuilder().searchSettings(); + } + + @Override + public SearchServiceSettings build() throws IOException { + return new SearchServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java new file mode 100644 index 000000000000..db704d2a47fc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java @@ -0,0 +1,340 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +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.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.SiteSearchEngineServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.SiteSearchEngineServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing site search related resources. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SiteSearchEngineServiceClient siteSearchEngineServiceClient =
+ *     SiteSearchEngineServiceClient.create()) {
+ *   RecrawlUrisRequest request =
+ *       RecrawlUrisRequest.newBuilder()
+ *           .setSiteSearchEngine(
+ *               SiteSearchEngineName.ofProjectLocationDataStoreName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ *                   .toString())
+ *           .addAllUris(new ArrayList())
+ *           .build();
+ *   RecrawlUrisResponse response = siteSearchEngineServiceClient.recrawlUrisAsync(request).get();
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SiteSearchEngineServiceClient implements BackgroundResource { + private final SiteSearchEngineServiceSettings settings; + private final SiteSearchEngineServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of SiteSearchEngineServiceClient with default settings. */ + public static final SiteSearchEngineServiceClient create() throws IOException { + return create(SiteSearchEngineServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SiteSearchEngineServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SiteSearchEngineServiceClient create(SiteSearchEngineServiceSettings settings) + throws IOException { + return new SiteSearchEngineServiceClient(settings); + } + + /** + * Constructs an instance of SiteSearchEngineServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SiteSearchEngineServiceSettings). + */ + public static final SiteSearchEngineServiceClient create(SiteSearchEngineServiceStub stub) { + return new SiteSearchEngineServiceClient(stub); + } + + /** + * Constructs an instance of SiteSearchEngineServiceClient, 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 SiteSearchEngineServiceClient(SiteSearchEngineServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((SiteSearchEngineServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected SiteSearchEngineServiceClient(SiteSearchEngineServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final SiteSearchEngineServiceSettings getSettings() { + return settings; + } + + public SiteSearchEngineServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Request on-demand recrawl for a list of URIs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SiteSearchEngineServiceClient siteSearchEngineServiceClient =
+   *     SiteSearchEngineServiceClient.create()) {
+   *   RecrawlUrisRequest request =
+   *       RecrawlUrisRequest.newBuilder()
+   *           .setSiteSearchEngine(
+   *               SiteSearchEngineName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .addAllUris(new ArrayList())
+   *           .build();
+   *   RecrawlUrisResponse response = siteSearchEngineServiceClient.recrawlUrisAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture recrawlUrisAsync( + RecrawlUrisRequest request) { + return recrawlUrisOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Request on-demand recrawl for a list of URIs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SiteSearchEngineServiceClient siteSearchEngineServiceClient =
+   *     SiteSearchEngineServiceClient.create()) {
+   *   RecrawlUrisRequest request =
+   *       RecrawlUrisRequest.newBuilder()
+   *           .setSiteSearchEngine(
+   *               SiteSearchEngineName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .addAllUris(new ArrayList())
+   *           .build();
+   *   OperationFuture future =
+   *       siteSearchEngineServiceClient.recrawlUrisOperationCallable().futureCall(request);
+   *   // Do something.
+   *   RecrawlUrisResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + recrawlUrisOperationCallable() { + return stub.recrawlUrisOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Request on-demand recrawl for a list of URIs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SiteSearchEngineServiceClient siteSearchEngineServiceClient =
+   *     SiteSearchEngineServiceClient.create()) {
+   *   RecrawlUrisRequest request =
+   *       RecrawlUrisRequest.newBuilder()
+   *           .setSiteSearchEngine(
+   *               SiteSearchEngineName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .addAllUris(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       siteSearchEngineServiceClient.recrawlUrisCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable recrawlUrisCallable() { + return stub.recrawlUrisCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java new file mode 100644 index 000000000000..e2196aca593a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java @@ -0,0 +1,226 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.SiteSearchEngineServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SiteSearchEngineServiceClient}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to recrawlUris. */ + public UnaryCallSettings.Builder recrawlUrisSettings() { + return getStubSettingsBuilder().recrawlUrisSettings(); + } + + /** Returns the builder for the settings used for calls to recrawlUris. */ + public OperationCallSettings.Builder< + RecrawlUrisRequest, RecrawlUrisResponse, RecrawlUrisMetadata> + recrawlUrisOperationSettings() { + return getStubSettingsBuilder().recrawlUrisOperationSettings(); + } + + @Override + public SiteSearchEngineServiceSettings build() throws IOException { + return new SiteSearchEngineServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java new file mode 100644 index 000000000000..3b11b210073e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java @@ -0,0 +1,598 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.HttpBody; +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.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.UserEventServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.UserEventServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for ingesting end user actions on a website to Discovery Engine API. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+ *   WriteUserEventRequest request =
+ *       WriteUserEventRequest.newBuilder()
+ *           .setParent(
+ *               DataStoreName.ofProjectLocationDataStoreName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ *                   .toString())
+ *           .setUserEvent(UserEvent.newBuilder().build())
+ *           .build();
+ *   UserEvent response = userEventServiceClient.writeUserEvent(request);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserEventServiceClient implements BackgroundResource { + private final UserEventServiceSettings settings; + private final UserEventServiceStub stub; + 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 { + return create(UserEventServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of UserEventServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final UserEventServiceClient create(UserEventServiceSettings settings) + throws IOException { + return new UserEventServiceClient(settings); + } + + /** + * Constructs an instance of UserEventServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(UserEventServiceSettings). + */ + public static final UserEventServiceClient create(UserEventServiceStub stub) { + return new UserEventServiceClient(stub); + } + + /** + * Constructs an instance of UserEventServiceClient, 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 UserEventServiceClient(UserEventServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((UserEventServiceStubSettings) settings.getStubSettings()).createStub(); + 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 = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final UserEventServiceSettings getSettings() { + return settings; + } + + public UserEventServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes a single user event. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   WriteUserEventRequest request =
+   *       WriteUserEventRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setUserEvent(UserEvent.newBuilder().build())
+   *           .build();
+   *   UserEvent response = userEventServiceClient.writeUserEvent(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserEvent writeUserEvent(WriteUserEventRequest request) { + return writeUserEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes a single user event. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   WriteUserEventRequest request =
+   *       WriteUserEventRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setUserEvent(UserEvent.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       userEventServiceClient.writeUserEventCallable().futureCall(request);
+   *   // Do something.
+   *   UserEvent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable writeUserEventCallable() { + return stub.writeUserEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes a single user event from the browser. This uses a GET request to due to browser + * restriction of POST-ing to a third-party domain. + * + *

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag + * Manager. Users should not call this method directly. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   CollectUserEventRequest request =
+   *       CollectUserEventRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setUserEvent("userEvent315571599")
+   *           .setUri("uri116076")
+   *           .setEts(100772)
+   *           .build();
+   *   HttpBody response = userEventServiceClient.collectUserEvent(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HttpBody collectUserEvent(CollectUserEventRequest request) { + return collectUserEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes a single user event from the browser. This uses a GET request to due to browser + * restriction of POST-ing to a third-party domain. + * + *

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag + * Manager. Users should not call this method directly. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   CollectUserEventRequest request =
+   *       CollectUserEventRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setUserEvent("userEvent315571599")
+   *           .setUri("uri116076")
+   *           .setEts(100772)
+   *           .build();
+   *   ApiFuture future =
+   *       userEventServiceClient.collectUserEventCallable().futureCall(request);
+   *   // Do something.
+   *   HttpBody response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable collectUserEventCallable() { + return stub.collectUserEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   PurgeUserEventsRequest request =
+   *       PurgeUserEventsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeUserEventsResponse response = userEventServiceClient.purgeUserEventsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + purgeUserEventsAsync(PurgeUserEventsRequest request) { + return purgeUserEventsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   PurgeUserEventsRequest request =
+   *       PurgeUserEventsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       userEventServiceClient.purgeUserEventsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeUserEventsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable() { + return stub.purgeUserEventsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   PurgeUserEventsRequest request =
+   *       PurgeUserEventsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       userEventServiceClient.purgeUserEventsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeUserEventsCallable() { + return stub.purgeUserEventsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   ImportUserEventsRequest request =
+   *       ImportUserEventsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
+   *           .build();
+   *   ImportUserEventsResponse response =
+   *       userEventServiceClient.importUserEventsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + importUserEventsAsync(ImportUserEventsRequest request) { + return importUserEventsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   ImportUserEventsRequest request =
+   *       ImportUserEventsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       userEventServiceClient.importUserEventsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportUserEventsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationCallable() { + return stub.importUserEventsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+   *   ImportUserEventsRequest request =
+   *       ImportUserEventsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       userEventServiceClient.importUserEventsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importUserEventsCallable() { + return stub.importUserEventsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java new file mode 100644 index 000000000000..c0d392b1a2ae --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java @@ -0,0 +1,270 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.HttpBody; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.UserEventServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserEventServiceClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * UserEventServiceSettings.Builder userEventServiceSettingsBuilder =
+ *     UserEventServiceSettings.newBuilder();
+ * userEventServiceSettingsBuilder
+ *     .writeUserEventSettings()
+ *     .setRetrySettings(
+ *         userEventServiceSettingsBuilder
+ *             .writeUserEventSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * UserEventServiceSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserEventServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to writeUserEvent. */ + public UnaryCallSettings writeUserEventSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).writeUserEventSettings(); + } + + /** Returns the object with the settings used for calls to collectUserEvent. */ + public UnaryCallSettings collectUserEventSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).collectUserEventSettings(); + } + + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings purgeUserEventsSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).purgeUserEventsSettings(); + } + + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public OperationCallSettings< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).purgeUserEventsOperationSettings(); + } + + /** Returns the object with the settings used for calls to importUserEvents. */ + public UnaryCallSettings importUserEventsSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).importUserEventsSettings(); + } + + /** Returns the object with the settings used for calls to importUserEvents. */ + public OperationCallSettings< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationSettings() { + return ((UserEventServiceStubSettings) getStubSettings()).importUserEventsOperationSettings(); + } + + public static final UserEventServiceSettings create(UserEventServiceStubSettings stub) + throws IOException { + return new UserEventServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return UserEventServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return UserEventServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return UserEventServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return UserEventServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** 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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserEventServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserEventServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for UserEventServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(UserEventServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(UserEventServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(UserEventServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + 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()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to writeUserEvent. */ + public UnaryCallSettings.Builder writeUserEventSettings() { + return getStubSettingsBuilder().writeUserEventSettings(); + } + + /** Returns the builder for the settings used for calls to collectUserEvent. */ + public UnaryCallSettings.Builder collectUserEventSettings() { + return getStubSettingsBuilder().collectUserEventSettings(); + } + + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings.Builder purgeUserEventsSettings() { + return getStubSettingsBuilder().purgeUserEventsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public OperationCallSettings.Builder< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return getStubSettingsBuilder().purgeUserEventsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importUserEvents. */ + public UnaryCallSettings.Builder + importUserEventsSettings() { + return getStubSettingsBuilder().importUserEventsSettings(); + } + + /** Returns the builder for the settings used for calls to importUserEvents. */ + public OperationCallSettings.Builder< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationSettings() { + return getStubSettingsBuilder().importUserEventsOperationSettings(); + } + + @Override + public UserEventServiceSettings build() throws IOException { + return new UserEventServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json new file mode 100644 index 000000000000..482a49faa432 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json @@ -0,0 +1,159 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.discoveryengine.v1alpha", + "libraryPackage": "com.google.cloud.discoveryengine.v1alpha", + "services": { + "CompletionService": { + "clients": { + "grpc": { + "libraryClient": "CompletionServiceClient", + "rpcs": { + "CompleteQuery": { + "methods": ["completeQuery", "completeQueryCallable"] + } + } + } + } + }, + "ConversationalSearchService": { + "clients": { + "grpc": { + "libraryClient": "ConversationalSearchServiceClient", + "rpcs": { + "ConverseConversation": { + "methods": ["converseConversation", "converseConversation", "converseConversation", "converseConversationCallable"] + }, + "CreateConversation": { + "methods": ["createConversation", "createConversation", "createConversation", "createConversationCallable"] + }, + "DeleteConversation": { + "methods": ["deleteConversation", "deleteConversation", "deleteConversation", "deleteConversationCallable"] + }, + "GetConversation": { + "methods": ["getConversation", "getConversation", "getConversation", "getConversationCallable"] + }, + "ListConversations": { + "methods": ["listConversations", "listConversations", "listConversations", "listConversationsPagedCallable", "listConversationsCallable"] + }, + "UpdateConversation": { + "methods": ["updateConversation", "updateConversation", "updateConversationCallable"] + } + } + } + } + }, + "DocumentService": { + "clients": { + "grpc": { + "libraryClient": "DocumentServiceClient", + "rpcs": { + "CreateDocument": { + "methods": ["createDocument", "createDocument", "createDocument", "createDocumentCallable"] + }, + "DeleteDocument": { + "methods": ["deleteDocument", "deleteDocument", "deleteDocument", "deleteDocumentCallable"] + }, + "GetDocument": { + "methods": ["getDocument", "getDocument", "getDocument", "getDocumentCallable"] + }, + "ImportDocuments": { + "methods": ["importDocumentsAsync", "importDocumentsOperationCallable", "importDocumentsCallable"] + }, + "ListDocuments": { + "methods": ["listDocuments", "listDocuments", "listDocuments", "listDocumentsPagedCallable", "listDocumentsCallable"] + }, + "PurgeDocuments": { + "methods": ["purgeDocumentsAsync", "purgeDocumentsOperationCallable", "purgeDocumentsCallable"] + }, + "UpdateDocument": { + "methods": ["updateDocument", "updateDocumentCallable"] + } + } + } + } + }, + "RecommendationService": { + "clients": { + "grpc": { + "libraryClient": "RecommendationServiceClient", + "rpcs": { + "Recommend": { + "methods": ["recommend", "recommendCallable"] + } + } + } + } + }, + "SchemaService": { + "clients": { + "grpc": { + "libraryClient": "SchemaServiceClient", + "rpcs": { + "CreateSchema": { + "methods": ["createSchemaAsync", "createSchemaAsync", "createSchemaAsync", "createSchemaOperationCallable", "createSchemaCallable"] + }, + "DeleteSchema": { + "methods": ["deleteSchemaAsync", "deleteSchemaAsync", "deleteSchemaAsync", "deleteSchemaOperationCallable", "deleteSchemaCallable"] + }, + "GetSchema": { + "methods": ["getSchema", "getSchema", "getSchema", "getSchemaCallable"] + }, + "ListSchemas": { + "methods": ["listSchemas", "listSchemas", "listSchemas", "listSchemasPagedCallable", "listSchemasCallable"] + }, + "UpdateSchema": { + "methods": ["updateSchemaAsync", "updateSchemaOperationCallable", "updateSchemaCallable"] + } + } + } + } + }, + "SearchService": { + "clients": { + "grpc": { + "libraryClient": "SearchServiceClient", + "rpcs": { + "Search": { + "methods": ["search", "searchPagedCallable", "searchCallable"] + } + } + } + } + }, + "SiteSearchEngineService": { + "clients": { + "grpc": { + "libraryClient": "SiteSearchEngineServiceClient", + "rpcs": { + "RecrawlUris": { + "methods": ["recrawlUrisAsync", "recrawlUrisOperationCallable", "recrawlUrisCallable"] + } + } + } + } + }, + "UserEventService": { + "clients": { + "grpc": { + "libraryClient": "UserEventServiceClient", + "rpcs": { + "CollectUserEvent": { + "methods": ["collectUserEvent", "collectUserEventCallable"] + }, + "ImportUserEvents": { + "methods": ["importUserEventsAsync", "importUserEventsOperationCallable", "importUserEventsCallable"] + }, + "PurgeUserEvents": { + "methods": ["purgeUserEventsAsync", "purgeUserEventsOperationCallable", "purgeUserEventsCallable"] + }, + "WriteUserEvent": { + "methods": ["writeUserEvent", "writeUserEventCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java new file mode 100644 index 000000000000..a2db6dca5faa --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java @@ -0,0 +1,250 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Discovery Engine API + * + *

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

======================= CompletionServiceClient ======================= + * + *

Service Description: Service for Auto-Completion. + * + *

Sample for CompletionServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+ *   CompleteQueryRequest request =
+ *       CompleteQueryRequest.newBuilder()
+ *           .setDataStore(
+ *               DataStoreName.ofProjectLocationDataStoreName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ *                   .toString())
+ *           .setQuery("query107944136")
+ *           .setQueryModel("queryModel-184930495")
+ *           .setUserPseudoId("userPseudoId-1155274652")
+ *           .setIncludeTailSuggestions(true)
+ *           .build();
+ *   CompleteQueryResponse response = completionServiceClient.completeQuery(request);
+ * }
+ * }
+ * + *

======================= ConversationalSearchServiceClient ======================= + * + *

Service Description: Service for conversational search. + * + *

Sample for ConversationalSearchServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+ *     ConversationalSearchServiceClient.create()) {
+ *   ConversationName name =
+ *       ConversationName.ofProjectLocationDataStoreConversationName(
+ *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]");
+ *   TextInput query = TextInput.newBuilder().build();
+ *   ConverseConversationResponse response =
+ *       conversationalSearchServiceClient.converseConversation(name, query);
+ * }
+ * }
+ * + *

======================= DocumentServiceClient ======================= + * + *

Service Description: Service for ingesting + * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the customer's website. + * + *

Sample for DocumentServiceClient: + * + *

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

======================= RecommendationServiceClient ======================= + * + *

Service Description: Service for making recommendations. + * + *

Sample for RecommendationServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RecommendationServiceClient recommendationServiceClient =
+ *     RecommendationServiceClient.create()) {
+ *   RecommendRequest request =
+ *       RecommendRequest.newBuilder()
+ *           .setServingConfig(
+ *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ *                   .toString())
+ *           .setUserEvent(UserEvent.newBuilder().build())
+ *           .setPageSize(883849137)
+ *           .setFilter("filter-1274492040")
+ *           .setValidateOnly(true)
+ *           .putAllParams(new HashMap())
+ *           .putAllUserLabels(new HashMap())
+ *           .build();
+ *   RecommendResponse response = recommendationServiceClient.recommend(request);
+ * }
+ * }
+ * + *

======================= SchemaServiceClient ======================= + * + *

Service Description: Service for managing + * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + * + *

Sample for SchemaServiceClient: + * + *

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

======================= SearchServiceClient ======================= + * + *

Service Description: Service for search. + * + *

Sample for SearchServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) {
+ *   SearchRequest request =
+ *       SearchRequest.newBuilder()
+ *           .setServingConfig(
+ *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+ *                   .toString())
+ *           .setBranch(
+ *               BranchName.ofProjectLocationDataStoreBranchName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]")
+ *                   .toString())
+ *           .setQuery("query107944136")
+ *           .setImageQuery(SearchRequest.ImageQuery.newBuilder().build())
+ *           .setPageSize(883849137)
+ *           .setPageToken("pageToken873572522")
+ *           .setOffset(-1019779949)
+ *           .setFilter("filter-1274492040")
+ *           .setOrderBy("orderBy-1207110587")
+ *           .setUserInfo(UserInfo.newBuilder().build())
+ *           .addAllFacetSpecs(new ArrayList())
+ *           .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build())
+ *           .putAllParams(new HashMap())
+ *           .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build())
+ *           .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build())
+ *           .setUserPseudoId("userPseudoId-1155274652")
+ *           .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build())
+ *           .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build())
+ *           .setRankingExpression("rankingExpression2110320494")
+ *           .setSafeSearch(true)
+ *           .putAllUserLabels(new HashMap())
+ *           .build();
+ *   for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) {
+ *     // doThingsWith(element);
+ *   }
+ * }
+ * }
+ * + *

======================= SiteSearchEngineServiceClient ======================= + * + *

Service Description: Service for managing site search related resources. + * + *

Sample for SiteSearchEngineServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SiteSearchEngineServiceClient siteSearchEngineServiceClient =
+ *     SiteSearchEngineServiceClient.create()) {
+ *   RecrawlUrisRequest request =
+ *       RecrawlUrisRequest.newBuilder()
+ *           .setSiteSearchEngine(
+ *               SiteSearchEngineName.ofProjectLocationDataStoreName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ *                   .toString())
+ *           .addAllUris(new ArrayList())
+ *           .build();
+ *   RecrawlUrisResponse response = siteSearchEngineServiceClient.recrawlUrisAsync(request).get();
+ * }
+ * }
+ * + *

======================= UserEventServiceClient ======================= + * + *

Service Description: Service for ingesting end user actions on a website to Discovery Engine + * API. + * + *

Sample for UserEventServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
+ *   WriteUserEventRequest request =
+ *       WriteUserEventRequest.newBuilder()
+ *           .setParent(
+ *               DataStoreName.ofProjectLocationDataStoreName(
+ *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+ *                   .toString())
+ *           .setUserEvent(UserEvent.newBuilder().build())
+ *           .build();
+ *   UserEvent response = userEventServiceClient.writeUserEvent(request);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.discoveryengine.v1alpha; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java new file mode 100644 index 000000000000..3ca327a6e9e9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CompletionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class CompletionServiceStub implements BackgroundResource { + + public UnaryCallable completeQueryCallable() { + throw new UnsupportedOperationException("Not implemented: completeQueryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java new file mode 100644 index 000000000000..7974040d21d9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java @@ -0,0 +1,331 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CompletionServiceStub}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to completeQuery. */ + public UnaryCallSettings.Builder + completeQuerySettings() { + return completeQuerySettings; + } + + @Override + public CompletionServiceStubSettings build() throws IOException { + return new CompletionServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStub.java new file mode 100644 index 000000000000..1c5d89620703 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStub.java @@ -0,0 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.GetConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ConversationalSearchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ConversationalSearchServiceStub implements BackgroundResource { + + public UnaryCallable + converseConversationCallable() { + throw new UnsupportedOperationException("Not implemented: converseConversationCallable()"); + } + + public UnaryCallable createConversationCallable() { + throw new UnsupportedOperationException("Not implemented: createConversationCallable()"); + } + + public UnaryCallable deleteConversationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConversationCallable()"); + } + + public UnaryCallable updateConversationCallable() { + throw new UnsupportedOperationException("Not implemented: updateConversationCallable()"); + } + + public UnaryCallable getConversationCallable() { + throw new UnsupportedOperationException("Not implemented: getConversationCallable()"); + } + + public UnaryCallable + listConversationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listConversationsPagedCallable()"); + } + + public UnaryCallable + listConversationsCallable() { + throw new UnsupportedOperationException("Not implemented: listConversationsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java new file mode 100644 index 000000000000..09186a35d10b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java @@ -0,0 +1,543 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.GetConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConversationalSearchServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConversationalSearchServiceStubSettings.Builder conversationalSearchServiceSettingsBuilder =
+ *     ConversationalSearchServiceStubSettings.newBuilder();
+ * conversationalSearchServiceSettingsBuilder
+ *     .converseConversationSettings()
+ *     .setRetrySettings(
+ *         conversationalSearchServiceSettingsBuilder
+ *             .converseConversationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConversationalSearchServiceStubSettings conversationalSearchServiceSettings =
+ *     conversationalSearchServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + converseConversationSettings; + private final UnaryCallSettings + createConversationSettings; + private final UnaryCallSettings deleteConversationSettings; + private final UnaryCallSettings + updateConversationSettings; + private final UnaryCallSettings getConversationSettings; + private final PagedCallSettings< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings; + + private static final PagedListDescriptor< + ListConversationsRequest, ListConversationsResponse, Conversation> + LIST_CONVERSATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListConversationsRequest, ListConversationsResponse, Conversation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConversationsRequest injectToken( + ListConversationsRequest payload, String token) { + return ListConversationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConversationsRequest injectPageSize( + ListConversationsRequest payload, int pageSize) { + return ListConversationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListConversationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConversationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListConversationsResponse payload) { + return payload.getConversationsList() == null + ? ImmutableList.of() + : payload.getConversationsList(); + } + }; + + private static final PagedListResponseFactory< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + LIST_CONVERSATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConversationsRequest, + ListConversationsResponse, + ListConversationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListConversationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CONVERSATIONS_PAGE_STR_DESC, request, context); + return ListConversationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to converseConversation. */ + public UnaryCallSettings + converseConversationSettings() { + return converseConversationSettings; + } + + /** Returns the object with the settings used for calls to createConversation. */ + public UnaryCallSettings createConversationSettings() { + return createConversationSettings; + } + + /** Returns the object with the settings used for calls to deleteConversation. */ + public UnaryCallSettings deleteConversationSettings() { + return deleteConversationSettings; + } + + /** Returns the object with the settings used for calls to updateConversation. */ + public UnaryCallSettings updateConversationSettings() { + return updateConversationSettings; + } + + /** Returns the object with the settings used for calls to getConversation. */ + public UnaryCallSettings getConversationSettings() { + return getConversationSettings; + } + + /** Returns the object with the settings used for calls to listConversations. */ + public PagedCallSettings< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return listConversationsSettings; + } + + public ConversationalSearchServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcConversationalSearchServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConversationalSearchServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConversationalSearchServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConversationalSearchServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConversationalSearchServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + converseConversationSettings = settingsBuilder.converseConversationSettings().build(); + createConversationSettings = settingsBuilder.createConversationSettings().build(); + deleteConversationSettings = settingsBuilder.deleteConversationSettings().build(); + updateConversationSettings = settingsBuilder.updateConversationSettings().build(); + getConversationSettings = settingsBuilder.getConversationSettings().build(); + listConversationsSettings = settingsBuilder.listConversationsSettings().build(); + } + + /** Builder for ConversationalSearchServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + ConverseConversationRequest, ConverseConversationResponse> + converseConversationSettings; + private final UnaryCallSettings.Builder + createConversationSettings; + private final UnaryCallSettings.Builder + deleteConversationSettings; + private final UnaryCallSettings.Builder + updateConversationSettings; + private final UnaryCallSettings.Builder + getConversationSettings; + private final PagedCallSettings.Builder< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + converseConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + converseConversationSettings, + createConversationSettings, + deleteConversationSettings, + updateConversationSettings, + getConversationSettings, + listConversationsSettings); + initDefaults(this); + } + + protected Builder(ConversationalSearchServiceStubSettings settings) { + super(settings); + + converseConversationSettings = settings.converseConversationSettings.toBuilder(); + createConversationSettings = settings.createConversationSettings.toBuilder(); + deleteConversationSettings = settings.deleteConversationSettings.toBuilder(); + updateConversationSettings = settings.updateConversationSettings.toBuilder(); + getConversationSettings = settings.getConversationSettings.toBuilder(); + listConversationsSettings = settings.listConversationsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + converseConversationSettings, + createConversationSettings, + deleteConversationSettings, + updateConversationSettings, + getConversationSettings, + listConversationsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .converseConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listConversationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to converseConversation. */ + public UnaryCallSettings.Builder + converseConversationSettings() { + return converseConversationSettings; + } + + /** Returns the builder for the settings used for calls to createConversation. */ + public UnaryCallSettings.Builder + createConversationSettings() { + return createConversationSettings; + } + + /** Returns the builder for the settings used for calls to deleteConversation. */ + public UnaryCallSettings.Builder + deleteConversationSettings() { + return deleteConversationSettings; + } + + /** Returns the builder for the settings used for calls to updateConversation. */ + public UnaryCallSettings.Builder + updateConversationSettings() { + return updateConversationSettings; + } + + /** Returns the builder for the settings used for calls to getConversation. */ + public UnaryCallSettings.Builder + getConversationSettings() { + return getConversationSettings; + } + + /** Returns the builder for the settings used for calls to listConversations. */ + public PagedCallSettings.Builder< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return listConversationsSettings; + } + + @Override + public ConversationalSearchServiceStubSettings build() throws IOException { + return new ConversationalSearchServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java new file mode 100644 index 000000000000..ff2de0513c05 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java @@ -0,0 +1,106 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DocumentService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class DocumentServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: getDocumentCallable()"); + } + + public UnaryCallable + listDocumentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDocumentsPagedCallable()"); + } + + public UnaryCallable listDocumentsCallable() { + throw new UnsupportedOperationException("Not implemented: listDocumentsCallable()"); + } + + public UnaryCallable createDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: createDocumentCallable()"); + } + + public UnaryCallable updateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: updateDocumentCallable()"); + } + + public UnaryCallable deleteDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDocumentCallable()"); + } + + public OperationCallable + importDocumentsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importDocumentsOperationCallable()"); + } + + public UnaryCallable importDocumentsCallable() { + throw new UnsupportedOperationException("Not implemented: importDocumentsCallable()"); + } + + public OperationCallable + purgeDocumentsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeDocumentsOperationCallable()"); + } + + public UnaryCallable purgeDocumentsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeDocumentsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java new file mode 100644 index 000000000000..13c5df0060bb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java @@ -0,0 +1,661 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DocumentServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceStubSettings.Builder documentServiceSettingsBuilder =
+ *     DocumentServiceStubSettings.newBuilder();
+ * documentServiceSettingsBuilder
+ *     .getDocumentSettings()
+ *     .setRetrySettings(
+ *         documentServiceSettingsBuilder
+ *             .getDocumentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DocumentServiceStubSettings documentServiceSettings = documentServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DocumentServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getDocumentSettings; + private final PagedCallSettings< + ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse> + listDocumentsSettings; + private final UnaryCallSettings createDocumentSettings; + private final UnaryCallSettings updateDocumentSettings; + private final UnaryCallSettings deleteDocumentSettings; + private final UnaryCallSettings importDocumentsSettings; + private final OperationCallSettings< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationSettings; + private final UnaryCallSettings purgeDocumentsSettings; + private final OperationCallSettings< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationSettings; + + private static final PagedListDescriptor + LIST_DOCUMENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDocumentsRequest injectToken(ListDocumentsRequest payload, String token) { + return ListDocumentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDocumentsRequest injectPageSize(ListDocumentsRequest payload, int pageSize) { + return ListDocumentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDocumentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDocumentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDocumentsResponse payload) { + return payload.getDocumentsList() == null + ? ImmutableList.of() + : payload.getDocumentsList(); + } + }; + + private static final PagedListResponseFactory< + ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse> + LIST_DOCUMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDocumentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DOCUMENTS_PAGE_STR_DESC, request, context); + return ListDocumentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getDocument. */ + public UnaryCallSettings getDocumentSettings() { + return getDocumentSettings; + } + + /** Returns the object with the settings used for calls to listDocuments. */ + public PagedCallSettings + listDocumentsSettings() { + return listDocumentsSettings; + } + + /** Returns the object with the settings used for calls to createDocument. */ + public UnaryCallSettings createDocumentSettings() { + return createDocumentSettings; + } + + /** Returns the object with the settings used for calls to updateDocument. */ + public UnaryCallSettings updateDocumentSettings() { + return updateDocumentSettings; + } + + /** Returns the object with the settings used for calls to deleteDocument. */ + public UnaryCallSettings deleteDocumentSettings() { + return deleteDocumentSettings; + } + + /** Returns the object with the settings used for calls to importDocuments. */ + public UnaryCallSettings importDocumentsSettings() { + return importDocumentsSettings; + } + + /** Returns the object with the settings used for calls to importDocuments. */ + public OperationCallSettings< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationSettings() { + return importDocumentsOperationSettings; + } + + /** Returns the object with the settings used for calls to purgeDocuments. */ + public UnaryCallSettings purgeDocumentsSettings() { + return purgeDocumentsSettings; + } + + /** Returns the object with the settings used for calls to purgeDocuments. */ + public OperationCallSettings< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationSettings() { + return purgeDocumentsOperationSettings; + } + + public DocumentServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDocumentServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDocumentServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DocumentServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DocumentServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DocumentServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DocumentServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getDocumentSettings = settingsBuilder.getDocumentSettings().build(); + listDocumentsSettings = settingsBuilder.listDocumentsSettings().build(); + createDocumentSettings = settingsBuilder.createDocumentSettings().build(); + updateDocumentSettings = settingsBuilder.updateDocumentSettings().build(); + deleteDocumentSettings = settingsBuilder.deleteDocumentSettings().build(); + importDocumentsSettings = settingsBuilder.importDocumentsSettings().build(); + importDocumentsOperationSettings = settingsBuilder.importDocumentsOperationSettings().build(); + purgeDocumentsSettings = settingsBuilder.purgeDocumentsSettings().build(); + purgeDocumentsOperationSettings = settingsBuilder.purgeDocumentsOperationSettings().build(); + } + + /** Builder for DocumentServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getDocumentSettings; + private final PagedCallSettings.Builder< + ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse> + listDocumentsSettings; + private final UnaryCallSettings.Builder createDocumentSettings; + private final UnaryCallSettings.Builder updateDocumentSettings; + private final UnaryCallSettings.Builder deleteDocumentSettings; + private final UnaryCallSettings.Builder + importDocumentsSettings; + private final OperationCallSettings.Builder< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationSettings; + private final UnaryCallSettings.Builder + purgeDocumentsSettings; + private final OperationCallSettings.Builder< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(30000L)) + .setInitialRpcTimeout(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDocumentsSettings = PagedCallSettings.newBuilder(LIST_DOCUMENTS_PAGE_STR_FACT); + createDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importDocumentsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importDocumentsOperationSettings = OperationCallSettings.newBuilder(); + purgeDocumentsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeDocumentsOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDocumentSettings, + listDocumentsSettings, + createDocumentSettings, + updateDocumentSettings, + deleteDocumentSettings, + importDocumentsSettings, + purgeDocumentsSettings); + initDefaults(this); + } + + protected Builder(DocumentServiceStubSettings settings) { + super(settings); + + getDocumentSettings = settings.getDocumentSettings.toBuilder(); + listDocumentsSettings = settings.listDocumentsSettings.toBuilder(); + createDocumentSettings = settings.createDocumentSettings.toBuilder(); + updateDocumentSettings = settings.updateDocumentSettings.toBuilder(); + deleteDocumentSettings = settings.deleteDocumentSettings.toBuilder(); + importDocumentsSettings = settings.importDocumentsSettings.toBuilder(); + importDocumentsOperationSettings = settings.importDocumentsOperationSettings.toBuilder(); + purgeDocumentsSettings = settings.purgeDocumentsSettings.toBuilder(); + purgeDocumentsOperationSettings = settings.purgeDocumentsOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDocumentSettings, + listDocumentsSettings, + createDocumentSettings, + updateDocumentSettings, + deleteDocumentSettings, + importDocumentsSettings, + purgeDocumentsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listDocumentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importDocumentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .purgeDocumentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importDocumentsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportDocumentsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ImportDocumentsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .purgeDocumentsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeDocumentsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeDocumentsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getDocument. */ + public UnaryCallSettings.Builder getDocumentSettings() { + return getDocumentSettings; + } + + /** Returns the builder for the settings used for calls to listDocuments. */ + public PagedCallSettings.Builder< + ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse> + listDocumentsSettings() { + return listDocumentsSettings; + } + + /** Returns the builder for the settings used for calls to createDocument. */ + public UnaryCallSettings.Builder createDocumentSettings() { + return createDocumentSettings; + } + + /** Returns the builder for the settings used for calls to updateDocument. */ + public UnaryCallSettings.Builder updateDocumentSettings() { + return updateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to deleteDocument. */ + public UnaryCallSettings.Builder deleteDocumentSettings() { + return deleteDocumentSettings; + } + + /** Returns the builder for the settings used for calls to importDocuments. */ + public UnaryCallSettings.Builder importDocumentsSettings() { + return importDocumentsSettings; + } + + /** Returns the builder for the settings used for calls to importDocuments. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationSettings() { + return importDocumentsOperationSettings; + } + + /** Returns the builder for the settings used for calls to purgeDocuments. */ + public UnaryCallSettings.Builder purgeDocumentsSettings() { + return purgeDocumentsSettings; + } + + /** Returns the builder for the settings used for calls to purgeDocuments. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationSettings() { + return purgeDocumentsOperationSettings; + } + + @Override + public DocumentServiceStubSettings build() throws IOException { + return new DocumentServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceCallableFactory.java new file mode 100644 index 000000000000..020b0b906da2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the CompletionService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcCompletionServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java new file mode 100644 index 000000000000..033778cec155 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java @@ -0,0 +1,167 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the CompletionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcCompletionServiceStub extends CompletionServiceStub { + private static final MethodDescriptor + completeQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.CompletionService/CompleteQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(CompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CompleteQueryResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable completeQueryCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCompletionServiceStub create(CompletionServiceStubSettings settings) + throws IOException { + return new GrpcCompletionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCompletionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCompletionServiceStub( + CompletionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCompletionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCompletionServiceStub( + CompletionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCompletionServiceStub, 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 GrpcCompletionServiceStub( + CompletionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcCompletionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCompletionServiceStub, 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 GrpcCompletionServiceStub( + CompletionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings completeQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_store", String.valueOf(request.getDataStore())); + return builder.build(); + }) + .build(); + + this.completeQueryCallable = + callableFactory.createUnaryCallable( + completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable completeQueryCallable() { + return completeQueryCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceCallableFactory.java new file mode 100644 index 000000000000..5d2327263815 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ConversationalSearchService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcConversationalSearchServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceStub.java new file mode 100644 index 000000000000..d6dc23caa969 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcConversationalSearchServiceStub.java @@ -0,0 +1,361 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.GetConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ConversationalSearchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcConversationalSearchServiceStub extends ConversationalSearchServiceStub { + private static final MethodDescriptor + converseConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/ConverseConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(ConverseConversationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ConverseConversationResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/CreateConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/DeleteConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/UpdateConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/GetConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listConversationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/ListConversations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConversationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConversationsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + converseConversationCallable; + private final UnaryCallable createConversationCallable; + private final UnaryCallable deleteConversationCallable; + private final UnaryCallable updateConversationCallable; + private final UnaryCallable getConversationCallable; + private final UnaryCallable + listConversationsCallable; + private final UnaryCallable + listConversationsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcConversationalSearchServiceStub create( + ConversationalSearchServiceStubSettings settings) throws IOException { + return new GrpcConversationalSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcConversationalSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcConversationalSearchServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcConversationalSearchServiceStub, 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 GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcConversationalSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcConversationalSearchServiceStub, 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 GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + converseConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(converseConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "conversation.name", String.valueOf(request.getConversation().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listConversationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConversationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.converseConversationCallable = + callableFactory.createUnaryCallable( + converseConversationTransportSettings, + settings.converseConversationSettings(), + clientContext); + this.createConversationCallable = + callableFactory.createUnaryCallable( + createConversationTransportSettings, + settings.createConversationSettings(), + clientContext); + this.deleteConversationCallable = + callableFactory.createUnaryCallable( + deleteConversationTransportSettings, + settings.deleteConversationSettings(), + clientContext); + this.updateConversationCallable = + callableFactory.createUnaryCallable( + updateConversationTransportSettings, + settings.updateConversationSettings(), + clientContext); + this.getConversationCallable = + callableFactory.createUnaryCallable( + getConversationTransportSettings, settings.getConversationSettings(), clientContext); + this.listConversationsCallable = + callableFactory.createUnaryCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + this.listConversationsPagedCallable = + callableFactory.createPagedCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + converseConversationCallable() { + return converseConversationCallable; + } + + @Override + public UnaryCallable createConversationCallable() { + return createConversationCallable; + } + + @Override + public UnaryCallable deleteConversationCallable() { + return deleteConversationCallable; + } + + @Override + public UnaryCallable updateConversationCallable() { + return updateConversationCallable; + } + + @Override + public UnaryCallable getConversationCallable() { + return getConversationCallable; + } + + @Override + public UnaryCallable + listConversationsCallable() { + return listConversationsCallable; + } + + @Override + public UnaryCallable + listConversationsPagedCallable() { + return listConversationsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceCallableFactory.java new file mode 100644 index 000000000000..1c718e1f76bc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DocumentService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDocumentServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceStub.java new file mode 100644 index 000000000000..2469abf340ab --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDocumentServiceStub.java @@ -0,0 +1,401 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DocumentService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDocumentServiceStub extends DocumentServiceStub { + private static final MethodDescriptor getDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.DocumentService/GetDocument") + .setRequestMarshaller(ProtoUtils.marshaller(GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Document.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDocumentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/ListDocuments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDocumentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/CreateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Document.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/UpdateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Document.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/DeleteDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importDocumentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/ImportDocuments") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + purgeDocumentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/PurgeDocuments") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable getDocumentCallable; + private final UnaryCallable listDocumentsCallable; + private final UnaryCallable + listDocumentsPagedCallable; + private final UnaryCallable createDocumentCallable; + private final UnaryCallable updateDocumentCallable; + private final UnaryCallable deleteDocumentCallable; + private final UnaryCallable importDocumentsCallable; + private final OperationCallable< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationCallable; + private final UnaryCallable purgeDocumentsCallable; + private final OperationCallable< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDocumentServiceStub create(DocumentServiceStubSettings settings) + throws IOException { + return new GrpcDocumentServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDocumentServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDocumentServiceStub( + DocumentServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDocumentServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDocumentServiceStub( + DocumentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDocumentServiceStub, 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 GrpcDocumentServiceStub( + DocumentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDocumentServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDocumentServiceStub, 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 GrpcDocumentServiceStub( + DocumentServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listDocumentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDocumentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("document.name", String.valueOf(request.getDocument().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDocumentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings importDocumentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importDocumentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings purgeDocumentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeDocumentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getDocumentCallable = + callableFactory.createUnaryCallable( + getDocumentTransportSettings, settings.getDocumentSettings(), clientContext); + this.listDocumentsCallable = + callableFactory.createUnaryCallable( + listDocumentsTransportSettings, settings.listDocumentsSettings(), clientContext); + this.listDocumentsPagedCallable = + callableFactory.createPagedCallable( + listDocumentsTransportSettings, settings.listDocumentsSettings(), clientContext); + this.createDocumentCallable = + callableFactory.createUnaryCallable( + createDocumentTransportSettings, settings.createDocumentSettings(), clientContext); + this.updateDocumentCallable = + callableFactory.createUnaryCallable( + updateDocumentTransportSettings, settings.updateDocumentSettings(), clientContext); + this.deleteDocumentCallable = + callableFactory.createUnaryCallable( + deleteDocumentTransportSettings, settings.deleteDocumentSettings(), clientContext); + this.importDocumentsCallable = + callableFactory.createUnaryCallable( + importDocumentsTransportSettings, settings.importDocumentsSettings(), clientContext); + this.importDocumentsOperationCallable = + callableFactory.createOperationCallable( + importDocumentsTransportSettings, + settings.importDocumentsOperationSettings(), + clientContext, + operationsStub); + this.purgeDocumentsCallable = + callableFactory.createUnaryCallable( + purgeDocumentsTransportSettings, settings.purgeDocumentsSettings(), clientContext); + this.purgeDocumentsOperationCallable = + callableFactory.createOperationCallable( + purgeDocumentsTransportSettings, + settings.purgeDocumentsOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getDocumentCallable() { + return getDocumentCallable; + } + + @Override + public UnaryCallable listDocumentsCallable() { + return listDocumentsCallable; + } + + @Override + public UnaryCallable + listDocumentsPagedCallable() { + return listDocumentsPagedCallable; + } + + @Override + public UnaryCallable createDocumentCallable() { + return createDocumentCallable; + } + + @Override + public UnaryCallable updateDocumentCallable() { + return updateDocumentCallable; + } + + @Override + public UnaryCallable deleteDocumentCallable() { + return deleteDocumentCallable; + } + + @Override + public UnaryCallable importDocumentsCallable() { + return importDocumentsCallable; + } + + @Override + public OperationCallable + importDocumentsOperationCallable() { + return importDocumentsOperationCallable; + } + + @Override + public UnaryCallable purgeDocumentsCallable() { + return purgeDocumentsCallable; + } + + @Override + public OperationCallable + purgeDocumentsOperationCallable() { + return purgeDocumentsOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceCallableFactory.java new file mode 100644 index 000000000000..beae336b94b8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the RecommendationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcRecommendationServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceStub.java new file mode 100644 index 000000000000..f6c71444f28e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcRecommendationServiceStub.java @@ -0,0 +1,165 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.RecommendRequest; +import com.google.cloud.discoveryengine.v1alpha.RecommendResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the RecommendationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcRecommendationServiceStub extends RecommendationServiceStub { + private static final MethodDescriptor + recommendMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.RecommendationService/Recommend") + .setRequestMarshaller(ProtoUtils.marshaller(RecommendRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RecommendResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable recommendCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcRecommendationServiceStub create( + RecommendationServiceStubSettings settings) throws IOException { + return new GrpcRecommendationServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcRecommendationServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcRecommendationServiceStub( + RecommendationServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcRecommendationServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcRecommendationServiceStub( + RecommendationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcRecommendationServiceStub, 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 GrpcRecommendationServiceStub( + RecommendationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcRecommendationServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcRecommendationServiceStub, 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 GrpcRecommendationServiceStub( + RecommendationServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings recommendTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(recommendMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("serving_config", String.valueOf(request.getServingConfig())); + return builder.build(); + }) + .build(); + + this.recommendCallable = + callableFactory.createUnaryCallable( + recommendTransportSettings, settings.recommendSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable recommendCallable() { + return recommendCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceCallableFactory.java new file mode 100644 index 000000000000..04dcbe7649b1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SchemaService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSchemaServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceStub.java new file mode 100644 index 000000000000..edfc084a23cc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSchemaServiceStub.java @@ -0,0 +1,339 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SchemaService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSchemaServiceStub extends SchemaServiceStub { + private static final MethodDescriptor getSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/GetSchema") + .setRequestMarshaller(ProtoUtils.marshaller(GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSchemasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/ListSchemas") + .setRequestMarshaller(ProtoUtils.marshaller(ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSchemasResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/CreateSchema") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/UpdateSchema") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/DeleteSchema") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable getSchemaCallable; + private final UnaryCallable listSchemasCallable; + private final UnaryCallable + listSchemasPagedCallable; + private final UnaryCallable createSchemaCallable; + private final OperationCallable + createSchemaOperationCallable; + private final UnaryCallable updateSchemaCallable; + private final OperationCallable + updateSchemaOperationCallable; + private final UnaryCallable deleteSchemaCallable; + private final OperationCallable + deleteSchemaOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSchemaServiceStub create(SchemaServiceStubSettings settings) + throws IOException { + return new GrpcSchemaServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSchemaServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcSchemaServiceStub(SchemaServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSchemaServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSchemaServiceStub( + SchemaServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSchemaServiceStub, 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 GrpcSchemaServiceStub(SchemaServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSchemaServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSchemaServiceStub, 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 GrpcSchemaServiceStub( + SchemaServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listSchemasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSchemasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("schema.name", String.valueOf(request.getSchema().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getSchemaCallable = + callableFactory.createUnaryCallable( + getSchemaTransportSettings, settings.getSchemaSettings(), clientContext); + this.listSchemasCallable = + callableFactory.createUnaryCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.listSchemasPagedCallable = + callableFactory.createPagedCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.createSchemaCallable = + callableFactory.createUnaryCallable( + createSchemaTransportSettings, settings.createSchemaSettings(), clientContext); + this.createSchemaOperationCallable = + callableFactory.createOperationCallable( + createSchemaTransportSettings, + settings.createSchemaOperationSettings(), + clientContext, + operationsStub); + this.updateSchemaCallable = + callableFactory.createUnaryCallable( + updateSchemaTransportSettings, settings.updateSchemaSettings(), clientContext); + this.updateSchemaOperationCallable = + callableFactory.createOperationCallable( + updateSchemaTransportSettings, + settings.updateSchemaOperationSettings(), + clientContext, + operationsStub); + this.deleteSchemaCallable = + callableFactory.createUnaryCallable( + deleteSchemaTransportSettings, settings.deleteSchemaSettings(), clientContext); + this.deleteSchemaOperationCallable = + callableFactory.createOperationCallable( + deleteSchemaTransportSettings, + settings.deleteSchemaOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getSchemaCallable() { + return getSchemaCallable; + } + + @Override + public UnaryCallable listSchemasCallable() { + return listSchemasCallable; + } + + @Override + public UnaryCallable listSchemasPagedCallable() { + return listSchemasPagedCallable; + } + + @Override + public UnaryCallable createSchemaCallable() { + return createSchemaCallable; + } + + @Override + public OperationCallable + createSchemaOperationCallable() { + return createSchemaOperationCallable; + } + + @Override + public UnaryCallable updateSchemaCallable() { + return updateSchemaCallable; + } + + @Override + public OperationCallable + updateSchemaOperationCallable() { + return updateSchemaOperationCallable; + } + + @Override + public UnaryCallable deleteSchemaCallable() { + return deleteSchemaCallable; + } + + @Override + public OperationCallable + deleteSchemaOperationCallable() { + return deleteSchemaOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceCallableFactory.java new file mode 100644 index 000000000000..313ce9d20149 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SearchService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSearchServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceStub.java new file mode 100644 index 000000000000..c7cec69f5423 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSearchServiceStub.java @@ -0,0 +1,172 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SearchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSearchServiceStub extends SearchServiceStub { + private static final MethodDescriptor searchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SearchService/Search") + .setRequestMarshaller(ProtoUtils.marshaller(SearchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable searchCallable; + private final UnaryCallable searchPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSearchServiceStub create(SearchServiceStubSettings settings) + throws IOException { + return new GrpcSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSearchServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcSearchServiceStub(SearchServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSearchServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSearchServiceStub( + SearchServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSearchServiceStub, 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 GrpcSearchServiceStub(SearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSearchServiceStub, 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 GrpcSearchServiceStub( + SearchServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings searchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("serving_config", String.valueOf(request.getServingConfig())); + return builder.build(); + }) + .build(); + + this.searchCallable = + callableFactory.createUnaryCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + this.searchPagedCallable = + callableFactory.createPagedCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable searchCallable() { + return searchCallable; + } + + @Override + public UnaryCallable searchPagedCallable() { + return searchPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceCallableFactory.java new file mode 100644 index 000000000000..dfa3fbe9d4f2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SiteSearchEngineService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSiteSearchEngineServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceStub.java new file mode 100644 index 000000000000..43f46c3a6c52 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcSiteSearchEngineServiceStub.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SiteSearchEngineService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSiteSearchEngineServiceStub extends SiteSearchEngineServiceStub { + private static final MethodDescriptor recrawlUrisMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService/RecrawlUris") + .setRequestMarshaller(ProtoUtils.marshaller(RecrawlUrisRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable recrawlUrisCallable; + private final OperationCallable + recrawlUrisOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSiteSearchEngineServiceStub create( + SiteSearchEngineServiceStubSettings settings) throws IOException { + return new GrpcSiteSearchEngineServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSiteSearchEngineServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSiteSearchEngineServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSiteSearchEngineServiceStub, 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 GrpcSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSiteSearchEngineServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSiteSearchEngineServiceStub, 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 GrpcSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings recrawlUrisTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(recrawlUrisMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("site_search_engine", String.valueOf(request.getSiteSearchEngine())); + return builder.build(); + }) + .build(); + + this.recrawlUrisCallable = + callableFactory.createUnaryCallable( + recrawlUrisTransportSettings, settings.recrawlUrisSettings(), clientContext); + this.recrawlUrisOperationCallable = + callableFactory.createOperationCallable( + recrawlUrisTransportSettings, + settings.recrawlUrisOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable recrawlUrisCallable() { + return recrawlUrisCallable; + } + + @Override + public OperationCallable + recrawlUrisOperationCallable() { + return recrawlUrisOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceCallableFactory.java new file mode 100644 index 000000000000..0710a2d938e9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the UserEventService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcUserEventServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceStub.java new file mode 100644 index 000000000000..1ff10a5990a8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcUserEventServiceStub.java @@ -0,0 +1,297 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.HttpBody; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the UserEventService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcUserEventServiceStub extends UserEventServiceStub { + private static final MethodDescriptor + writeUserEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/WriteUserEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(WriteUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UserEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + collectUserEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/CollectUserEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CollectUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + purgeUserEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/PurgeUserEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeUserEventsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importUserEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/ImportUserEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportUserEventsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable writeUserEventCallable; + private final UnaryCallable collectUserEventCallable; + private final UnaryCallable purgeUserEventsCallable; + private final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable; + private final UnaryCallable importUserEventsCallable; + private final OperationCallable< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcUserEventServiceStub create(UserEventServiceStubSettings settings) + throws IOException { + return new GrpcUserEventServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcUserEventServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcUserEventServiceStub( + UserEventServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcUserEventServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcUserEventServiceStub( + UserEventServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcUserEventServiceStub, 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 GrpcUserEventServiceStub( + UserEventServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcUserEventServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcUserEventServiceStub, 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 GrpcUserEventServiceStub( + UserEventServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings writeUserEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(writeUserEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings collectUserEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(collectUserEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings purgeUserEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeUserEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings importUserEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importUserEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.writeUserEventCallable = + callableFactory.createUnaryCallable( + writeUserEventTransportSettings, settings.writeUserEventSettings(), clientContext); + this.collectUserEventCallable = + callableFactory.createUnaryCallable( + collectUserEventTransportSettings, settings.collectUserEventSettings(), clientContext); + this.purgeUserEventsCallable = + callableFactory.createUnaryCallable( + purgeUserEventsTransportSettings, settings.purgeUserEventsSettings(), clientContext); + this.purgeUserEventsOperationCallable = + callableFactory.createOperationCallable( + purgeUserEventsTransportSettings, + settings.purgeUserEventsOperationSettings(), + clientContext, + operationsStub); + this.importUserEventsCallable = + callableFactory.createUnaryCallable( + importUserEventsTransportSettings, settings.importUserEventsSettings(), clientContext); + this.importUserEventsOperationCallable = + callableFactory.createOperationCallable( + importUserEventsTransportSettings, + settings.importUserEventsOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable writeUserEventCallable() { + return writeUserEventCallable; + } + + @Override + public UnaryCallable collectUserEventCallable() { + return collectUserEventCallable; + } + + @Override + public UnaryCallable purgeUserEventsCallable() { + return purgeUserEventsCallable; + } + + @Override + public OperationCallable + purgeUserEventsOperationCallable() { + return purgeUserEventsOperationCallable; + } + + @Override + public UnaryCallable importUserEventsCallable() { + return importUserEventsCallable; + } + + @Override + public OperationCallable< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + 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/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceCallableFactory.java new file mode 100644 index 000000000000..911d0b88dc8d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 CompletionService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCompletionServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java new file mode 100644 index 000000000000..a8a8e87d5385 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java @@ -0,0 +1,211 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +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 CompletionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCompletionServiceStub extends CompletionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + completeQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.CompletionService/CompleteQuery") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{dataStore=projects/*/locations/*/dataStores/*}:completeQuery", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "dataStore", request.getDataStore()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{dataStore=projects/*/locations/*/collections/*/dataStores/*}:completeQuery") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "includeTailSuggestions", + request.getIncludeTailSuggestions()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "queryModel", request.getQueryModel()); + serializer.putQueryParam( + fields, "userPseudoId", request.getUserPseudoId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompleteQueryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable completeQueryCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCompletionServiceStub create(CompletionServiceStubSettings settings) + throws IOException { + return new HttpJsonCompletionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCompletionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCompletionServiceStub( + CompletionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCompletionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCompletionServiceStub( + CompletionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCompletionServiceStub, 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 HttpJsonCompletionServiceStub( + CompletionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCompletionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCompletionServiceStub, 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 HttpJsonCompletionServiceStub( + CompletionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + completeQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(completeQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_store", String.valueOf(request.getDataStore())); + return builder.build(); + }) + .build(); + + this.completeQueryCallable = + callableFactory.createUnaryCallable( + completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(completeQueryMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable completeQueryCallable() { + return completeQueryCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceCallableFactory.java new file mode 100644 index 000000000000..3a1fd9834e7b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 ConversationalSearchService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonConversationalSearchServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceStub.java new file mode 100644 index 000000000000..f704a254128e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonConversationalSearchServiceStub.java @@ -0,0 +1,555 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.GetConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest; +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 ConversationalSearchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonConversationalSearchServiceStub extends ConversationalSearchServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ConverseConversationRequest, ConverseConversationResponse> + converseConversationMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/ConverseConversation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConverseConversationResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/CreateConversation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/conversations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("conversation", request.getConversation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Conversation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/DeleteConversation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/conversations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/UpdateConversation") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "conversation.name", request.getConversation().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("conversation", request.getConversation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Conversation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/GetConversation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/conversations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Conversation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listConversationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ConversationalSearchService/ListConversations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/conversations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConversationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + converseConversationCallable; + private final UnaryCallable createConversationCallable; + private final UnaryCallable deleteConversationCallable; + private final UnaryCallable updateConversationCallable; + private final UnaryCallable getConversationCallable; + private final UnaryCallable + listConversationsCallable; + private final UnaryCallable + listConversationsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConversationalSearchServiceStub create( + ConversationalSearchServiceStubSettings settings) throws IOException { + return new HttpJsonConversationalSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConversationalSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConversationalSearchServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonConversationalSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + converseConversationTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(converseConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "conversation.name", String.valueOf(request.getConversation().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listConversationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConversationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.converseConversationCallable = + callableFactory.createUnaryCallable( + converseConversationTransportSettings, + settings.converseConversationSettings(), + clientContext); + this.createConversationCallable = + callableFactory.createUnaryCallable( + createConversationTransportSettings, + settings.createConversationSettings(), + clientContext); + this.deleteConversationCallable = + callableFactory.createUnaryCallable( + deleteConversationTransportSettings, + settings.deleteConversationSettings(), + clientContext); + this.updateConversationCallable = + callableFactory.createUnaryCallable( + updateConversationTransportSettings, + settings.updateConversationSettings(), + clientContext); + this.getConversationCallable = + callableFactory.createUnaryCallable( + getConversationTransportSettings, settings.getConversationSettings(), clientContext); + this.listConversationsCallable = + callableFactory.createUnaryCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + this.listConversationsPagedCallable = + callableFactory.createPagedCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(converseConversationMethodDescriptor); + methodDescriptors.add(createConversationMethodDescriptor); + methodDescriptors.add(deleteConversationMethodDescriptor); + methodDescriptors.add(updateConversationMethodDescriptor); + methodDescriptors.add(getConversationMethodDescriptor); + methodDescriptors.add(listConversationsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + converseConversationCallable() { + return converseConversationCallable; + } + + @Override + public UnaryCallable createConversationCallable() { + return createConversationCallable; + } + + @Override + public UnaryCallable deleteConversationCallable() { + return deleteConversationCallable; + } + + @Override + public UnaryCallable updateConversationCallable() { + return updateConversationCallable; + } + + @Override + public UnaryCallable getConversationCallable() { + return getConversationCallable; + } + + @Override + public UnaryCallable + listConversationsCallable() { + return listConversationsCallable; + } + + @Override + public UnaryCallable + listConversationsPagedCallable() { + return listConversationsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceCallableFactory.java new file mode 100644 index 000000000000..9058b11951e0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 DocumentService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonDocumentServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java new file mode 100644 index 000000000000..a21bc1fb29ab --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java @@ -0,0 +1,782 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; +import com.google.common.collect.ImmutableMap; +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 DocumentService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonDocumentServiceStub extends DocumentServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(PurgeDocumentsMetadata.getDescriptor()) + .add(PurgeDocumentsResponse.getDescriptor()) + .add(ImportDocumentsResponse.getDescriptor()) + .add(ImportDocumentsMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.DocumentService/GetDocument") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Document.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDocumentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/ListDocuments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDocumentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/CreateDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "documentId", request.getDocumentId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("document", request.getDocument(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Document.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/UpdateDocument") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{document.name=projects/*/locations/*/dataStores/*/branches/*/documents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "document.name", request.getDocument().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{document.name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("document", request.getDocument(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Document.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/DeleteDocument") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + importDocumentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/ImportDocuments") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:import") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportDocumentsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + purgeDocumentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DocumentService/PurgeDocuments") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:purge") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeDocumentsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable getDocumentCallable; + private final UnaryCallable listDocumentsCallable; + private final UnaryCallable + listDocumentsPagedCallable; + private final UnaryCallable createDocumentCallable; + private final UnaryCallable updateDocumentCallable; + private final UnaryCallable deleteDocumentCallable; + private final UnaryCallable importDocumentsCallable; + private final OperationCallable< + ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsMetadata> + importDocumentsOperationCallable; + private final UnaryCallable purgeDocumentsCallable; + private final OperationCallable< + PurgeDocumentsRequest, PurgeDocumentsResponse, PurgeDocumentsMetadata> + purgeDocumentsOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDocumentServiceStub create(DocumentServiceStubSettings settings) + throws IOException { + return new HttpJsonDocumentServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDocumentServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDocumentServiceStub( + DocumentServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDocumentServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDocumentServiceStub( + DocumentServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDocumentServiceStub, 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 HttpJsonDocumentServiceStub( + DocumentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDocumentServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDocumentServiceStub, 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 HttpJsonDocumentServiceStub( + DocumentServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDocumentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDocumentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("document.name", String.valueOf(request.getDocument().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings importDocumentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importDocumentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings purgeDocumentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeDocumentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getDocumentCallable = + callableFactory.createUnaryCallable( + getDocumentTransportSettings, settings.getDocumentSettings(), clientContext); + this.listDocumentsCallable = + callableFactory.createUnaryCallable( + listDocumentsTransportSettings, settings.listDocumentsSettings(), clientContext); + this.listDocumentsPagedCallable = + callableFactory.createPagedCallable( + listDocumentsTransportSettings, settings.listDocumentsSettings(), clientContext); + this.createDocumentCallable = + callableFactory.createUnaryCallable( + createDocumentTransportSettings, settings.createDocumentSettings(), clientContext); + this.updateDocumentCallable = + callableFactory.createUnaryCallable( + updateDocumentTransportSettings, settings.updateDocumentSettings(), clientContext); + this.deleteDocumentCallable = + callableFactory.createUnaryCallable( + deleteDocumentTransportSettings, settings.deleteDocumentSettings(), clientContext); + this.importDocumentsCallable = + callableFactory.createUnaryCallable( + importDocumentsTransportSettings, settings.importDocumentsSettings(), clientContext); + this.importDocumentsOperationCallable = + callableFactory.createOperationCallable( + importDocumentsTransportSettings, + settings.importDocumentsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.purgeDocumentsCallable = + callableFactory.createUnaryCallable( + purgeDocumentsTransportSettings, settings.purgeDocumentsSettings(), clientContext); + this.purgeDocumentsOperationCallable = + callableFactory.createOperationCallable( + purgeDocumentsTransportSettings, + settings.purgeDocumentsOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getDocumentMethodDescriptor); + methodDescriptors.add(listDocumentsMethodDescriptor); + methodDescriptors.add(createDocumentMethodDescriptor); + methodDescriptors.add(updateDocumentMethodDescriptor); + methodDescriptors.add(deleteDocumentMethodDescriptor); + methodDescriptors.add(importDocumentsMethodDescriptor); + methodDescriptors.add(purgeDocumentsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getDocumentCallable() { + return getDocumentCallable; + } + + @Override + public UnaryCallable listDocumentsCallable() { + return listDocumentsCallable; + } + + @Override + public UnaryCallable + listDocumentsPagedCallable() { + return listDocumentsPagedCallable; + } + + @Override + public UnaryCallable createDocumentCallable() { + return createDocumentCallable; + } + + @Override + public UnaryCallable updateDocumentCallable() { + return updateDocumentCallable; + } + + @Override + public UnaryCallable deleteDocumentCallable() { + return deleteDocumentCallable; + } + + @Override + public UnaryCallable importDocumentsCallable() { + return importDocumentsCallable; + } + + @Override + public OperationCallable + importDocumentsOperationCallable() { + return importDocumentsOperationCallable; + } + + @Override + public UnaryCallable purgeDocumentsCallable() { + return purgeDocumentsCallable; + } + + @Override + public OperationCallable + purgeDocumentsOperationCallable() { + return purgeDocumentsOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceCallableFactory.java new file mode 100644 index 000000000000..6b91badbfbb5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 RecommendationService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonRecommendationServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceStub.java new file mode 100644 index 000000000000..784382f09196 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonRecommendationServiceStub.java @@ -0,0 +1,210 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.RecommendRequest; +import com.google.cloud.discoveryengine.v1alpha.RecommendResponse; +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 RecommendationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonRecommendationServiceStub extends RecommendationServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + recommendMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.RecommendationService/Recommend") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{servingConfig=projects/*/locations/*/dataStores/*/servingConfigs/*}:recommend", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "servingConfig", request.getServingConfig()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{servingConfig=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:recommend", + "/v1alpha/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:recommend") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearServingConfig().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RecommendResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable recommendCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonRecommendationServiceStub create( + RecommendationServiceStubSettings settings) throws IOException { + return new HttpJsonRecommendationServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRecommendationServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonRecommendationServiceStub( + RecommendationServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonRecommendationServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRecommendationServiceStub( + RecommendationServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonRecommendationServiceStub, 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 HttpJsonRecommendationServiceStub( + RecommendationServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonRecommendationServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRecommendationServiceStub, 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 HttpJsonRecommendationServiceStub( + RecommendationServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings recommendTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(recommendMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("serving_config", String.valueOf(request.getServingConfig())); + return builder.build(); + }) + .build(); + + this.recommendCallable = + callableFactory.createUnaryCallable( + recommendTransportSettings, settings.recommendSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(recommendMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable recommendCallable() { + return recommendCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceCallableFactory.java new file mode 100644 index 000000000000..2f6f25e0c6a0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 SchemaService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSchemaServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceStub.java new file mode 100644 index 000000000000..7b613dcef7db --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSchemaServiceStub.java @@ -0,0 +1,666 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; +import com.google.common.collect.ImmutableMap; +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 SchemaService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSchemaServiceStub extends SchemaServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Schema.getDescriptor()) + .add(Empty.getDescriptor()) + .add(UpdateSchemaMetadata.getDescriptor()) + .add(DeleteSchemaMetadata.getDescriptor()) + .add(CreateSchemaMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor getSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/GetSchema") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/schemas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Schema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSchemasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/ListSchemas") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/schemas", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSchemasResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/CreateSchema") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/schemas", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "schemaId", request.getSchemaId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("schema", request.getSchema(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateSchemaRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/UpdateSchema") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{schema.name=projects/*/locations/*/dataStores/*/schemas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "schema.name", request.getSchema().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{schema.name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("schema", request.getSchema(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateSchemaRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SchemaService/DeleteSchema") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/schemas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteSchemaRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable getSchemaCallable; + private final UnaryCallable listSchemasCallable; + private final UnaryCallable + listSchemasPagedCallable; + private final UnaryCallable createSchemaCallable; + private final OperationCallable + createSchemaOperationCallable; + private final UnaryCallable updateSchemaCallable; + private final OperationCallable + updateSchemaOperationCallable; + private final UnaryCallable deleteSchemaCallable; + private final OperationCallable + deleteSchemaOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSchemaServiceStub create(SchemaServiceStubSettings settings) + throws IOException { + return new HttpJsonSchemaServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSchemaServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSchemaServiceStub( + SchemaServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSchemaServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSchemaServiceStub( + SchemaServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSchemaServiceStub, 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 HttpJsonSchemaServiceStub( + SchemaServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSchemaServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSchemaServiceStub, 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 HttpJsonSchemaServiceStub( + SchemaServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listSchemasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSchemasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("schema.name", String.valueOf(request.getSchema().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getSchemaCallable = + callableFactory.createUnaryCallable( + getSchemaTransportSettings, settings.getSchemaSettings(), clientContext); + this.listSchemasCallable = + callableFactory.createUnaryCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.listSchemasPagedCallable = + callableFactory.createPagedCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.createSchemaCallable = + callableFactory.createUnaryCallable( + createSchemaTransportSettings, settings.createSchemaSettings(), clientContext); + this.createSchemaOperationCallable = + callableFactory.createOperationCallable( + createSchemaTransportSettings, + settings.createSchemaOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateSchemaCallable = + callableFactory.createUnaryCallable( + updateSchemaTransportSettings, settings.updateSchemaSettings(), clientContext); + this.updateSchemaOperationCallable = + callableFactory.createOperationCallable( + updateSchemaTransportSettings, + settings.updateSchemaOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteSchemaCallable = + callableFactory.createUnaryCallable( + deleteSchemaTransportSettings, settings.deleteSchemaSettings(), clientContext); + this.deleteSchemaOperationCallable = + callableFactory.createOperationCallable( + deleteSchemaTransportSettings, + settings.deleteSchemaOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSchemaMethodDescriptor); + methodDescriptors.add(listSchemasMethodDescriptor); + methodDescriptors.add(createSchemaMethodDescriptor); + methodDescriptors.add(updateSchemaMethodDescriptor); + methodDescriptors.add(deleteSchemaMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getSchemaCallable() { + return getSchemaCallable; + } + + @Override + public UnaryCallable listSchemasCallable() { + return listSchemasCallable; + } + + @Override + public UnaryCallable listSchemasPagedCallable() { + return listSchemasPagedCallable; + } + + @Override + public UnaryCallable createSchemaCallable() { + return createSchemaCallable; + } + + @Override + public OperationCallable + createSchemaOperationCallable() { + return createSchemaOperationCallable; + } + + @Override + public UnaryCallable updateSchemaCallable() { + return updateSchemaCallable; + } + + @Override + public OperationCallable + updateSchemaOperationCallable() { + return updateSchemaOperationCallable; + } + + @Override + public UnaryCallable deleteSchemaCallable() { + return deleteSchemaCallable; + } + + @Override + public OperationCallable + deleteSchemaOperationCallable() { + return deleteSchemaOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceCallableFactory.java new file mode 100644 index 000000000000..f6502a58163c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 SearchService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSearchServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceStub.java new file mode 100644 index 000000000000..a94ad1f65b6d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSearchServiceStub.java @@ -0,0 +1,216 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +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 SearchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSearchServiceStub extends SearchServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor searchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.SearchService/Search") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{servingConfig=projects/*/locations/*/dataStores/*/servingConfigs/*}:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "servingConfig", request.getServingConfig()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{servingConfig=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:search", + "/v1alpha/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:search") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearServingConfig().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable searchCallable; + private final UnaryCallable searchPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSearchServiceStub create(SearchServiceStubSettings settings) + throws IOException { + return new HttpJsonSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSearchServiceStub( + SearchServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSearchServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSearchServiceStub( + SearchServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSearchServiceStub, 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 HttpJsonSearchServiceStub( + SearchServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSearchServiceStub, 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 HttpJsonSearchServiceStub( + SearchServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings searchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("serving_config", String.valueOf(request.getServingConfig())); + return builder.build(); + }) + .build(); + + this.searchCallable = + callableFactory.createUnaryCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + this.searchPagedCallable = + callableFactory.createPagedCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(searchMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable searchCallable() { + return searchCallable; + } + + @Override + public UnaryCallable searchPagedCallable() { + return searchPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceCallableFactory.java new file mode 100644 index 000000000000..4c7407be8088 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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 SiteSearchEngineService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSiteSearchEngineServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceStub.java new file mode 100644 index 000000000000..01f9a264a4e6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonSiteSearchEngineServiceStub.java @@ -0,0 +1,381 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse; +import com.google.common.collect.ImmutableMap; +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 SiteSearchEngineService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSiteSearchEngineServiceStub extends SiteSearchEngineServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(RecrawlUrisResponse.getDescriptor()) + .add(RecrawlUrisMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + recrawlUrisMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService/RecrawlUris") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{siteSearchEngine=projects/*/locations/*/dataStores/*/siteSearchEngine}:recrawlUris", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "siteSearchEngine", request.getSiteSearchEngine()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{siteSearchEngine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:recrawlUris") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request.toBuilder().clearSiteSearchEngine().build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RecrawlUrisRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable recrawlUrisCallable; + private final OperationCallable + recrawlUrisOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSiteSearchEngineServiceStub create( + SiteSearchEngineServiceStubSettings settings) throws IOException { + return new HttpJsonSiteSearchEngineServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSiteSearchEngineServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSiteSearchEngineServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSiteSearchEngineServiceStub, 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 HttpJsonSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSiteSearchEngineServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSiteSearchEngineServiceStub, 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 HttpJsonSiteSearchEngineServiceStub( + SiteSearchEngineServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings recrawlUrisTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(recrawlUrisMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("site_search_engine", String.valueOf(request.getSiteSearchEngine())); + return builder.build(); + }) + .build(); + + this.recrawlUrisCallable = + callableFactory.createUnaryCallable( + recrawlUrisTransportSettings, settings.recrawlUrisSettings(), clientContext); + this.recrawlUrisOperationCallable = + callableFactory.createOperationCallable( + recrawlUrisTransportSettings, + settings.recrawlUrisOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(recrawlUrisMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable recrawlUrisCallable() { + return recrawlUrisCallable; + } + + @Override + public OperationCallable + recrawlUrisOperationCallable() { + return recrawlUrisOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceCallableFactory.java new file mode 100644 index 000000000000..cf9fb0fbb6f8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.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/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceStub.java new file mode 100644 index 000000000000..d604d1a1d273 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonUserEventServiceStub.java @@ -0,0 +1,590 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.HttpBody; +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest; +import com.google.common.collect.ImmutableMap; +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(ImportUserEventsResponse.getDescriptor()) + .add(PurgeUserEventsResponse.getDescriptor()) + .add(PurgeUserEventsMetadata.getDescriptor()) + .add(ImportUserEventsMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + writeUserEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/WriteUserEvent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:write", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("userEvent", request.getUserEvent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + collectUserEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/CollectUserEvent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:collect", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasEts()) { + serializer.putQueryParam(fields, "ets", request.getEts()); + } + if (request.hasUri()) { + serializer.putQueryParam(fields, "uri", request.getUri()); + } + serializer.putQueryParam(fields, "userEvent", request.getUserEvent()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HttpBody.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + purgeUserEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.UserEventService/PurgeUserEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:purge") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .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.discoveryengine.v1alpha.UserEventService/ImportUserEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .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 purgeUserEventsCallable; + private final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable; + private final UnaryCallable importUserEventsCallable; + private final OperationCallable< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + 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, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings writeUserEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(writeUserEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings collectUserEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(collectUserEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings purgeUserEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeUserEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings importUserEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importUserEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.writeUserEventCallable = + callableFactory.createUnaryCallable( + writeUserEventTransportSettings, settings.writeUserEventSettings(), clientContext); + this.collectUserEventCallable = + callableFactory.createUnaryCallable( + collectUserEventTransportSettings, settings.collectUserEventSettings(), 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(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 purgeUserEventsCallable() { + return purgeUserEventsCallable; + } + + @Override + public OperationCallable + purgeUserEventsOperationCallable() { + return purgeUserEventsOperationCallable; + } + + @Override + public UnaryCallable importUserEventsCallable() { + return importUserEventsCallable; + } + + @Override + public OperationCallable< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + 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/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStub.java new file mode 100644 index 000000000000..076005630ef0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStub.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.RecommendRequest; +import com.google.cloud.discoveryengine.v1alpha.RecommendResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RecommendationService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class RecommendationServiceStub implements BackgroundResource { + + public UnaryCallable recommendCallable() { + throw new UnsupportedOperationException("Not implemented: recommendCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java new file mode 100644 index 000000000000..6fe86c730d71 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java @@ -0,0 +1,330 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.RecommendRequest; +import com.google.cloud.discoveryengine.v1alpha.RecommendResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RecommendationServiceStub}. + * + *

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

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

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

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

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

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to recommend. */ + public UnaryCallSettings.Builder recommendSettings() { + return recommendSettings; + } + + @Override + public RecommendationServiceStubSettings build() throws IOException { + return new RecommendationServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java new file mode 100644 index 000000000000..816101945e8f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SchemaService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SchemaServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: getSchemaCallable()"); + } + + public UnaryCallable listSchemasPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSchemasPagedCallable()"); + } + + public UnaryCallable listSchemasCallable() { + throw new UnsupportedOperationException("Not implemented: listSchemasCallable()"); + } + + public OperationCallable + createSchemaOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createSchemaOperationCallable()"); + } + + public UnaryCallable createSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: createSchemaCallable()"); + } + + public OperationCallable + updateSchemaOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateSchemaOperationCallable()"); + } + + public UnaryCallable updateSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: updateSchemaCallable()"); + } + + public OperationCallable + deleteSchemaOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSchemaOperationCallable()"); + } + + public UnaryCallable deleteSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSchemaCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java new file mode 100644 index 000000000000..ebae00c56240 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java @@ -0,0 +1,634 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SchemaServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
+ *     SchemaServiceStubSettings.newBuilder();
+ * schemaServiceSettingsBuilder
+ *     .getSchemaSettings()
+ *     .setRetrySettings(
+ *         schemaServiceSettingsBuilder
+ *             .getSchemaSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class SchemaServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getSchemaSettings; + private final PagedCallSettings + listSchemasSettings; + private final UnaryCallSettings createSchemaSettings; + private final OperationCallSettings + createSchemaOperationSettings; + private final UnaryCallSettings updateSchemaSettings; + private final OperationCallSettings + updateSchemaOperationSettings; + private final UnaryCallSettings deleteSchemaSettings; + private final OperationCallSettings + deleteSchemaOperationSettings; + + private static final PagedListDescriptor + LIST_SCHEMAS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSchemasRequest injectToken(ListSchemasRequest payload, String token) { + return ListSchemasRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSchemasRequest injectPageSize(ListSchemasRequest payload, int pageSize) { + return ListSchemasRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSchemasRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSchemasResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSchemasResponse payload) { + return payload.getSchemasList() == null + ? ImmutableList.of() + : payload.getSchemasList(); + } + }; + + private static final PagedListResponseFactory< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + LIST_SCHEMAS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSchemasRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SCHEMAS_PAGE_STR_DESC, request, context); + return ListSchemasPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getSchema. */ + public UnaryCallSettings getSchemaSettings() { + return getSchemaSettings; + } + + /** Returns the object with the settings used for calls to listSchemas. */ + public PagedCallSettings + listSchemasSettings() { + return listSchemasSettings; + } + + /** Returns the object with the settings used for calls to createSchema. */ + public UnaryCallSettings createSchemaSettings() { + return createSchemaSettings; + } + + /** Returns the object with the settings used for calls to createSchema. */ + public OperationCallSettings + createSchemaOperationSettings() { + return createSchemaOperationSettings; + } + + /** Returns the object with the settings used for calls to updateSchema. */ + public UnaryCallSettings updateSchemaSettings() { + return updateSchemaSettings; + } + + /** Returns the object with the settings used for calls to updateSchema. */ + public OperationCallSettings + updateSchemaOperationSettings() { + return updateSchemaOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteSchema. */ + public UnaryCallSettings deleteSchemaSettings() { + return deleteSchemaSettings; + } + + /** Returns the object with the settings used for calls to deleteSchema. */ + public OperationCallSettings + deleteSchemaOperationSettings() { + return deleteSchemaOperationSettings; + } + + public SchemaServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSchemaServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSchemaServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SchemaServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SchemaServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SchemaServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SchemaServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSchemaSettings = settingsBuilder.getSchemaSettings().build(); + listSchemasSettings = settingsBuilder.listSchemasSettings().build(); + createSchemaSettings = settingsBuilder.createSchemaSettings().build(); + createSchemaOperationSettings = settingsBuilder.createSchemaOperationSettings().build(); + updateSchemaSettings = settingsBuilder.updateSchemaSettings().build(); + updateSchemaOperationSettings = settingsBuilder.updateSchemaOperationSettings().build(); + deleteSchemaSettings = settingsBuilder.deleteSchemaSettings().build(); + deleteSchemaOperationSettings = settingsBuilder.deleteSchemaOperationSettings().build(); + } + + /** Builder for SchemaServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getSchemaSettings; + private final PagedCallSettings.Builder< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + listSchemasSettings; + private final UnaryCallSettings.Builder createSchemaSettings; + private final OperationCallSettings.Builder + createSchemaOperationSettings; + private final UnaryCallSettings.Builder updateSchemaSettings; + private final OperationCallSettings.Builder + updateSchemaOperationSettings; + private final UnaryCallSettings.Builder deleteSchemaSettings; + private final OperationCallSettings.Builder + deleteSchemaOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSchemasSettings = PagedCallSettings.newBuilder(LIST_SCHEMAS_PAGE_STR_FACT); + createSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSchemaOperationSettings = OperationCallSettings.newBuilder(); + updateSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSchemaOperationSettings = OperationCallSettings.newBuilder(); + deleteSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSchemaOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSchemaSettings, + listSchemasSettings, + createSchemaSettings, + updateSchemaSettings, + deleteSchemaSettings); + initDefaults(this); + } + + protected Builder(SchemaServiceStubSettings settings) { + super(settings); + + getSchemaSettings = settings.getSchemaSettings.toBuilder(); + listSchemasSettings = settings.listSchemasSettings.toBuilder(); + createSchemaSettings = settings.createSchemaSettings.toBuilder(); + createSchemaOperationSettings = settings.createSchemaOperationSettings.toBuilder(); + updateSchemaSettings = settings.updateSchemaSettings.toBuilder(); + updateSchemaOperationSettings = settings.updateSchemaOperationSettings.toBuilder(); + deleteSchemaSettings = settings.deleteSchemaSettings.toBuilder(); + deleteSchemaOperationSettings = settings.deleteSchemaOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSchemaSettings, + listSchemasSettings, + createSchemaSettings, + updateSchemaSettings, + deleteSchemaSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listSchemasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .createSchemaOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Schema.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateSchemaMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateSchemaOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Schema.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(UpdateSchemaMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteSchemaOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteSchemaMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSchema. */ + public UnaryCallSettings.Builder getSchemaSettings() { + return getSchemaSettings; + } + + /** Returns the builder for the settings used for calls to listSchemas. */ + public PagedCallSettings.Builder< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + listSchemasSettings() { + return listSchemasSettings; + } + + /** Returns the builder for the settings used for calls to createSchema. */ + public UnaryCallSettings.Builder createSchemaSettings() { + return createSchemaSettings; + } + + /** Returns the builder for the settings used for calls to createSchema. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createSchemaOperationSettings() { + return createSchemaOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateSchema. */ + public UnaryCallSettings.Builder updateSchemaSettings() { + return updateSchemaSettings; + } + + /** Returns the builder for the settings used for calls to updateSchema. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateSchemaOperationSettings() { + return updateSchemaOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteSchema. */ + public UnaryCallSettings.Builder deleteSchemaSettings() { + return deleteSchemaSettings; + } + + /** Returns the builder for the settings used for calls to deleteSchema. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteSchemaOperationSettings() { + return deleteSchemaOperationSettings; + } + + @Override + public SchemaServiceStubSettings build() throws IOException { + return new SchemaServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStub.java new file mode 100644 index 000000000000..80ac367546ab --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStub.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SearchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SearchServiceStub implements BackgroundResource { + + public UnaryCallable searchPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchPagedCallable()"); + } + + public UnaryCallable searchCallable() { + throw new UnsupportedOperationException("Not implemented: searchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java new file mode 100644 index 000000000000..67d10a2e3496 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java @@ -0,0 +1,391 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SearchServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SearchServiceStubSettings.Builder searchServiceSettingsBuilder =
+ *     SearchServiceStubSettings.newBuilder();
+ * searchServiceSettingsBuilder
+ *     .searchSettings()
+ *     .setRetrySettings(
+ *         searchServiceSettingsBuilder
+ *             .searchSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SearchServiceStubSettings searchServiceSettings = searchServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class SearchServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings + searchSettings; + + private static final PagedListDescriptor< + SearchRequest, SearchResponse, SearchResponse.SearchResult> + SEARCH_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchRequest injectToken(SearchRequest payload, String token) { + return SearchRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchRequest injectPageSize(SearchRequest payload, int pageSize) { + return SearchRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchResponse payload) { + return payload.getResultsList() == null + ? ImmutableList.of() + : payload.getResultsList(); + } + }; + + private static final PagedListResponseFactory + SEARCH_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, SEARCH_PAGE_STR_DESC, request, context); + return SearchPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to search. */ + public PagedCallSettings searchSettings() { + return searchSettings; + } + + public SearchServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSearchServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSearchServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SearchServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SearchServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SearchServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SearchServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + searchSettings = settingsBuilder.searchSettings().build(); + } + + /** Builder for SearchServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder + searchSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(5000L)) + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of(searchSettings); + initDefaults(this); + } + + protected Builder(SearchServiceStubSettings settings) { + super(settings); + + searchSettings = settings.searchSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(searchSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .searchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to search. */ + public PagedCallSettings.Builder + searchSettings() { + return searchSettings; + } + + @Override + public SearchServiceStubSettings build() throws IOException { + return new SearchServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java new file mode 100644 index 000000000000..ae9c6cdfc3f7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SiteSearchEngineService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SiteSearchEngineServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + recrawlUrisOperationCallable() { + throw new UnsupportedOperationException("Not implemented: recrawlUrisOperationCallable()"); + } + + public UnaryCallable recrawlUrisCallable() { + throw new UnsupportedOperationException("Not implemented: recrawlUrisCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java new file mode 100644 index 000000000000..6262b86978e9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java @@ -0,0 +1,371 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SiteSearchEngineServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SiteSearchEngineServiceStubSettings.Builder siteSearchEngineServiceSettingsBuilder =
+ *     SiteSearchEngineServiceStubSettings.newBuilder();
+ * siteSearchEngineServiceSettingsBuilder
+ *     .recrawlUrisSettings()
+ *     .setRetrySettings(
+ *         siteSearchEngineServiceSettingsBuilder
+ *             .recrawlUrisSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SiteSearchEngineServiceStubSettings siteSearchEngineServiceSettings =
+ *     siteSearchEngineServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class SiteSearchEngineServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings recrawlUrisSettings; + private final OperationCallSettings + recrawlUrisOperationSettings; + + /** Returns the object with the settings used for calls to recrawlUris. */ + public UnaryCallSettings recrawlUrisSettings() { + return recrawlUrisSettings; + } + + /** Returns the object with the settings used for calls to recrawlUris. */ + public OperationCallSettings + recrawlUrisOperationSettings() { + return recrawlUrisOperationSettings; + } + + public SiteSearchEngineServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSiteSearchEngineServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSiteSearchEngineServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SiteSearchEngineServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SiteSearchEngineServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SiteSearchEngineServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SiteSearchEngineServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + recrawlUrisSettings = settingsBuilder.recrawlUrisSettings().build(); + recrawlUrisOperationSettings = settingsBuilder.recrawlUrisOperationSettings().build(); + } + + /** Builder for SiteSearchEngineServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder recrawlUrisSettings; + private final OperationCallSettings.Builder< + RecrawlUrisRequest, RecrawlUrisResponse, RecrawlUrisMetadata> + recrawlUrisOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + recrawlUrisSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + recrawlUrisOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(recrawlUrisSettings); + initDefaults(this); + } + + protected Builder(SiteSearchEngineServiceStubSettings settings) { + super(settings); + + recrawlUrisSettings = settings.recrawlUrisSettings.toBuilder(); + recrawlUrisOperationSettings = settings.recrawlUrisOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(recrawlUrisSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .recrawlUrisSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .recrawlUrisOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(RecrawlUrisResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(RecrawlUrisMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to recrawlUris. */ + public UnaryCallSettings.Builder recrawlUrisSettings() { + return recrawlUrisSettings; + } + + /** Returns the builder for the settings used for calls to recrawlUris. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RecrawlUrisRequest, RecrawlUrisResponse, RecrawlUrisMetadata> + recrawlUrisOperationSettings() { + return recrawlUrisOperationSettings; + } + + @Override + public SiteSearchEngineServiceStubSettings build() throws IOException { + return new SiteSearchEngineServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java new file mode 100644 index 000000000000..1a841f32c1f3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java @@ -0,0 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.HttpBody; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the UserEventService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class UserEventServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable writeUserEventCallable() { + throw new UnsupportedOperationException("Not implemented: writeUserEventCallable()"); + } + + public UnaryCallable collectUserEventCallable() { + throw new UnsupportedOperationException("Not implemented: collectUserEventCallable()"); + } + + public OperationCallable + purgeUserEventsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeUserEventsOperationCallable()"); + } + + public UnaryCallable purgeUserEventsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeUserEventsCallable()"); + } + + public OperationCallable< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importUserEventsOperationCallable()"); + } + + public UnaryCallable importUserEventsCallable() { + throw new UnsupportedOperationException("Not implemented: importUserEventsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java new file mode 100644 index 000000000000..fe006d0717bd --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java @@ -0,0 +1,525 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.HttpBody; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserEventServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * UserEventServiceStubSettings.Builder userEventServiceSettingsBuilder =
+ *     UserEventServiceStubSettings.newBuilder();
+ * userEventServiceSettingsBuilder
+ *     .writeUserEventSettings()
+ *     .setRetrySettings(
+ *         userEventServiceSettingsBuilder
+ *             .writeUserEventSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * UserEventServiceStubSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserEventServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings writeUserEventSettings; + private final UnaryCallSettings collectUserEventSettings; + private final UnaryCallSettings purgeUserEventsSettings; + private final OperationCallSettings< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings; + private final UnaryCallSettings importUserEventsSettings; + private final OperationCallSettings< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationSettings; + + /** Returns the object with the settings used for calls to writeUserEvent. */ + public UnaryCallSettings writeUserEventSettings() { + return writeUserEventSettings; + } + + /** Returns the object with the settings used for calls to collectUserEvent. */ + public UnaryCallSettings collectUserEventSettings() { + return collectUserEventSettings; + } + + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings purgeUserEventsSettings() { + return purgeUserEventsSettings; + } + + /** Returns the object with the settings used for calls to purgeUserEvents. */ + public OperationCallSettings< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return purgeUserEventsOperationSettings; + } + + /** Returns the object with the settings used for calls to importUserEvents. */ + public UnaryCallSettings importUserEventsSettings() { + return importUserEventsSettings; + } + + /** Returns the object with the settings used for calls to importUserEvents. */ + public OperationCallSettings< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationSettings() { + return importUserEventsOperationSettings; + } + + public UserEventServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .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())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserEventServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(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); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserEventServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + writeUserEventSettings = settingsBuilder.writeUserEventSettings().build(); + collectUserEventSettings = settingsBuilder.collectUserEventSettings().build(); + purgeUserEventsSettings = settingsBuilder.purgeUserEventsSettings().build(); + purgeUserEventsOperationSettings = settingsBuilder.purgeUserEventsOperationSettings().build(); + importUserEventsSettings = settingsBuilder.importUserEventsSettings().build(); + importUserEventsOperationSettings = settingsBuilder.importUserEventsOperationSettings().build(); + } + + /** Builder for UserEventServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + writeUserEventSettings; + private final UnaryCallSettings.Builder + collectUserEventSettings; + private final UnaryCallSettings.Builder + purgeUserEventsSettings; + private final OperationCallSettings.Builder< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings; + private final UnaryCallSettings.Builder + importUserEventsSettings; + private final OperationCallSettings.Builder< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(30000L)) + .setInitialRpcTimeout(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + collectUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeUserEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeUserEventsOperationSettings = OperationCallSettings.newBuilder(); + importUserEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importUserEventsOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + writeUserEventSettings, + collectUserEventSettings, + purgeUserEventsSettings, + importUserEventsSettings); + initDefaults(this); + } + + protected Builder(UserEventServiceStubSettings settings) { + super(settings); + + writeUserEventSettings = settings.writeUserEventSettings.toBuilder(); + collectUserEventSettings = settings.collectUserEventSettings.toBuilder(); + purgeUserEventsSettings = settings.purgeUserEventsSettings.toBuilder(); + purgeUserEventsOperationSettings = settings.purgeUserEventsOperationSettings.toBuilder(); + importUserEventsSettings = settings.importUserEventsSettings.toBuilder(); + importUserEventsOperationSettings = settings.importUserEventsOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + writeUserEventSettings, + collectUserEventSettings, + purgeUserEventsSettings, + importUserEventsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .writeUserEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .collectUserEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .purgeUserEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .importUserEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .purgeUserEventsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeUserEventsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeUserEventsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .importUserEventsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ImportUserEventsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to writeUserEvent. */ + public UnaryCallSettings.Builder writeUserEventSettings() { + return writeUserEventSettings; + } + + /** Returns the builder for the settings used for calls to collectUserEvent. */ + public UnaryCallSettings.Builder collectUserEventSettings() { + return collectUserEventSettings; + } + + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + public UnaryCallSettings.Builder purgeUserEventsSettings() { + return purgeUserEventsSettings; + } + + /** Returns the builder for the settings used for calls to purgeUserEvents. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationSettings() { + return purgeUserEventsOperationSettings; + } + + /** Returns the builder for the settings used for calls to importUserEvents. */ + public UnaryCallSettings.Builder + importUserEventsSettings() { + return importUserEventsSettings; + } + + /** Returns the builder for the settings used for calls to importUserEvents. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ImportUserEventsRequest, ImportUserEventsResponse, ImportUserEventsMetadata> + importUserEventsOperationSettings() { + return importUserEventsOperationSettings; + } + + @Override + public UserEventServiceStubSettings build() throws IOException { + return new UserEventServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json new file mode 100644 index 000000000000..40bd3fb7ed9a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json @@ -0,0 +1,3305 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpBody", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpBody$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.BigQuerySource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.BigQuerySource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse$QuerySuggestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse$QuerySuggestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompletionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CompletionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Conversation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Conversation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Conversation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConversationContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConversationContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConversationMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConversationMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CustomAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CustomAttribute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$Content", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$Content$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DoubleList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DoubleList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$CompletableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$DynamicFacetableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$FieldType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$FilterableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$IndexableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$RetrievableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$SearchableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$ReconciliationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.MediaInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.MediaInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PanelInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PanelInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecommendRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecommendRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecommendResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecommendResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecommendResponse$RecommendationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecommendResponse$RecommendationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse$FailureInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse$FailureInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse$FailureInfo$FailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Reply", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Reply$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Reply$Reference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Reply$Reference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Schema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Schema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$BoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$BoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$BoostSpec$ConditionBoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$SnippetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$SummarySpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$SummarySpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$EmbeddingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$EmbeddingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$EmbeddingSpec$EmbeddingVector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$EmbeddingSpec$EmbeddingVector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$FacetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$FacetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$FacetSpec$FacetKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$FacetSpec$FacetKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ImageQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ImageQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$QueryExpansionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$QueryExpansionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$QueryExpansionSpec$Condition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$SpellCorrectionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$SpellCorrectionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$SpellCorrectionSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Facet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Facet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Facet$FacetValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Facet$FacetValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$GeoSearchDebugInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$GeoSearchDebugInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$GuidedSearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$GuidedSearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$GuidedSearchResult$RefinementAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$GuidedSearchResult$RefinementAttribute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$QueryExpansionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$QueryExpansionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$SearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$SearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Summary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Summary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Summary$SafetyAttributes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Summary$SafetyAttributes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchResponse$Summary$SummarySkippedReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SolutionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.TextInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.TextInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.TransactionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.TransactionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UserEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UserEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UserInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UserInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..96045f6fc1c0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +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.discoveryengine.v1alpha.stub.HttpJsonCompletionServiceStub; +import java.io.IOException; +import java.util.ArrayList; +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 CompletionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CompletionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCompletionServiceStub.getMethodDescriptors(), + CompletionServiceSettings.getDefaultEndpoint()); + CompletionServiceSettings settings = + CompletionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CompletionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void completeQueryTest() throws Exception { + CompleteQueryResponse expectedResponse = + CompleteQueryResponse.newBuilder() + .addAllQuerySuggestions(new ArrayList()) + .setTailMatchTriggered(true) + .build(); + mockService.addResponse(expectedResponse); + + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setIncludeTailSuggestions(true) + .build(); + + CompleteQueryResponse actualResponse = client.completeQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void completeQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setIncludeTailSuggestions(true) + .build(); + client.completeQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java new file mode 100644 index 000000000000..77009c130481 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java @@ -0,0 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CompletionServiceClientTest { + private static MockCompletionService mockCompletionService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CompletionServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCompletionService = new MockCompletionService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockCompletionService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CompletionServiceSettings settings = + CompletionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void completeQueryTest() throws Exception { + CompleteQueryResponse expectedResponse = + CompleteQueryResponse.newBuilder() + .addAllQuerySuggestions(new ArrayList()) + .setTailMatchTriggered(true) + .build(); + mockCompletionService.addResponse(expectedResponse); + + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setIncludeTailSuggestions(true) + .build(); + + CompleteQueryResponse actualResponse = client.completeQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompleteQueryRequest actualRequest = ((CompleteQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getDataStore(), actualRequest.getDataStore()); + Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getQueryModel(), actualRequest.getQueryModel()); + Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); + Assert.assertEquals( + request.getIncludeTailSuggestions(), actualRequest.getIncludeTailSuggestions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void completeQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setIncludeTailSuggestions(true) + .build(); + client.completeQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..4f264c631d68 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientHttpJsonTest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +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.discoveryengine.v1alpha.stub.HttpJsonConversationalSearchServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConversationalSearchServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConversationalSearchServiceStub.getMethodDescriptors(), + ConversationalSearchServiceSettings.getDefaultEndpoint()); + ConversationalSearchServiceSettings settings = + ConversationalSearchServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConversationalSearchServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConversationalSearchServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void converseConversationTest() throws Exception { + ConverseConversationResponse expectedResponse = + ConverseConversationResponse.newBuilder() + .setReply(Reply.newBuilder().build()) + .setConversation(Conversation.newBuilder().build()) + .addAllRelatedQuestions(new ArrayList()) + .addAllSearchResults(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + TextInput query = TextInput.newBuilder().build(); + + ConverseConversationResponse actualResponse = client.converseConversation(name, query); + 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 converseConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + TextInput query = TextInput.newBuilder().build(); + client.converseConversation(name, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void converseConversationTest2() throws Exception { + ConverseConversationResponse expectedResponse = + ConverseConversationResponse.newBuilder() + .setReply(Reply.newBuilder().build()) + .setConversation(Conversation.newBuilder().build()) + .addAllRelatedQuestions(new ArrayList()) + .addAllSearchResults(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1064/locations/location-1064/dataStores/dataStore-1064/conversations/conversation-1064"; + TextInput query = TextInput.newBuilder().build(); + + ConverseConversationResponse actualResponse = client.converseConversation(name, query); + 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 converseConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1064/locations/location-1064/dataStores/dataStore-1064/conversations/conversation-1064"; + TextInput query = TextInput.newBuilder().build(); + client.converseConversation(name, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Conversation conversation = Conversation.newBuilder().build(); + + Conversation actualResponse = client.createConversation(parent, conversation); + 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 createConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Conversation conversation = Conversation.newBuilder().build(); + client.createConversation(parent, conversation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversationTest2() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + Conversation conversation = Conversation.newBuilder().build(); + + Conversation actualResponse = client.createConversation(parent, conversation); + 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 createConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + Conversation conversation = Conversation.newBuilder().build(); + client.createConversation(parent, conversation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + + client.deleteConversation(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 deleteConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1064/locations/location-1064/dataStores/dataStore-1064/conversations/conversation-1064"; + + client.deleteConversation(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 deleteConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1064/locations/location-1064/dataStores/dataStore-1064/conversations/conversation-1064"; + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Conversation conversation = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Conversation actualResponse = client.updateConversation(conversation, 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 updateConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Conversation conversation = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConversation(conversation, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + + Conversation actualResponse = client.getConversation(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 getConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest2() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1064/locations/location-1064/dataStores/dataStore-1064/conversations/conversation-1064"; + + Conversation actualResponse = client.getConversation(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 getConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1064/locations/location-1064/dataStores/dataStore-1064/conversations/conversation-1064"; + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().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 listConversationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest2() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().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 listConversationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientTest.java new file mode 100644 index 000000000000..6a14197a9979 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClientTest.java @@ -0,0 +1,583 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient.ListConversationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClientTest { + private static MockConversationalSearchService mockConversationalSearchService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ConversationalSearchServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockConversationalSearchService = new MockConversationalSearchService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockConversationalSearchService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ConversationalSearchServiceSettings settings = + ConversationalSearchServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConversationalSearchServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void converseConversationTest() throws Exception { + ConverseConversationResponse expectedResponse = + ConverseConversationResponse.newBuilder() + .setReply(Reply.newBuilder().build()) + .setConversation(Conversation.newBuilder().build()) + .addAllRelatedQuestions(new ArrayList()) + .addAllSearchResults(new ArrayList()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + TextInput query = TextInput.newBuilder().build(); + + ConverseConversationResponse actualResponse = client.converseConversation(name, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ConverseConversationRequest actualRequest = + ((ConverseConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void converseConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + TextInput query = TextInput.newBuilder().build(); + client.converseConversation(name, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void converseConversationTest2() throws Exception { + ConverseConversationResponse expectedResponse = + ConverseConversationResponse.newBuilder() + .setReply(Reply.newBuilder().build()) + .setConversation(Conversation.newBuilder().build()) + .addAllRelatedQuestions(new ArrayList()) + .addAllSearchResults(new ArrayList()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + String name = "name3373707"; + TextInput query = TextInput.newBuilder().build(); + + ConverseConversationResponse actualResponse = client.converseConversation(name, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ConverseConversationRequest actualRequest = + ((ConverseConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void converseConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + String name = "name3373707"; + TextInput query = TextInput.newBuilder().build(); + client.converseConversation(name, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Conversation conversation = Conversation.newBuilder().build(); + + Conversation actualResponse = client.createConversation(parent, conversation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversationRequest actualRequest = ((CreateConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(conversation, actualRequest.getConversation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Conversation conversation = Conversation.newBuilder().build(); + client.createConversation(parent, conversation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversationTest2() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Conversation conversation = Conversation.newBuilder().build(); + + Conversation actualResponse = client.createConversation(parent, conversation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversationRequest actualRequest = ((CreateConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(conversation, actualRequest.getConversation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + String parent = "parent-995424086"; + Conversation conversation = Conversation.newBuilder().build(); + client.createConversation(parent, conversation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConversationalSearchService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + + client.deleteConversation(name); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockConversationalSearchService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteConversation(name); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + String name = "name3373707"; + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + Conversation conversation = Conversation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Conversation actualResponse = client.updateConversation(conversation, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateConversationRequest actualRequest = ((UpdateConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(conversation, actualRequest.getConversation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + Conversation conversation = Conversation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConversation(conversation, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + + Conversation actualResponse = client.getConversation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversationRequest actualRequest = ((GetConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest2() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .addAllMessages(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + String name = "name3373707"; + + Conversation actualResponse = client.getConversation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversationRequest actualRequest = ((GetConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + String name = "name3373707"; + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversationsRequest actualRequest = ((ListConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest2() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); + + List actualRequests = mockConversationalSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversationsRequest actualRequest = ((ListConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..094d0e58117e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java @@ -0,0 +1,724 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +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.discoveryengine.v1alpha.stub.HttpJsonDocumentServiceStub; +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.Struct; +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 DocumentServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DocumentServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDocumentServiceStub.getMethodDescriptors(), + DocumentServiceSettings.getDefaultEndpoint()); + DocumentServiceSettings settings = + DocumentServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DocumentServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DocumentServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getDocumentTest() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + + Document actualResponse = client.getDocument(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 getDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + client.getDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDocumentTest2() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2446/locations/location-2446/dataStores/dataStore-2446/branches/branche-2446/documents/document-2446"; + + Document actualResponse = client.getDocument(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 getDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2446/locations/location-2446/dataStores/dataStore-2446/branches/branche-2446/documents/document-2446"; + client.getDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDocumentsTest() throws Exception { + Document responsesElement = Document.newBuilder().build(); + ListDocumentsResponse expectedResponse = + ListDocumentsResponse.newBuilder() + .setNextPageToken("") + .addAllDocuments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + + ListDocumentsPagedResponse pagedListResponse = client.listDocuments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDocumentsList().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 listDocumentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + client.listDocuments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDocumentsTest2() throws Exception { + Document responsesElement = Document.newBuilder().build(); + ListDocumentsResponse expectedResponse = + ListDocumentsResponse.newBuilder() + .setNextPageToken("") + .addAllDocuments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-3187/locations/location-3187/dataStores/dataStore-3187/branches/branche-3187"; + + ListDocumentsPagedResponse pagedListResponse = client.listDocuments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDocumentsList().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 listDocumentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-3187/locations/location-3187/dataStores/dataStore-3187/branches/branche-3187"; + client.listDocuments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDocumentTest() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + + Document actualResponse = client.createDocument(parent, document, documentId); + 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 createDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + client.createDocument(parent, document, documentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDocumentTest2() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-3187/locations/location-3187/dataStores/dataStore-3187/branches/branche-3187"; + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + + Document actualResponse = client.createDocument(parent, document, documentId); + 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 createDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-3187/locations/location-3187/dataStores/dataStore-3187/branches/branche-3187"; + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + client.createDocument(parent, document, documentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDocumentTest() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder() + .setDocument( + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build()) + .setAllowMissing(true) + .build(); + + Document actualResponse = client.updateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder() + .setDocument( + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build()) + .setAllowMissing(true) + .build(); + client.updateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDocumentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + + client.deleteDocument(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 deleteDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + client.deleteDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDocumentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2446/locations/location-2446/dataStores/dataStore-2446/branches/branche-2446/documents/document-2446"; + + client.deleteDocument(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 deleteDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2446/locations/location-2446/dataStores/dataStore-2446/branches/branche-2446/documents/document-2446"; + client.deleteDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importDocumentsTest() throws Exception { + ImportDocumentsResponse expectedResponse = + ImportDocumentsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importDocumentsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + + ImportDocumentsResponse actualResponse = client.importDocumentsAsync(request).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 importDocumentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + client.importDocumentsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void purgeDocumentsTest() throws Exception { + PurgeDocumentsResponse expectedResponse = + PurgeDocumentsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeDocumentsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeDocumentsResponse actualResponse = client.purgeDocumentsAsync(request).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 purgeDocumentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeDocumentsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java new file mode 100644 index 000000000000..8be0bbcc9d84 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient.ListDocumentsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Struct; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DocumentServiceClientTest { + private static MockDocumentService mockDocumentService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DocumentServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDocumentService = new MockDocumentService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDocumentService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DocumentServiceSettings settings = + DocumentServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DocumentServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getDocumentTest() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + + Document actualResponse = client.getDocument(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDocumentRequest actualRequest = ((GetDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + client.getDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDocumentTest2() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Document actualResponse = client.getDocument(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDocumentRequest actualRequest = ((GetDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + String name = "name3373707"; + client.getDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDocumentsTest() throws Exception { + Document responsesElement = Document.newBuilder().build(); + ListDocumentsResponse expectedResponse = + ListDocumentsResponse.newBuilder() + .setNextPageToken("") + .addAllDocuments(Arrays.asList(responsesElement)) + .build(); + mockDocumentService.addResponse(expectedResponse); + + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + + ListDocumentsPagedResponse pagedListResponse = client.listDocuments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDocumentsList().get(0), resources.get(0)); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDocumentsRequest actualRequest = ((ListDocumentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDocumentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + client.listDocuments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDocumentsTest2() throws Exception { + Document responsesElement = Document.newBuilder().build(); + ListDocumentsResponse expectedResponse = + ListDocumentsResponse.newBuilder() + .setNextPageToken("") + .addAllDocuments(Arrays.asList(responsesElement)) + .build(); + mockDocumentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDocumentsPagedResponse pagedListResponse = client.listDocuments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDocumentsList().get(0), resources.get(0)); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDocumentsRequest actualRequest = ((ListDocumentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDocumentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDocuments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDocumentTest() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + + Document actualResponse = client.createDocument(parent, document, documentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDocumentRequest actualRequest = ((CreateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(document, actualRequest.getDocument()); + Assert.assertEquals(documentId, actualRequest.getDocumentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + client.createDocument(parent, document, documentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDocumentTest2() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + + Document actualResponse = client.createDocument(parent, document, documentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDocumentRequest actualRequest = ((CreateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(document, actualRequest.getDocument()); + Assert.assertEquals(documentId, actualRequest.getDocumentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + String parent = "parent-995424086"; + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + client.createDocument(parent, document, documentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDocumentTest() throws Exception { + Document expectedResponse = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder() + .setDocument(Document.newBuilder().build()) + .setAllowMissing(true) + .build(); + + Document actualResponse = client.updateDocument(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDocumentRequest actualRequest = ((UpdateDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getDocument(), actualRequest.getDocument()); + Assert.assertEquals(request.getAllowMissing(), actualRequest.getAllowMissing()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder() + .setDocument(Document.newBuilder().build()) + .setAllowMissing(true) + .build(); + client.updateDocument(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDocumentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDocumentService.addResponse(expectedResponse); + + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + + client.deleteDocument(name); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDocumentRequest actualRequest = ((DeleteDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDocumentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + client.deleteDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDocumentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDocumentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDocument(name); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDocumentRequest actualRequest = ((DeleteDocumentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDocumentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importDocumentsTest() throws Exception { + ImportDocumentsResponse expectedResponse = + ImportDocumentsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importDocumentsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDocumentService.addResponse(resultOperation); + + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + + ImportDocumentsResponse actualResponse = client.importDocumentsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportDocumentsRequest actualRequest = ((ImportDocumentsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); + Assert.assertEquals(request.getBigquerySource(), actualRequest.getBigquerySource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); + Assert.assertEquals(request.getReconciliationMode(), actualRequest.getReconciliationMode()); + Assert.assertEquals(request.getAutoGenerateIds(), actualRequest.getAutoGenerateIds()); + Assert.assertEquals(request.getIdField(), actualRequest.getIdField()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importDocumentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + client.importDocumentsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void purgeDocumentsTest() throws Exception { + PurgeDocumentsResponse expectedResponse = + PurgeDocumentsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeDocumentsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDocumentService.addResponse(resultOperation); + + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeDocumentsResponse actualResponse = client.purgeDocumentsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeDocumentsRequest actualRequest = ((PurgeDocumentsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeDocumentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeDocumentsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionService.java new file mode 100644 index 000000000000..837400c14512 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCompletionService implements MockGrpcService { + private final MockCompletionServiceImpl serviceImpl; + + public MockCompletionService() { + serviceImpl = new MockCompletionServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java new file mode 100644 index 000000000000..8dffd0153aed --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceGrpc.CompletionServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCompletionServiceImpl extends CompletionServiceImplBase { + private List requests; + private Queue responses; + + public MockCompletionServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void completeQuery( + CompleteQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CompleteQueryResponse) { + requests.add(request); + responseObserver.onNext(((CompleteQueryResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CompleteQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CompleteQueryResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchService.java new file mode 100644 index 000000000000..8133e46f908e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConversationalSearchService implements MockGrpcService { + private final MockConversationalSearchServiceImpl serviceImpl; + + public MockConversationalSearchService() { + serviceImpl = new MockConversationalSearchServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchServiceImpl.java new file mode 100644 index 000000000000..e9ae1cd46475 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockConversationalSearchServiceImpl.java @@ -0,0 +1,189 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceGrpc.ConversationalSearchServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConversationalSearchServiceImpl extends ConversationalSearchServiceImplBase { + private List requests; + private Queue responses; + + public MockConversationalSearchServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void converseConversation( + ConverseConversationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConverseConversationResponse) { + requests.add(request); + responseObserver.onNext(((ConverseConversationResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ConverseConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConverseConversationResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConversation( + CreateConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Conversation) { + requests.add(request); + responseObserver.onNext(((Conversation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Conversation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConversation( + DeleteConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateConversation( + UpdateConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Conversation) { + requests.add(request); + responseObserver.onNext(((Conversation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Conversation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConversation( + GetConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Conversation) { + requests.add(request); + responseObserver.onNext(((Conversation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Conversation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConversations( + ListConversationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConversationsResponse) { + requests.add(request); + responseObserver.onNext(((ListConversationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListConversations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConversationsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentService.java new file mode 100644 index 000000000000..7d88a818dfa5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDocumentService implements MockGrpcService { + private final MockDocumentServiceImpl serviceImpl; + + public MockDocumentService() { + serviceImpl = new MockDocumentServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentServiceImpl.java new file mode 100644 index 000000000000..3b689fbeef9f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDocumentServiceImpl.java @@ -0,0 +1,208 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceGrpc.DocumentServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDocumentServiceImpl extends DocumentServiceImplBase { + private List requests; + private Queue responses; + + public MockDocumentServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getDocument(GetDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Document) { + requests.add(request); + responseObserver.onNext(((Document) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Document.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDocuments( + ListDocumentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDocumentsResponse) { + requests.add(request); + responseObserver.onNext(((ListDocumentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDocuments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDocumentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDocument( + CreateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Document) { + requests.add(request); + responseObserver.onNext(((Document) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Document.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDocument( + UpdateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Document) { + requests.add(request); + responseObserver.onNext(((Document) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Document.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDocument( + DeleteDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDocument, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importDocuments( + ImportDocumentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportDocuments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeDocuments( + PurgeDocumentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeDocuments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocations.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocations.java new file mode 100644 index 000000000000..ac060053b6ff --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocationsImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocationsImpl.java new file mode 100644 index 000000000000..04e096fe94a2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockLocationsImpl.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationService.java new file mode 100644 index 000000000000..885d36476ddc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockRecommendationService implements MockGrpcService { + private final MockRecommendationServiceImpl serviceImpl; + + public MockRecommendationService() { + serviceImpl = new MockRecommendationServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationServiceImpl.java new file mode 100644 index 000000000000..226f83e03fa5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockRecommendationServiceImpl.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceGrpc.RecommendationServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockRecommendationServiceImpl extends RecommendationServiceImplBase { + private List requests; + private Queue responses; + + public MockRecommendationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void recommend( + RecommendRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RecommendResponse) { + requests.add(request); + responseObserver.onNext(((RecommendResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Recommend, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RecommendResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaService.java new file mode 100644 index 000000000000..5f300d509dd3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSchemaService implements MockGrpcService { + private final MockSchemaServiceImpl serviceImpl; + + public MockSchemaService() { + serviceImpl = new MockSchemaServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaServiceImpl.java new file mode 100644 index 000000000000..c8d2aa59e1a6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSchemaServiceImpl.java @@ -0,0 +1,165 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceGrpc.SchemaServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSchemaServiceImpl extends SchemaServiceImplBase { + private List requests; + private Queue responses; + + public MockSchemaServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getSchema(GetSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Schema) { + requests.add(request); + responseObserver.onNext(((Schema) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Schema.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSchemas( + ListSchemasRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSchemasResponse) { + requests.add(request); + responseObserver.onNext(((ListSchemasResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSchemas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSchemasResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSchema( + CreateSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSchema( + UpdateSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSchema( + DeleteSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchService.java new file mode 100644 index 000000000000..1d1e77fabf4b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSearchService implements MockGrpcService { + private final MockSearchServiceImpl serviceImpl; + + public MockSearchService() { + serviceImpl = new MockSearchServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchServiceImpl.java new file mode 100644 index 000000000000..0536c804b6d5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSearchServiceImpl.java @@ -0,0 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceGrpc.SearchServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSearchServiceImpl extends SearchServiceImplBase { + private List requests; + private Queue responses; + + public MockSearchServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void search(SearchRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchResponse) { + requests.add(request); + responseObserver.onNext(((SearchResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Search, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineService.java new file mode 100644 index 000000000000..409f3128f5f2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSiteSearchEngineService implements MockGrpcService { + private final MockSiteSearchEngineServiceImpl serviceImpl; + + public MockSiteSearchEngineService() { + serviceImpl = new MockSiteSearchEngineServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineServiceImpl.java new file mode 100644 index 000000000000..f2c17b7947d3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockSiteSearchEngineServiceImpl.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceGrpc.SiteSearchEngineServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSiteSearchEngineServiceImpl extends SiteSearchEngineServiceImplBase { + private List requests; + private Queue responses; + + public MockSiteSearchEngineServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void recrawlUris(RecrawlUrisRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RecrawlUris, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventService.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventService.java new file mode 100644 index 000000000000..f628243f043d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserEventService implements MockGrpcService { + private final MockUserEventServiceImpl serviceImpl; + + public MockUserEventService() { + serviceImpl = new MockUserEventServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventServiceImpl.java new file mode 100644 index 000000000000..05454bf4bcd8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockUserEventServiceImpl.java @@ -0,0 +1,146 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.HttpBody; +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceGrpc.UserEventServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserEventServiceImpl extends UserEventServiceImplBase { + private List requests; + private Queue responses; + + public MockUserEventServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void writeUserEvent( + WriteUserEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserEvent) { + requests.add(request); + responseObserver.onNext(((UserEvent) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method WriteUserEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UserEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void collectUserEvent( + CollectUserEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HttpBody) { + requests.add(request); + responseObserver.onNext(((HttpBody) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CollectUserEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HttpBody.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeUserEvents( + PurgeUserEventsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeUserEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importUserEvents( + ImportUserEventsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportUserEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..f93784ae3858 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientHttpJsonTest.java @@ -0,0 +1,147 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +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.discoveryengine.v1alpha.stub.HttpJsonRecommendationServiceStub; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +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 RecommendationServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static RecommendationServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRecommendationServiceStub.getMethodDescriptors(), + RecommendationServiceSettings.getDefaultEndpoint()); + RecommendationServiceSettings settings = + RecommendationServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + RecommendationServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RecommendationServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void recommendTest() throws Exception { + RecommendResponse expectedResponse = + RecommendResponse.newBuilder() + .addAllResults(new ArrayList()) + .setAttributionToken("attributionToken104706234") + .addAllMissingIds(new ArrayList()) + .setValidateOnly(true) + .build(); + mockService.addResponse(expectedResponse); + + RecommendRequest request = + RecommendRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setFilter("filter-1274492040") + .setValidateOnly(true) + .putAllParams(new HashMap()) + .putAllUserLabels(new HashMap()) + .build(); + + RecommendResponse actualResponse = client.recommend(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void recommendExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecommendRequest request = + RecommendRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setFilter("filter-1274492040") + .setValidateOnly(true) + .putAllParams(new HashMap()) + .putAllUserLabels(new HashMap()) + .build(); + client.recommend(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientTest.java new file mode 100644 index 000000000000..702f4fb87584 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClientTest.java @@ -0,0 +1,154 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Value; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import 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 RecommendationServiceClientTest { + private static MockLocations mockLocations; + private static MockRecommendationService mockRecommendationService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private RecommendationServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockRecommendationService = new MockRecommendationService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockRecommendationService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + RecommendationServiceSettings settings = + RecommendationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RecommendationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void recommendTest() throws Exception { + RecommendResponse expectedResponse = + RecommendResponse.newBuilder() + .addAllResults(new ArrayList()) + .setAttributionToken("attributionToken104706234") + .addAllMissingIds(new ArrayList()) + .setValidateOnly(true) + .build(); + mockRecommendationService.addResponse(expectedResponse); + + RecommendRequest request = + RecommendRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setFilter("filter-1274492040") + .setValidateOnly(true) + .putAllParams(new HashMap()) + .putAllUserLabels(new HashMap()) + .build(); + + RecommendResponse actualResponse = client.recommend(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRecommendationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RecommendRequest actualRequest = ((RecommendRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig()); + Assert.assertEquals(request.getUserEvent(), actualRequest.getUserEvent()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertEquals(request.getParamsMap(), actualRequest.getParamsMap()); + Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void recommendExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRecommendationService.addException(exception); + + try { + RecommendRequest request = + RecommendRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setFilter("filter-1274492040") + .setValidateOnly(true) + .putAllParams(new HashMap()) + .putAllUserLabels(new HashMap()) + .build(); + client.recommend(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..4db472bf664d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientHttpJsonTest.java @@ -0,0 +1,573 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +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.discoveryengine.v1alpha.stub.HttpJsonSchemaServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +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 SchemaServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SchemaServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSchemaServiceStub.getMethodDescriptors(), + SchemaServiceSettings.getDefaultEndpoint()); + SchemaServiceSettings settings = + SchemaServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SchemaServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SchemaServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + + Schema actualResponse = client.getSchema(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 getSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3094/locations/location-3094/dataStores/dataStore-3094/schemas/schema-3094"; + + Schema actualResponse = client.getSchema(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 getSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3094/locations/location-3094/dataStores/dataStore-3094/schemas/schema-3094"; + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().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 listSchemasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest2() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().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 listSchemasExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchemaAsync(parent, schema, schemaId).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 createSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + client.createSchemaAsync(parent, schema, schemaId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchemaAsync(parent, schema, schemaId).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 createSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + client.createSchemaAsync(parent, schema, schemaId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema( + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build()) + .setAllowMissing(true) + .build(); + + Schema actualResponse = client.updateSchemaAsync(request).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 updateSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema( + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build()) + .setAllowMissing(true) + .build(); + client.updateSchemaAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteSchemaTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + + client.deleteSchemaAsync(name).get(); + + 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 deleteSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + client.deleteSchemaAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteSchemaTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-3094/locations/location-3094/dataStores/dataStore-3094/schemas/schema-3094"; + + client.deleteSchemaAsync(name).get(); + + 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 deleteSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3094/locations/location-3094/dataStores/dataStore-3094/schemas/schema-3094"; + client.deleteSchemaAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientTest.java new file mode 100644 index 000000000000..b20c3f594d38 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClientTest.java @@ -0,0 +1,528 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SchemaServiceClientTest { + private static MockLocations mockLocations; + private static MockSchemaService mockSchemaService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SchemaServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSchemaService = new MockSchemaService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSchemaService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SchemaServiceSettings settings = + SchemaServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SchemaServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + + Schema actualResponse = client.getSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSchemaRequest actualRequest = ((GetSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + + Schema actualResponse = client.getSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSchemaRequest actualRequest = ((GetSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockSchemaService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSchemasRequest actualRequest = ((ListSchemasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSchemasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest2() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSchemasRequest actualRequest = ((ListSchemasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSchemasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSchemaService.addResponse(resultOperation); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchemaAsync(parent, schema, schemaId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSchemaRequest actualRequest = ((CreateSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertEquals(schemaId, actualRequest.getSchemaId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + client.createSchemaAsync(parent, schema, schemaId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSchemaService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchemaAsync(parent, schema, schemaId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSchemaRequest actualRequest = ((CreateSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertEquals(schemaId, actualRequest.getSchemaId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String parent = "parent-995424086"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + client.createSchemaAsync(parent, schema, schemaId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .addAllFieldConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSchemaService.addResponse(resultOperation); + + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema(Schema.newBuilder().build()) + .setAllowMissing(true) + .build(); + + Schema actualResponse = client.updateSchemaAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSchemaRequest actualRequest = ((UpdateSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSchema(), actualRequest.getSchema()); + Assert.assertEquals(request.getAllowMissing(), actualRequest.getAllowMissing()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema(Schema.newBuilder().build()) + .setAllowMissing(true) + .build(); + client.updateSchemaAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSchemaTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSchemaService.addResponse(resultOperation); + + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + + client.deleteSchemaAsync(name).get(); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSchemaRequest actualRequest = ((DeleteSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + client.deleteSchemaAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSchemaTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSchemaTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSchemaService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteSchemaAsync(name).get(); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSchemaRequest actualRequest = ((DeleteSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSchemaAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..c47deb53a682 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java @@ -0,0 +1,189 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +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.discoveryengine.v1alpha.stub.HttpJsonSearchServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +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 SearchServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SearchServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSearchServiceStub.getMethodDescriptors(), + SearchServiceSettings.getDefaultEndpoint()); + SearchServiceSettings settings = + SearchServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SearchServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SearchServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void searchTest() throws Exception { + SearchResponse.SearchResult responsesElement = SearchResponse.SearchResult.newBuilder().build(); + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + + SearchPagedResponse pagedListResponse = client.search(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().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 searchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + client.search(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java new file mode 100644 index 000000000000..426aab56f828 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java @@ -0,0 +1,209 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.SearchServiceClient.SearchPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Value; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import 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 SearchServiceClientTest { + private static MockLocations mockLocations; + private static MockSearchService mockSearchService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SearchServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSearchService = new MockSearchService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSearchService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SearchServiceSettings settings = + SearchServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SearchServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void searchTest() throws Exception { + SearchResponse.SearchResult responsesElement = SearchResponse.SearchResult.newBuilder().build(); + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockSearchService.addResponse(expectedResponse); + + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + + SearchPagedResponse pagedListResponse = client.search(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockSearchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchRequest actualRequest = ((SearchRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig()); + Assert.assertEquals(request.getBranch(), actualRequest.getBranch()); + Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getImageQuery(), actualRequest.getImageQuery()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); + Assert.assertEquals(request.getUserInfo(), actualRequest.getUserInfo()); + Assert.assertEquals(request.getFacetSpecsList(), actualRequest.getFacetSpecsList()); + Assert.assertEquals(request.getBoostSpec(), actualRequest.getBoostSpec()); + Assert.assertEquals(request.getParamsMap(), actualRequest.getParamsMap()); + Assert.assertEquals(request.getQueryExpansionSpec(), actualRequest.getQueryExpansionSpec()); + Assert.assertEquals(request.getSpellCorrectionSpec(), actualRequest.getSpellCorrectionSpec()); + Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); + Assert.assertEquals(request.getContentSearchSpec(), actualRequest.getContentSearchSpec()); + Assert.assertEquals(request.getEmbeddingSpec(), actualRequest.getEmbeddingSpec()); + Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); + Assert.assertEquals(request.getSafeSearch(), actualRequest.getSafeSearch()); + Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSearchService.addException(exception); + + try { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + client.search(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..2844e1d5bafc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientHttpJsonTest.java @@ -0,0 +1,140 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +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.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonSiteSearchEngineServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.ArrayList; +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 SiteSearchEngineServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SiteSearchEngineServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSiteSearchEngineServiceStub.getMethodDescriptors(), + SiteSearchEngineServiceSettings.getDefaultEndpoint()); + SiteSearchEngineServiceSettings settings = + SiteSearchEngineServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SiteSearchEngineServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SiteSearchEngineServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void recrawlUrisTest() throws Exception { + RecrawlUrisResponse expectedResponse = + RecrawlUrisResponse.newBuilder() + .addAllFailureSamples(new ArrayList()) + .addAllFailedUris(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("recrawlUrisTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + + RecrawlUrisResponse actualResponse = client.recrawlUrisAsync(request).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 recrawlUrisExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + client.recrawlUrisAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientTest.java new file mode 100644 index 000000000000..6307a473e5d0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClientTest.java @@ -0,0 +1,147 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SiteSearchEngineServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockSiteSearchEngineService mockSiteSearchEngineService; + private LocalChannelProvider channelProvider; + private SiteSearchEngineServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSiteSearchEngineService = new MockSiteSearchEngineService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSiteSearchEngineService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SiteSearchEngineServiceSettings settings = + SiteSearchEngineServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SiteSearchEngineServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void recrawlUrisTest() throws Exception { + RecrawlUrisResponse expectedResponse = + RecrawlUrisResponse.newBuilder() + .addAllFailureSamples(new ArrayList()) + .addAllFailedUris(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("recrawlUrisTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSiteSearchEngineService.addResponse(resultOperation); + + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + + RecrawlUrisResponse actualResponse = client.recrawlUrisAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSiteSearchEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RecrawlUrisRequest actualRequest = ((RecrawlUrisRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSiteSearchEngine(), actualRequest.getSiteSearchEngine()); + Assert.assertEquals(request.getUrisList(), actualRequest.getUrisList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void recrawlUrisExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSiteSearchEngineService.addException(exception); + + try { + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + client.recrawlUrisAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..3cdebe60a875 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientHttpJsonTest.java @@ -0,0 +1,350 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +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.discoveryengine.v1alpha.stub.HttpJsonUserEventServiceStub; +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.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class 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") + .setUserPseudoId("userPseudoId-1155274652") + .setEventTime(Timestamp.newBuilder().build()) + .setUserInfo(UserInfo.newBuilder().build()) + .setDirectUserRequest(true) + .setSessionId("sessionId607796817") + .setPageInfo(PageInfo.newBuilder().build()) + .setAttributionToken("attributionToken104706234") + .setFilter("filter-1274492040") + .addAllDocuments(new ArrayList()) + .setPanel(PanelInfo.newBuilder().build()) + .setSearchInfo(SearchInfo.newBuilder().build()) + .setCompletionInfo(CompletionInfo.newBuilder().build()) + .setTransactionInfo(TransactionInfo.newBuilder().build()) + .addAllTagIds(new ArrayList()) + .addAllPromotionIds(new ArrayList()) + .putAllAttributes(new HashMap()) + .setMediaInfo(MediaInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + + UserEvent actualResponse = client.writeUserEvent(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void writeUserEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + client.writeUserEvent(request); + 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); + + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + + HttpBody actualResponse = client.collectUserEvent(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void collectUserEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + client.collectUserEvent(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeUserEventsTest() throws Exception { + PurgeUserEventsResponse expectedResponse = + PurgeUserEventsResponse.newBuilder().setPurgeCount(575305851).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeUserEventsResponse actualResponse = client.purgeUserEventsAsync(request).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 { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeUserEventsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importUserEventsTest() throws Exception { + ImportUserEventsResponse expectedResponse = + ImportUserEventsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setJoinedEventsCount(-720068705) + .setUnjoinedEventsCount(512159846) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportUserEventsResponse actualResponse = client.importUserEventsAsync(request).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 { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importUserEventsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientTest.java new file mode 100644 index 000000000000..29ac02c829b4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClientTest.java @@ -0,0 +1,350 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.HttpBody; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserEventServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockUserEventService mockUserEventService; + private LocalChannelProvider channelProvider; + private UserEventServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockUserEventService = new MockUserEventService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockUserEventService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + UserEventServiceSettings settings = + UserEventServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserEventServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void writeUserEventTest() throws Exception { + UserEvent expectedResponse = + UserEvent.newBuilder() + .setEventType("eventType31430900") + .setUserPseudoId("userPseudoId-1155274652") + .setEventTime(Timestamp.newBuilder().build()) + .setUserInfo(UserInfo.newBuilder().build()) + .setDirectUserRequest(true) + .setSessionId("sessionId607796817") + .setPageInfo(PageInfo.newBuilder().build()) + .setAttributionToken("attributionToken104706234") + .setFilter("filter-1274492040") + .addAllDocuments(new ArrayList()) + .setPanel(PanelInfo.newBuilder().build()) + .setSearchInfo(SearchInfo.newBuilder().build()) + .setCompletionInfo(CompletionInfo.newBuilder().build()) + .setTransactionInfo(TransactionInfo.newBuilder().build()) + .addAllTagIds(new ArrayList()) + .addAllPromotionIds(new ArrayList()) + .putAllAttributes(new HashMap()) + .setMediaInfo(MediaInfo.newBuilder().build()) + .build(); + mockUserEventService.addResponse(expectedResponse); + + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + + UserEvent actualResponse = client.writeUserEvent(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteUserEventRequest actualRequest = ((WriteUserEventRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getUserEvent(), actualRequest.getUserEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeUserEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserEventService.addException(exception); + + try { + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + client.writeUserEvent(request); + 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(); + mockUserEventService.addResponse(expectedResponse); + + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + + HttpBody actualResponse = client.collectUserEvent(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CollectUserEventRequest actualRequest = ((CollectUserEventRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getUserEvent(), actualRequest.getUserEvent()); + Assert.assertEquals(request.getUri(), actualRequest.getUri()); + Assert.assertEquals(request.getEts(), actualRequest.getEts()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void collectUserEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserEventService.addException(exception); + + try { + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + client.collectUserEvent(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeUserEventsTest() throws Exception { + PurgeUserEventsResponse expectedResponse = + PurgeUserEventsResponse.newBuilder().setPurgeCount(575305851).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockUserEventService.addResponse(resultOperation); + + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeUserEventsResponse actualResponse = client.purgeUserEventsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeUserEventsRequest actualRequest = ((PurgeUserEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeUserEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserEventService.addException(exception); + + try { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeUserEventsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void importUserEventsTest() throws Exception { + ImportUserEventsResponse expectedResponse = + ImportUserEventsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setJoinedEventsCount(-720068705) + .setUnjoinedEventsCount(512159846) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockUserEventService.addResponse(resultOperation); + + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + ImportUserEventsResponse actualResponse = client.importUserEventsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportUserEventsRequest actualRequest = ((ImportUserEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); + Assert.assertEquals(request.getBigquerySource(), actualRequest.getBigquerySource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importUserEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserEventService.addException(exception); + + try { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.importUserEventsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java new file mode 100644 index 000000000000..59c26d19a464 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java @@ -0,0 +1,323 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for Auto-Completion.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/completion_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CompletionServiceGrpc { + + private CompletionServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.CompletionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCompleteQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompleteQuery", + requestType = com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCompleteQueryMethod() { + io.grpc.MethodDescriptor getCompleteQueryMethod; + if ((getCompleteQueryMethod = CompletionServiceGrpc.getCompleteQueryMethod) == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getCompleteQueryMethod = CompletionServiceGrpc.getCompleteQueryMethod) == null) { + CompletionServiceGrpc.getCompleteQueryMethod = getCompleteQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.getDefaultInstance())) + .setSchemaDescriptor(new CompletionServiceMethodDescriptorSupplier("CompleteQuery")) + .build(); + } + } + } + return getCompleteQueryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CompletionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceStub(channel, callOptions); + } + }; + return CompletionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CompletionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceBlockingStub(channel, callOptions); + } + }; + return CompletionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CompletionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceFutureStub(channel, callOptions); + } + }; + return CompletionServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for Auto-Completion.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Completes the specified user input with keyword suggestions.
+     * 
+ */ + default void completeQuery(com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteQueryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CompletionService. + *
+   * Service for Auto-Completion.
+   * 
+ */ + public static abstract class CompletionServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return CompletionServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CompletionService. + *
+   * Service for Auto-Completion.
+   * 
+ */ + public static final class CompletionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CompletionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceStub(channel, callOptions); + } + + /** + *
+     * Completes the specified user input with keyword suggestions.
+     * 
+ */ + public void completeQuery(com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CompletionService. + *
+   * Service for Auto-Completion.
+   * 
+ */ + public static final class CompletionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CompletionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Completes the specified user input with keyword suggestions.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse completeQuery(com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompleteQueryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CompletionService. + *
+   * Service for Auto-Completion.
+   * 
+ */ + public static final class CompletionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CompletionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Completes the specified user input with keyword suggestions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture completeQuery( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMPLETE_QUERY = 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 final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_COMPLETE_QUERY: + serviceImpl.completeQuery((com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCompleteQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest, + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse>( + service, METHODID_COMPLETE_QUERY))) + .build(); + } + + private static abstract class CompletionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CompletionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CompletionService"); + } + } + + private static final class CompletionServiceFileDescriptorSupplier + extends CompletionServiceBaseDescriptorSupplier { + CompletionServiceFileDescriptorSupplier() {} + } + + private static final class CompletionServiceMethodDescriptorSupplier + extends CompletionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + CompletionServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CompletionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) + .addMethod(getCompleteQueryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java new file mode 100644 index 000000000000..16c93bcfa03b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceGrpc.java @@ -0,0 +1,789 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for conversational search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConversationalSearchServiceGrpc { + + private ConversationalSearchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.ConversationalSearchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getConverseConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConverseConversation", + requestType = com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getConverseConversationMethod() { + io.grpc.MethodDescriptor getConverseConversationMethod; + if ((getConverseConversationMethod = ConversationalSearchServiceGrpc.getConverseConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getConverseConversationMethod = ConversationalSearchServiceGrpc.getConverseConversationMethod) == null) { + ConversationalSearchServiceGrpc.getConverseConversationMethod = getConverseConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConverseConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("ConverseConversation")) + .build(); + } + } + } + return getConverseConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversation", + requestType = com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConversationMethod() { + io.grpc.MethodDescriptor getCreateConversationMethod; + if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) == null) { + ConversationalSearchServiceGrpc.getCreateConversationMethod = getCreateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("CreateConversation")) + .build(); + } + } + } + return getCreateConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", + requestType = com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConversationMethod() { + io.grpc.MethodDescriptor getDeleteConversationMethod; + if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) == null) { + ConversationalSearchServiceGrpc.getDeleteConversationMethod = getDeleteConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("DeleteConversation")) + .build(); + } + } + } + return getDeleteConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversation", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConversationMethod() { + io.grpc.MethodDescriptor getUpdateConversationMethod; + if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) == null) { + ConversationalSearchServiceGrpc.getUpdateConversationMethod = getUpdateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("UpdateConversation")) + .build(); + } + } + } + return getUpdateConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversation", + requestType = com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConversationMethod() { + io.grpc.MethodDescriptor getGetConversationMethod; + if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) == null) { + ConversationalSearchServiceGrpc.getGetConversationMethod = getGetConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("GetConversation")) + .build(); + } + } + } + return getGetConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversations", + requestType = com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConversationsMethod() { + io.grpc.MethodDescriptor getListConversationsMethod; + if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) == null) { + ConversationalSearchServiceGrpc.getListConversationsMethod = getListConversationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("ListConversations")) + .build(); + } + } + } + return getListConversationsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + }; + return ConversationalSearchServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConversationalSearchServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConversationalSearchServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + }; + return ConversationalSearchServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for conversational search.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Converses a conversation.
+     * 
+ */ + default void converseConversation(com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConverseConversationMethod(), responseObserver); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + default void createConversation(com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversationMethod(), responseObserver); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + default void deleteConversation(com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConversationMethod(), responseObserver); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + default void updateConversation(com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConversationMethod(), responseObserver); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + default void getConversation(com.google.cloud.discoveryengine.v1alpha.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversationMethod(), responseObserver); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
+     * 
+ */ + default void listConversations(com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversationsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static abstract class ConversationalSearchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ConversationalSearchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConversationalSearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public void converseConversation(com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public void createConversation(com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public void deleteConversation(com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public void updateConversation(com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public void getConversation(com.google.cloud.discoveryengine.v1alpha.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
+     * 
+ */ + public void listConversations(com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse converseConversation(com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getConverseConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Conversation createConversation(com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversation(com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Conversation updateConversation(com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation(com.google.cloud.discoveryengine.v1alpha.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse listConversations(com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversationsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConversationalSearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture converseConversation( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConversation( + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConversation( + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConversation( + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConversation( + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConversations( + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CONVERSE_CONVERSATION = 0; + private static final int METHODID_CREATE_CONVERSATION = 1; + private static final int METHODID_DELETE_CONVERSATION = 2; + private static final int METHODID_UPDATE_CONVERSATION = 3; + private static final int METHODID_GET_CONVERSATION = 4; + private static final int METHODID_LIST_CONVERSATIONS = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CONVERSE_CONVERSATION: + serviceImpl.converseConversation((com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONVERSATION: + serviceImpl.createConversation((com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONVERSATION: + serviceImpl.deleteConversation((com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONVERSATION: + serviceImpl.updateConversation((com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONVERSATION: + serviceImpl.getConversation((com.google.cloud.discoveryengine.v1alpha.GetConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSATIONS: + serviceImpl.listConversations((com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getConverseConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest, + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse>( + service, METHODID_CONVERSE_CONVERSATION))) + .addMethod( + getCreateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest, + com.google.cloud.discoveryengine.v1alpha.Conversation>( + service, METHODID_CREATE_CONVERSATION))) + .addMethod( + getDeleteConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_CONVERSATION))) + .addMethod( + getUpdateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest, + com.google.cloud.discoveryengine.v1alpha.Conversation>( + service, METHODID_UPDATE_CONVERSATION))) + .addMethod( + getGetConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest, + com.google.cloud.discoveryengine.v1alpha.Conversation>( + service, METHODID_GET_CONVERSATION))) + .addMethod( + getListConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest, + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse>( + service, METHODID_LIST_CONVERSATIONS))) + .build(); + } + + private static abstract class ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConversationalSearchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConversationalSearchService"); + } + } + + private static final class ConversationalSearchServiceFileDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier { + ConversationalSearchServiceFileDescriptorSupplier() {} + } + + private static final class ConversationalSearchServiceMethodDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ConversationalSearchServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) + .addMethod(getConverseConversationMethod()) + .addMethod(getCreateConversationMethod()) + .addMethod(getDeleteConversationMethod()) + .addMethod(getUpdateConversationMethod()) + .addMethod(getGetConversationMethod()) + .addMethod(getListConversationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java new file mode 100644 index 000000000000..e9823e0323af --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceGrpc.java @@ -0,0 +1,927 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for ingesting
+ * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the
+ * customer's website.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/document_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentServiceGrpc { + + private DocumentServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.DocumentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocument", + requestType = com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDocumentMethod() { + io.grpc.MethodDescriptor getGetDocumentMethod; + if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { + DocumentServiceGrpc.getGetDocumentMethod = getGetDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("GetDocument")) + .build(); + } + } + } + return getGetDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDocuments", + requestType = com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDocumentsMethod() { + io.grpc.MethodDescriptor getListDocumentsMethod; + if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { + DocumentServiceGrpc.getListDocumentsMethod = getListDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("ListDocuments")) + .build(); + } + } + } + return getListDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocument", + requestType = com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDocumentMethod() { + io.grpc.MethodDescriptor getCreateDocumentMethod; + if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { + DocumentServiceGrpc.getCreateDocumentMethod = getCreateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("CreateDocument")) + .build(); + } + } + } + return getCreateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDocumentMethod() { + io.grpc.MethodDescriptor getUpdateDocumentMethod; + if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { + DocumentServiceGrpc.getUpdateDocumentMethod = getUpdateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) + .build(); + } + } + } + return getUpdateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", + requestType = com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDocumentMethod() { + io.grpc.MethodDescriptor getDeleteDocumentMethod; + if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { + DocumentServiceGrpc.getDeleteDocumentMethod = getDeleteDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("DeleteDocument")) + .build(); + } + } + } + return getDeleteDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportDocuments", + requestType = com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportDocumentsMethod() { + io.grpc.MethodDescriptor getImportDocumentsMethod; + if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { + DocumentServiceGrpc.getImportDocumentsMethod = getImportDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("ImportDocuments")) + .build(); + } + } + } + return getImportDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getPurgeDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeDocuments", + requestType = com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPurgeDocumentsMethod() { + io.grpc.MethodDescriptor getPurgeDocumentsMethod; + if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { + DocumentServiceGrpc.getPurgeDocumentsMethod = getPurgeDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("PurgeDocuments")) + .build(); + } + } + } + return getPurgeDocumentsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DocumentServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + }; + return DocumentServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + }; + return DocumentServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DocumentServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + }; + return DocumentServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the
+   * customer's website.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + default void getDocument(com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ */ + default void listDocuments(com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentsMethod(), responseObserver); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + default void createDocument(com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + default void updateDocument(com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + default void deleteDocument(com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be
+     * successfully updated.
+     * 
+ */ + default void importDocuments(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDocumentsMethod(), responseObserver); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + default void purgeDocuments(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeDocumentsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the
+   * customer's website.
+   * 
+ */ + public static abstract class DocumentServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DocumentServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the
+   * customer's website.
+   * 
+ */ + public static final class DocumentServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public void getDocument(com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ */ + public void listDocuments(com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public void createDocument(com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public void updateDocument(com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public void deleteDocument(com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be
+     * successfully updated.
+     * 
+ */ + public void importDocuments(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public void purgeDocuments(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the
+   * customer's website.
+   * 
+ */ + public static final class DocumentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocument(com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse listDocuments(com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Document createDocument(com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Document updateDocument(com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.protobuf.Empty deleteDocument(com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be
+     * successfully updated.
+     * 
+ */ + public com.google.longrunning.Operation importDocuments(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.longrunning.Operation purgeDocuments(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] information of the
+   * customer's website.
+   * 
+ */ + public static final class DocumentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDocument( + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDocuments( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDocument( + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDocument( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDocument( + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be
+     * successfully updated.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importDocuments( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture purgeDocuments( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DOCUMENT = 0; + private static final int METHODID_LIST_DOCUMENTS = 1; + private static final int METHODID_CREATE_DOCUMENT = 2; + private static final int METHODID_UPDATE_DOCUMENT = 3; + private static final int METHODID_DELETE_DOCUMENT = 4; + private static final int METHODID_IMPORT_DOCUMENTS = 5; + private static final int METHODID_PURGE_DOCUMENTS = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_DOCUMENT: + serviceImpl.getDocument((com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DOCUMENTS: + serviceImpl.listDocuments((com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DOCUMENT: + serviceImpl.createDocument((com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DOCUMENT: + serviceImpl.updateDocument((com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DOCUMENT: + serviceImpl.deleteDocument((com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DOCUMENTS: + serviceImpl.importDocuments((com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_DOCUMENTS: + serviceImpl.purgeDocuments((com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest, + com.google.cloud.discoveryengine.v1alpha.Document>( + service, METHODID_GET_DOCUMENT))) + .addMethod( + getListDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest, + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse>( + service, METHODID_LIST_DOCUMENTS))) + .addMethod( + getCreateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest, + com.google.cloud.discoveryengine.v1alpha.Document>( + service, METHODID_CREATE_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest, + com.google.cloud.discoveryengine.v1alpha.Document>( + service, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DOCUMENT))) + .addMethod( + getImportDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_DOCUMENTS))) + .addMethod( + getPurgeDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest, + com.google.longrunning.Operation>( + service, METHODID_PURGE_DOCUMENTS))) + .build(); + } + + private static abstract class DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentService"); + } + } + + private static final class DocumentServiceFileDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier { + DocumentServiceFileDescriptorSupplier() {} + } + + private static final class DocumentServiceMethodDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DocumentServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DocumentServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentServiceFileDescriptorSupplier()) + .addMethod(getGetDocumentMethod()) + .addMethod(getListDocumentsMethod()) + .addMethod(getCreateDocumentMethod()) + .addMethod(getUpdateDocumentMethod()) + .addMethod(getDeleteDocumentMethod()) + .addMethod(getImportDocumentsMethod()) + .addMethod(getPurgeDocumentsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java new file mode 100644 index 000000000000..a135cf19d954 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceGrpc.java @@ -0,0 +1,323 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for making recommendations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RecommendationServiceGrpc { + + private RecommendationServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.RecommendationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRecommendMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recommend", + requestType = com.google.cloud.discoveryengine.v1alpha.RecommendRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.RecommendResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecommendMethod() { + io.grpc.MethodDescriptor getRecommendMethod; + if ((getRecommendMethod = RecommendationServiceGrpc.getRecommendMethod) == null) { + synchronized (RecommendationServiceGrpc.class) { + if ((getRecommendMethod = RecommendationServiceGrpc.getRecommendMethod) == null) { + RecommendationServiceGrpc.getRecommendMethod = getRecommendMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recommend")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.RecommendRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecommendationServiceMethodDescriptorSupplier("Recommend")) + .build(); + } + } + } + return getRecommendMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static RecommendationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecommendationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceStub(channel, callOptions); + } + }; + return RecommendationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RecommendationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecommendationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceBlockingStub(channel, callOptions); + } + }; + return RecommendationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RecommendationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecommendationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceFutureStub(channel, callOptions); + } + }; + return RecommendationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for making recommendations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Makes a recommendation, which requires a contextual user event.
+     * 
+ */ + default void recommend(com.google.cloud.discoveryengine.v1alpha.RecommendRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecommendMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RecommendationService. + *
+   * Service for making recommendations.
+   * 
+ */ + public static abstract class RecommendationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return RecommendationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RecommendationService. + *
+   * Service for making recommendations.
+   * 
+ */ + public static final class RecommendationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private RecommendationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecommendationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceStub(channel, callOptions); + } + + /** + *
+     * Makes a recommendation, which requires a contextual user event.
+     * 
+ */ + public void recommend(com.google.cloud.discoveryengine.v1alpha.RecommendRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecommendMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RecommendationService. + *
+   * Service for making recommendations.
+   * 
+ */ + public static final class RecommendationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RecommendationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecommendationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Makes a recommendation, which requires a contextual user event.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse recommend(com.google.cloud.discoveryengine.v1alpha.RecommendRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecommendMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service RecommendationService. + *
+   * Service for making recommendations.
+   * 
+ */ + public static final class RecommendationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RecommendationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecommendationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Makes a recommendation, which requires a contextual user event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture recommend( + com.google.cloud.discoveryengine.v1alpha.RecommendRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecommendMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOMMEND = 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 final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOMMEND: + serviceImpl.recommend((com.google.cloud.discoveryengine.v1alpha.RecommendRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecommendMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.RecommendRequest, + com.google.cloud.discoveryengine.v1alpha.RecommendResponse>( + service, METHODID_RECOMMEND))) + .build(); + } + + private static abstract class RecommendationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RecommendationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RecommendationService"); + } + } + + private static final class RecommendationServiceFileDescriptorSupplier + extends RecommendationServiceBaseDescriptorSupplier { + RecommendationServiceFileDescriptorSupplier() {} + } + + private static final class RecommendationServiceMethodDescriptorSupplier + extends RecommendationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + RecommendationServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (RecommendationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RecommendationServiceFileDescriptorSupplier()) + .addMethod(getRecommendMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java new file mode 100644 index 000000000000..5d39c702913c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceGrpc.java @@ -0,0 +1,667 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/schema_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SchemaServiceGrpc { + + private SchemaServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.SchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchema", + requestType = com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSchemaMethod() { + io.grpc.MethodDescriptor getGetSchemaMethod; + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + SchemaServiceGrpc.getGetSchemaMethod = getGetSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) + .build(); + } + } + } + return getGetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemas", + requestType = com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSchemasMethod() { + io.grpc.MethodDescriptor getListSchemasMethod; + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + SchemaServiceGrpc.getListSchemasMethod = getListSchemasMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) + .build(); + } + } + } + return getListSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchema", + requestType = com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSchemaMethod() { + io.grpc.MethodDescriptor getCreateSchemaMethod; + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + SchemaServiceGrpc.getCreateSchemaMethod = getCreateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("CreateSchema")) + .build(); + } + } + } + return getCreateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSchema", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSchemaMethod() { + io.grpc.MethodDescriptor getUpdateSchemaMethod; + if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { + SchemaServiceGrpc.getUpdateSchemaMethod = getUpdateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("UpdateSchema")) + .build(); + } + } + } + return getUpdateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", + requestType = com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSchemaMethod() { + io.grpc.MethodDescriptor getDeleteSchemaMethod; + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + SchemaServiceGrpc.getDeleteSchemaMethod = getDeleteSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) + .build(); + } + } + } + return getDeleteSchemaMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + }; + return SchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SchemaServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + }; + return SchemaServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SchemaServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + }; + return SchemaServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + default void getSchema(com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ */ + default void listSchemas(com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + default void createSchema(com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + default void updateSchema(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSchemaMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + default void deleteSchema(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ */ + public static abstract class SchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SchemaServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ */ + public static final class SchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SchemaServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public void getSchema(com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ */ + public void listSchemas(com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public void createSchema(com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public void updateSchema(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public void deleteSchema(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ */ + public static final class SchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.Schema getSchema(com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse listSchemas(com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.longrunning.Operation createSchema(com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.longrunning.Operation updateSchema(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.longrunning.Operation deleteSchema(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ */ + public static final class SchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SchemaServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSchema( + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSchemas( + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSchema( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSchema( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSchema( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SCHEMA = 0; + private static final int METHODID_LIST_SCHEMAS = 1; + private static final int METHODID_CREATE_SCHEMA = 2; + private static final int METHODID_UPDATE_SCHEMA = 3; + private static final int METHODID_DELETE_SCHEMA = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SCHEMA: + serviceImpl.getSchema((com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEMAS: + serviceImpl.listSchemas((com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCHEMA: + serviceImpl.createSchema((com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCHEMA: + serviceImpl.updateSchema((com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA: + serviceImpl.deleteSchema((com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest, + com.google.cloud.discoveryengine.v1alpha.Schema>( + service, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest, + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse>( + service, METHODID_LIST_SCHEMAS))) + .addMethod( + getCreateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_SCHEMA))) + .addMethod( + getUpdateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SCHEMA))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_SCHEMA))) + .build(); + } + + private static abstract class SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SchemaService"); + } + } + + private static final class SchemaServiceFileDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier { + SchemaServiceFileDescriptorSupplier() {} + } + + private static final class SchemaServiceMethodDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) + .addMethod(getGetSchemaMethod()) + .addMethod(getListSchemasMethod()) + .addMethod(getCreateSchemaMethod()) + .addMethod(getUpdateSchemaMethod()) + .addMethod(getDeleteSchemaMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java new file mode 100644 index 000000000000..3b58b933bfc5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceGrpc.java @@ -0,0 +1,323 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/search_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SearchServiceGrpc { + + private SearchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.SearchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Search", + requestType = com.google.cloud.discoveryengine.v1alpha.SearchRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.SearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchMethod() { + io.grpc.MethodDescriptor getSearchMethod; + if ((getSearchMethod = SearchServiceGrpc.getSearchMethod) == null) { + synchronized (SearchServiceGrpc.class) { + if ((getSearchMethod = SearchServiceGrpc.getSearchMethod) == null) { + SearchServiceGrpc.getSearchMethod = getSearchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.getDefaultInstance())) + .setSchemaDescriptor(new SearchServiceMethodDescriptorSupplier("Search")) + .build(); + } + } + } + return getSearchMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SearchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceStub(channel, callOptions); + } + }; + return SearchServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SearchServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceBlockingStub(channel, callOptions); + } + }; + return SearchServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SearchServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceFutureStub(channel, callOptions); + } + }; + return SearchServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for search.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Performs a search.
+     * 
+ */ + default void search(com.google.cloud.discoveryengine.v1alpha.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SearchService. + *
+   * Service for search.
+   * 
+ */ + public static abstract class SearchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SearchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SearchService. + *
+   * Service for search.
+   * 
+ */ + public static final class SearchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceStub(channel, callOptions); + } + + /** + *
+     * Performs a search.
+     * 
+ */ + public void search(com.google.cloud.discoveryengine.v1alpha.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SearchService. + *
+   * Service for search.
+   * 
+ */ + public static final class SearchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SearchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Performs a search.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse search(com.google.cloud.discoveryengine.v1alpha.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SearchService. + *
+   * Service for search.
+   * 
+ */ + public static final class SearchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SearchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Performs a search.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture search( + com.google.cloud.discoveryengine.v1alpha.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SEARCH = 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 final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_SEARCH: + serviceImpl.search((com.google.cloud.discoveryengine.v1alpha.SearchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.SearchRequest, + com.google.cloud.discoveryengine.v1alpha.SearchResponse>( + service, METHODID_SEARCH))) + .build(); + } + + private static abstract class SearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SearchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SearchService"); + } + } + + private static final class SearchServiceFileDescriptorSupplier + extends SearchServiceBaseDescriptorSupplier { + SearchServiceFileDescriptorSupplier() {} + } + + private static final class SearchServiceMethodDescriptorSupplier + extends SearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SearchServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SearchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SearchServiceFileDescriptorSupplier()) + .addMethod(getSearchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java new file mode 100644 index 000000000000..2f12a78190c7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceGrpc.java @@ -0,0 +1,323 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing site search related resources.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SiteSearchEngineServiceGrpc { + + private SiteSearchEngineServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRecrawlUrisMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RecrawlUris", + requestType = com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecrawlUrisMethod() { + io.grpc.MethodDescriptor getRecrawlUrisMethod; + if ((getRecrawlUrisMethod = SiteSearchEngineServiceGrpc.getRecrawlUrisMethod) == null) { + synchronized (SiteSearchEngineServiceGrpc.class) { + if ((getRecrawlUrisMethod = SiteSearchEngineServiceGrpc.getRecrawlUrisMethod) == null) { + SiteSearchEngineServiceGrpc.getRecrawlUrisMethod = getRecrawlUrisMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecrawlUris")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SiteSearchEngineServiceMethodDescriptorSupplier("RecrawlUris")) + .build(); + } + } + } + return getRecrawlUrisMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SiteSearchEngineServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SiteSearchEngineServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SiteSearchEngineServiceStub(channel, callOptions); + } + }; + return SiteSearchEngineServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SiteSearchEngineServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SiteSearchEngineServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SiteSearchEngineServiceBlockingStub(channel, callOptions); + } + }; + return SiteSearchEngineServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SiteSearchEngineServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SiteSearchEngineServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SiteSearchEngineServiceFutureStub(channel, callOptions); + } + }; + return SiteSearchEngineServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing site search related resources.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Request on-demand recrawl for a list of URIs.
+     * 
+ */ + default void recrawlUris(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecrawlUrisMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SiteSearchEngineService. + *
+   * Service for managing site search related resources.
+   * 
+ */ + public static abstract class SiteSearchEngineServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SiteSearchEngineServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SiteSearchEngineService. + *
+   * Service for managing site search related resources.
+   * 
+ */ + public static final class SiteSearchEngineServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SiteSearchEngineServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SiteSearchEngineServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SiteSearchEngineServiceStub(channel, callOptions); + } + + /** + *
+     * Request on-demand recrawl for a list of URIs.
+     * 
+ */ + public void recrawlUris(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecrawlUrisMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SiteSearchEngineService. + *
+   * Service for managing site search related resources.
+   * 
+ */ + public static final class SiteSearchEngineServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SiteSearchEngineServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SiteSearchEngineServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SiteSearchEngineServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Request on-demand recrawl for a list of URIs.
+     * 
+ */ + public com.google.longrunning.Operation recrawlUris(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecrawlUrisMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SiteSearchEngineService. + *
+   * Service for managing site search related resources.
+   * 
+ */ + public static final class SiteSearchEngineServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SiteSearchEngineServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SiteSearchEngineServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SiteSearchEngineServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Request on-demand recrawl for a list of URIs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture recrawlUris( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecrawlUrisMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECRAWL_URIS = 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 final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECRAWL_URIS: + serviceImpl.recrawlUris((com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecrawlUrisMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest, + com.google.longrunning.Operation>( + service, METHODID_RECRAWL_URIS))) + .build(); + } + + private static abstract class SiteSearchEngineServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SiteSearchEngineServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SiteSearchEngineService"); + } + } + + private static final class SiteSearchEngineServiceFileDescriptorSupplier + extends SiteSearchEngineServiceBaseDescriptorSupplier { + SiteSearchEngineServiceFileDescriptorSupplier() {} + } + + private static final class SiteSearchEngineServiceMethodDescriptorSupplier + extends SiteSearchEngineServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SiteSearchEngineServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SiteSearchEngineServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SiteSearchEngineServiceFileDescriptorSupplier()) + .addMethod(getRecrawlUrisMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java new file mode 100644 index 000000000000..bb1d83a31d77 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceGrpc.java @@ -0,0 +1,625 @@ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for ingesting end user actions on a website to Discovery Engine API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/user_event_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class UserEventServiceGrpc { + + private UserEventServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.WriteUserEventRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.WriteUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.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.discoveryengine.v1alpha.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 getPurgeUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeUserEvents", + requestType = com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.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.discoveryengine.v1alpha.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.discoveryengine.v1alpha.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 a website to Discovery Engine API.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Writes a single user event.
+     * 
+ */ + default void writeUserEvent(com.google.cloud.discoveryengine.v1alpha.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 third-party domain.
+     * This method is used only by the Discovery Engine API JavaScript pixel and
+     * Google Tag Manager. Users should not call this method directly.
+     * 
+ */ + default void collectUserEvent(com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectUserEventMethod(), 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.
+     * 
+ */ + default void purgeUserEvents(com.google.cloud.discoveryengine.v1alpha.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.
+     * 
+ */ + default void importUserEvents(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportUserEventsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service UserEventService. + *
+   * Service for ingesting end user actions on a website to Discovery Engine API.
+   * 
+ */ + public static abstract class UserEventServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return UserEventServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service UserEventService. + *
+   * Service for ingesting end user actions on a website to Discovery Engine API.
+   * 
+ */ + 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.discoveryengine.v1alpha.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 third-party domain.
+     * This method is used only by the Discovery Engine API JavaScript pixel and
+     * Google Tag Manager. Users should not call this method directly.
+     * 
+ */ + public void collectUserEvent(com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCollectUserEventMethod(), 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.discoveryengine.v1alpha.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.discoveryengine.v1alpha.ImportUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service UserEventService. + *
+   * Service for ingesting end user actions on a website to Discovery Engine API.
+   * 
+ */ + 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.discoveryengine.v1alpha.UserEvent writeUserEvent(com.google.cloud.discoveryengine.v1alpha.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 third-party domain.
+     * This method is used only by the Discovery Engine API JavaScript pixel and
+     * Google Tag Manager. Users should not call this method directly.
+     * 
+ */ + public com.google.api.HttpBody collectUserEvent(com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCollectUserEventMethod(), 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.discoveryengine.v1alpha.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.discoveryengine.v1alpha.ImportUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportUserEventsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service UserEventService. + *
+   * Service for ingesting end user actions on a website to Discovery Engine API.
+   * 
+ */ + 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.discoveryengine.v1alpha.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 third-party domain.
+     * This method is used only by the Discovery Engine API JavaScript pixel and
+     * Google Tag Manager. Users should not call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture collectUserEvent( + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCollectUserEventMethod(), 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.discoveryengine.v1alpha.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.discoveryengine.v1alpha.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_PURGE_USER_EVENTS = 2; + private static final int METHODID_IMPORT_USER_EVENTS = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_WRITE_USER_EVENT: + serviceImpl.writeUserEvent((com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COLLECT_USER_EVENT: + serviceImpl.collectUserEvent((com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_USER_EVENTS: + serviceImpl.purgeUserEvents((com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_USER_EVENTS: + serviceImpl.importUserEvents((com.google.cloud.discoveryengine.v1alpha.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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getWriteUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest, + com.google.cloud.discoveryengine.v1alpha.UserEvent>( + service, METHODID_WRITE_USER_EVENT))) + .addMethod( + getCollectUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest, + com.google.api.HttpBody>( + service, METHODID_COLLECT_USER_EVENT))) + .addMethod( + getPurgeUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest, + com.google.longrunning.Operation>( + service, METHODID_PURGE_USER_EVENTS))) + .addMethod( + getImportUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_USER_EVENTS))) + .build(); + } + + 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.discoveryengine.v1alpha.UserEventServiceProto.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 java.lang.String methodName; + + UserEventServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (UserEventServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) + .addMethod(getWriteUserEventMethod()) + .addMethod(getCollectUserEventMethod()) + .addMethod(getPurgeUserEventsMethod()) + .addMethod(getImportUserEventsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySource.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySource.java new file mode 100644 index 000000000000..7a0d1e07cd01 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySource.java @@ -0,0 +1,1739 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * BigQuery source import data from.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.BigQuerySource} + */ +public final class BigQuerySource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.BigQuerySource) + BigQuerySourceOrBuilder { +private static final long serialVersionUID = 0L; + // Use BigQuerySource.newBuilder() to construct. + private BigQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BigQuerySource() { + projectId_ = ""; + datasetId_ = ""; + tableId_ = ""; + gcsStagingDir_ = ""; + dataSchema_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BigQuerySource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.class, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder.class); + } + + private int partitionCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object partition_; + public enum PartitionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARTITION_DATE(5), + PARTITION_NOT_SET(0); + private final int value; + private PartitionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PartitionCase valueOf(int value) { + return forNumber(value); + } + + public static PartitionCase forNumber(int value) { + switch (value) { + case 5: return PARTITION_DATE; + case 0: return PARTITION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PartitionCase + getPartitionCase() { + return PartitionCase.forNumber( + partitionCase_); + } + + public static final int PARTITION_DATE_FIELD_NUMBER = 5; + /** + *
+   * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+   * 
+ * + * .google.type.Date partition_date = 5; + * @return Whether the partitionDate field is set. + */ + @java.lang.Override + public boolean hasPartitionDate() { + return partitionCase_ == 5; + } + /** + *
+   * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+   * 
+ * + * .google.type.Date partition_date = 5; + * @return The partitionDate. + */ + @java.lang.Override + public com.google.type.Date getPartitionDate() { + if (partitionCase_ == 5) { + return (com.google.type.Date) partition_; + } + return com.google.type.Date.getDefaultInstance(); + } + /** + *
+   * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+   * 
+ * + * .google.type.Date partition_date = 5; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { + if (partitionCase_ == 5) { + return (com.google.type.Date) partition_; + } + return com.google.type.Date.getDefaultInstance(); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * The project ID (can be project # or ID) that the BigQuery source is in with
+   * a length limit of 128 characters. If not specified, inherits the project
+   * ID from the parent request.
+   * 
+ * + * string project_id = 1; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
+   * The project ID (can be project # or ID) that the BigQuery source is in with
+   * a length limit of 128 characters. If not specified, inherits the project
+   * ID from the parent request.
+   * 
+ * + * string project_id = 1; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object datasetId_ = ""; + /** + *
+   * Required. The BigQuery data set to copy the data from with a length limit
+   * of 1,024 characters.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + 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(); + datasetId_ = s; + return s; + } + } + /** + *
+   * Required. The BigQuery data set to copy the data from with a length limit
+   * of 1,024 characters.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object tableId_ = ""; + /** + *
+   * Required. The BigQuery table to copy the data from with a length limit of
+   * 1,024 characters.
+   * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The tableId. + */ + @java.lang.Override + public java.lang.String getTableId() { + java.lang.Object ref = tableId_; + 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(); + tableId_ = s; + return s; + } + } + /** + *
+   * Required. The BigQuery table to copy the data from with a length limit of
+   * 1,024 characters.
+   * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for tableId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableIdBytes() { + java.lang.Object ref = tableId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_STAGING_DIR_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object gcsStagingDir_ = ""; + /** + *
+   * Intermediate Cloud Storage directory used for the import with a length
+   * limit of 2,000 characters. Can be specified if one wants to have the
+   * BigQuery export to a specific Cloud Storage directory.
+   * 
+ * + * string gcs_staging_dir = 4; + * @return The gcsStagingDir. + */ + @java.lang.Override + public java.lang.String getGcsStagingDir() { + java.lang.Object ref = gcsStagingDir_; + 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(); + gcsStagingDir_ = s; + return s; + } + } + /** + *
+   * Intermediate Cloud Storage directory used for the import with a length
+   * limit of 2,000 characters. Can be specified if one wants to have the
+   * BigQuery export to a specific Cloud Storage directory.
+   * 
+ * + * string gcs_staging_dir = 4; + * @return The bytes for gcsStagingDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGcsStagingDirBytes() { + java.lang.Object ref = gcsStagingDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gcsStagingDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SCHEMA_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object dataSchema_ = ""; + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for user event imports:
+   *
+   * * `user_event` (default): One
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+   *   row. Each document must have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+   *   of
+   *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+   *   or
+   *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+   * * `custom`: One custom data per row in arbitrary format that conforms to
+   *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. This can only be used by Gen App Builder.
+   * 
+ * + * string data_schema = 6; + * @return The dataSchema. + */ + @java.lang.Override + public java.lang.String getDataSchema() { + java.lang.Object ref = dataSchema_; + 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(); + dataSchema_ = s; + return s; + } + } + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for user event imports:
+   *
+   * * `user_event` (default): One
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+   *   row. Each document must have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+   *   of
+   *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+   *   or
+   *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+   * * `custom`: One custom data per row in arbitrary format that conforms to
+   *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. This can only be used by Gen App Builder.
+   * 
+ * + * string data_schema = 6; + * @return The bytes for dataSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDataSchemaBytes() { + java.lang.Object ref = dataSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsStagingDir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gcsStagingDir_); + } + if (partitionCase_ == 5) { + output.writeMessage(5, (com.google.type.Date) partition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dataSchema_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datasetId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsStagingDir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gcsStagingDir_); + } + if (partitionCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.type.Date) partition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dataSchema_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.BigQuerySource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.BigQuerySource other = (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + if (!getTableId() + .equals(other.getTableId())) return false; + if (!getGcsStagingDir() + .equals(other.getGcsStagingDir())) return false; + if (!getDataSchema() + .equals(other.getDataSchema())) return false; + if (!getPartitionCase().equals(other.getPartitionCase())) return false; + switch (partitionCase_) { + case 5: + if (!getPartitionDate() + .equals(other.getPartitionDate())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getTableId().hashCode(); + hash = (37 * hash) + GCS_STAGING_DIR_FIELD_NUMBER; + hash = (53 * hash) + getGcsStagingDir().hashCode(); + hash = (37 * hash) + DATA_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getDataSchema().hashCode(); + switch (partitionCase_) { + case 5: + hash = (37 * hash) + PARTITION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPartitionDate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource 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.discoveryengine.v1alpha.BigQuerySource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource 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.discoveryengine.v1alpha.BigQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource 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.discoveryengine.v1alpha.BigQuerySource 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; + } + /** + *
+   * BigQuery source import data from.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.BigQuerySource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.BigQuerySource) + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.class, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.BigQuerySource.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (partitionDateBuilder_ != null) { + partitionDateBuilder_.clear(); + } + projectId_ = ""; + datasetId_ = ""; + tableId_ = ""; + gcsStagingDir_ = ""; + dataSchema_ = ""; + partitionCase_ = 0; + partition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource build() { + com.google.cloud.discoveryengine.v1alpha.BigQuerySource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource buildPartial() { + com.google.cloud.discoveryengine.v1alpha.BigQuerySource result = new com.google.cloud.discoveryengine.v1alpha.BigQuerySource(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.BigQuerySource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datasetId_ = datasetId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tableId_ = tableId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcsStagingDir_ = gcsStagingDir_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataSchema_ = dataSchema_; + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.BigQuerySource result) { + result.partitionCase_ = partitionCase_; + result.partition_ = this.partition_; + if (partitionCase_ == 5 && + partitionDateBuilder_ != null) { + result.partition_ = partitionDateBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.BigQuerySource) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.BigQuerySource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.BigQuerySource other) { + if (other == com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTableId().isEmpty()) { + tableId_ = other.tableId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcsStagingDir().isEmpty()) { + gcsStagingDir_ = other.gcsStagingDir_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDataSchema().isEmpty()) { + dataSchema_ = other.dataSchema_; + bitField0_ |= 0x00000020; + onChanged(); + } + switch (other.getPartitionCase()) { + case PARTITION_DATE: { + mergePartitionDate(other.getPartitionDate()); + break; + } + case PARTITION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + tableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + gcsStagingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + input.readMessage( + getPartitionDateFieldBuilder().getBuilder(), + extensionRegistry); + partitionCase_ = 5; + break; + } // case 42 + case 50: { + dataSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int partitionCase_ = 0; + private java.lang.Object partition_; + public PartitionCase + getPartitionCase() { + return PartitionCase.forNumber( + partitionCase_); + } + + public Builder clearPartition() { + partitionCase_ = 0; + partition_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> partitionDateBuilder_; + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + * @return Whether the partitionDate field is set. + */ + @java.lang.Override + public boolean hasPartitionDate() { + return partitionCase_ == 5; + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + * @return The partitionDate. + */ + @java.lang.Override + public com.google.type.Date getPartitionDate() { + if (partitionDateBuilder_ == null) { + if (partitionCase_ == 5) { + return (com.google.type.Date) partition_; + } + return com.google.type.Date.getDefaultInstance(); + } else { + if (partitionCase_ == 5) { + return partitionDateBuilder_.getMessage(); + } + return com.google.type.Date.getDefaultInstance(); + } + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + public Builder setPartitionDate(com.google.type.Date value) { + if (partitionDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partition_ = value; + onChanged(); + } else { + partitionDateBuilder_.setMessage(value); + } + partitionCase_ = 5; + return this; + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + public Builder setPartitionDate( + com.google.type.Date.Builder builderForValue) { + if (partitionDateBuilder_ == null) { + partition_ = builderForValue.build(); + onChanged(); + } else { + partitionDateBuilder_.setMessage(builderForValue.build()); + } + partitionCase_ = 5; + return this; + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + public Builder mergePartitionDate(com.google.type.Date value) { + if (partitionDateBuilder_ == null) { + if (partitionCase_ == 5 && + partition_ != com.google.type.Date.getDefaultInstance()) { + partition_ = com.google.type.Date.newBuilder((com.google.type.Date) partition_) + .mergeFrom(value).buildPartial(); + } else { + partition_ = value; + } + onChanged(); + } else { + if (partitionCase_ == 5) { + partitionDateBuilder_.mergeFrom(value); + } else { + partitionDateBuilder_.setMessage(value); + } + } + partitionCase_ = 5; + return this; + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + public Builder clearPartitionDate() { + if (partitionDateBuilder_ == null) { + if (partitionCase_ == 5) { + partitionCase_ = 0; + partition_ = null; + onChanged(); + } + } else { + if (partitionCase_ == 5) { + partitionCase_ = 0; + partition_ = null; + } + partitionDateBuilder_.clear(); + } + return this; + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + public com.google.type.Date.Builder getPartitionDateBuilder() { + return getPartitionDateFieldBuilder().getBuilder(); + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { + if ((partitionCase_ == 5) && (partitionDateBuilder_ != null)) { + return partitionDateBuilder_.getMessageOrBuilder(); + } else { + if (partitionCase_ == 5) { + return (com.google.type.Date) partition_; + } + return com.google.type.Date.getDefaultInstance(); + } + } + /** + *
+     * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+     * 
+ * + * .google.type.Date partition_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPartitionDateFieldBuilder() { + if (partitionDateBuilder_ == null) { + if (!(partitionCase_ == 5)) { + partition_ = com.google.type.Date.getDefaultInstance(); + } + partitionDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + (com.google.type.Date) partition_, + getParentForChildren(), + isClean()); + partition_ = null; + } + partitionCase_ = 5; + onChanged(); + return partitionDateBuilder_; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * The project ID (can be project # or ID) that the BigQuery source is in with
+     * a length limit of 128 characters. If not specified, inherits the project
+     * ID from the parent request.
+     * 
+ * + * string project_id = 1; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The project ID (can be project # or ID) that the BigQuery source is in with
+     * a length limit of 128 characters. If not specified, inherits the project
+     * ID from the parent request.
+     * 
+ * + * string project_id = 1; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The project ID (can be project # or ID) that the BigQuery source is in with
+     * a length limit of 128 characters. If not specified, inherits the project
+     * ID from the parent request.
+     * 
+ * + * string project_id = 1; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The project ID (can be project # or ID) that the BigQuery source is in with
+     * a length limit of 128 characters. If not specified, inherits the project
+     * ID from the parent request.
+     * 
+ * + * string project_id = 1; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The project ID (can be project # or ID) that the BigQuery source is in with
+     * a length limit of 128 characters. If not specified, inherits the project
+     * ID from the parent request.
+     * 
+ * + * string project_id = 1; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object datasetId_ = ""; + /** + *
+     * Required. The BigQuery data set to copy the data from with a length limit
+     * of 1,024 characters.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The BigQuery data set to copy the data from with a length limit
+     * of 1,024 characters.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString + getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The BigQuery data set to copy the data from with a length limit
+     * of 1,024 characters.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + datasetId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. The BigQuery data set to copy the data from with a length limit
+     * of 1,024 characters.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Required. The BigQuery data set to copy the data from with a length limit
+     * of 1,024 characters.
+     * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + datasetId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object tableId_ = ""; + /** + *
+     * Required. The BigQuery table to copy the data from with a length limit of
+     * 1,024 characters.
+     * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The tableId. + */ + public java.lang.String getTableId() { + java.lang.Object ref = tableId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The BigQuery table to copy the data from with a length limit of
+     * 1,024 characters.
+     * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for tableId. + */ + public com.google.protobuf.ByteString + getTableIdBytes() { + java.lang.Object ref = tableId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The BigQuery table to copy the data from with a length limit of
+     * 1,024 characters.
+     * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The tableId to set. + * @return This builder for chaining. + */ + public Builder setTableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tableId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The BigQuery table to copy the data from with a length limit of
+     * 1,024 characters.
+     * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearTableId() { + tableId_ = getDefaultInstance().getTableId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Required. The BigQuery table to copy the data from with a length limit of
+     * 1,024 characters.
+     * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for tableId to set. + * @return This builder for chaining. + */ + public Builder setTableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tableId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcsStagingDir_ = ""; + /** + *
+     * Intermediate Cloud Storage directory used for the import with a length
+     * limit of 2,000 characters. Can be specified if one wants to have the
+     * BigQuery export to a specific Cloud Storage directory.
+     * 
+ * + * string gcs_staging_dir = 4; + * @return The gcsStagingDir. + */ + public java.lang.String getGcsStagingDir() { + java.lang.Object ref = gcsStagingDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsStagingDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Intermediate Cloud Storage directory used for the import with a length
+     * limit of 2,000 characters. Can be specified if one wants to have the
+     * BigQuery export to a specific Cloud Storage directory.
+     * 
+ * + * string gcs_staging_dir = 4; + * @return The bytes for gcsStagingDir. + */ + public com.google.protobuf.ByteString + getGcsStagingDirBytes() { + java.lang.Object ref = gcsStagingDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gcsStagingDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Intermediate Cloud Storage directory used for the import with a length
+     * limit of 2,000 characters. Can be specified if one wants to have the
+     * BigQuery export to a specific Cloud Storage directory.
+     * 
+ * + * string gcs_staging_dir = 4; + * @param value The gcsStagingDir to set. + * @return This builder for chaining. + */ + public Builder setGcsStagingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + gcsStagingDir_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Intermediate Cloud Storage directory used for the import with a length
+     * limit of 2,000 characters. Can be specified if one wants to have the
+     * BigQuery export to a specific Cloud Storage directory.
+     * 
+ * + * string gcs_staging_dir = 4; + * @return This builder for chaining. + */ + public Builder clearGcsStagingDir() { + gcsStagingDir_ = getDefaultInstance().getGcsStagingDir(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * Intermediate Cloud Storage directory used for the import with a length
+     * limit of 2,000 characters. Can be specified if one wants to have the
+     * BigQuery export to a specific Cloud Storage directory.
+     * 
+ * + * string gcs_staging_dir = 4; + * @param value The bytes for gcsStagingDir to set. + * @return This builder for chaining. + */ + public Builder setGcsStagingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gcsStagingDir_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object dataSchema_ = ""; + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for user event imports:
+     *
+     * * `user_event` (default): One
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+     *   row. Each document must have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+     *   of
+     *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+     *   or
+     *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+     * * `custom`: One custom data per row in arbitrary format that conforms to
+     *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. This can only be used by Gen App Builder.
+     * 
+ * + * string data_schema = 6; + * @return The dataSchema. + */ + public java.lang.String getDataSchema() { + java.lang.Object ref = dataSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for user event imports:
+     *
+     * * `user_event` (default): One
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+     *   row. Each document must have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+     *   of
+     *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+     *   or
+     *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+     * * `custom`: One custom data per row in arbitrary format that conforms to
+     *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. This can only be used by Gen App Builder.
+     * 
+ * + * string data_schema = 6; + * @return The bytes for dataSchema. + */ + public com.google.protobuf.ByteString + getDataSchemaBytes() { + java.lang.Object ref = dataSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for user event imports:
+     *
+     * * `user_event` (default): One
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+     *   row. Each document must have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+     *   of
+     *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+     *   or
+     *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+     * * `custom`: One custom data per row in arbitrary format that conforms to
+     *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. This can only be used by Gen App Builder.
+     * 
+ * + * string data_schema = 6; + * @param value The dataSchema to set. + * @return This builder for chaining. + */ + public Builder setDataSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dataSchema_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for user event imports:
+     *
+     * * `user_event` (default): One
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+     *   row. Each document must have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+     *   of
+     *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+     *   or
+     *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+     * * `custom`: One custom data per row in arbitrary format that conforms to
+     *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. This can only be used by Gen App Builder.
+     * 
+ * + * string data_schema = 6; + * @return This builder for chaining. + */ + public Builder clearDataSchema() { + dataSchema_ = getDefaultInstance().getDataSchema(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for user event imports:
+     *
+     * * `user_event` (default): One
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+     *   row. Each document must have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+     *   of
+     *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+     *   or
+     *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+     * * `custom`: One custom data per row in arbitrary format that conforms to
+     *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. This can only be used by Gen App Builder.
+     * 
+ * + * string data_schema = 6; + * @param value The bytes for dataSchema to set. + * @return This builder for chaining. + */ + public Builder setDataSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dataSchema_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.BigQuerySource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.BigQuerySource) + private static final com.google.cloud.discoveryengine.v1alpha.BigQuerySource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.BigQuerySource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.BigQuerySource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySourceOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySourceOrBuilder.java new file mode 100644 index 000000000000..b6e39d269a3a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BigQuerySourceOrBuilder.java @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface BigQuerySourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.BigQuerySource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+   * 
+ * + * .google.type.Date partition_date = 5; + * @return Whether the partitionDate field is set. + */ + boolean hasPartitionDate(); + /** + *
+   * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+   * 
+ * + * .google.type.Date partition_date = 5; + * @return The partitionDate. + */ + com.google.type.Date getPartitionDate(); + /** + *
+   * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
+   * 
+ * + * .google.type.Date partition_date = 5; + */ + com.google.type.DateOrBuilder getPartitionDateOrBuilder(); + + /** + *
+   * The project ID (can be project # or ID) that the BigQuery source is in with
+   * a length limit of 128 characters. If not specified, inherits the project
+   * ID from the parent request.
+   * 
+ * + * string project_id = 1; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
+   * The project ID (can be project # or ID) that the BigQuery source is in with
+   * a length limit of 128 characters. If not specified, inherits the project
+   * ID from the parent request.
+   * 
+ * + * string project_id = 1; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Required. The BigQuery data set to copy the data from with a length limit
+   * of 1,024 characters.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The datasetId. + */ + java.lang.String getDatasetId(); + /** + *
+   * Required. The BigQuery data set to copy the data from with a length limit
+   * of 1,024 characters.
+   * 
+ * + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for datasetId. + */ + com.google.protobuf.ByteString + getDatasetIdBytes(); + + /** + *
+   * Required. The BigQuery table to copy the data from with a length limit of
+   * 1,024 characters.
+   * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The tableId. + */ + java.lang.String getTableId(); + /** + *
+   * Required. The BigQuery table to copy the data from with a length limit of
+   * 1,024 characters.
+   * 
+ * + * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for tableId. + */ + com.google.protobuf.ByteString + getTableIdBytes(); + + /** + *
+   * Intermediate Cloud Storage directory used for the import with a length
+   * limit of 2,000 characters. Can be specified if one wants to have the
+   * BigQuery export to a specific Cloud Storage directory.
+   * 
+ * + * string gcs_staging_dir = 4; + * @return The gcsStagingDir. + */ + java.lang.String getGcsStagingDir(); + /** + *
+   * Intermediate Cloud Storage directory used for the import with a length
+   * limit of 2,000 characters. Can be specified if one wants to have the
+   * BigQuery export to a specific Cloud Storage directory.
+   * 
+ * + * string gcs_staging_dir = 4; + * @return The bytes for gcsStagingDir. + */ + com.google.protobuf.ByteString + getGcsStagingDirBytes(); + + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for user event imports:
+   *
+   * * `user_event` (default): One
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+   *   row. Each document must have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+   *   of
+   *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+   *   or
+   *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+   * * `custom`: One custom data per row in arbitrary format that conforms to
+   *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. This can only be used by Gen App Builder.
+   * 
+ * + * string data_schema = 6; + * @return The dataSchema. + */ + java.lang.String getDataSchema(); + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for user event imports:
+   *
+   * * `user_event` (default): One
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] format per
+   *   row. Each document must have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one
+   *   of
+   *   [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data]
+   *   or
+   *   [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data].
+   * * `custom`: One custom data per row in arbitrary format that conforms to
+   *   the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. This can only be used by Gen App Builder.
+   * 
+ * + * string data_schema = 6; + * @return The bytes for dataSchema. + */ + com.google.protobuf.ByteString + getDataSchemaBytes(); + + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.PartitionCase getPartitionCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java new file mode 100644 index 000000000000..008ec59de27a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java @@ -0,0 +1,427 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BranchName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_BRANCH = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String branch; + private final String collection; + + @Deprecated + protected BranchName() { + project = null; + location = null; + dataStore = null; + branch = null; + collection = null; + } + + private BranchName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + branch = Preconditions.checkNotNull(builder.getBranch()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_BRANCH; + } + + private BranchName(ProjectLocationCollectionDataStoreBranchBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + branch = Preconditions.checkNotNull(builder.getBranch()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreBranchBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreBranchBuilder + newProjectLocationCollectionDataStoreBranchBuilder() { + return new ProjectLocationCollectionDataStoreBranchBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BranchName of(String project, String location, String dataStore, String branch) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BranchName ofProjectLocationDataStoreBranchName( + String project, String location, String dataStore, String branch) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static BranchName ofProjectLocationCollectionDataStoreBranchName( + String project, String location, String collection, String dataStore, String branch) { + return newProjectLocationCollectionDataStoreBranchBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setBranch(branch) + .build(); + } + + public static String format(String project, String location, String dataStore, String branch) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreBranchName( + String project, String location, String dataStore, String branch) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreBranchName( + String project, String location, String collection, String dataStore, String branch) { + return newProjectLocationCollectionDataStoreBranchBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setBranch(branch) + .build() + .toString(); + } + + public static BranchName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_BRANCH.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_STORE_BRANCH.match(formattedString); + return ofProjectLocationDataStoreBranchName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("branch")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH.match(formattedString); + return ofProjectLocationCollectionDataStoreBranchName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("branch")); + } + throw new ValidationException("BranchName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (BranchName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_BRANCH.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (branch != null) { + fieldMapBuilder.put("branch", branch); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BranchName that = ((BranchName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.branch, that.branch) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(branch); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String branch; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setBranch(String branch) { + this.branch = branch; + return this; + } + + private Builder(BranchName branchName) { + Preconditions.checkArgument( + Objects.equals(branchName.pathTemplate, PROJECT_LOCATION_DATA_STORE_BRANCH), + "toBuilder is only supported when BranchName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}"); + this.project = branchName.project; + this.location = branchName.location; + this.dataStore = branchName.dataStore; + this.branch = branchName.branch; + } + + public BranchName build() { + return new BranchName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreBranchBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String branch; + + protected ProjectLocationCollectionDataStoreBranchBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public ProjectLocationCollectionDataStoreBranchBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBranchBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBranchBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBranchBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreBranchBuilder setBranch(String branch) { + this.branch = branch; + return this; + } + + public BranchName build() { + return new BranchName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequest.java new file mode 100644 index 000000000000..5dcd565f0634 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequest.java @@ -0,0 +1,1103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for CollectUserEvent method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CollectUserEventRequest} + */ +public final class CollectUserEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) + CollectUserEventRequestOrBuilder { +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_ = ""; + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollectUserEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.class, com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 USER_EVENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object userEvent_ = ""; + /** + *
+   * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+   * characters.
+   * 
+ * + * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + @java.lang.Override + public java.lang.String getUserEvent() { + java.lang.Object ref = userEvent_; + 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(); + userEvent_ = s; + return s; + } + } + /** + *
+   * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+   * characters.
+   * 
+ * + * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for userEvent. + */ + @java.lang.Override + 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); + userEvent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+   * The URL including cgi-parameters but excluding the hash fragment with a
+   * length limit of 5,000 characters. This is often more useful than the
+   * referer URL, because many browsers only send the domain for third-party
+   * requests.
+   * 
+ * + * optional string uri = 3; + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The URL including cgi-parameters but excluding the hash fragment with a
+   * length limit of 5,000 characters. This is often more useful than the
+   * referer URL, because many browsers only send the domain for third-party
+   * requests.
+   * 
+ * + * optional string uri = 3; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + *
+   * The URL including cgi-parameters but excluding the hash fragment with a
+   * length limit of 5,000 characters. This is often more useful than the
+   * referer URL, because many browsers only send the domain for third-party
+   * requests.
+   * 
+ * + * optional string uri = 3; + * @return The bytes for uri. + */ + @java.lang.Override + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETS_FIELD_NUMBER = 4; + private long ets_ = 0L; + /** + *
+   * The event timestamp in milliseconds. This prevents browser caching of
+   * otherwise identical get requests. The name is abbreviated to reduce the
+   * payload bytes.
+   * 
+ * + * optional int64 ets = 4; + * @return Whether the ets field is set. + */ + @java.lang.Override + public boolean hasEts() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * The event timestamp in milliseconds. This prevents browser caching of
+   * otherwise identical get requests. The name is abbreviated to reduce the
+   * payload bytes.
+   * 
+ * + * optional int64 ets = 4; + * @return The ets. + */ + @java.lang.Override + public long getEts() { + return ets_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEvent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userEvent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(4, ets_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEvent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userEvent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ets_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest other = (com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getUserEvent() + .equals(other.getUserEvent())) return false; + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri() + .equals(other.getUri())) return false; + } + if (hasEts() != other.hasEts()) return false; + if (hasEts()) { + if (getEts() + != other.getEts()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + USER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getUserEvent().hashCode(); + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasEts()) { + hash = (37 * hash) + ETS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEts()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest 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.discoveryengine.v1alpha.CollectUserEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.CollectUserEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest 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.discoveryengine.v1alpha.CollectUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.CollectUserEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest 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 CollectUserEvent method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CollectUserEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.class, com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + userEvent_ = ""; + uri_ = ""; + ets_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest build() { + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest result = new com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userEvent_ = userEvent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ets_ = ets_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserEvent().isEmpty()) { + userEvent_ = other.userEvent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEts()) { + setEts(other.getEts()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userEvent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + ets_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userEvent_ = ""; + /** + *
+     * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+     * characters.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + userEvent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+     * characters.
+     * 
+ * + * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for userEvent. + */ + 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); + userEvent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+     * characters.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + userEvent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+     * characters.
+     * 
+ * + * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearUserEvent() { + userEvent_ = getDefaultInstance().getUserEvent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+     * characters.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userEvent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + *
+     * The URL including cgi-parameters but excluding the hash fragment with a
+     * length limit of 5,000 characters. This is often more useful than the
+     * referer URL, because many browsers only send the domain for third-party
+     * requests.
+     * 
+ * + * optional string uri = 3; + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The URL including cgi-parameters but excluding the hash fragment with a
+     * length limit of 5,000 characters. This is often more useful than the
+     * referer URL, because many browsers only send the domain for third-party
+     * requests.
+     * 
+ * + * optional string uri = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URL including cgi-parameters but excluding the hash fragment with a
+     * length limit of 5,000 characters. This is often more useful than the
+     * referer URL, because many browsers only send the domain for third-party
+     * requests.
+     * 
+ * + * optional string uri = 3; + * @return The bytes for uri. + */ + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URL including cgi-parameters but excluding the hash fragment with a
+     * length limit of 5,000 characters. This is often more useful than the
+     * referer URL, because many browsers only send the domain for third-party
+     * requests.
+     * 
+ * + * optional string uri = 3; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The URL including cgi-parameters but excluding the hash fragment with a
+     * length limit of 5,000 characters. This is often more useful than the
+     * referer URL, because many browsers only send the domain for third-party
+     * requests.
+     * 
+ * + * optional string uri = 3; + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The URL including cgi-parameters but excluding the hash fragment with a
+     * length limit of 5,000 characters. This is often more useful than the
+     * referer URL, because many browsers only send the domain for third-party
+     * requests.
+     * 
+ * + * optional string uri = 3; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long ets_ ; + /** + *
+     * The event timestamp in milliseconds. This prevents browser caching of
+     * otherwise identical get requests. The name is abbreviated to reduce the
+     * payload bytes.
+     * 
+ * + * optional int64 ets = 4; + * @return Whether the ets field is set. + */ + @java.lang.Override + public boolean hasEts() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The event timestamp in milliseconds. This prevents browser caching of
+     * otherwise identical get requests. The name is abbreviated to reduce the
+     * payload bytes.
+     * 
+ * + * optional int64 ets = 4; + * @return The ets. + */ + @java.lang.Override + public long getEts() { + return ets_; + } + /** + *
+     * The event timestamp in milliseconds. This prevents browser caching of
+     * otherwise identical get requests. The name is abbreviated to reduce the
+     * payload bytes.
+     * 
+ * + * optional int64 ets = 4; + * @param value The ets to set. + * @return This builder for chaining. + */ + public Builder setEts(long value) { + + ets_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The event timestamp in milliseconds. This prevents browser caching of
+     * otherwise identical get requests. The name is abbreviated to reduce the
+     * payload bytes.
+     * 
+ * + * optional int64 ets = 4; + * @return This builder for chaining. + */ + public Builder clearEts() { + bitField0_ = (bitField0_ & ~0x00000008); + ets_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequestOrBuilder.java new file mode 100644 index 000000000000..cbb8e3122009 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectUserEventRequestOrBuilder.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CollectUserEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CollectUserEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+   * characters.
+   * 
+ * + * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + java.lang.String getUserEvent(); + /** + *
+   * Required. URL encoded UserEvent proto with a length limit of 2,000,000
+   * characters.
+   * 
+ * + * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for userEvent. + */ + com.google.protobuf.ByteString + getUserEventBytes(); + + /** + *
+   * The URL including cgi-parameters but excluding the hash fragment with a
+   * length limit of 5,000 characters. This is often more useful than the
+   * referer URL, because many browsers only send the domain for third-party
+   * requests.
+   * 
+ * + * optional string uri = 3; + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + *
+   * The URL including cgi-parameters but excluding the hash fragment with a
+   * length limit of 5,000 characters. This is often more useful than the
+   * referer URL, because many browsers only send the domain for third-party
+   * requests.
+   * 
+ * + * optional string uri = 3; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+   * The URL including cgi-parameters but excluding the hash fragment with a
+   * length limit of 5,000 characters. This is often more useful than the
+   * referer URL, because many browsers only send the domain for third-party
+   * requests.
+   * 
+ * + * optional string uri = 3; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+   * The event timestamp in milliseconds. This prevents browser caching of
+   * otherwise identical get requests. The name is abbreviated to reduce the
+   * payload bytes.
+   * 
+ * + * optional int64 ets = 4; + * @return Whether the ets field is set. + */ + boolean hasEts(); + /** + *
+   * The event timestamp in milliseconds. This prevents browser caching of
+   * otherwise identical get requests. The name is abbreviated to reduce the
+   * payload bytes.
+   * 
+ * + * optional int64 ets = 4; + * @return The ets. + */ + long getEts(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java new file mode 100644 index 000000000000..5202b180da5a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class CommonProto { + private CommonProto() {} + 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_discoveryengine_v1alpha_Interval_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Interval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/discoveryengine/v1alpha/c" + + "ommon.proto\022$google.cloud.discoveryengin" + + "e.v1alpha\032\031google/api/resource.proto\"x\n\010" + + "Interval\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive" + + "_minimum\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021e" + + "xclusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"0" + + "\n\017CustomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbe" + + "rs\030\002 \003(\001\"/\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n" + + "\nuser_agent\030\002 \001(\t\"\034\n\nDoubleList\022\016\n\006value" + + "s\030\001 \003(\001*\201\001\n\014SolutionType\022\035\n\031SOLUTION_TYP" + + "E_UNSPECIFIED\020\000\022 \n\034SOLUTION_TYPE_RECOMME" + + "NDATION\020\001\022\030\n\024SOLUTION_TYPE_SEARCH\020\002\022\026\n\022S" + + "OLUTION_TYPE_CHAT\020\003B\274\n\n(com.google.cloud" + + ".discoveryengine.v1alphaB\013CommonProtoP\001Z" + + "Rcloud.google.com/go/discoveryengine/api" + + "v1alpha/discoveryenginepb;discoveryengin" + + "epb\242\002\017DISCOVERYENGINE\252\002$Google.Cloud.Dis" + + "coveryEngine.V1Alpha\312\002$Google\\Cloud\\Disc" + + "overyEngine\\V1alpha\352\002\'Google::Cloud::Dis" + + "coveryEngine::V1alpha\352A\346\001\n%discoveryengi" + + "ne.googleapis.com/Branch\022Qprojects/{proj" + + "ect}/locations/{location}/dataStores/{da" + + "ta_store}/branches/{branch}\022jprojects/{p" + + "roject}/locations/{location}/collections" + + "/{collection}/dataStores/{data_store}/br" + + "anches/{branch}\352A\305\001\n(discoveryengine.goo" + + "gleapis.com/DataStore\022?projects/{project" + + "}/locations/{location}/dataStores/{data_" + + "store}\022Xprojects/{project}/locations/{lo" + + "cation}/collections/{collection}/dataSto" + + "res/{data_store}\352A\374\002\n,discoveryengine.go" + + "ogleapis.com/ServingConfig\022_projects/{pr" + + "oject}/locations/{location}/dataStores/{" + + "data_store}/servingConfigs/{serving_conf" + + "ig}\022xprojects/{project}/locations/{locat" + + "ion}/collections/{collection}/dataStores" + + "/{data_store}/servingConfigs/{serving_co" + + "nfig}\022qprojects/{project}/locations/{loc" + + "ation}/collections/{collection}/engines/" + + "{engine}/servingConfigs/{serving_config}" + + "\352A\356\001\n/discoveryengine.googleapis.com/Sit" + + "eSearchEngine\022Pprojects/{project}/locati" + + "ons/{location}/dataStores/{data_store}/s" + + "iteSearchEngine\022iprojects/{project}/loca" + + "tions/{location}/collections/{collection" + + "}/dataStores/{data_store}/siteSearchEngi" + + "neb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_Interval_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Interval_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Interval_descriptor, + new java.lang.String[] { "Minimum", "ExclusiveMinimum", "Maximum", "ExclusiveMaximum", "Min", "Max", }); + internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_descriptor, + new java.lang.String[] { "Text", "Numbers", }); + internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor, + new java.lang.String[] { "UserId", "UserAgent", }); + internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor, + new java.lang.String[] { "Values", }); + 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/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java new file mode 100644 index 000000000000..a53d79fd522c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java @@ -0,0 +1,1385 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/completion_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompleteQueryRequest} + */ +public final class CompleteQueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) + CompleteQueryRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompleteQueryRequest.newBuilder() to construct. + private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompleteQueryRequest() { + dataStore_ = ""; + query_ = ""; + queryModel_ = ""; + userPseudoId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompleteQueryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.class, com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.Builder.class); + } + + public static final int DATA_STORE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + /** + *
+   * Required. The parent data store resource name for which the completion is
+   * performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+   * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + 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(); + dataStore_ = s; + return s; + } + } + /** + *
+   * Required. The parent data store resource name for which the completion is
+   * performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+   * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object queryModel_ = ""; + /** + *
+   * Selects data model of query suggestions for serving. Currently supported
+   * values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * @return The queryModel. + */ + @java.lang.Override + public java.lang.String getQueryModel() { + java.lang.Object ref = queryModel_; + 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(); + queryModel_ = s; + return s; + } + } + /** + *
+   * Selects data model of query suggestions for serving. Currently supported
+   * values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * @return The bytes for queryModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryModelBytes() { + java.lang.Object ref = queryModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + queryModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_pseudo_id = 4; + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + 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(); + userPseudoId_ = s; + return s; + } + } + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_pseudo_id = 4; + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER = 5; + private boolean includeTailSuggestions_ = false; + /** + *
+   * Indicates if tail suggestions should be returned if there are no
+   * suggestions that match the full query. Even if set to true, if there are
+   * suggestions that match the full query, those are returned and no
+   * tail suggestions are returned.
+   * 
+ * + * bool include_tail_suggestions = 5; + * @return The includeTailSuggestions. + */ + @java.lang.Override + public boolean getIncludeTailSuggestions() { + return includeTailSuggestions_; + } + + 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(dataStore_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userPseudoId_); + } + if (includeTailSuggestions_ != false) { + output.writeBool(5, includeTailSuggestions_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStore_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataStore_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userPseudoId_); + } + if (includeTailSuggestions_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, includeTailSuggestions_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest other = (com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) obj; + + if (!getDataStore() + .equals(other.getDataStore())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getQueryModel() + .equals(other.getQueryModel())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (getIncludeTailSuggestions() + != other.getIncludeTailSuggestions()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + QUERY_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getQueryModel().hashCode(); + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + hash = (37 * hash) + INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeTailSuggestions()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest 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.discoveryengine.v1alpha.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest 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.discoveryengine.v1alpha.CompleteQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest 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.discoveryengine.v1alpha.CompleteQueryRequest 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
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompleteQueryRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.class, com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStore_ = ""; + query_ = ""; + queryModel_ = ""; + userPseudoId_ = ""; + includeTailSuggestions_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest build() { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest result = new com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStore_ = dataStore_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryModel_ = queryModel_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.includeTailSuggestions_ = includeTailSuggestions_; + } + } + + @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.discoveryengine.v1alpha.CompleteQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.getDefaultInstance()) return this; + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQueryModel().isEmpty()) { + queryModel_ = other.queryModel_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getIncludeTailSuggestions() != false) { + setIncludeTailSuggestions(other.getIncludeTailSuggestions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + queryModel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + includeTailSuggestions_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object dataStore_ = ""; + /** + *
+     * Required. The parent data store resource name for which the completion is
+     * performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+     * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent data store resource name for which the completion is
+     * performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+     * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString + getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent data store resource name for which the completion is
+     * performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+     * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dataStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent data store resource name for which the completion is
+     * performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+     * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent data store resource name for which the completion is
+     * performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+     * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object queryModel_ = ""; + /** + *
+     * Selects data model of query suggestions for serving. Currently supported
+     * values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * @return The queryModel. + */ + public java.lang.String getQueryModel() { + java.lang.Object ref = queryModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Selects data model of query suggestions for serving. Currently supported
+     * values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * @return The bytes for queryModel. + */ + public com.google.protobuf.ByteString + getQueryModelBytes() { + java.lang.Object ref = queryModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + queryModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Selects data model of query suggestions for serving. Currently supported
+     * values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * @param value The queryModel to set. + * @return This builder for chaining. + */ + public Builder setQueryModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + queryModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Selects data model of query suggestions for serving. Currently supported
+     * values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * @return This builder for chaining. + */ + public Builder clearQueryModel() { + queryModel_ = getDefaultInstance().getQueryModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Selects data model of query suggestions for serving. Currently supported
+     * values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * @param value The bytes for queryModel to set. + * @return This builder for chaining. + */ + public Builder setQueryModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + queryModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object userPseudoId_ = ""; + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_pseudo_id = 4; + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_pseudo_id = 4; + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_pseudo_id = 4; + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_pseudo_id = 4; + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_pseudo_id = 4; + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean includeTailSuggestions_ ; + /** + *
+     * Indicates if tail suggestions should be returned if there are no
+     * suggestions that match the full query. Even if set to true, if there are
+     * suggestions that match the full query, those are returned and no
+     * tail suggestions are returned.
+     * 
+ * + * bool include_tail_suggestions = 5; + * @return The includeTailSuggestions. + */ + @java.lang.Override + public boolean getIncludeTailSuggestions() { + return includeTailSuggestions_; + } + /** + *
+     * Indicates if tail suggestions should be returned if there are no
+     * suggestions that match the full query. Even if set to true, if there are
+     * suggestions that match the full query, those are returned and no
+     * tail suggestions are returned.
+     * 
+ * + * bool include_tail_suggestions = 5; + * @param value The includeTailSuggestions to set. + * @return This builder for chaining. + */ + public Builder setIncludeTailSuggestions(boolean value) { + + includeTailSuggestions_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Indicates if tail suggestions should be returned if there are no
+     * suggestions that match the full query. Even if set to true, if there are
+     * suggestions that match the full query, those are returned and no
+     * tail suggestions are returned.
+     * 
+ * + * bool include_tail_suggestions = 5; + * @return This builder for chaining. + */ + public Builder clearIncludeTailSuggestions() { + bitField0_ = (bitField0_ & ~0x00000010); + includeTailSuggestions_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java new file mode 100644 index 000000000000..34d59e228bdc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java @@ -0,0 +1,164 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/completion_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CompleteQueryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CompleteQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent data store resource name for which the completion is
+   * performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+   * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The dataStore. + */ + java.lang.String getDataStore(); + /** + *
+   * Required. The parent data store resource name for which the completion is
+   * performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
+   * 
+ * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for dataStore. + */ + com.google.protobuf.ByteString + getDataStoreBytes(); + + /** + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + java.lang.String getQuery(); + /** + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + *
+   * Selects data model of query suggestions for serving. Currently supported
+   * values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * @return The queryModel. + */ + java.lang.String getQueryModel(); + /** + *
+   * Selects data model of query suggestions for serving. Currently supported
+   * values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * @return The bytes for queryModel. + */ + com.google.protobuf.ByteString + getQueryModelBytes(); + + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_pseudo_id = 4; + * @return The userPseudoId. + */ + java.lang.String getUserPseudoId(); + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_pseudo_id = 4; + * @return The bytes for userPseudoId. + */ + com.google.protobuf.ByteString + getUserPseudoIdBytes(); + + /** + *
+   * Indicates if tail suggestions should be returned if there are no
+   * suggestions that match the full query. Even if set to true, if there are
+   * suggestions that match the full query, those are returned and no
+   * tail suggestions are returned.
+   * 
+ * + * bool include_tail_suggestions = 5; + * @return The includeTailSuggestions. + */ + boolean getIncludeTailSuggestions(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponse.java new file mode 100644 index 000000000000..a381f805f88e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponse.java @@ -0,0 +1,1910 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/completion_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompleteQueryResponse} + */ +public final class CompleteQueryResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse) + CompleteQueryResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompleteQueryResponse.newBuilder() to construct. + private CompleteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompleteQueryResponse() { + querySuggestions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompleteQueryResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.class, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.Builder.class); + } + + public interface QuerySuggestionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * @return The suggestion. + */ + java.lang.String getSuggestion(); + /** + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * @return The bytes for suggestion. + */ + com.google.protobuf.ByteString + getSuggestionBytes(); + + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @return A list containing the completableFieldPaths. + */ + java.util.List + getCompletableFieldPathsList(); + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @return The count of completableFieldPaths. + */ + int getCompletableFieldPathsCount(); + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index of the element to return. + * @return The completableFieldPaths at the given index. + */ + java.lang.String getCompletableFieldPaths(int index); + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index of the value to return. + * @return The bytes of the completableFieldPaths at the given index. + */ + com.google.protobuf.ByteString + getCompletableFieldPathsBytes(int index); + } + /** + *
+   * Suggestions as search queries.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion} + */ + public static final class QuerySuggestion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) + QuerySuggestionOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuerySuggestion.newBuilder() to construct. + private QuerySuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QuerySuggestion() { + suggestion_ = ""; + completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QuerySuggestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.class, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder.class); + } + + public static final int SUGGESTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object suggestion_ = ""; + /** + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * @return The suggestion. + */ + @java.lang.Override + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + 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(); + suggestion_ = s; + return s; + } + } + /** + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * @return The bytes for suggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPLETABLE_FIELD_PATHS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @return A list containing the completableFieldPaths. + */ + public com.google.protobuf.ProtocolStringList + getCompletableFieldPathsList() { + return completableFieldPaths_; + } + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @return The count of completableFieldPaths. + */ + public int getCompletableFieldPathsCount() { + return completableFieldPaths_.size(); + } + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index of the element to return. + * @return The completableFieldPaths at the given index. + */ + public java.lang.String getCompletableFieldPaths(int index) { + return completableFieldPaths_.get(index); + } + /** + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index of the value to return. + * @return The bytes of the completableFieldPaths at the given index. + */ + public com.google.protobuf.ByteString + getCompletableFieldPathsBytes(int index) { + return completableFieldPaths_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); + } + for (int i = 0; i < completableFieldPaths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, completableFieldPaths_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, suggestion_); + } + { + int dataSize = 0; + for (int i = 0; i < completableFieldPaths_.size(); i++) { + dataSize += computeStringSizeNoTag(completableFieldPaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompletableFieldPathsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion other = (com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) obj; + + if (!getSuggestion() + .equals(other.getSuggestion())) return false; + if (!getCompletableFieldPathsList() + .equals(other.getCompletableFieldPathsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + if (getCompletableFieldPathsCount() > 0) { + hash = (37 * hash) + COMPLETABLE_FIELD_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getCompletableFieldPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion 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; + } + /** + *
+     * Suggestions as search queries.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.class, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestion_ = ""; + completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion build() { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion result = new com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestion_ = suggestion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + completableFieldPaths_.makeImmutable(); + result.completableFieldPaths_ = completableFieldPaths_; + } + } + + @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.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.completableFieldPaths_.isEmpty()) { + if (completableFieldPaths_.isEmpty()) { + completableFieldPaths_ = other.completableFieldPaths_; + bitField0_ |= 0x00000002; + } else { + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.addAll(other.completableFieldPaths_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object suggestion_ = ""; + /** + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * @return The suggestion. + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * @return The bytes for suggestion. + */ + public com.google.protobuf.ByteString + getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * @param value The suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * @return This builder for chaining. + */ + public Builder clearSuggestion() { + suggestion_ = getDefaultInstance().getSuggestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * @param value The bytes for suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCompletableFieldPathsIsMutable() { + if (!completableFieldPaths_.isModifiable()) { + completableFieldPaths_ = new com.google.protobuf.LazyStringArrayList(completableFieldPaths_); + } + bitField0_ |= 0x00000002; + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @return A list containing the completableFieldPaths. + */ + public com.google.protobuf.ProtocolStringList + getCompletableFieldPathsList() { + completableFieldPaths_.makeImmutable(); + return completableFieldPaths_; + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @return The count of completableFieldPaths. + */ + public int getCompletableFieldPathsCount() { + return completableFieldPaths_.size(); + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index of the element to return. + * @return The completableFieldPaths at the given index. + */ + public java.lang.String getCompletableFieldPaths(int index) { + return completableFieldPaths_.get(index); + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index of the value to return. + * @return The bytes of the completableFieldPaths at the given index. + */ + public com.google.protobuf.ByteString + getCompletableFieldPathsBytes(int index) { + return completableFieldPaths_.getByteString(index); + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @param index The index to set the value at. + * @param value The completableFieldPaths to set. + * @return This builder for chaining. + */ + public Builder setCompletableFieldPaths( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @param value The completableFieldPaths to add. + * @return This builder for chaining. + */ + public Builder addCompletableFieldPaths( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @param values The completableFieldPaths to add. + * @return This builder for chaining. + */ + public Builder addAllCompletableFieldPaths( + java.lang.Iterable values) { + ensureCompletableFieldPathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, completableFieldPaths_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @return This builder for chaining. + */ + public Builder clearCompletableFieldPaths() { + completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * @param value The bytes of the completableFieldPaths to add. + * @return This builder for chaining. + */ + public Builder addCompletableFieldPathsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion) + private static final com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuerySuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int QUERY_SUGGESTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List querySuggestions_; + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + @java.lang.Override + public java.util.List getQuerySuggestionsList() { + return querySuggestions_; + } + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + @java.lang.Override + public java.util.List + getQuerySuggestionsOrBuilderList() { + return querySuggestions_; + } + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + @java.lang.Override + public int getQuerySuggestionsCount() { + return querySuggestions_.size(); + } + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index) { + return querySuggestions_.get(index); + } + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index) { + return querySuggestions_.get(index); + } + + public static final int TAIL_MATCH_TRIGGERED_FIELD_NUMBER = 2; + private boolean tailMatchTriggered_ = false; + /** + *
+   * True if the returned suggestions are all tail suggestions.
+   *
+   * For tail matching to be triggered, include_tail_suggestions in the request
+   * must be true and there must be no suggestions that match the full query.
+   * 
+ * + * bool tail_match_triggered = 2; + * @return The tailMatchTriggered. + */ + @java.lang.Override + public boolean getTailMatchTriggered() { + return tailMatchTriggered_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < querySuggestions_.size(); i++) { + output.writeMessage(1, querySuggestions_.get(i)); + } + if (tailMatchTriggered_ != false) { + output.writeBool(2, tailMatchTriggered_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < querySuggestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, querySuggestions_.get(i)); + } + if (tailMatchTriggered_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, tailMatchTriggered_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse other = (com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse) obj; + + if (!getQuerySuggestionsList() + .equals(other.getQuerySuggestionsList())) return false; + if (getTailMatchTriggered() + != other.getTailMatchTriggered()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQuerySuggestionsCount() > 0) { + hash = (37 * hash) + QUERY_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuerySuggestionsList().hashCode(); + } + hash = (37 * hash) + TAIL_MATCH_TRIGGERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTailMatchTriggered()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse 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.discoveryengine.v1alpha.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse 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.discoveryengine.v1alpha.CompleteQueryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse 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.discoveryengine.v1alpha.CompleteQueryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompleteQueryResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse) + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.class, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (querySuggestionsBuilder_ == null) { + querySuggestions_ = java.util.Collections.emptyList(); + } else { + querySuggestions_ = null; + querySuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + tailMatchTriggered_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse build() { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse result = new com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse result) { + if (querySuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + querySuggestions_ = java.util.Collections.unmodifiableList(querySuggestions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.querySuggestions_ = querySuggestions_; + } else { + result.querySuggestions_ = querySuggestionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tailMatchTriggered_ = tailMatchTriggered_; + } + } + + @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.discoveryengine.v1alpha.CompleteQueryResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.getDefaultInstance()) return this; + if (querySuggestionsBuilder_ == null) { + if (!other.querySuggestions_.isEmpty()) { + if (querySuggestions_.isEmpty()) { + querySuggestions_ = other.querySuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.addAll(other.querySuggestions_); + } + onChanged(); + } + } else { + if (!other.querySuggestions_.isEmpty()) { + if (querySuggestionsBuilder_.isEmpty()) { + querySuggestionsBuilder_.dispose(); + querySuggestionsBuilder_ = null; + querySuggestions_ = other.querySuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + querySuggestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQuerySuggestionsFieldBuilder() : null; + } else { + querySuggestionsBuilder_.addAllMessages(other.querySuggestions_); + } + } + } + if (other.getTailMatchTriggered() != false) { + setTailMatchTriggered(other.getTailMatchTriggered()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.parser(), + extensionRegistry); + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(m); + } else { + querySuggestionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + tailMatchTriggered_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List querySuggestions_ = + java.util.Collections.emptyList(); + private void ensureQuerySuggestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + querySuggestions_ = new java.util.ArrayList(querySuggestions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder> querySuggestionsBuilder_; + + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public java.util.List getQuerySuggestionsList() { + if (querySuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(querySuggestions_); + } else { + return querySuggestionsBuilder_.getMessageList(); + } + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public int getQuerySuggestionsCount() { + if (querySuggestionsBuilder_ == null) { + return querySuggestions_.size(); + } else { + return querySuggestionsBuilder_.getCount(); + } + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index) { + if (querySuggestionsBuilder_ == null) { + return querySuggestions_.get(index); + } else { + return querySuggestionsBuilder_.getMessage(index); + } + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder setQuerySuggestions( + int index, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion value) { + if (querySuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuerySuggestionsIsMutable(); + querySuggestions_.set(index, value); + onChanged(); + } else { + querySuggestionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder setQuerySuggestions( + int index, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + querySuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder addQuerySuggestions(com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion value) { + if (querySuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(value); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder addQuerySuggestions( + int index, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion value) { + if (querySuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(index, value); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder addQuerySuggestions( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(builderForValue.build()); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder addQuerySuggestions( + int index, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder addAllQuerySuggestions( + java.lang.Iterable values) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, querySuggestions_); + onChanged(); + } else { + querySuggestionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder clearQuerySuggestions() { + if (querySuggestionsBuilder_ == null) { + querySuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + querySuggestionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public Builder removeQuerySuggestions(int index) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.remove(index); + onChanged(); + } else { + querySuggestionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder getQuerySuggestionsBuilder( + int index) { + return getQuerySuggestionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index) { + if (querySuggestionsBuilder_ == null) { + return querySuggestions_.get(index); } else { + return querySuggestionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public java.util.List + getQuerySuggestionsOrBuilderList() { + if (querySuggestionsBuilder_ != null) { + return querySuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(querySuggestions_); + } + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder() { + return getQuerySuggestionsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()); + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder( + int index) { + return getQuerySuggestionsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()); + } + /** + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + public java.util.List + getQuerySuggestionsBuilderList() { + return getQuerySuggestionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder> + getQuerySuggestionsFieldBuilder() { + if (querySuggestionsBuilder_ == null) { + querySuggestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder>( + querySuggestions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + querySuggestions_ = null; + } + return querySuggestionsBuilder_; + } + + private boolean tailMatchTriggered_ ; + /** + *
+     * True if the returned suggestions are all tail suggestions.
+     *
+     * For tail matching to be triggered, include_tail_suggestions in the request
+     * must be true and there must be no suggestions that match the full query.
+     * 
+ * + * bool tail_match_triggered = 2; + * @return The tailMatchTriggered. + */ + @java.lang.Override + public boolean getTailMatchTriggered() { + return tailMatchTriggered_; + } + /** + *
+     * True if the returned suggestions are all tail suggestions.
+     *
+     * For tail matching to be triggered, include_tail_suggestions in the request
+     * must be true and there must be no suggestions that match the full query.
+     * 
+ * + * bool tail_match_triggered = 2; + * @param value The tailMatchTriggered to set. + * @return This builder for chaining. + */ + public Builder setTailMatchTriggered(boolean value) { + + tailMatchTriggered_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * True if the returned suggestions are all tail suggestions.
+     *
+     * For tail matching to be triggered, include_tail_suggestions in the request
+     * must be true and there must be no suggestions that match the full query.
+     * 
+ * + * bool tail_match_triggered = 2; + * @return This builder for chaining. + */ + public Builder clearTailMatchTriggered() { + bitField0_ = (bitField0_ & ~0x00000002); + tailMatchTriggered_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse) + private static final com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponseOrBuilder.java new file mode 100644 index 000000000000..e872334b23de --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryResponseOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/completion_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CompleteQueryResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CompleteQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + java.util.List + getQuerySuggestionsList(); + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index); + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + int getQuerySuggestionsCount(); + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + java.util.List + getQuerySuggestionsOrBuilderList(); + /** + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; + */ + com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index); + + /** + *
+   * True if the returned suggestions are all tail suggestions.
+   *
+   * For tail matching to be triggered, include_tail_suggestions in the request
+   * must be true and there must be no suggestions that match the full query.
+   * 
+ * + * bool tail_match_triggered = 2; + * @return The tailMatchTriggered. + */ + boolean getTailMatchTriggered(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfo.java new file mode 100644 index 000000000000..b3f87f0c51a8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfo.java @@ -0,0 +1,676 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Detailed completion information including completion attribution token and
+ * clicked completion info.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompletionInfo} + */ +public final class CompletionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CompletionInfo) + CompletionInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompletionInfo.newBuilder() to construct. + private CompletionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompletionInfo() { + selectedSuggestion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompletionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompletionInfo.class, com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder.class); + } + + public static final int SELECTED_SUGGESTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object selectedSuggestion_ = ""; + /** + *
+   * End user selected
+   * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+   * 
+ * + * string selected_suggestion = 1; + * @return The selectedSuggestion. + */ + @java.lang.Override + public java.lang.String getSelectedSuggestion() { + java.lang.Object ref = selectedSuggestion_; + 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(); + selectedSuggestion_ = s; + return s; + } + } + /** + *
+   * End user selected
+   * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+   * 
+ * + * string selected_suggestion = 1; + * @return The bytes for selectedSuggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSelectedSuggestionBytes() { + java.lang.Object ref = selectedSuggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selectedSuggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTED_POSITION_FIELD_NUMBER = 2; + private int selectedPosition_ = 0; + /** + *
+   * End user selected
+   * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion]
+   * position, starting from 0.
+   * 
+ * + * int32 selected_position = 2; + * @return The selectedPosition. + */ + @java.lang.Override + public int getSelectedPosition() { + return selectedPosition_; + } + + 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(selectedSuggestion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedSuggestion_); + } + if (selectedPosition_ != 0) { + output.writeInt32(2, selectedPosition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectedSuggestion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selectedSuggestion_); + } + if (selectedPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, selectedPosition_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CompletionInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CompletionInfo other = (com.google.cloud.discoveryengine.v1alpha.CompletionInfo) obj; + + if (!getSelectedSuggestion() + .equals(other.getSelectedSuggestion())) return false; + if (getSelectedPosition() + != other.getSelectedPosition()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SELECTED_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSelectedSuggestion().hashCode(); + hash = (37 * hash) + SELECTED_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getSelectedPosition(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo 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.discoveryengine.v1alpha.CompletionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo 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.discoveryengine.v1alpha.CompletionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo 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.discoveryengine.v1alpha.CompletionInfo 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; + } + /** + *
+   * Detailed completion information including completion attribution token and
+   * clicked completion info.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CompletionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CompletionInfo) + com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CompletionInfo.class, com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CompletionInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + selectedSuggestion_ = ""; + selectedPosition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo build() { + com.google.cloud.discoveryengine.v1alpha.CompletionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CompletionInfo result = new com.google.cloud.discoveryengine.v1alpha.CompletionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CompletionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.selectedSuggestion_ = selectedSuggestion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.selectedPosition_ = selectedPosition_; + } + } + + @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.discoveryengine.v1alpha.CompletionInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CompletionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CompletionInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance()) return this; + if (!other.getSelectedSuggestion().isEmpty()) { + selectedSuggestion_ = other.selectedSuggestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSelectedPosition() != 0) { + setSelectedPosition(other.getSelectedPosition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + selectedSuggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + selectedPosition_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object selectedSuggestion_ = ""; + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+     * 
+ * + * string selected_suggestion = 1; + * @return The selectedSuggestion. + */ + public java.lang.String getSelectedSuggestion() { + java.lang.Object ref = selectedSuggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selectedSuggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+     * 
+ * + * string selected_suggestion = 1; + * @return The bytes for selectedSuggestion. + */ + public com.google.protobuf.ByteString + getSelectedSuggestionBytes() { + java.lang.Object ref = selectedSuggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selectedSuggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+     * 
+ * + * string selected_suggestion = 1; + * @param value The selectedSuggestion to set. + * @return This builder for chaining. + */ + public Builder setSelectedSuggestion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + selectedSuggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+     * 
+ * + * string selected_suggestion = 1; + * @return This builder for chaining. + */ + public Builder clearSelectedSuggestion() { + selectedSuggestion_ = getDefaultInstance().getSelectedSuggestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+     * 
+ * + * string selected_suggestion = 1; + * @param value The bytes for selectedSuggestion to set. + * @return This builder for chaining. + */ + public Builder setSelectedSuggestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + selectedSuggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int selectedPosition_ ; + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion]
+     * position, starting from 0.
+     * 
+ * + * int32 selected_position = 2; + * @return The selectedPosition. + */ + @java.lang.Override + public int getSelectedPosition() { + return selectedPosition_; + } + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion]
+     * position, starting from 0.
+     * 
+ * + * int32 selected_position = 2; + * @param value The selectedPosition to set. + * @return This builder for chaining. + */ + public Builder setSelectedPosition(int value) { + + selectedPosition_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * End user selected
+     * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion]
+     * position, starting from 0.
+     * 
+ * + * int32 selected_position = 2; + * @return This builder for chaining. + */ + public Builder clearSelectedPosition() { + bitField0_ = (bitField0_ & ~0x00000002); + selectedPosition_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CompletionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CompletionInfo) + private static final com.google.cloud.discoveryengine.v1alpha.CompletionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CompletionInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CompletionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfoOrBuilder.java new file mode 100644 index 000000000000..fb106efbe965 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionInfoOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CompletionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CompletionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * End user selected
+   * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+   * 
+ * + * string selected_suggestion = 1; + * @return The selectedSuggestion. + */ + java.lang.String getSelectedSuggestion(); + /** + *
+   * End user selected
+   * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion].
+   * 
+ * + * string selected_suggestion = 1; + * @return The bytes for selectedSuggestion. + */ + com.google.protobuf.ByteString + getSelectedSuggestionBytes(); + + /** + *
+   * End user selected
+   * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion]
+   * position, starting from 0.
+   * 
+ * + * int32 selected_position = 2; + * @return The selectedPosition. + */ + int getSelectedPosition(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java new file mode 100644 index 000000000000..41ef79455b8d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/completion_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class CompletionServiceProto { + private CompletionServiceProto() {} + 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_discoveryengine_v1alpha_CompleteQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_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/discoveryengine/v1alpha/c" + + "ompletion_service.proto\022$google.cloud.di" + + "scoveryengine.v1alpha\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\"\301\001\n\024CompleteQueryReques" + + "t\022E\n\ndata_store\030\001 \001(\tB1\342A\001\002\372A*\n(discover" + + "yengine.googleapis.com/DataStore\022\023\n\005quer" + + "y\030\002 \001(\tB\004\342A\001\002\022\023\n\013query_model\030\003 \001(\t\022\026\n\016us" + + "er_pseudo_id\030\004 \001(\t\022 \n\030include_tail_sugge" + + "stions\030\005 \001(\010\"\345\001\n\025CompleteQueryResponse\022f" + + "\n\021query_suggestions\030\001 \003(\0132K.google.cloud" + + ".discoveryengine.v1alpha.CompleteQueryRe" + + "sponse.QuerySuggestion\022\034\n\024tail_match_tri" + + "ggered\030\002 \001(\010\032F\n\017QuerySuggestion\022\022\n\nsugge" + + "stion\030\001 \001(\t\022\037\n\027completable_field_paths\030\002" + + " \003(\t2\236\003\n\021CompletionService\022\264\002\n\rCompleteQ" + + "uery\022:.google.cloud.discoveryengine.v1al" + + "pha.CompleteQueryRequest\032;.google.cloud." + + "discoveryengine.v1alpha.CompleteQueryRes" + + "ponse\"\251\001\202\323\344\223\002\242\001\022G/v1alpha/{data_store=pr" + + "ojects/*/locations/*/dataStores/*}:compl" + + "eteQueryZW\022U/v1alpha/{data_store=project" + + "s/*/locations/*/collections/*/dataStores" + + "/*}:completeQuery\032R\312A\036discoveryengine.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\242\002\n(com.google.clo" + + "ud.discoveryengine.v1alphaB\026CompletionSe" + + "rviceProtoP\001ZRcloud.google.com/go/discov" + + "eryengine/apiv1alpha/discoveryenginepb;d" + + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Goo" + + "gle.Cloud.DiscoveryEngine.V1Alpha\312\002$Goog" + + "le\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Googl" + + "e::Cloud::DiscoveryEngine::V1alphab\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_descriptor, + new java.lang.String[] { "DataStore", "Query", "QueryModel", "UserPseudoId", "IncludeTailSuggestions", }); + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor, + new java.lang.String[] { "QuerySuggestions", "TailMatchTriggered", }); + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryResponse_QuerySuggestion_descriptor, + new java.lang.String[] { "Suggestion", "CompletableFieldPaths", }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Conversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Conversation.java new file mode 100644 index 000000000000..6fff670e7ffa --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Conversation.java @@ -0,0 +1,1919 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * External conversation proto definition.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Conversation} + */ +public final class Conversation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Conversation) + ConversationOrBuilder { +private static final long serialVersionUID = 0L; + // Use Conversation.newBuilder() to construct. + private Conversation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Conversation() { + name_ = ""; + state_ = 0; + userPseudoId_ = ""; + messages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Conversation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Conversation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Conversation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Conversation.class, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder.class); + } + + /** + *
+   * Enumeration of the state of the conversation.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.Conversation.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * Conversation is currently open.
+     * 
+ * + * IN_PROGRESS = 1; + */ + IN_PROGRESS(1), + /** + *
+     * Conversation has been completed.
+     * 
+ * + * COMPLETED = 2; + */ + COMPLETED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Conversation is currently open.
+     * 
+ * + * IN_PROGRESS = 1; + */ + public static final int IN_PROGRESS_VALUE = 1; + /** + *
+     * Conversation has been completed.
+     * 
+ * + * COMPLETED = 2; + */ + public static final int COMPLETED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return IN_PROGRESS; + case 2: return COMPLETED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.Conversation.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.Conversation.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Immutable. Fully qualified name
+   * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Immutable. Fully qualified name
+   * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + *
+   * The state of the Conversation.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * The state of the Conversation.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return The state. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.Conversation.State getState() { + com.google.cloud.discoveryengine.v1alpha.Conversation.State result = com.google.cloud.discoveryengine.v1alpha.Conversation.State.forNumber(state_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.State.UNRECOGNIZED : result; + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + /** + *
+   * A unique identifier for tracking users.
+   * 
+ * + * string user_pseudo_id = 3; + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + 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(); + userPseudoId_ = s; + return s; + } + } + /** + *
+   * A unique identifier for tracking users.
+   * 
+ * + * string user_pseudo_id = 3; + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List messages_; + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage getMessages(int index) { + return messages_.get(index); + } + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder getMessagesOrBuilder( + int index) { + return messages_.get(index); + } + + public static final int START_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startTime_; + /** + *
+   * Output only. The time the conversation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+   * Output only. The time the conversation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+   * Output only. The time the conversation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp endTime_; + /** + *
+   * Output only. The time the conversation finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+   * Output only. The time the conversation finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+   * Output only. The time the conversation finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ != com.google.cloud.discoveryengine.v1alpha.Conversation.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userPseudoId_); + } + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(4, messages_.get(i)); + } + if (startTime_ != null) { + output.writeMessage(5, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(6, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ != com.google.cloud.discoveryengine.v1alpha.Conversation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userPseudoId_); + } + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, messages_.get(i)); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Conversation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Conversation other = (com.google.cloud.discoveryengine.v1alpha.Conversation) obj; + + if (!getName() + .equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation 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.discoveryengine.v1alpha.Conversation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation 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.discoveryengine.v1alpha.Conversation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Conversation 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.discoveryengine.v1alpha.Conversation 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; + } + /** + *
+   * External conversation proto definition.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Conversation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Conversation) + com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Conversation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Conversation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Conversation.class, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Conversation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + userPseudoId_ = ""; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Conversation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation build() { + com.google.cloud.discoveryengine.v1alpha.Conversation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Conversation result = new com.google.cloud.discoveryengine.v1alpha.Conversation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.Conversation result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Conversation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.Conversation) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Conversation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Conversation other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000008); + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessagesFieldBuilder() : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.cloud.discoveryengine.v1alpha.ConversationMessage m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.ConversationMessage.parser(), + extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Immutable. Fully qualified name
+     * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. Fully qualified name
+     * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. Fully qualified name
+     * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Immutable. Fully qualified name
+     * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Immutable. Fully qualified name
+     * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The state of the Conversation.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * The state of the Conversation.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The state of the Conversation.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation.State getState() { + com.google.cloud.discoveryengine.v1alpha.Conversation.State result = com.google.cloud.discoveryengine.v1alpha.Conversation.State.forNumber(state_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.State.UNRECOGNIZED : result; + } + /** + *
+     * The state of the Conversation.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1alpha.Conversation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The state of the Conversation.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object userPseudoId_ = ""; + /** + *
+     * A unique identifier for tracking users.
+     * 
+ * + * string user_pseudo_id = 3; + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique identifier for tracking users.
+     * 
+ * + * string user_pseudo_id = 3; + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique identifier for tracking users.
+     * 
+ * + * string user_pseudo_id = 3; + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userPseudoId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking users.
+     * 
+ * + * string user_pseudo_id = 3; + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking users.
+     * 
+ * + * string user_pseudo_id = 3; + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List messages_ = + java.util.Collections.emptyList(); + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ConversationMessage, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder> messagesBuilder_; + + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder setMessages( + int index, com.google.cloud.discoveryengine.v1alpha.ConversationMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder setMessages( + int index, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder addMessages(com.google.cloud.discoveryengine.v1alpha.ConversationMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder addMessages( + int index, com.google.cloud.discoveryengine.v1alpha.ConversationMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder addMessages( + com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder addMessages( + int index, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder getMessagesBuilder( + int index) { + return getMessagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder getMessagesOrBuilder( + int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder addMessagesBuilder() { + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.ConversationMessage.getDefaultInstance()); + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder addMessagesBuilder( + int index) { + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.getDefaultInstance()); + } + /** + *
+     * Conversation messages.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + public java.util.List + getMessagesBuilderList() { + return getMessagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ConversationMessage, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder> + getMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ConversationMessage, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+     * Output only. The time the conversation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+     * Output only. The time the conversation finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Conversation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Conversation) + private static final com.google.cloud.discoveryengine.v1alpha.Conversation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Conversation(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Conversation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conversation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContext.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContext.java new file mode 100644 index 000000000000..00d9f554f7d8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContext.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Defines context of the conversation
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConversationContext} + */ +public final class ConversationContext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ConversationContext) + ConversationContextOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConversationContext.newBuilder() to construct. + private ConversationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConversationContext() { + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + activeDocument_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConversationContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConversationContext.class, com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder.class); + } + + public static final int CONTEXT_DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @return A list containing the contextDocuments. + */ + public com.google.protobuf.ProtocolStringList + getContextDocumentsList() { + return contextDocuments_; + } + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @return The count of contextDocuments. + */ + public int getContextDocumentsCount() { + return contextDocuments_.size(); + } + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @param index The index of the element to return. + * @return The contextDocuments at the given index. + */ + public java.lang.String getContextDocuments(int index) { + return contextDocuments_.get(index); + } + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @param index The index of the value to return. + * @return The bytes of the contextDocuments at the given index. + */ + public com.google.protobuf.ByteString + getContextDocumentsBytes(int index) { + return contextDocuments_.getByteString(index); + } + + public static final int ACTIVE_DOCUMENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object activeDocument_ = ""; + /** + *
+   * The current active document the user opened.
+   * It contains the document resource reference.
+   * 
+ * + * string active_document = 2; + * @return The activeDocument. + */ + @java.lang.Override + public java.lang.String getActiveDocument() { + java.lang.Object ref = activeDocument_; + 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(); + activeDocument_ = s; + return s; + } + } + /** + *
+   * The current active document the user opened.
+   * It contains the document resource reference.
+   * 
+ * + * string active_document = 2; + * @return The bytes for activeDocument. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getActiveDocumentBytes() { + java.lang.Object ref = activeDocument_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activeDocument_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < contextDocuments_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextDocuments_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeDocument_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, activeDocument_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < contextDocuments_.size(); i++) { + dataSize += computeStringSizeNoTag(contextDocuments_.getRaw(i)); + } + size += dataSize; + size += 1 * getContextDocumentsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeDocument_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, activeDocument_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ConversationContext)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ConversationContext other = (com.google.cloud.discoveryengine.v1alpha.ConversationContext) obj; + + if (!getContextDocumentsList() + .equals(other.getContextDocumentsList())) return false; + if (!getActiveDocument() + .equals(other.getActiveDocument())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getContextDocumentsCount() > 0) { + hash = (37 * hash) + CONTEXT_DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getContextDocumentsList().hashCode(); + } + hash = (37 * hash) + ACTIVE_DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getActiveDocument().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext 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.discoveryengine.v1alpha.ConversationContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext 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.discoveryengine.v1alpha.ConversationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext 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.discoveryengine.v1alpha.ConversationContext 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; + } + /** + *
+   * Defines context of the conversation
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConversationContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ConversationContext) + com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConversationContext.class, com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ConversationContext.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + activeDocument_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationContext getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationContext build() { + com.google.cloud.discoveryengine.v1alpha.ConversationContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationContext buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ConversationContext result = new com.google.cloud.discoveryengine.v1alpha.ConversationContext(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ConversationContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + contextDocuments_.makeImmutable(); + result.contextDocuments_ = contextDocuments_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.activeDocument_ = activeDocument_; + } + } + + @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.discoveryengine.v1alpha.ConversationContext) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ConversationContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ConversationContext other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance()) return this; + if (!other.contextDocuments_.isEmpty()) { + if (contextDocuments_.isEmpty()) { + contextDocuments_ = other.contextDocuments_; + bitField0_ |= 0x00000001; + } else { + ensureContextDocumentsIsMutable(); + contextDocuments_.addAll(other.contextDocuments_); + } + onChanged(); + } + if (!other.getActiveDocument().isEmpty()) { + activeDocument_ = other.activeDocument_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContextDocumentsIsMutable(); + contextDocuments_.add(s); + break; + } // case 10 + case 18: { + activeDocument_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureContextDocumentsIsMutable() { + if (!contextDocuments_.isModifiable()) { + contextDocuments_ = new com.google.protobuf.LazyStringArrayList(contextDocuments_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @return A list containing the contextDocuments. + */ + public com.google.protobuf.ProtocolStringList + getContextDocumentsList() { + contextDocuments_.makeImmutable(); + return contextDocuments_; + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @return The count of contextDocuments. + */ + public int getContextDocumentsCount() { + return contextDocuments_.size(); + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @param index The index of the element to return. + * @return The contextDocuments at the given index. + */ + public java.lang.String getContextDocuments(int index) { + return contextDocuments_.get(index); + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @param index The index of the value to return. + * @return The bytes of the contextDocuments at the given index. + */ + public com.google.protobuf.ByteString + getContextDocumentsBytes(int index) { + return contextDocuments_.getByteString(index); + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @param index The index to set the value at. + * @param value The contextDocuments to set. + * @return This builder for chaining. + */ + public Builder setContextDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureContextDocumentsIsMutable(); + contextDocuments_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @param value The contextDocuments to add. + * @return This builder for chaining. + */ + public Builder addContextDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureContextDocumentsIsMutable(); + contextDocuments_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @param values The contextDocuments to add. + * @return This builder for chaining. + */ + public Builder addAllContextDocuments( + java.lang.Iterable values) { + ensureContextDocumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contextDocuments_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @return This builder for chaining. + */ + public Builder clearContextDocuments() { + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * The current list of documents the user is seeing.
+     * It contains the document resource references.
+     * 
+ * + * repeated string context_documents = 1; + * @param value The bytes of the contextDocuments to add. + * @return This builder for chaining. + */ + public Builder addContextDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureContextDocumentsIsMutable(); + contextDocuments_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object activeDocument_ = ""; + /** + *
+     * The current active document the user opened.
+     * It contains the document resource reference.
+     * 
+ * + * string active_document = 2; + * @return The activeDocument. + */ + public java.lang.String getActiveDocument() { + java.lang.Object ref = activeDocument_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activeDocument_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current active document the user opened.
+     * It contains the document resource reference.
+     * 
+ * + * string active_document = 2; + * @return The bytes for activeDocument. + */ + public com.google.protobuf.ByteString + getActiveDocumentBytes() { + java.lang.Object ref = activeDocument_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + activeDocument_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current active document the user opened.
+     * It contains the document resource reference.
+     * 
+ * + * string active_document = 2; + * @param value The activeDocument to set. + * @return This builder for chaining. + */ + public Builder setActiveDocument( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + activeDocument_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The current active document the user opened.
+     * It contains the document resource reference.
+     * 
+ * + * string active_document = 2; + * @return This builder for chaining. + */ + public Builder clearActiveDocument() { + activeDocument_ = getDefaultInstance().getActiveDocument(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The current active document the user opened.
+     * It contains the document resource reference.
+     * 
+ * + * string active_document = 2; + * @param value The bytes for activeDocument to set. + * @return This builder for chaining. + */ + public Builder setActiveDocumentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + activeDocument_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ConversationContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ConversationContext) + private static final com.google.cloud.discoveryengine.v1alpha.ConversationContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ConversationContext(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConversationContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContextOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContextOrBuilder.java new file mode 100644 index 000000000000..3f571f3fc7d8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationContextOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ConversationContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ConversationContext) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @return A list containing the contextDocuments. + */ + java.util.List + getContextDocumentsList(); + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @return The count of contextDocuments. + */ + int getContextDocumentsCount(); + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @param index The index of the element to return. + * @return The contextDocuments at the given index. + */ + java.lang.String getContextDocuments(int index); + /** + *
+   * The current list of documents the user is seeing.
+   * It contains the document resource references.
+   * 
+ * + * repeated string context_documents = 1; + * @param index The index of the value to return. + * @return The bytes of the contextDocuments at the given index. + */ + com.google.protobuf.ByteString + getContextDocumentsBytes(int index); + + /** + *
+   * The current active document the user opened.
+   * It contains the document resource reference.
+   * 
+ * + * string active_document = 2; + * @return The activeDocument. + */ + java.lang.String getActiveDocument(); + /** + *
+   * The current active document the user opened.
+   * It contains the document resource reference.
+   * 
+ * + * string active_document = 2; + * @return The bytes for activeDocument. + */ + com.google.protobuf.ByteString + getActiveDocumentBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessage.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessage.java new file mode 100644 index 000000000000..907a487839a8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessage.java @@ -0,0 +1,1229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Defines a conversation message.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConversationMessage} + */ +public final class ConversationMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ConversationMessage) + ConversationMessageOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConversationMessage.newBuilder() to construct. + private ConversationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConversationMessage() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConversationMessage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConversationMessage.class, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder.class); + } + + private int messageCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object message_; + public enum MessageCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_INPUT(1), + REPLY(2), + MESSAGE_NOT_SET(0); + private final int value; + private MessageCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: return USER_INPUT; + case 2: return REPLY; + case 0: return MESSAGE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); + } + + public static final int USER_INPUT_FIELD_NUMBER = 1; + /** + *
+   * User text input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + * @return Whether the userInput field is set. + */ + @java.lang.Override + public boolean hasUserInput() { + return messageCase_ == 1; + } + /** + *
+   * User text input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + * @return The userInput. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput getUserInput() { + if (messageCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.TextInput) message_; + } + return com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } + /** + *
+   * User text input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder getUserInputOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.TextInput) message_; + } + return com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } + + public static final int REPLY_FIELD_NUMBER = 2; + /** + *
+   * Search reply.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + * @return Whether the reply field is set. + */ + @java.lang.Override + public boolean hasReply() { + return messageCase_ == 2; + } + /** + *
+   * Search reply.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + * @return The reply. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply getReply() { + if (messageCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Reply) message_; + } + return com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } + /** + *
+   * Search reply.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder getReplyOrBuilder() { + if (messageCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Reply) message_; + } + return com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Message creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Message creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Message creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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 (messageCase_ == 1) { + output.writeMessage(1, (com.google.cloud.discoveryengine.v1alpha.TextInput) message_); + } + if (messageCase_ == 2) { + output.writeMessage(2, (com.google.cloud.discoveryengine.v1alpha.Reply) message_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (messageCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.discoveryengine.v1alpha.TextInput) message_); + } + if (messageCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1alpha.Reply) message_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ConversationMessage)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ConversationMessage other = (com.google.cloud.discoveryengine.v1alpha.ConversationMessage) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!getMessageCase().equals(other.getMessageCase())) return false; + switch (messageCase_) { + case 1: + if (!getUserInput() + .equals(other.getUserInput())) return false; + break; + case 2: + if (!getReply() + .equals(other.getReply())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (messageCase_) { + case 1: + hash = (37 * hash) + USER_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getUserInput().hashCode(); + break; + case 2: + hash = (37 * hash) + REPLY_FIELD_NUMBER; + hash = (53 * hash) + getReply().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage 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.discoveryengine.v1alpha.ConversationMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage 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.discoveryengine.v1alpha.ConversationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage 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.discoveryengine.v1alpha.ConversationMessage 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; + } + /** + *
+   * Defines a conversation message.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConversationMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ConversationMessage) + com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConversationMessage.class, com.google.cloud.discoveryengine.v1alpha.ConversationMessage.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ConversationMessage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userInputBuilder_ != null) { + userInputBuilder_.clear(); + } + if (replyBuilder_ != null) { + replyBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + messageCase_ = 0; + message_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage build() { + com.google.cloud.discoveryengine.v1alpha.ConversationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ConversationMessage result = new com.google.cloud.discoveryengine.v1alpha.ConversationMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ConversationMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.ConversationMessage result) { + result.messageCase_ = messageCase_; + result.message_ = this.message_; + if (messageCase_ == 1 && + userInputBuilder_ != null) { + result.message_ = userInputBuilder_.build(); + } + if (messageCase_ == 2 && + replyBuilder_ != null) { + result.message_ = replyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ConversationMessage) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ConversationMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ConversationMessage other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ConversationMessage.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getMessageCase()) { + case USER_INPUT: { + mergeUserInput(other.getUserInput()); + break; + } + case REPLY: { + mergeReply(other.getReply()); + break; + } + case MESSAGE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUserInputFieldBuilder().getBuilder(), + extensionRegistry); + messageCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getReplyFieldBuilder().getBuilder(), + extensionRegistry); + messageCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int messageCase_ = 0; + private java.lang.Object message_; + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); + } + + public Builder clearMessage() { + messageCase_ = 0; + message_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TextInput, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder, com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder> userInputBuilder_; + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + * @return Whether the userInput field is set. + */ + @java.lang.Override + public boolean hasUserInput() { + return messageCase_ == 1; + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + * @return The userInput. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput getUserInput() { + if (userInputBuilder_ == null) { + if (messageCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.TextInput) message_; + } + return com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } else { + if (messageCase_ == 1) { + return userInputBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + public Builder setUserInput(com.google.cloud.discoveryengine.v1alpha.TextInput value) { + if (userInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + userInputBuilder_.setMessage(value); + } + messageCase_ = 1; + return this; + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + public Builder setUserInput( + com.google.cloud.discoveryengine.v1alpha.TextInput.Builder builderForValue) { + if (userInputBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + userInputBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 1; + return this; + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + public Builder mergeUserInput(com.google.cloud.discoveryengine.v1alpha.TextInput value) { + if (userInputBuilder_ == null) { + if (messageCase_ == 1 && + message_ != com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance()) { + message_ = com.google.cloud.discoveryengine.v1alpha.TextInput.newBuilder((com.google.cloud.discoveryengine.v1alpha.TextInput) message_) + .mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 1) { + userInputBuilder_.mergeFrom(value); + } else { + userInputBuilder_.setMessage(value); + } + } + messageCase_ = 1; + return this; + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + public Builder clearUserInput() { + if (userInputBuilder_ == null) { + if (messageCase_ == 1) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 1) { + messageCase_ = 0; + message_ = null; + } + userInputBuilder_.clear(); + } + return this; + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.TextInput.Builder getUserInputBuilder() { + return getUserInputFieldBuilder().getBuilder(); + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder getUserInputOrBuilder() { + if ((messageCase_ == 1) && (userInputBuilder_ != null)) { + return userInputBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.TextInput) message_; + } + return com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } + } + /** + *
+     * User text input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TextInput, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder, com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder> + getUserInputFieldBuilder() { + if (userInputBuilder_ == null) { + if (!(messageCase_ == 1)) { + message_ = com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } + userInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TextInput, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder, com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.TextInput) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 1; + onChanged(); + return userInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply, com.google.cloud.discoveryengine.v1alpha.Reply.Builder, com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder> replyBuilder_; + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + * @return Whether the reply field is set. + */ + @java.lang.Override + public boolean hasReply() { + return messageCase_ == 2; + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + * @return The reply. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply getReply() { + if (replyBuilder_ == null) { + if (messageCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Reply) message_; + } + return com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } else { + if (messageCase_ == 2) { + return replyBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + public Builder setReply(com.google.cloud.discoveryengine.v1alpha.Reply value) { + if (replyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + replyBuilder_.setMessage(value); + } + messageCase_ = 2; + return this; + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + public Builder setReply( + com.google.cloud.discoveryengine.v1alpha.Reply.Builder builderForValue) { + if (replyBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + replyBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 2; + return this; + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + public Builder mergeReply(com.google.cloud.discoveryengine.v1alpha.Reply value) { + if (replyBuilder_ == null) { + if (messageCase_ == 2 && + message_ != com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance()) { + message_ = com.google.cloud.discoveryengine.v1alpha.Reply.newBuilder((com.google.cloud.discoveryengine.v1alpha.Reply) message_) + .mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 2) { + replyBuilder_.mergeFrom(value); + } else { + replyBuilder_.setMessage(value); + } + } + messageCase_ = 2; + return this; + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + public Builder clearReply() { + if (replyBuilder_ == null) { + if (messageCase_ == 2) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 2) { + messageCase_ = 0; + message_ = null; + } + replyBuilder_.clear(); + } + return this; + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Reply.Builder getReplyBuilder() { + return getReplyFieldBuilder().getBuilder(); + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder getReplyOrBuilder() { + if ((messageCase_ == 2) && (replyBuilder_ != null)) { + return replyBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Reply) message_; + } + return com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } + } + /** + *
+     * Search reply.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply, com.google.cloud.discoveryengine.v1alpha.Reply.Builder, com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder> + getReplyFieldBuilder() { + if (replyBuilder_ == null) { + if (!(messageCase_ == 2)) { + message_ = com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } + replyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply, com.google.cloud.discoveryengine.v1alpha.Reply.Builder, com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.Reply) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 2; + onChanged(); + return replyBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Output only. Message creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + @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.discoveryengine.v1alpha.ConversationMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ConversationMessage) + private static final com.google.cloud.discoveryengine.v1alpha.ConversationMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ConversationMessage(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConversationMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessageOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessageOrBuilder.java new file mode 100644 index 000000000000..05d7e4f75430 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationMessageOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ConversationMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ConversationMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * User text input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + * @return Whether the userInput field is set. + */ + boolean hasUserInput(); + /** + *
+   * User text input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + * @return The userInput. + */ + com.google.cloud.discoveryengine.v1alpha.TextInput getUserInput(); + /** + *
+   * User text input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput user_input = 1; + */ + com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder getUserInputOrBuilder(); + + /** + *
+   * Search reply.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + * @return Whether the reply field is set. + */ + boolean hasReply(); + /** + *
+   * Search reply.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + * @return The reply. + */ + com.google.cloud.discoveryengine.v1alpha.Reply getReply(); + /** + *
+   * Search reply.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder getReplyOrBuilder(); + + /** + *
+   * Output only. Message creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Message creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Message creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.ConversationMessage.MessageCase getMessageCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java new file mode 100644 index 000000000000..1d0cdd295228 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java @@ -0,0 +1,432 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConversationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_CONVERSATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_CONVERSATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String conversation; + private final String collection; + + @Deprecated + protected ConversationName() { + project = null; + location = null; + dataStore = null; + conversation = null; + collection = null; + } + + private ConversationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + conversation = Preconditions.checkNotNull(builder.getConversation()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_CONVERSATION; + } + + private ConversationName(ProjectLocationCollectionDataStoreConversationBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + conversation = Preconditions.checkNotNull(builder.getConversation()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_CONVERSATION; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getConversation() { + return conversation; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreConversationBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreConversationBuilder + newProjectLocationCollectionDataStoreConversationBuilder() { + return new ProjectLocationCollectionDataStoreConversationBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConversationName of( + String project, String location, String dataStore, String conversation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setConversation(conversation) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static ConversationName ofProjectLocationDataStoreConversationName( + String project, String location, String dataStore, String conversation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setConversation(conversation) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static ConversationName ofProjectLocationCollectionDataStoreConversationName( + String project, String location, String collection, String dataStore, String conversation) { + return newProjectLocationCollectionDataStoreConversationBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setConversation(conversation) + .build(); + } + + public static String format( + String project, String location, String dataStore, String conversation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setConversation(conversation) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreConversationName( + String project, String location, String dataStore, String conversation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setConversation(conversation) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreConversationName( + String project, String location, String collection, String dataStore, String conversation) { + return newProjectLocationCollectionDataStoreConversationBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setConversation(conversation) + .build() + .toString(); + } + + public static ConversationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_CONVERSATION.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_DATA_STORE_CONVERSATION.match(formattedString); + return ofProjectLocationDataStoreConversationName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("conversation")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_CONVERSATION.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_CONVERSATION.match(formattedString); + return ofProjectLocationCollectionDataStoreConversationName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("conversation")); + } + throw new ValidationException("ConversationName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConversationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_CONVERSATION.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_CONVERSATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (conversation != null) { + fieldMapBuilder.put("conversation", conversation); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConversationName that = ((ConversationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.conversation, that.conversation) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(conversation); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String conversation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getConversation() { + return conversation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setConversation(String conversation) { + this.conversation = conversation; + return this; + } + + private Builder(ConversationName conversationName) { + Preconditions.checkArgument( + Objects.equals(conversationName.pathTemplate, PROJECT_LOCATION_DATA_STORE_CONVERSATION), + "toBuilder is only supported when ConversationName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}"); + this.project = conversationName.project; + this.location = conversationName.location; + this.dataStore = conversationName.dataStore; + this.conversation = conversationName.conversation; + } + + public ConversationName build() { + return new ConversationName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreConversationBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String conversation; + + protected ProjectLocationCollectionDataStoreConversationBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getConversation() { + return conversation; + } + + public ProjectLocationCollectionDataStoreConversationBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreConversationBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreConversationBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreConversationBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreConversationBuilder setConversation( + String conversation) { + this.conversation = conversation; + return this; + } + + public ConversationName build() { + return new ConversationName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationOrBuilder.java new file mode 100644 index 000000000000..0bf494767b7c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationOrBuilder.java @@ -0,0 +1,168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ConversationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Conversation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Immutable. Fully qualified name
+   * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Immutable. Fully qualified name
+   * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The state of the Conversation.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * The state of the Conversation.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation.State state = 2; + * @return The state. + */ + com.google.cloud.discoveryengine.v1alpha.Conversation.State getState(); + + /** + *
+   * A unique identifier for tracking users.
+   * 
+ * + * string user_pseudo_id = 3; + * @return The userPseudoId. + */ + java.lang.String getUserPseudoId(); + /** + *
+   * A unique identifier for tracking users.
+   * 
+ * + * string user_pseudo_id = 3; + * @return The bytes for userPseudoId. + */ + com.google.protobuf.ByteString + getUserPseudoIdBytes(); + + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + java.util.List + getMessagesList(); + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationMessage getMessages(int index); + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + int getMessagesCount(); + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + java.util.List + getMessagesOrBuilderList(); + /** + *
+   * Conversation messages.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.ConversationMessage messages = 4; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationMessageOrBuilder getMessagesOrBuilder( + int index); + + /** + *
+   * Output only. The time the conversation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+   * Output only. The time the conversation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+   * Output only. The time the conversation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+   * Output only. The time the conversation finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
+   * Output only. The time the conversation finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+   * Output only. The time the conversation finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationProto.java new file mode 100644 index 000000000000..4dcb3b750c17 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationProto.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class ConversationProto { + private ConversationProto() {} + 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_discoveryengine_v1alpha_Conversation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Conversation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Reply_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_TextInput_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_TextInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_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/discoveryengine/v1alpha/c" + + "onversation.proto\022$google.cloud.discover" + + "yengine.v1alpha\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\0329goo" + + "gle/cloud/discoveryengine/v1alpha/search" + + "_service.proto\032\037google/protobuf/timestam" + + "p.proto\"\203\005\n\014Conversation\022\022\n\004name\030\001 \001(\tB\004" + + "\342A\001\005\022G\n\005state\030\002 \001(\01628.google.cloud.disco" + + "veryengine.v1alpha.Conversation.State\022\026\n" + + "\016user_pseudo_id\030\003 \001(\t\022K\n\010messages\030\004 \003(\0132" + + "9.google.cloud.discoveryengine.v1alpha.C" + + "onversationMessage\0224\n\nstart_time\030\005 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\0222\n\010end_" + + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\003\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013" + + "IN_PROGRESS\020\001\022\r\n\tCOMPLETED\020\002:\206\002\352A\202\002\n+dis" + + "coveryengine.googleapis.com/Conversation" + + "\022\\projects/{project}/locations/{location" + + "}/dataStores/{data_store}/conversations/" + + "{conversation}\022uprojects/{project}/locat" + + "ions/{location}/collections/{collection}" + + "/dataStores/{data_store}/conversations/{" + + "conversation}\"\207\002\n\005Reply\022\021\n\005reply\030\001 \001(\tB\002" + + "\030\001\022M\n\nreferences\030\002 \003(\01325.google.cloud.di" + + "scoveryengine.v1alpha.Reply.ReferenceB\002\030" + + "\001\022M\n\007summary\030\003 \001(\0132<.google.cloud.discov" + + "eryengine.v1alpha.SearchResponse.Summary" + + "\032M\n\tReference\022\013\n\003uri\030\001 \001(\t\022\023\n\013anchor_tex" + + "t\030\002 \001(\t\022\r\n\005start\030\003 \001(\005\022\013\n\003end\030\004 \001(\005:\002\030\001\"" + + "I\n\023ConversationContext\022\031\n\021context_docume" + + "nts\030\001 \003(\t\022\027\n\017active_document\030\002 \001(\t\"f\n\tTe" + + "xtInput\022\r\n\005input\030\001 \001(\t\022J\n\007context\030\002 \001(\0132" + + "9.google.cloud.discoveryengine.v1alpha.C" + + "onversationContext\"\334\001\n\023ConversationMessa" + + "ge\022E\n\nuser_input\030\001 \001(\0132/.google.cloud.di" + + "scoveryengine.v1alpha.TextInputH\000\022<\n\005rep" + + "ly\030\002 \001(\0132+.google.cloud.discoveryengine." + + "v1alpha.ReplyH\000\0225\n\013create_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003B\t\n\007messag" + + "eB\235\002\n(com.google.cloud.discoveryengine.v" + + "1alphaB\021ConversationProtoP\001ZRcloud.googl" + + "e.com/go/discoveryengine/apiv1alpha/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002$Google.Cloud.DiscoveryEngine" + + ".V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\" + + "V1alpha\352\002\'Google::Cloud::DiscoveryEngine" + + "::V1alphab\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.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_Conversation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Conversation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Conversation_descriptor, + new java.lang.String[] { "Name", "State", "UserPseudoId", "Messages", "StartTime", "EndTime", }); + internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_Reply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor, + new java.lang.String[] { "Reply", "References", "Summary", }); + internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_descriptor, + new java.lang.String[] { "Uri", "AnchorText", "Start", "End", }); + internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ConversationContext_descriptor, + new java.lang.String[] { "ContextDocuments", "ActiveDocument", }); + internal_static_google_cloud_discoveryengine_v1alpha_TextInput_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_TextInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_TextInput_descriptor, + new java.lang.String[] { "Input", "Context", }); + internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ConversationMessage_descriptor, + new java.lang.String[] { "UserInput", "Reply", "CreateTime", "Message", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java new file mode 100644 index 000000000000..816d6c2a9ccc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java @@ -0,0 +1,273 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class ConversationalSearchServiceProto { + private ConversationalSearchServiceProto() {} + 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_discoveryengine_v1alpha_ConverseConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/discoveryengine/v1alpha/c" + + "onversational_search_service.proto\022$goog" + + "le.cloud.discoveryengine.v1alpha\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\0327google/clou" + + "d/discoveryengine/v1alpha/conversation.p" + + "roto\0329google/cloud/discoveryengine/v1alp" + + "ha/search_service.proto\032\033google/protobuf" + + "/empty.proto\032 google/protobuf/field_mask" + + ".proto\"\325\004\n\033ConverseConversationRequest\022B" + + "\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryengine.g" + + "oogleapis.com/Conversation\022D\n\005query\030\002 \001(" + + "\0132/.google.cloud.discoveryengine.v1alpha" + + ".TextInputB\004\342A\001\002\022I\n\016serving_config\030\003 \001(\t" + + "B1\372A.\n,discoveryengine.googleapis.com/Se" + + "rvingConfig\022H\n\014conversation\030\005 \001(\01322.goog" + + "le.cloud.discoveryengine.v1alpha.Convers" + + "ation\022\023\n\013safe_search\030\006 \001(\010\022f\n\013user_label" + + "s\030\007 \003(\0132Q.google.cloud.discoveryengine.v" + + "1alpha.ConverseConversationRequest.UserL" + + "abelsEntry\022g\n\014summary_spec\030\010 \001(\0132Q.googl" + + "e.cloud.discoveryengine.v1alpha.SearchRe" + + "quest.ContentSearchSpec.SummarySpec\0321\n\017U" + + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"\232\002\n\034ConverseConversationResponse\022" + + ":\n\005reply\030\001 \001(\0132+.google.cloud.discoverye" + + "ngine.v1alpha.Reply\022H\n\014conversation\030\002 \001(" + + "\01322.google.cloud.discoveryengine.v1alpha" + + ".Conversation\022\031\n\021related_questions\030\006 \003(\t" + + "\022Y\n\016search_results\030\003 \003(\0132A.google.cloud." + + "discoveryengine.v1alpha.SearchResponse.S" + + "earchResult\"\256\001\n\031CreateConversationReques" + + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryeng" + + "ine.googleapis.com/DataStore\022N\n\014conversa" + + "tion\030\002 \001(\01322.google.cloud.discoveryengin" + + "e.v1alpha.ConversationB\004\342A\001\002\"\234\001\n\031UpdateC" + + "onversationRequest\022N\n\014conversation\030\001 \001(\013" + + "22.google.cloud.discoveryengine.v1alpha." + + "ConversationB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"_\n\031DeleteCon" + + "versationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n" + + "+discoveryengine.googleapis.com/Conversa" + + "tion\"\\\n\026GetConversationRequest\022B\n\004name\030\001" + + " \001(\tB4\342A\001\002\372A-\n+discoveryengine.googleapi" + + "s.com/Conversation\"\246\001\n\030ListConversations" + + "Request\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(discov" + + "eryengine.googleapis.com/DataStore\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" + + "ter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\177\n\031ListConve" + + "rsationsResponse\022I\n\rconversations\030\001 \003(\0132" + + "2.google.cloud.discoveryengine.v1alpha.C" + + "onversation\022\027\n\017next_page_token\030\002 \001(\t2\315\020\n" + + "\033ConversationalSearchService\022\346\002\n\024Convers" + + "eConversation\022A.google.cloud.discoveryen" + + "gine.v1alpha.ConverseConversationRequest" + + "\032B.google.cloud.discoveryengine.v1alpha." + + "ConverseConversationResponse\"\306\001\332A\nname,q" + + "uery\202\323\344\223\002\262\001\"L/v1alpha/{name=projects/*/l" + + "ocations/*/dataStores/*/conversations/*}" + + ":converse:\001*Z_\"Z/v1alpha/{name=projects/" + + "*/locations/*/collections/*/dataStores/*" + + "/conversations/*}:converse:\001*\022\337\002\n\022Create" + + "Conversation\022?.google.cloud.discoveryeng" + + "ine.v1alpha.CreateConversationRequest\0322." + + "google.cloud.discoveryengine.v1alpha.Con" + + "versation\"\323\001\332A\023parent,conversation\202\323\344\223\002\266" + + "\001\"C/v1alpha/{parent=projects/*/locations" + + "/*/dataStores/*}/conversations:\014conversa" + + "tionZa\"Q/v1alpha/{parent=projects/*/loca" + + "tions/*/collections/*/dataStores/*}/conv" + + "ersations:\014conversation\022\230\002\n\022DeleteConver" + + "sation\022?.google.cloud.discoveryengine.v1" + + "alpha.DeleteConversationRequest\032\026.google" + + ".protobuf.Empty\"\250\001\332A\004name\202\323\344\223\002\232\001*C/v1alp" + + "ha/{name=projects/*/locations/*/dataStor" + + "es/*/conversations/*}ZS*Q/v1alpha/{name=" + + "projects/*/locations/*/collections/*/dat" + + "aStores/*/conversations/*}\022\376\002\n\022UpdateCon" + + "versation\022?.google.cloud.discoveryengine" + + ".v1alpha.UpdateConversationRequest\0322.goo" + + "gle.cloud.discoveryengine.v1alpha.Conver" + + "sation\"\362\001\332A\030conversation,update_mask\202\323\344\223" + + "\002\320\0012P/v1alpha/{conversation.name=project" + + "s/*/locations/*/dataStores/*/conversatio" + + "ns/*}:\014conversationZn2^/v1alpha/{convers" + + "ation.name=projects/*/locations/*/collec" + + "tions/*/dataStores/*/conversations/*}:\014c" + + "onversation\022\256\002\n\017GetConversation\022<.google" + + ".cloud.discoveryengine.v1alpha.GetConver" + + "sationRequest\0322.google.cloud.discoveryen" + + "gine.v1alpha.Conversation\"\250\001\332A\004name\202\323\344\223\002" + + "\232\001\022C/v1alpha/{name=projects/*/locations/" + + "*/dataStores/*/conversations/*}ZS\022Q/v1al" + + "pha/{name=projects/*/locations/*/collect" + + "ions/*/dataStores/*/conversations/*}\022\301\002\n" + + "\021ListConversations\022>.google.cloud.discov" + + "eryengine.v1alpha.ListConversationsReque" + + "st\032?.google.cloud.discoveryengine.v1alph" + + "a.ListConversationsResponse\"\252\001\332A\006parent\202" + + "\323\344\223\002\232\001\022C/v1alpha/{parent=projects/*/loca" + + "tions/*/dataStores/*}/conversationsZS\022Q/" + + "v1alpha/{parent=projects/*/locations/*/c" + + "ollections/*/dataStores/*}/conversations" + + "\032R\312A\036discoveryengine.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\254\002\n(com.google.cloud.discoveryengin" + + "e.v1alphaB ConversationalSearchServicePr" + + "otoP\001ZRcloud.google.com/go/discoveryengi" + + "ne/apiv1alpha/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002$Google.Clo" + + "ud.DiscoveryEngine.V1Alpha\312\002$Google\\Clou" + + "d\\DiscoveryEngine\\V1alpha\352\002\'Google::Clou" + + "d::DiscoveryEngine::V1alphab\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.discoveryengine.v1alpha.ConversationProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor, + new java.lang.String[] { "Name", "Query", "ServingConfig", "Conversation", "SafeSearch", "UserLabels", "SummarySpec", }); + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_descriptor, + new java.lang.String[] { "Reply", "Conversation", "RelatedQuestions", "SearchResults", }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_descriptor, + new java.lang.String[] { "Parent", "Conversation", }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_descriptor, + new java.lang.String[] { "Conversation", "UpdateMask", }); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_descriptor, + new java.lang.String[] { "Conversations", "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); + 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.discoveryengine.v1alpha.ConversationProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java new file mode 100644 index 000000000000..187e8a00d2a7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java @@ -0,0 +1,2087 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConverseConversationRequest} + */ +public final class ConverseConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) + ConverseConversationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConverseConversationRequest.newBuilder() to construct. + private ConverseConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConverseConversationRequest() { + name_ = ""; + servingConfig_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConverseConversationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * Use
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * to activate auto session mode, which automatically creates a new
+   * conversation inside a ConverseConversation session.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * Use
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * to activate auto session mode, which automatically creates a new
+   * conversation inside a ConverseConversation session.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.TextInput query_; + /** + *
+   * Required. Current user input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return query_ != null; + } + /** + *
+   * Required. Current user input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput getQuery() { + return query_ == null ? com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance() : query_; + } + /** + *
+   * Required. Current user input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder getQueryOrBuilder() { + return query_ == null ? com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance() : query_; + } + + public static final int SERVING_CONFIG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfig_ = ""; + /** + *
+   * The resource name of the Serving Config to use. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * If this is not set, the default serving config will be used.
+   * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + @java.lang.Override + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + 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(); + servingConfig_ = s; + return s; + } + } + /** + *
+   * The resource name of the Serving Config to use. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * If this is not set, the default serving config will be used.
+   * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSATION_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + /** + *
+   * The conversation to be used by auto session only. The name field will be
+   * ignored as we automatically assign new name for the conversation in auto
+   * session.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + * @return Whether the conversation field is set. + */ + @java.lang.Override + public boolean hasConversation() { + return conversation_ != null; + } + /** + *
+   * The conversation to be used by auto session only. The name field will be
+   * ignored as we automatically assign new name for the conversation in auto
+   * session.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + * @return The conversation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + /** + *
+   * The conversation to be used by auto session only. The name field will be
+   * ignored as we automatically assign new name for the conversation in auto
+   * session.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + + public static final int SAFE_SEARCH_FIELD_NUMBER = 6; + private boolean safeSearch_ = false; + /** + *
+   * Whether to turn on safe search.
+   * 
+ * + * bool safe_search = 6; + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + + public static final int USER_LABELS_FIELD_NUMBER = 7; + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetUserLabels().getMap().containsKey(key); + } + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SUMMARY_SPEC_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; + /** + *
+   * A specification for configuring the summary returned in the response.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + * @return Whether the summarySpec field is set. + */ + @java.lang.Override + public boolean hasSummarySpec() { + return summarySpec_ != null; + } + /** + *
+   * A specification for configuring the summary returned in the response.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + * @return The summarySpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } + /** + *
+   * A specification for configuring the summary returned in the response.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (query_ != null) { + output.writeMessage(2, getQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, servingConfig_); + } + if (conversation_ != null) { + output.writeMessage(5, getConversation()); + } + if (safeSearch_ != false) { + output.writeBool(6, safeSearch_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 7); + if (summarySpec_ != null) { + output.writeMessage(8, getSummarySpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (query_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuery()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, servingConfig_); + } + if (conversation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getConversation()); + } + if (safeSearch_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, safeSearch_); + } + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, userLabels__); + } + if (summarySpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSummarySpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest other = (com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery() + .equals(other.getQuery())) return false; + } + if (!getServingConfig() + .equals(other.getServingConfig())) return false; + if (hasConversation() != other.hasConversation()) return false; + if (hasConversation()) { + if (!getConversation() + .equals(other.getConversation())) return false; + } + if (getSafeSearch() + != other.getSafeSearch()) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; + if (hasSummarySpec() != other.hasSummarySpec()) return false; + if (hasSummarySpec()) { + if (!getSummarySpec() + .equals(other.getSummarySpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (37 * hash) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + if (hasConversation()) { + hash = (37 * hash) + CONVERSATION_FIELD_NUMBER; + hash = (53 * hash) + getConversation().hashCode(); + } + hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSafeSearch()); + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } + if (hasSummarySpec()) { + hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSummarySpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest 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.discoveryengine.v1alpha.ConverseConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest 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.discoveryengine.v1alpha.ConverseConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest 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.discoveryengine.v1alpha.ConverseConversationRequest 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
+   * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConverseConversationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + servingConfig_ = ""; + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + safeSearch_ = false; + internalGetMutableUserLabels().clear(); + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest build() { + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest result = new com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = queryBuilder_ == null + ? query_ + : queryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.servingConfig_ = servingConfig_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.safeSearch_ = safeSearch_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.summarySpec_ = summarySpecBuilder_ == null + ? summarySpec_ + : summarySpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasConversation()) { + mergeConversation(other.getConversation()); + } + if (other.getSafeSearch() != false) { + setSafeSearch(other.getSafeSearch()); + } + internalGetMutableUserLabels().mergeFrom( + other.internalGetUserLabels()); + bitField0_ |= 0x00000020; + if (other.hasSummarySpec()) { + mergeSummarySpec(other.getSummarySpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + servingConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: { + safeSearch_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + com.google.protobuf.MapEntry + userLabels__ = input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableUserLabels().getMutableMap().put( + userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getSummarySpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * Use
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * to activate auto session mode, which automatically creates a new
+     * conversation inside a ConverseConversation session.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * Use
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * to activate auto session mode, which automatically creates a new
+     * conversation inside a ConverseConversation session.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * Use
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * to activate auto session mode, which automatically creates a new
+     * conversation inside a ConverseConversation session.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * Use
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * to activate auto session mode, which automatically creates a new
+     * conversation inside a ConverseConversation session.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+     * Use
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+     * to activate auto session mode, which automatically creates a new
+     * conversation inside a ConverseConversation session.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.TextInput query_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TextInput, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder, com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder> queryBuilder_; + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + public com.google.cloud.discoveryengine.v1alpha.TextInput getQuery() { + if (queryBuilder_ == null) { + return query_ == null ? com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance() : query_; + } else { + return queryBuilder_.getMessage(); + } + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setQuery(com.google.cloud.discoveryengine.v1alpha.TextInput value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + } else { + queryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setQuery( + com.google.cloud.discoveryengine.v1alpha.TextInput.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeQuery(com.google.cloud.discoveryengine.v1alpha.TextInput value) { + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + query_ != null && + query_ != com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance()) { + getQueryBuilder().mergeFrom(value); + } else { + query_ = value; + } + } else { + queryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearQuery() { + bitField0_ = (bitField0_ & ~0x00000002); + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.TextInput.Builder getQueryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQueryFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null ? + com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance() : query_; + } + } + /** + *
+     * Required. Current user input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TextInput, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder, com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder> + getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TextInput, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder, com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); + query_ = null; + } + return queryBuilder_; + } + + private java.lang.Object servingConfig_ = ""; + /** + *
+     * The resource name of the Serving Config to use. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * If this is not set, the default serving config will be used.
+     * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the Serving Config to use. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * If this is not set, the default serving config will be used.
+     * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + public com.google.protobuf.ByteString + getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the Serving Config to use. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * If this is not set, the default serving config will be used.
+     * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @param value The servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + servingConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The resource name of the Serving Config to use. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * If this is not set, the default serving config will be used.
+     * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The resource name of the Serving Config to use. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+     * If this is not set, the default serving config will be used.
+     * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @param value The bytes for servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + servingConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> conversationBuilder_; + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + * @return Whether the conversation field is set. + */ + public boolean hasConversation() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + * @return The conversation. + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + if (conversationBuilder_ == null) { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } else { + return conversationBuilder_.getMessage(); + } + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + public Builder setConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversation_ = value; + } else { + conversationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + public Builder setConversation( + com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationBuilder_ == null) { + conversation_ = builderForValue.build(); + } else { + conversationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + public Builder mergeConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()) { + getConversationBuilder().mergeFrom(value); + } else { + conversation_ = value; + } + } else { + conversationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + public Builder clearConversation() { + bitField0_ = (bitField0_ & ~0x00000008); + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder getConversationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConversationFieldBuilder().getBuilder(); + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + if (conversationBuilder_ != null) { + return conversationBuilder_.getMessageOrBuilder(); + } else { + return conversation_ == null ? + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + } + /** + *
+     * The conversation to be used by auto session only. The name field will be
+     * ignored as we automatically assign new name for the conversation in auto
+     * session.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> + getConversationFieldBuilder() { + if (conversationBuilder_ == null) { + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); + conversation_ = null; + } + return conversationBuilder_; + } + + private boolean safeSearch_ ; + /** + *
+     * Whether to turn on safe search.
+     * 
+ * + * bool safe_search = 6; + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + /** + *
+     * Whether to turn on safe search.
+     * 
+ * + * bool safe_search = 6; + * @param value The safeSearch to set. + * @return This builder for chaining. + */ + public Builder setSafeSearch(boolean value) { + + safeSearch_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Whether to turn on safe search.
+     * 
+ * + * bool safe_search = 6; + * @return This builder for chaining. + */ + public Builder clearSafeSearch() { + bitField0_ = (bitField0_ & ~0x00000010); + safeSearch_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return userLabels_; + } + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetUserLabels().getMap().containsKey(key); + } + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableUserLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + public Builder removeUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableUserLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUserLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableUserLabels().getMutableMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + public Builder putUserLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 7; + */ + public Builder putAllUserLabels( + java.util.Map values) { + internalGetMutableUserLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> summarySpecBuilder_; + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + * @return Whether the summarySpec field is set. + */ + public boolean hasSummarySpec() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + * @return The summarySpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + if (summarySpecBuilder_ == null) { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } else { + return summarySpecBuilder_.getMessage(); + } + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + public Builder setSummarySpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec value) { + if (summarySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summarySpec_ = value; + } else { + summarySpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + public Builder setSummarySpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue) { + if (summarySpecBuilder_ == null) { + summarySpec_ = builderForValue.build(); + } else { + summarySpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + public Builder mergeSummarySpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec value) { + if (summarySpecBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + summarySpec_ != null && + summarySpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) { + getSummarySpecBuilder().mergeFrom(value); + } else { + summarySpec_ = value; + } + } else { + summarySpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + public Builder clearSummarySpec() { + bitField0_ = (bitField0_ & ~0x00000040); + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getSummarySpecFieldBuilder().getBuilder(); + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + if (summarySpecBuilder_ != null) { + return summarySpecBuilder_.getMessageOrBuilder(); + } else { + return summarySpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } + } + /** + *
+     * A specification for configuring the summary returned in the response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> + getSummarySpecFieldBuilder() { + if (summarySpecBuilder_ == null) { + summarySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder>( + getSummarySpec(), + getParentForChildren(), + isClean()); + summarySpec_ = null; + } + return summarySpecBuilder_; + } + @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.discoveryengine.v1alpha.ConverseConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConverseConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java new file mode 100644 index 000000000000..858c959bb825 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java @@ -0,0 +1,294 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ConverseConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ConverseConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * Use
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * to activate auto session mode, which automatically creates a new
+   * conversation inside a ConverseConversation session.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
+   * Use
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
+   * to activate auto session mode, which automatically creates a new
+   * conversation inside a ConverseConversation session.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. Current user input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the query field is set. + */ + boolean hasQuery(); + /** + *
+   * Required. Current user input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The query. + */ + com.google.cloud.discoveryengine.v1alpha.TextInput getQuery(); + /** + *
+   * Required. Current user input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder getQueryOrBuilder(); + + /** + *
+   * The resource name of the Serving Config to use. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * If this is not set, the default serving config will be used.
+   * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + java.lang.String getServingConfig(); + /** + *
+   * The resource name of the Serving Config to use. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
+   * If this is not set, the default serving config will be used.
+   * 
+ * + * string serving_config = 3 [(.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + com.google.protobuf.ByteString + getServingConfigBytes(); + + /** + *
+   * The conversation to be used by auto session only. The name field will be
+   * ignored as we automatically assign new name for the conversation in auto
+   * session.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + *
+   * The conversation to be used by auto session only. The name field will be
+   * ignored as we automatically assign new name for the conversation in auto
+   * session.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + * @return The conversation. + */ + com.google.cloud.discoveryengine.v1alpha.Conversation getConversation(); + /** + *
+   * The conversation to be used by auto session only. The name field will be
+   * ignored as we automatically assign new name for the conversation in auto
+   * session.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 5; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder(); + + /** + *
+   * Whether to turn on safe search.
+   * 
+ * + * bool safe_search = 6; + * @return The safeSearch. + */ + boolean getSafeSearch(); + + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + int getUserLabelsCount(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + boolean containsUserLabels( + java.lang.String key); + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUserLabels(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + java.util.Map + getUserLabelsMap(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 7; + */ + java.lang.String getUserLabelsOrThrow( + java.lang.String key); + + /** + *
+   * A specification for configuring the summary returned in the response.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + * @return Whether the summarySpec field is set. + */ + boolean hasSummarySpec(); + /** + *
+   * A specification for configuring the summary returned in the response.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + * @return The summarySpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec(); + /** + *
+   * A specification for configuring the summary returned in the response.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponse.java new file mode 100644 index 000000000000..ad6b461d0a1a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponse.java @@ -0,0 +1,1562 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConverseConversationResponse} + */ +public final class ConverseConversationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ConverseConversationResponse) + ConverseConversationResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConverseConversationResponse.newBuilder() to construct. + private ConverseConversationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConverseConversationResponse() { + relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + searchResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConverseConversationResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.class, com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.Builder.class); + } + + public static final int REPLY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.Reply reply_; + /** + *
+   * Answer to the current query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + * @return Whether the reply field is set. + */ + @java.lang.Override + public boolean hasReply() { + return reply_ != null; + } + /** + *
+   * Answer to the current query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + * @return The reply. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply getReply() { + return reply_ == null ? com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance() : reply_; + } + /** + *
+   * Answer to the current query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder getReplyOrBuilder() { + return reply_ == null ? com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance() : reply_; + } + + public static final int CONVERSATION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + /** + *
+   * Updated conversation including the answer.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + * @return Whether the conversation field is set. + */ + @java.lang.Override + public boolean hasConversation() { + return conversation_ != null; + } + /** + *
+   * Updated conversation including the answer.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + * @return The conversation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + /** + *
+   * Updated conversation including the answer.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + + public static final int RELATED_QUESTIONS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @return A list containing the relatedQuestions. + */ + public com.google.protobuf.ProtocolStringList + getRelatedQuestionsList() { + return relatedQuestions_; + } + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @return The count of relatedQuestions. + */ + public int getRelatedQuestionsCount() { + return relatedQuestions_.size(); + } + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @param index The index of the element to return. + * @return The relatedQuestions at the given index. + */ + public java.lang.String getRelatedQuestions(int index) { + return relatedQuestions_.get(index); + } + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @param index The index of the value to return. + * @return The bytes of the relatedQuestions at the given index. + */ + public com.google.protobuf.ByteString + getRelatedQuestionsBytes(int index) { + return relatedQuestions_.getByteString(index); + } + + public static final int SEARCH_RESULTS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List searchResults_; + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + @java.lang.Override + public java.util.List getSearchResultsList() { + return searchResults_; + } + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + @java.lang.Override + public java.util.List + getSearchResultsOrBuilderList() { + return searchResults_; + } + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + @java.lang.Override + public int getSearchResultsCount() { + return searchResults_.size(); + } + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getSearchResults(int index) { + return searchResults_.get(index); + } + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index) { + return searchResults_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reply_ != null) { + output.writeMessage(1, getReply()); + } + if (conversation_ != null) { + output.writeMessage(2, getConversation()); + } + for (int i = 0; i < searchResults_.size(); i++) { + output.writeMessage(3, searchResults_.get(i)); + } + for (int i = 0; i < relatedQuestions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relatedQuestions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reply_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReply()); + } + if (conversation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); + } + for (int i = 0; i < searchResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, searchResults_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < relatedQuestions_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedQuestions_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedQuestionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse other = (com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse) obj; + + if (hasReply() != other.hasReply()) return false; + if (hasReply()) { + if (!getReply() + .equals(other.getReply())) return false; + } + if (hasConversation() != other.hasConversation()) return false; + if (hasConversation()) { + if (!getConversation() + .equals(other.getConversation())) return false; + } + if (!getRelatedQuestionsList() + .equals(other.getRelatedQuestionsList())) return false; + if (!getSearchResultsList() + .equals(other.getSearchResultsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReply()) { + hash = (37 * hash) + REPLY_FIELD_NUMBER; + hash = (53 * hash) + getReply().hashCode(); + } + if (hasConversation()) { + hash = (37 * hash) + CONVERSATION_FIELD_NUMBER; + hash = (53 * hash) + getConversation().hashCode(); + } + if (getRelatedQuestionsCount() > 0) { + hash = (37 * hash) + RELATED_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedQuestionsList().hashCode(); + } + if (getSearchResultsCount() > 0) { + hash = (37 * hash) + SEARCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse 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.discoveryengine.v1alpha.ConverseConversationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse 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.discoveryengine.v1alpha.ConverseConversationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse 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.discoveryengine.v1alpha.ConverseConversationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ConverseConversationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ConverseConversationResponse) + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.class, com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reply_ = null; + if (replyBuilder_ != null) { + replyBuilder_.dispose(); + replyBuilder_ = null; + } + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (searchResultsBuilder_ == null) { + searchResults_ = java.util.Collections.emptyList(); + } else { + searchResults_ = null; + searchResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse build() { + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse result = new com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse result) { + if (searchResultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + searchResults_ = java.util.Collections.unmodifiableList(searchResults_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.searchResults_ = searchResults_; + } else { + result.searchResults_ = searchResultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reply_ = replyBuilder_ == null + ? reply_ + : replyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + relatedQuestions_.makeImmutable(); + result.relatedQuestions_ = relatedQuestions_; + } + } + + @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.discoveryengine.v1alpha.ConverseConversationResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse.getDefaultInstance()) return this; + if (other.hasReply()) { + mergeReply(other.getReply()); + } + if (other.hasConversation()) { + mergeConversation(other.getConversation()); + } + if (!other.relatedQuestions_.isEmpty()) { + if (relatedQuestions_.isEmpty()) { + relatedQuestions_ = other.relatedQuestions_; + bitField0_ |= 0x00000004; + } else { + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.addAll(other.relatedQuestions_); + } + onChanged(); + } + if (searchResultsBuilder_ == null) { + if (!other.searchResults_.isEmpty()) { + if (searchResults_.isEmpty()) { + searchResults_ = other.searchResults_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSearchResultsIsMutable(); + searchResults_.addAll(other.searchResults_); + } + onChanged(); + } + } else { + if (!other.searchResults_.isEmpty()) { + if (searchResultsBuilder_.isEmpty()) { + searchResultsBuilder_.dispose(); + searchResultsBuilder_ = null; + searchResults_ = other.searchResults_; + bitField0_ = (bitField0_ & ~0x00000008); + searchResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSearchResultsFieldBuilder() : null; + } else { + searchResultsBuilder_.addAllMessages(other.searchResults_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getReplyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.parser(), + extensionRegistry); + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(m); + } else { + searchResultsBuilder_.addMessage(m); + } + break; + } // case 26 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.add(s); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.Reply reply_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply, com.google.cloud.discoveryengine.v1alpha.Reply.Builder, com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder> replyBuilder_; + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + * @return Whether the reply field is set. + */ + public boolean hasReply() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + * @return The reply. + */ + public com.google.cloud.discoveryengine.v1alpha.Reply getReply() { + if (replyBuilder_ == null) { + return reply_ == null ? com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance() : reply_; + } else { + return replyBuilder_.getMessage(); + } + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + public Builder setReply(com.google.cloud.discoveryengine.v1alpha.Reply value) { + if (replyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reply_ = value; + } else { + replyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + public Builder setReply( + com.google.cloud.discoveryengine.v1alpha.Reply.Builder builderForValue) { + if (replyBuilder_ == null) { + reply_ = builderForValue.build(); + } else { + replyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + public Builder mergeReply(com.google.cloud.discoveryengine.v1alpha.Reply value) { + if (replyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + reply_ != null && + reply_ != com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance()) { + getReplyBuilder().mergeFrom(value); + } else { + reply_ = value; + } + } else { + replyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + public Builder clearReply() { + bitField0_ = (bitField0_ & ~0x00000001); + reply_ = null; + if (replyBuilder_ != null) { + replyBuilder_.dispose(); + replyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Reply.Builder getReplyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReplyFieldBuilder().getBuilder(); + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder getReplyOrBuilder() { + if (replyBuilder_ != null) { + return replyBuilder_.getMessageOrBuilder(); + } else { + return reply_ == null ? + com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance() : reply_; + } + } + /** + *
+     * Answer to the current query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply, com.google.cloud.discoveryengine.v1alpha.Reply.Builder, com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder> + getReplyFieldBuilder() { + if (replyBuilder_ == null) { + replyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply, com.google.cloud.discoveryengine.v1alpha.Reply.Builder, com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder>( + getReply(), + getParentForChildren(), + isClean()); + reply_ = null; + } + return replyBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> conversationBuilder_; + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + * @return Whether the conversation field is set. + */ + public boolean hasConversation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + * @return The conversation. + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + if (conversationBuilder_ == null) { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } else { + return conversationBuilder_.getMessage(); + } + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + public Builder setConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversation_ = value; + } else { + conversationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + public Builder setConversation( + com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationBuilder_ == null) { + conversation_ = builderForValue.build(); + } else { + conversationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + public Builder mergeConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()) { + getConversationBuilder().mergeFrom(value); + } else { + conversation_ = value; + } + } else { + conversationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + public Builder clearConversation() { + bitField0_ = (bitField0_ & ~0x00000002); + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder getConversationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConversationFieldBuilder().getBuilder(); + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + if (conversationBuilder_ != null) { + return conversationBuilder_.getMessageOrBuilder(); + } else { + return conversation_ == null ? + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + } + /** + *
+     * Updated conversation including the answer.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> + getConversationFieldBuilder() { + if (conversationBuilder_ == null) { + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); + conversation_ = null; + } + return conversationBuilder_; + } + + private com.google.protobuf.LazyStringArrayList relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRelatedQuestionsIsMutable() { + if (!relatedQuestions_.isModifiable()) { + relatedQuestions_ = new com.google.protobuf.LazyStringArrayList(relatedQuestions_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @return A list containing the relatedQuestions. + */ + public com.google.protobuf.ProtocolStringList + getRelatedQuestionsList() { + relatedQuestions_.makeImmutable(); + return relatedQuestions_; + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @return The count of relatedQuestions. + */ + public int getRelatedQuestionsCount() { + return relatedQuestions_.size(); + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @param index The index of the element to return. + * @return The relatedQuestions at the given index. + */ + public java.lang.String getRelatedQuestions(int index) { + return relatedQuestions_.get(index); + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @param index The index of the value to return. + * @return The bytes of the relatedQuestions at the given index. + */ + public com.google.protobuf.ByteString + getRelatedQuestionsBytes(int index) { + return relatedQuestions_.getByteString(index); + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @param index The index to set the value at. + * @param value The relatedQuestions to set. + * @return This builder for chaining. + */ + public Builder setRelatedQuestions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @param value The relatedQuestions to add. + * @return This builder for chaining. + */ + public Builder addRelatedQuestions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @param values The relatedQuestions to add. + * @return This builder for chaining. + */ + public Builder addAllRelatedQuestions( + java.lang.Iterable values) { + ensureRelatedQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relatedQuestions_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @return This builder for chaining. + */ + public Builder clearRelatedQuestions() { + relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * Suggested related questions.
+     * 
+ * + * repeated string related_questions = 6; + * @param value The bytes of the relatedQuestions to add. + * @return This builder for chaining. + */ + public Builder addRelatedQuestionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List searchResults_ = + java.util.Collections.emptyList(); + private void ensureSearchResultsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + searchResults_ = new java.util.ArrayList(searchResults_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder> searchResultsBuilder_; + + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public java.util.List getSearchResultsList() { + if (searchResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchResults_); + } else { + return searchResultsBuilder_.getMessageList(); + } + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public int getSearchResultsCount() { + if (searchResultsBuilder_ == null) { + return searchResults_.size(); + } else { + return searchResultsBuilder_.getCount(); + } + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getSearchResults(int index) { + if (searchResultsBuilder_ == null) { + return searchResults_.get(index); + } else { + return searchResultsBuilder_.getMessage(index); + } + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder setSearchResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchResultsIsMutable(); + searchResults_.set(index, value); + onChanged(); + } else { + searchResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder setSearchResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.set(index, builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder addSearchResults(com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchResultsIsMutable(); + searchResults_.add(value); + onChanged(); + } else { + searchResultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder addSearchResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchResultsIsMutable(); + searchResults_.add(index, value); + onChanged(); + } else { + searchResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder addSearchResults( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder addSearchResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(index, builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder addAllSearchResults( + java.lang.Iterable values) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, searchResults_); + onChanged(); + } else { + searchResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder clearSearchResults() { + if (searchResultsBuilder_ == null) { + searchResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + searchResultsBuilder_.clear(); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public Builder removeSearchResults(int index) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.remove(index); + onChanged(); + } else { + searchResultsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder getSearchResultsBuilder( + int index) { + return getSearchResultsFieldBuilder().getBuilder(index); + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index) { + if (searchResultsBuilder_ == null) { + return searchResults_.get(index); } else { + return searchResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public java.util.List + getSearchResultsOrBuilderList() { + if (searchResultsBuilder_ != null) { + return searchResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchResults_); + } + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder addSearchResultsBuilder() { + return getSearchResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.getDefaultInstance()); + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder addSearchResultsBuilder( + int index) { + return getSearchResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.getDefaultInstance()); + } + /** + *
+     * Search Results.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + public java.util.List + getSearchResultsBuilderList() { + return getSearchResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder> + getSearchResultsFieldBuilder() { + if (searchResultsBuilder_ == null) { + searchResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder>( + searchResults_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + searchResults_ = null; + } + return searchResultsBuilder_; + } + @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.discoveryengine.v1alpha.ConverseConversationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ConverseConversationResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConverseConversationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponseOrBuilder.java new file mode 100644 index 000000000000..7d025cea2f24 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationResponseOrBuilder.java @@ -0,0 +1,148 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ConverseConversationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ConverseConversationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Answer to the current query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + * @return Whether the reply field is set. + */ + boolean hasReply(); + /** + *
+   * Answer to the current query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + * @return The reply. + */ + com.google.cloud.discoveryengine.v1alpha.Reply getReply(); + /** + *
+   * Answer to the current query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Reply reply = 1; + */ + com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder getReplyOrBuilder(); + + /** + *
+   * Updated conversation including the answer.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + *
+   * Updated conversation including the answer.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + * @return The conversation. + */ + com.google.cloud.discoveryengine.v1alpha.Conversation getConversation(); + /** + *
+   * Updated conversation including the answer.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder(); + + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @return A list containing the relatedQuestions. + */ + java.util.List + getRelatedQuestionsList(); + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @return The count of relatedQuestions. + */ + int getRelatedQuestionsCount(); + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @param index The index of the element to return. + * @return The relatedQuestions at the given index. + */ + java.lang.String getRelatedQuestions(int index); + /** + *
+   * Suggested related questions.
+   * 
+ * + * repeated string related_questions = 6; + * @param index The index of the value to return. + * @return The bytes of the relatedQuestions at the given index. + */ + com.google.protobuf.ByteString + getRelatedQuestionsBytes(int index); + + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + java.util.List + getSearchResultsList(); + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getSearchResults(int index); + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + int getSearchResultsCount(); + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + java.util.List + getSearchResultsOrBuilderList(); + /** + *
+   * Search Results.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequest.java new file mode 100644 index 000000000000..5db4cb8a3be2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequest.java @@ -0,0 +1,813 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request for CreateConversation method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateConversationRequest} + */ +public final class CreateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateConversationRequest) + CreateConversationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateConversationRequest.newBuilder() to construct. + private CreateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateConversationRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateConversationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * 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. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * 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 CONVERSATION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + @java.lang.Override + public boolean hasConversation() { + return conversation_ != null; + } + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + + 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 (conversation_ != null) { + output.writeMessage(2, getConversation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (conversation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest other = (com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasConversation() != other.hasConversation()) return false; + if (hasConversation()) { + if (!getConversation() + .equals(other.getConversation())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasConversation()) { + hash = (37 * hash) + CONVERSATION_FIELD_NUMBER; + hash = (53 * hash) + getConversation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest 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.discoveryengine.v1alpha.CreateConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest 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.discoveryengine.v1alpha.CreateConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest 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.discoveryengine.v1alpha.CreateConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for CreateConversation method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateConversationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateConversationRequest) + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest build() { + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest result = new com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasConversation()) { + mergeConversation(other.getConversation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Full resource name of parent data store. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * 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. Full resource name of parent data store. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * 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. Full resource name of parent data store. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of parent data store. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of parent data store. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> conversationBuilder_; + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + public boolean hasConversation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + if (conversationBuilder_ == null) { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } else { + return conversationBuilder_.getMessage(); + } + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversation_ = value; + } else { + conversationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setConversation( + com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationBuilder_ == null) { + conversation_ = builderForValue.build(); + } else { + conversationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()) { + getConversationBuilder().mergeFrom(value); + } else { + conversation_ = value; + } + } else { + conversationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearConversation() { + bitField0_ = (bitField0_ & ~0x00000002); + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder getConversationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConversationFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + if (conversationBuilder_ != null) { + return conversationBuilder_.getMessageOrBuilder(); + } else { + return conversation_ == null ? + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + } + /** + *
+     * Required. The conversation to create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> + getConversationFieldBuilder() { + if (conversationBuilder_ == null) { + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); + conversation_ = null; + } + return conversationBuilder_; + } + @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.discoveryengine.v1alpha.CreateConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateConversationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequestOrBuilder.java new file mode 100644 index 000000000000..33730686ab2b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateConversationRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + com.google.cloud.discoveryengine.v1alpha.Conversation getConversation(); + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequest.java new file mode 100644 index 000000000000..87f228fbb83c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequest.java @@ -0,0 +1,1105 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [DocumentService.CreateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateDocumentRequest} + */ +public final class CreateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) + CreateDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateDocumentRequest.newBuilder() to construct. + private CreateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDocumentRequest() { + parent_ = ""; + documentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateDocumentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * 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 name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * 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 DOCUMENT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Document document_; + /** + *
+   * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return document_ != null; + } + /** + *
+   * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + /** + *
+   * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + + public static final int DOCUMENT_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object documentId_ = ""; + /** + *
+   * Required. The ID to use for the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+   * become the final component of the
+   * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+   *
+   * If the caller does not have permission to create the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * This field must be unique among all
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+   * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+   * Otherwise, an `ALREADY_EXISTS` error is returned.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The documentId. + */ + @java.lang.Override + public java.lang.String getDocumentId() { + java.lang.Object ref = documentId_; + 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(); + documentId_ = s; + return s; + } + } + /** + *
+   * Required. The ID to use for the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+   * become the final component of the
+   * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+   *
+   * If the caller does not have permission to create the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * This field must be unique among all
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+   * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+   * Otherwise, an `ALREADY_EXISTS` error is returned.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for documentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDocumentIdBytes() { + java.lang.Object ref = documentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (document_ != null) { + output.writeMessage(2, getDocument()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, documentId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (document_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest other = (com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (!getDocumentId() + .equals(other.getDocumentId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDocumentId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest 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.discoveryengine.v1alpha.CreateDocumentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest 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.discoveryengine.v1alpha.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest 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.discoveryengine.v1alpha.CreateDocumentRequest 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
+   * [DocumentService.CreateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + documentId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest build() { + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest result = new com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentId_ = documentId_; + } + } + + @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.discoveryengine.v1alpha.CreateDocumentRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + if (!other.getDocumentId().isEmpty()) { + documentId_ = other.documentId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + documentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * 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 name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * 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 name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Document document_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> documentBuilder_; + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } else { + return documentBuilder_.getMessage(); + } + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000002); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocumentFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null ? + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + } + /** + *
+     * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> + getDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); + document_ = null; + } + return documentBuilder_; + } + + private java.lang.Object documentId_ = ""; + /** + *
+     * Required. The ID to use for the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+     * become the final component of the
+     * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+     *
+     * If the caller does not have permission to create the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * This field must be unique among all
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+     * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+     * Otherwise, an `ALREADY_EXISTS` error is returned.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The documentId. + */ + public java.lang.String getDocumentId() { + java.lang.Object ref = documentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The ID to use for the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+     * become the final component of the
+     * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+     *
+     * If the caller does not have permission to create the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * This field must be unique among all
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+     * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+     * Otherwise, an `ALREADY_EXISTS` error is returned.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for documentId. + */ + public com.google.protobuf.ByteString + getDocumentIdBytes() { + java.lang.Object ref = documentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The ID to use for the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+     * become the final component of the
+     * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+     *
+     * If the caller does not have permission to create the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * This field must be unique among all
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+     * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+     * Otherwise, an `ALREADY_EXISTS` error is returned.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The documentId to set. + * @return This builder for chaining. + */ + public Builder setDocumentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + documentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+     * become the final component of the
+     * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+     *
+     * If the caller does not have permission to create the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * This field must be unique among all
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+     * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+     * Otherwise, an `ALREADY_EXISTS` error is returned.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearDocumentId() { + documentId_ = getDefaultInstance().getDocumentId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+     * become the final component of the
+     * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+     *
+     * If the caller does not have permission to create the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * This field must be unique among all
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+     * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+     * Otherwise, an `ALREADY_EXISTS` error is returned.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for documentId to set. + * @return This builder for chaining. + */ + public Builder setDocumentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + documentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequestOrBuilder.java new file mode 100644 index 000000000000..0c5fc7d9df20 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateDocumentRequestOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + boolean hasDocument(); + /** + *
+   * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + com.google.cloud.discoveryengine.v1alpha.Document getDocument(); + /** + *
+   * Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder(); + + /** + *
+   * Required. The ID to use for the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+   * become the final component of the
+   * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+   *
+   * If the caller does not have permission to create the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * This field must be unique among all
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+   * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+   * Otherwise, an `ALREADY_EXISTS` error is returned.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The documentId. + */ + java.lang.String getDocumentId(); + /** + *
+   * Required. The ID to use for the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], which will
+   * become the final component of the
+   * [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
+   *
+   * If the caller does not have permission to create the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * This field must be unique among all
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same
+   * [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent].
+   * Otherwise, an `ALREADY_EXISTS` error is returned.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for documentId. + */ + com.google.protobuf.ByteString + getDocumentIdBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadata.java new file mode 100644 index 000000000000..1bd2f13d995e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadata.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata for Create Schema LRO.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata} + */ +public final class CreateSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) + CreateSchemaMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSchemaMetadata.newBuilder() to construct. + private CreateSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSchemaMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSchemaMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.class, com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata other = (com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata 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.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata 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.discoveryengine.v1alpha.CreateSchemaMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata 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.discoveryengine.v1alpha.CreateSchemaMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata for Create Schema LRO.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) + com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.class, com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata build() { + com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata result = new com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadataOrBuilder.java new file mode 100644 index 000000000000..7082e22a4a16 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaMetadataOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateSchemaMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequest.java new file mode 100644 index 000000000000..a5831d75166e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequest.java @@ -0,0 +1,1042 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SchemaService.CreateSchema][google.cloud.discoveryengine.v1alpha.SchemaService.CreateSchema]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSchemaRequest} + */ +public final class CreateSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) + CreateSchemaRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSchemaRequest.newBuilder() to construct. + private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSchemaRequest() { + parent_ = ""; + schemaId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 SCHEMA_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Schema schema_; + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schema_ != null; + } + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema getSchema() { + return schema_ == null ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemaOrBuilder() { + return schema_ == null ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } + + public static final int SCHEMA_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object schemaId_ = ""; + /** + *
+   * Required. The ID to use for the
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+   * the final component of the
+   * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+   *
+   * This field should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters.
+   * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The schemaId. + */ + @java.lang.Override + public java.lang.String getSchemaId() { + java.lang.Object ref = schemaId_; + 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(); + schemaId_ = s; + return s; + } + } + /** + *
+   * Required. The ID to use for the
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+   * the final component of the
+   * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+   *
+   * This field should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters.
+   * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for schemaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSchemaIdBytes() { + java.lang.Object ref = schemaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (schema_ != null) { + output.writeMessage(2, getSchema()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (schema_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest other = (com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema() + .equals(other.getSchema())) return false; + } + if (!getSchemaId() + .equals(other.getSchemaId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getSchemaId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest 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.discoveryengine.v1alpha.CreateSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest 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.discoveryengine.v1alpha.CreateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest 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.discoveryengine.v1alpha.CreateSchemaRequest 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
+   * [SchemaService.CreateSchema][google.cloud.discoveryengine.v1alpha.SchemaService.CreateSchema]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CreateSchemaRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + schemaId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest build() { + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest result = new com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schema_ = schemaBuilder_ == null + ? schema_ + : schemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schemaId_ = schemaId_; + } + } + + @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.discoveryengine.v1alpha.CreateSchemaRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + if (!other.getSchemaId().isEmpty()) { + schemaId_ = other.schemaId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + schemaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Schema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> schemaBuilder_; + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The schema. + */ + public com.google.cloud.discoveryengine.v1alpha.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema( + com.google.cloud.discoveryengine.v1alpha.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSchema(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + schema_ != null && + schema_ != com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema.Builder getSchemaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? + com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * create.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private java.lang.Object schemaId_ = ""; + /** + *
+     * Required. The ID to use for the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+     * the final component of the
+     * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+     *
+     * This field should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters.
+     * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The schemaId. + */ + public java.lang.String getSchemaId() { + java.lang.Object ref = schemaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The ID to use for the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+     * the final component of the
+     * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+     *
+     * This field should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters.
+     * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for schemaId. + */ + public com.google.protobuf.ByteString + getSchemaIdBytes() { + java.lang.Object ref = schemaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The ID to use for the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+     * the final component of the
+     * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+     *
+     * This field should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters.
+     * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The schemaId to set. + * @return This builder for chaining. + */ + public Builder setSchemaId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + schemaId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+     * the final component of the
+     * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+     *
+     * This field should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters.
+     * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearSchemaId() { + schemaId_ = getDefaultInstance().getSchemaId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+     * the final component of the
+     * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+     *
+     * This field should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters.
+     * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for schemaId to set. + * @return This builder for chaining. + */ + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + schemaId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) + private static final com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..7cf1bf493f7a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CreateSchemaRequestOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CreateSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CreateSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The schema. + */ + com.google.cloud.discoveryengine.v1alpha.Schema getSchema(); + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * create.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemaOrBuilder(); + + /** + *
+   * Required. The ID to use for the
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+   * the final component of the
+   * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+   *
+   * This field should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters.
+   * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The schemaId. + */ + java.lang.String getSchemaId(); + /** + *
+   * Required. The ID to use for the
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
+   * the final component of the
+   * [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
+   *
+   * This field should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters.
+   * 
+ * + * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for schemaId. + */ + com.google.protobuf.ByteString + getSchemaIdBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttribute.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttribute.java new file mode 100644 index 000000000000..f210add3a4f1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttribute.java @@ -0,0 +1,1068 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * A custom attribute that is not explicitly modeled in a resource, e.g.
+ * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent].
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CustomAttribute} + */ +public final class CustomAttribute extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CustomAttribute) + CustomAttributeOrBuilder { +private static final long serialVersionUID = 0L; + // Use CustomAttribute.newBuilder() to construct. + private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CustomAttribute() { + text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + numbers_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CustomAttribute(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CustomAttribute.class, com.google.cloud.discoveryengine.v1alpha.CustomAttribute.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @return A list containing the text. + */ + public com.google.protobuf.ProtocolStringList + getTextList() { + return text_; + } + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @return The count of text. + */ + public int getTextCount() { + return text_.size(); + } + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @param index The index of the element to return. + * @return The text at the given index. + */ + public java.lang.String getText(int index) { + return text_.get(index); + } + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @param index The index of the value to return. + * @return The bytes of the text at the given index. + */ + public com.google.protobuf.ByteString + getTextBytes(int index) { + return text_.getByteString(index); + } + + public static final int NUMBERS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.DoubleList numbers_; + /** + *
+   * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+   * when the key is "lengths_cm".
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated double numbers = 2; + * @return A list containing the numbers. + */ + @java.lang.Override + public java.util.List + getNumbersList() { + return numbers_; + } + /** + *
+   * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+   * when the key is "lengths_cm".
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated double numbers = 2; + * @return The count of numbers. + */ + public int getNumbersCount() { + return numbers_.size(); + } + /** + *
+   * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+   * when the key is "lengths_cm".
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated double numbers = 2; + * @param index The index of the element to return. + * @return The numbers at the given index. + */ + public double getNumbers(int index) { + return numbers_.getDouble(index); + } + private int numbersMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + for (int i = 0; i < text_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_.getRaw(i)); + } + if (getNumbersList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(numbersMemoizedSerializedSize); + } + for (int i = 0; i < numbers_.size(); i++) { + output.writeDoubleNoTag(numbers_.getDouble(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < text_.size(); i++) { + dataSize += computeStringSizeNoTag(text_.getRaw(i)); + } + size += dataSize; + size += 1 * getTextList().size(); + } + { + int dataSize = 0; + dataSize = 8 * getNumbersList().size(); + size += dataSize; + if (!getNumbersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + numbersMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.CustomAttribute)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CustomAttribute other = (com.google.cloud.discoveryengine.v1alpha.CustomAttribute) obj; + + if (!getTextList() + .equals(other.getTextList())) return false; + if (!getNumbersList() + .equals(other.getNumbersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTextCount() > 0) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getTextList().hashCode(); + } + if (getNumbersCount() > 0) { + hash = (37 * hash) + NUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getNumbersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute 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.discoveryengine.v1alpha.CustomAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute 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.discoveryengine.v1alpha.CustomAttribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute 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.discoveryengine.v1alpha.CustomAttribute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A custom attribute that is not explicitly modeled in a resource, e.g.
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent].
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CustomAttribute} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CustomAttribute) + com.google.cloud.discoveryengine.v1alpha.CustomAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CustomAttribute.class, com.google.cloud.discoveryengine.v1alpha.CustomAttribute.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CustomAttribute.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + numbers_ = emptyDoubleList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_CustomAttribute_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomAttribute getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CustomAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomAttribute build() { + com.google.cloud.discoveryengine.v1alpha.CustomAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomAttribute buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CustomAttribute result = new com.google.cloud.discoveryengine.v1alpha.CustomAttribute(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.CustomAttribute result) { + if (((bitField0_ & 0x00000002) != 0)) { + numbers_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.numbers_ = numbers_; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.CustomAttribute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + text_.makeImmutable(); + result.text_ = text_; + } + } + + @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.discoveryengine.v1alpha.CustomAttribute) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CustomAttribute)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CustomAttribute other) { + if (other == com.google.cloud.discoveryengine.v1alpha.CustomAttribute.getDefaultInstance()) return this; + if (!other.text_.isEmpty()) { + if (text_.isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + } else { + ensureTextIsMutable(); + text_.addAll(other.text_); + } + onChanged(); + } + if (!other.numbers_.isEmpty()) { + if (numbers_.isEmpty()) { + numbers_ = other.numbers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNumbersIsMutable(); + numbers_.addAll(other.numbers_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTextIsMutable(); + text_.add(s); + break; + } // case 10 + case 17: { + double v = input.readDouble(); + ensureNumbersIsMutable(); + numbers_.addDouble(v); + break; + } // case 17 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureNumbersIsMutable(); + while (input.getBytesUntilLimit() > 0) { + numbers_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTextIsMutable() { + if (!text_.isModifiable()) { + text_ = new com.google.protobuf.LazyStringArrayList(text_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @return A list containing the text. + */ + public com.google.protobuf.ProtocolStringList + getTextList() { + text_.makeImmutable(); + return text_; + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @return The count of text. + */ + public int getTextCount() { + return text_.size(); + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @param index The index of the element to return. + * @return The text at the given index. + */ + public java.lang.String getText(int index) { + return text_.get(index); + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @param index The index of the value to return. + * @return The bytes of the text at the given index. + */ + public com.google.protobuf.ByteString + getTextBytes(int index) { + return text_.getByteString(index); + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @param index The index to set the value at. + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTextIsMutable(); + text_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @param value The text to add. + * @return This builder for chaining. + */ + public Builder addText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTextIsMutable(); + text_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @param values The text to add. + * @return This builder for chaining. + */ + public Builder addAllText( + java.lang.Iterable values) { + ensureTextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, text_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * The textual values of this custom attribute. For example, `["yellow",
+     * "green"]` when the key is "color".
+     *
+     * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+     * returned.
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated string text = 1; + * @param value The bytes of the text to add. + * @return This builder for chaining. + */ + public Builder addTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTextIsMutable(); + text_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList numbers_ = emptyDoubleList(); + private void ensureNumbersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + numbers_ = mutableCopy(numbers_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @return A list containing the numbers. + */ + public java.util.List + getNumbersList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(numbers_) : numbers_; + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @return The count of numbers. + */ + public int getNumbersCount() { + return numbers_.size(); + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @param index The index of the element to return. + * @return The numbers at the given index. + */ + public double getNumbers(int index) { + return numbers_.getDouble(index); + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @param index The index to set the value at. + * @param value The numbers to set. + * @return This builder for chaining. + */ + public Builder setNumbers( + int index, double value) { + + ensureNumbersIsMutable(); + numbers_.setDouble(index, value); + onChanged(); + return this; + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @param value The numbers to add. + * @return This builder for chaining. + */ + public Builder addNumbers(double value) { + + ensureNumbersIsMutable(); + numbers_.addDouble(value); + onChanged(); + return this; + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @param values The numbers to add. + * @return This builder for chaining. + */ + public Builder addAllNumbers( + java.lang.Iterable values) { + ensureNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, numbers_); + onChanged(); + return this; + } + /** + *
+     * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+     * when the key is "lengths_cm".
+     *
+     * Exactly one of
+     * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+     * or
+     * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+     * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * repeated double numbers = 2; + * @return This builder for chaining. + */ + public Builder clearNumbers() { + numbers_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.CustomAttribute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CustomAttribute) + private static final com.google.cloud.discoveryengine.v1alpha.CustomAttribute DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CustomAttribute(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttributeOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttributeOrBuilder.java new file mode 100644 index 000000000000..818580c77c2c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomAttributeOrBuilder.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface CustomAttributeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CustomAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @return A list containing the text. + */ + java.util.List + getTextList(); + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @return The count of text. + */ + int getTextCount(); + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @param index The index of the element to return. + * @return The text at the given index. + */ + java.lang.String getText(int index); + /** + *
+   * The textual values of this custom attribute. For example, `["yellow",
+   * "green"]` when the key is "color".
+   *
+   * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
+   * returned.
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated string text = 1; + * @param index The index of the value to return. + * @return The bytes of the text at the given index. + */ + com.google.protobuf.ByteString + getTextBytes(int index); + + /** + *
+   * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+   * when the key is "lengths_cm".
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated double numbers = 2; + * @return A list containing the numbers. + */ + java.util.List getNumbersList(); + /** + *
+   * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+   * when the key is "lengths_cm".
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated double numbers = 2; + * @return The count of numbers. + */ + int getNumbersCount(); + /** + *
+   * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
+   * when the key is "lengths_cm".
+   *
+   * Exactly one of
+   * [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
+   * or
+   * [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
+   * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * repeated double numbers = 2; + * @param index The index of the element to return. + * @return The numbers at the given index. + */ + double getNumbers(int index); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java new file mode 100644 index 000000000000..370c86ee6f6f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java @@ -0,0 +1,371 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataStoreName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String collection; + + @Deprecated + protected DataStoreName() { + project = null; + location = null; + dataStore = null; + collection = null; + } + + private DataStoreName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE; + } + + private DataStoreName(ProjectLocationCollectionDataStoreBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreBuilder + newProjectLocationCollectionDataStoreBuilder() { + return new ProjectLocationCollectionDataStoreBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataStoreName of(String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static DataStoreName ofProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static DataStoreName ofProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build(); + } + + public static String format(String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static DataStoreName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_STORE.match(formattedString); + return ofProjectLocationDataStoreName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("data_store")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_COLLECTION_DATA_STORE.match(formattedString); + return ofProjectLocationCollectionDataStoreName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store")); + } + throw new ValidationException("DataStoreName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataStoreName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataStoreName that = ((DataStoreName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dataStores/{data_store}. */ + public static class Builder { + private String project; + private String location; + private String dataStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + private Builder(DataStoreName dataStoreName) { + Preconditions.checkArgument( + Objects.equals(dataStoreName.pathTemplate, PROJECT_LOCATION_DATA_STORE), + "toBuilder is only supported when DataStoreName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}"); + this.project = dataStoreName.project; + this.location = dataStoreName.location; + this.dataStore = dataStoreName.dataStore; + } + + public DataStoreName build() { + return new DataStoreName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + + protected ProjectLocationCollectionDataStoreBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public ProjectLocationCollectionDataStoreBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public DataStoreName build() { + return new DataStoreName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequest.java new file mode 100644 index 000000000000..51e3a8aea60d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequest.java @@ -0,0 +1,584 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request for DeleteConversation method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteConversationRequest} + */ +public final class DeleteConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) + DeleteConversationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteConversationRequest.newBuilder() to construct. + private DeleteConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteConversationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteConversationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest other = (com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest 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.discoveryengine.v1alpha.DeleteConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest 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.discoveryengine.v1alpha.DeleteConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest 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.discoveryengine.v1alpha.DeleteConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for DeleteConversation method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteConversationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest build() { + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest result = new com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the Conversation to delete. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the Conversation to delete. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the Conversation to delete. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Conversation to delete. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Conversation to delete. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequestOrBuilder.java new file mode 100644 index 000000000000..50931af28b22 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteConversationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DeleteConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DeleteConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequest.java new file mode 100644 index 000000000000..b8513198dacf --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequest.java @@ -0,0 +1,644 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1alpha.DocumentService.DeleteDocument]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest} + */ +public final class DeleteDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) + DeleteDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteDocumentRequest.newBuilder() to construct. + private DeleteDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteDocumentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteDocumentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to delete the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to delete the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest other = (com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest 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.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest 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.discoveryengine.v1alpha.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest 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.discoveryengine.v1alpha.DeleteDocumentRequest 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
+   * [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1alpha.DocumentService.DeleteDocument]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest build() { + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest result = new com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to delete the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to delete the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to delete the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to delete the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to delete the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) + private static final com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequestOrBuilder.java new file mode 100644 index 000000000000..8a072dcf0759 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteDocumentRequestOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DeleteDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to delete the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to delete the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadata.java new file mode 100644 index 000000000000..2424c49568f1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadata.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata for DeleteSchema LRO.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata} + */ +public final class DeleteSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) + DeleteSchemaMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSchemaMetadata.newBuilder() to construct. + private DeleteSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSchemaMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteSchemaMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.class, com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata other = (com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata 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.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata 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.discoveryengine.v1alpha.DeleteSchemaMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata 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.discoveryengine.v1alpha.DeleteSchemaMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata for DeleteSchema LRO.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.class, com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata build() { + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata result = new com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadataOrBuilder.java new file mode 100644 index 000000000000..9ef61755dbaf --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaMetadataOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DeleteSchemaMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequest.java new file mode 100644 index 000000000000..849a0589103b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequest.java @@ -0,0 +1,588 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1alpha.SchemaService.DeleteSchema]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest} + */ +public final class DeleteSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) + DeleteSchemaRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSchemaRequest.newBuilder() to construct. + private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest other = (com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest 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.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest 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.discoveryengine.v1alpha.DeleteSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest 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.discoveryengine.v1alpha.DeleteSchemaRequest 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
+   * [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1alpha.SchemaService.DeleteSchema]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest build() { + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest result = new com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) + private static final com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..dd3e4bc84e68 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DeleteSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java new file mode 100644 index 000000000000..3fe2a57e55e0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java @@ -0,0 +1,3428 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Document captures all raw metadata information of items to be recommended or
+ * searched.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document} + */ +public final class Document extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Document) + DocumentOrBuilder { +private static final long serialVersionUID = 0L; + // Use Document.newBuilder() to construct. + private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Document() { + name_ = ""; + id_ = ""; + schemaId_ = ""; + parentDocumentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Document(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.class, com.google.cloud.discoveryengine.v1alpha.Document.Builder.class); + } + + public interface ContentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Document.Content) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The content represented as a stream of bytes. The maximum length is
+     * 1,000,000 bytes (1 MB / ~0.95 MiB).
+     *
+     * Note: As with all `bytes` fields, this field is represented as pure
+     * binary in Protocol Buffers and base64-encoded string in JSON. For
+     * example, `abc123!?$*&()'-=@~` should be represented as
+     * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+     * https://developers.google.com/protocol-buffers/docs/proto3#json.
+     * 
+ * + * bytes raw_bytes = 2; + * @return Whether the rawBytes field is set. + */ + boolean hasRawBytes(); + /** + *
+     * The content represented as a stream of bytes. The maximum length is
+     * 1,000,000 bytes (1 MB / ~0.95 MiB).
+     *
+     * Note: As with all `bytes` fields, this field is represented as pure
+     * binary in Protocol Buffers and base64-encoded string in JSON. For
+     * example, `abc123!?$*&()'-=@~` should be represented as
+     * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+     * https://developers.google.com/protocol-buffers/docs/proto3#json.
+     * 
+ * + * bytes raw_bytes = 2; + * @return The rawBytes. + */ + com.google.protobuf.ByteString getRawBytes(); + + /** + *
+     * The URI of the content. Only Cloud Storage URIs (e.g.
+     * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+     * is 100 MB.
+     * 
+ * + * string uri = 3; + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + *
+     * The URI of the content. Only Cloud Storage URIs (e.g.
+     * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+     * is 100 MB.
+     * 
+ * + * string uri = 3; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+     * The URI of the content. Only Cloud Storage URIs (e.g.
+     * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+     * is 100 MB.
+     * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+     * The MIME type of the content. Supported types:
+     *
+     * * `application/pdf` (PDF, only native PDFs are supported for now)
+     * * `text/html` (HTML)
+     * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+     * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+     * * `text/plain` (TXT)
+     *
+     * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 1; + * @return The mimeType. + */ + java.lang.String getMimeType(); + /** + *
+     * The MIME type of the content. Supported types:
+     *
+     * * `application/pdf` (PDF, only native PDFs are supported for now)
+     * * `text/html` (HTML)
+     * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+     * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+     * * `text/plain` (TXT)
+     *
+     * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 1; + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString + getMimeTypeBytes(); + + com.google.cloud.discoveryengine.v1alpha.Document.Content.ContentCase getContentCase(); + } + /** + *
+   * Unstructured data linked to this document.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document.Content} + */ + public static final class Content extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Document.Content) + ContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Content.newBuilder() to construct. + private Content(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Content() { + mimeType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Content(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.Content.class, com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder.class); + } + + private int contentCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object content_; + public enum ContentCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RAW_BYTES(2), + URI(3), + CONTENT_NOT_SET(0); + private final int value; + private ContentCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 2: return RAW_BYTES; + case 3: return URI; + case 0: return CONTENT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public static final int RAW_BYTES_FIELD_NUMBER = 2; + /** + *
+     * The content represented as a stream of bytes. The maximum length is
+     * 1,000,000 bytes (1 MB / ~0.95 MiB).
+     *
+     * Note: As with all `bytes` fields, this field is represented as pure
+     * binary in Protocol Buffers and base64-encoded string in JSON. For
+     * example, `abc123!?$*&()'-=@~` should be represented as
+     * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+     * https://developers.google.com/protocol-buffers/docs/proto3#json.
+     * 
+ * + * bytes raw_bytes = 2; + * @return Whether the rawBytes field is set. + */ + @java.lang.Override + public boolean hasRawBytes() { + return contentCase_ == 2; + } + /** + *
+     * The content represented as a stream of bytes. The maximum length is
+     * 1,000,000 bytes (1 MB / ~0.95 MiB).
+     *
+     * Note: As with all `bytes` fields, this field is represented as pure
+     * binary in Protocol Buffers and base64-encoded string in JSON. For
+     * example, `abc123!?$*&()'-=@~` should be represented as
+     * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+     * https://developers.google.com/protocol-buffers/docs/proto3#json.
+     * 
+ * + * bytes raw_bytes = 2; + * @return The rawBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawBytes() { + if (contentCase_ == 2) { + return (com.google.protobuf.ByteString) content_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int URI_FIELD_NUMBER = 3; + /** + *
+     * The URI of the content. Only Cloud Storage URIs (e.g.
+     * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+     * is 100 MB.
+     * 
+ * + * string uri = 3; + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return contentCase_ == 3; + } + /** + *
+     * The URI of the content. Only Cloud Storage URIs (e.g.
+     * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+     * is 100 MB.
+     * 
+ * + * string uri = 3; + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 3) { + content_ = s; + } + return s; + } + } + /** + *
+     * The URI of the content. Only Cloud Storage URIs (e.g.
+     * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+     * is 100 MB.
+     * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 3) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + /** + *
+     * The MIME type of the content. Supported types:
+     *
+     * * `application/pdf` (PDF, only native PDFs are supported for now)
+     * * `text/html` (HTML)
+     * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+     * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+     * * `text/plain` (TXT)
+     *
+     * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 1; + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + 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(); + mimeType_ = s; + return s; + } + } + /** + *
+     * The MIME type of the content. Supported types:
+     *
+     * * `application/pdf` (PDF, only native PDFs are supported for now)
+     * * `text/html` (HTML)
+     * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+     * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+     * * `text/plain` (TXT)
+     *
+     * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 1; + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); + } + if (contentCase_ == 2) { + output.writeBytes( + 2, (com.google.protobuf.ByteString) content_); + } + if (contentCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); + } + if (contentCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) content_); + } + if (contentCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Document.Content)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Document.Content other = (com.google.cloud.discoveryengine.v1alpha.Document.Content) obj; + + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 2: + if (!getRawBytes() + .equals(other.getRawBytes())) return false; + break; + case 3: + if (!getUri() + .equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + switch (contentCase_) { + case 2: + hash = (37 * hash) + RAW_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getRawBytes().hashCode(); + break; + case 3: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content 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.discoveryengine.v1alpha.Document.Content parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content 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.discoveryengine.v1alpha.Document.Content parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Document.Content 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.discoveryengine.v1alpha.Document.Content 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; + } + /** + *
+     * Unstructured data linked to this document.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document.Content} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Document.Content) + com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.Content.class, com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Document.Content.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + contentCase_ = 0; + content_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.Content getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.Content build() { + com.google.cloud.discoveryengine.v1alpha.Document.Content result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.Content buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Document.Content result = new com.google.cloud.discoveryengine.v1alpha.Document.Content(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Document.Content result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mimeType_ = mimeType_; + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.Document.Content result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + } + + @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.discoveryengine.v1alpha.Document.Content) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Document.Content)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Document.Content other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance()) return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getContentCase()) { + case RAW_BYTES: { + setRawBytes(other.getRawBytes()); + break; + } + case URI: { + contentCase_ = 3; + content_ = other.content_; + onChanged(); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + content_ = input.readBytes(); + contentCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 3; + content_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int contentCase_ = 0; + private java.lang.Object content_; + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * The content represented as a stream of bytes. The maximum length is
+       * 1,000,000 bytes (1 MB / ~0.95 MiB).
+       *
+       * Note: As with all `bytes` fields, this field is represented as pure
+       * binary in Protocol Buffers and base64-encoded string in JSON. For
+       * example, `abc123!?$*&()'-=@~` should be represented as
+       * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+       * https://developers.google.com/protocol-buffers/docs/proto3#json.
+       * 
+ * + * bytes raw_bytes = 2; + * @return Whether the rawBytes field is set. + */ + public boolean hasRawBytes() { + return contentCase_ == 2; + } + /** + *
+       * The content represented as a stream of bytes. The maximum length is
+       * 1,000,000 bytes (1 MB / ~0.95 MiB).
+       *
+       * Note: As with all `bytes` fields, this field is represented as pure
+       * binary in Protocol Buffers and base64-encoded string in JSON. For
+       * example, `abc123!?$*&()'-=@~` should be represented as
+       * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+       * https://developers.google.com/protocol-buffers/docs/proto3#json.
+       * 
+ * + * bytes raw_bytes = 2; + * @return The rawBytes. + */ + public com.google.protobuf.ByteString getRawBytes() { + if (contentCase_ == 2) { + return (com.google.protobuf.ByteString) content_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+       * The content represented as a stream of bytes. The maximum length is
+       * 1,000,000 bytes (1 MB / ~0.95 MiB).
+       *
+       * Note: As with all `bytes` fields, this field is represented as pure
+       * binary in Protocol Buffers and base64-encoded string in JSON. For
+       * example, `abc123!?$*&()'-=@~` should be represented as
+       * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+       * https://developers.google.com/protocol-buffers/docs/proto3#json.
+       * 
+ * + * bytes raw_bytes = 2; + * @param value The rawBytes to set. + * @return This builder for chaining. + */ + public Builder setRawBytes(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + contentCase_ = 2; + content_ = value; + onChanged(); + return this; + } + /** + *
+       * The content represented as a stream of bytes. The maximum length is
+       * 1,000,000 bytes (1 MB / ~0.95 MiB).
+       *
+       * Note: As with all `bytes` fields, this field is represented as pure
+       * binary in Protocol Buffers and base64-encoded string in JSON. For
+       * example, `abc123!?$*&()'-=@~` should be represented as
+       * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
+       * https://developers.google.com/protocol-buffers/docs/proto3#json.
+       * 
+ * + * bytes raw_bytes = 2; + * @return This builder for chaining. + */ + public Builder clearRawBytes() { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * The URI of the content. Only Cloud Storage URIs (e.g.
+       * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+       * is 100 MB.
+       * 
+ * + * string uri = 3; + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return contentCase_ == 3; + } + /** + *
+       * The URI of the content. Only Cloud Storage URIs (e.g.
+       * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+       * is 100 MB.
+       * 
+ * + * string uri = 3; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 3) { + content_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The URI of the content. Only Cloud Storage URIs (e.g.
+       * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+       * is 100 MB.
+       * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 3) { + ref = content_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 3) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The URI of the content. Only Cloud Storage URIs (e.g.
+       * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+       * is 100 MB.
+       * 
+ * + * string uri = 3; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + contentCase_ = 3; + content_ = value; + onChanged(); + return this; + } + /** + *
+       * The URI of the content. Only Cloud Storage URIs (e.g.
+       * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+       * is 100 MB.
+       * 
+ * + * string uri = 3; + * @return This builder for chaining. + */ + public Builder clearUri() { + if (contentCase_ == 3) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + /** + *
+       * The URI of the content. Only Cloud Storage URIs (e.g.
+       * `gs://bucket-name/path/to/file`) are supported. The maximum file size
+       * is 100 MB.
+       * 
+ * + * string uri = 3; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + contentCase_ = 3; + content_ = value; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + /** + *
+       * The MIME type of the content. Supported types:
+       *
+       * * `application/pdf` (PDF, only native PDFs are supported for now)
+       * * `text/html` (HTML)
+       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+       * * `text/plain` (TXT)
+       *
+       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 1; + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The MIME type of the content. Supported types:
+       *
+       * * `application/pdf` (PDF, only native PDFs are supported for now)
+       * * `text/html` (HTML)
+       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+       * * `text/plain` (TXT)
+       *
+       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 1; + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString + getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The MIME type of the content. Supported types:
+       *
+       * * `application/pdf` (PDF, only native PDFs are supported for now)
+       * * `text/html` (HTML)
+       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+       * * `text/plain` (TXT)
+       *
+       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 1; + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The MIME type of the content. Supported types:
+       *
+       * * `application/pdf` (PDF, only native PDFs are supported for now)
+       * * `text/html` (HTML)
+       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+       * * `text/plain` (TXT)
+       *
+       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 1; + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * The MIME type of the content. Supported types:
+       *
+       * * `application/pdf` (PDF, only native PDFs are supported for now)
+       * * `text/html` (HTML)
+       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+       * * `text/plain` (TXT)
+       *
+       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 1; + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Document.Content) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Document.Content) + private static final com.google.cloud.discoveryengine.v1alpha.Document.Content DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Document.Content(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.Content getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.Content getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int dataCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRUCT_DATA(4), + JSON_DATA(5), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 4: return STRUCT_DATA; + case 5: return JSON_DATA; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int STRUCT_DATA_FIELD_NUMBER = 4; + /** + *
+   * The structured JSON data for the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * .google.protobuf.Struct struct_data = 4; + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return dataCase_ == 4; + } + /** + *
+   * The structured JSON data for the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * .google.protobuf.Struct struct_data = 4; + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + if (dataCase_ == 4) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + *
+   * The structured JSON data for the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (dataCase_ == 4) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_DATA_FIELD_NUMBER = 5; + /** + *
+   * The JSON string representation of the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * string json_data = 5; + * @return Whether the jsonData field is set. + */ + public boolean hasJsonData() { + return dataCase_ == 5; + } + /** + *
+   * The JSON string representation of the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * string json_data = 5; + * @return The jsonData. + */ + public java.lang.String getJsonData() { + java.lang.Object ref = ""; + if (dataCase_ == 5) { + ref = data_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 5) { + data_ = s; + } + return s; + } + } + /** + *
+   * The JSON string representation of the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * string json_data = 5; + * @return The bytes for jsonData. + */ + public com.google.protobuf.ByteString + getJsonDataBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 5) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 5) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Immutable. The full resource name of the document.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Immutable. The full resource name of the document.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+   * Immutable. The identifier of the document.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + *
+   * Immutable. The identifier of the document.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object schemaId_ = ""; + /** + *
+   * The identifier of the schema located in the same data store.
+   * 
+ * + * string schema_id = 3; + * @return The schemaId. + */ + @java.lang.Override + public java.lang.String getSchemaId() { + java.lang.Object ref = schemaId_; + 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(); + schemaId_ = s; + return s; + } + } + /** + *
+   * The identifier of the schema located in the same data store.
+   * 
+ * + * string schema_id = 3; + * @return The bytes for schemaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSchemaIdBytes() { + java.lang.Object ref = schemaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1alpha.Document.Content content_; + /** + *
+   * The unstructured data linked to this document. Content must be set if this
+   * document is under a
+   * `CONTENT_REQUIRED` data store.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return content_ != null; + } + /** + *
+   * The unstructured data linked to this document. Content must be set if this
+   * document is under a
+   * `CONTENT_REQUIRED` data store.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + * @return The content. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.Content getContent() { + return content_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance() : content_; + } + /** + *
+   * The unstructured data linked to this document. Content must be set if this
+   * document is under a
+   * `CONTENT_REQUIRED` data store.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder getContentOrBuilder() { + return content_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance() : content_; + } + + public static final int PARENT_DOCUMENT_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object parentDocumentId_ = ""; + /** + *
+   * The identifier of the parent document. Currently supports at most two level
+   * document hierarchy.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string parent_document_id = 7; + * @return The parentDocumentId. + */ + @java.lang.Override + public java.lang.String getParentDocumentId() { + java.lang.Object ref = parentDocumentId_; + 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(); + parentDocumentId_ = s; + return s; + } + } + /** + *
+   * The identifier of the parent document. Currently supports at most two level
+   * document hierarchy.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string parent_document_id = 7; + * @return The bytes for parentDocumentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentDocumentIdBytes() { + java.lang.Object ref = parentDocumentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parentDocumentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct derivedStructData_; + /** + *
+   * Output only. This field is OUTPUT_ONLY.
+   * It contains derived data that are not in the original input document.
+   * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the derivedStructData field is set. + */ + @java.lang.Override + public boolean hasDerivedStructData() { + return derivedStructData_ != null; + } + /** + *
+   * Output only. This field is OUTPUT_ONLY.
+   * It contains derived data that are not in the original input document.
+   * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The derivedStructData. + */ + @java.lang.Override + public com.google.protobuf.Struct getDerivedStructData() { + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; + } + /** + *
+   * Output only. This field is OUTPUT_ONLY.
+   * It contains derived data that are not in the original input document.
+   * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_); + } + if (dataCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, data_); + } + if (derivedStructData_ != null) { + output.writeMessage(6, getDerivedStructData()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDocumentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, parentDocumentId_); + } + if (content_ != null) { + output.writeMessage(10, getContent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); + } + if (dataCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, data_); + } + if (derivedStructData_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDerivedStructData()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDocumentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, parentDocumentId_); + } + if (content_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getContent()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Document)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Document other = (com.google.cloud.discoveryengine.v1alpha.Document) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getSchemaId() + .equals(other.getSchemaId())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent() + .equals(other.getContent())) return false; + } + if (!getParentDocumentId() + .equals(other.getParentDocumentId())) return false; + if (hasDerivedStructData() != other.hasDerivedStructData()) return false; + if (hasDerivedStructData()) { + if (!getDerivedStructData() + .equals(other.getDerivedStructData())) return false; + } + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 4: + if (!getStructData() + .equals(other.getStructData())) return false; + break; + case 5: + if (!getJsonData() + .equals(other.getJsonData())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getSchemaId().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + hash = (37 * hash) + PARENT_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getParentDocumentId().hashCode(); + if (hasDerivedStructData()) { + hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getDerivedStructData().hashCode(); + } + switch (dataCase_) { + case 4: + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + break; + case 5: + hash = (37 * hash) + JSON_DATA_FIELD_NUMBER; + hash = (53 * hash) + getJsonData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Document parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Document 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.discoveryengine.v1alpha.Document parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Document parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Document parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Document parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Document parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Document 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.discoveryengine.v1alpha.Document parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Document parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Document 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.discoveryengine.v1alpha.Document 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; + } + /** + *
+   * Document captures all raw metadata information of items to be recommended or
+   * searched.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Document) + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.class, com.google.cloud.discoveryengine.v1alpha.Document.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Document.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (structDataBuilder_ != null) { + structDataBuilder_.clear(); + } + name_ = ""; + id_ = ""; + schemaId_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + parentDocumentId_ = ""; + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto.internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document build() { + com.google.cloud.discoveryengine.v1alpha.Document result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Document result = new com.google.cloud.discoveryengine.v1alpha.Document(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Document result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.schemaId_ = schemaId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.content_ = contentBuilder_ == null + ? content_ + : contentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.parentDocumentId_ = parentDocumentId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.derivedStructData_ = derivedStructDataBuilder_ == null + ? derivedStructData_ + : derivedStructDataBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.Document result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 4 && + structDataBuilder_ != null) { + result.data_ = structDataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.Document) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Document)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Document other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSchemaId().isEmpty()) { + schemaId_ = other.schemaId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (!other.getParentDocumentId().isEmpty()) { + parentDocumentId_ = other.parentDocumentId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasDerivedStructData()) { + mergeDerivedStructData(other.getDerivedStructData()); + } + switch (other.getDataCase()) { + case STRUCT_DATA: { + mergeStructData(other.getStructData()); + break; + } + case JSON_DATA: { + dataCase_ = 5; + data_ = other.data_; + onChanged(); + break; + } + case DATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: { + schemaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: { + input.readMessage( + getStructDataFieldBuilder().getBuilder(), + extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 5; + data_ = s; + break; + } // case 42 + case 50: { + input.readMessage( + getDerivedStructDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + parentDocumentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 82: { + input.readMessage( + getContentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structDataBuilder_; + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return dataCase_ == 4; + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + if (dataCase_ == 4) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataCase_ == 4) { + return structDataBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + structDataBuilder_.setMessage(value); + } + dataCase_ = 4; + return this; + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + public Builder setStructData( + com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 4; + return this; + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (dataCase_ == 4 && + data_ != com.google.protobuf.Struct.getDefaultInstance()) { + data_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 4) { + structDataBuilder_.mergeFrom(value); + } else { + structDataBuilder_.setMessage(value); + } + } + dataCase_ = 4; + return this; + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + public Builder clearStructData() { + if (structDataBuilder_ == null) { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + } + structDataBuilder_.clear(); + } + return this; + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + return getStructDataFieldBuilder().getBuilder(); + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if ((dataCase_ == 4) && (structDataBuilder_ != null)) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 4) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + *
+     * The structured JSON data for the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + if (!(dataCase_ == 4)) { + data_ = com.google.protobuf.Struct.getDefaultInstance(); + } + structDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 4; + onChanged(); + return structDataBuilder_; + } + + /** + *
+     * The JSON string representation of the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * string json_data = 5; + * @return Whether the jsonData field is set. + */ + @java.lang.Override + public boolean hasJsonData() { + return dataCase_ == 5; + } + /** + *
+     * The JSON string representation of the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * string json_data = 5; + * @return The jsonData. + */ + @java.lang.Override + public java.lang.String getJsonData() { + java.lang.Object ref = ""; + if (dataCase_ == 5) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 5) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The JSON string representation of the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * string json_data = 5; + * @return The bytes for jsonData. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJsonDataBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 5) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 5) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The JSON string representation of the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * string json_data = 5; + * @param value The jsonData to set. + * @return This builder for chaining. + */ + public Builder setJsonData( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dataCase_ = 5; + data_ = value; + onChanged(); + return this; + } + /** + *
+     * The JSON string representation of the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * string json_data = 5; + * @return This builder for chaining. + */ + public Builder clearJsonData() { + if (dataCase_ == 5) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The JSON string representation of the document. It should conform to the
+     * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+     * `INVALID_ARGUMENT` error is thrown.
+     * 
+ * + * string json_data = 5; + * @param value The bytes for jsonData to set. + * @return This builder for chaining. + */ + public Builder setJsonDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dataCase_ = 5; + data_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Immutable. The full resource name of the document.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. The full resource name of the document.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. The full resource name of the document.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Immutable. The full resource name of the document.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Immutable. The full resource name of the document.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+     * Immutable. The identifier of the document.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. The identifier of the document.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. The identifier of the document.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Immutable. The identifier of the document.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Immutable. The identifier of the document.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object schemaId_ = ""; + /** + *
+     * The identifier of the schema located in the same data store.
+     * 
+ * + * string schema_id = 3; + * @return The schemaId. + */ + public java.lang.String getSchemaId() { + java.lang.Object ref = schemaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The identifier of the schema located in the same data store.
+     * 
+ * + * string schema_id = 3; + * @return The bytes for schemaId. + */ + public com.google.protobuf.ByteString + getSchemaIdBytes() { + java.lang.Object ref = schemaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The identifier of the schema located in the same data store.
+     * 
+ * + * string schema_id = 3; + * @param value The schemaId to set. + * @return This builder for chaining. + */ + public Builder setSchemaId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + schemaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The identifier of the schema located in the same data store.
+     * 
+ * + * string schema_id = 3; + * @return This builder for chaining. + */ + public Builder clearSchemaId() { + schemaId_ = getDefaultInstance().getSchemaId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The identifier of the schema located in the same data store.
+     * 
+ * + * string schema_id = 3; + * @param value The bytes for schemaId to set. + * @return This builder for chaining. + */ + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + schemaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Document.Content content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.Content, com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder, com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder> contentBuilder_; + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + * @return The content. + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance() : content_; + } else { + return contentBuilder_.getMessage(); + } + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + public Builder setContent(com.google.cloud.discoveryengine.v1alpha.Document.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + public Builder setContent( + com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + public Builder mergeContent(com.google.cloud.discoveryengine.v1alpha.Document.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + content_ != null && + content_ != com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000020); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null ? + com.google.cloud.discoveryengine.v1alpha.Document.Content.getDefaultInstance() : content_; + } + } + /** + *
+     * The unstructured data linked to this document. Content must be set if this
+     * document is under a
+     * `CONTENT_REQUIRED` data store.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.Content, com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder, com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.Content, com.google.cloud.discoveryengine.v1alpha.Document.Content.Builder, com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder>( + getContent(), + getParentForChildren(), + isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.lang.Object parentDocumentId_ = ""; + /** + *
+     * The identifier of the parent document. Currently supports at most two level
+     * document hierarchy.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string parent_document_id = 7; + * @return The parentDocumentId. + */ + public java.lang.String getParentDocumentId() { + java.lang.Object ref = parentDocumentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDocumentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The identifier of the parent document. Currently supports at most two level
+     * document hierarchy.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string parent_document_id = 7; + * @return The bytes for parentDocumentId. + */ + public com.google.protobuf.ByteString + getParentDocumentIdBytes() { + java.lang.Object ref = parentDocumentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parentDocumentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The identifier of the parent document. Currently supports at most two level
+     * document hierarchy.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string parent_document_id = 7; + * @param value The parentDocumentId to set. + * @return This builder for chaining. + */ + public Builder setParentDocumentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parentDocumentId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The identifier of the parent document. Currently supports at most two level
+     * document hierarchy.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string parent_document_id = 7; + * @return This builder for chaining. + */ + public Builder clearParentDocumentId() { + parentDocumentId_ = getDefaultInstance().getParentDocumentId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The identifier of the parent document. Currently supports at most two level
+     * document hierarchy.
+     *
+     * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * standard with a length limit of 63 characters.
+     * 
+ * + * string parent_document_id = 7; + * @param value The bytes for parentDocumentId to set. + * @return This builder for chaining. + */ + public Builder setParentDocumentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parentDocumentId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Struct derivedStructData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> derivedStructDataBuilder_; + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the derivedStructData field is set. + */ + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The derivedStructData. + */ + public com.google.protobuf.Struct getDerivedStructData() { + if (derivedStructDataBuilder_ == null) { + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; + } else { + return derivedStructDataBuilder_.getMessage(); + } + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedStructData_ = value; + } else { + derivedStructDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDerivedStructData( + com.google.protobuf.Struct.Builder builderForValue) { + if (derivedStructDataBuilder_ == null) { + derivedStructData_ = builderForValue.build(); + } else { + derivedStructDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + derivedStructData_ != null && + derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDerivedStructDataBuilder().mergeFrom(value); + } else { + derivedStructData_ = value; + } + } else { + derivedStructDataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDerivedStructData() { + bitField0_ = (bitField0_ & ~0x00000080); + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDerivedStructDataFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + if (derivedStructDataBuilder_ != null) { + return derivedStructDataBuilder_.getMessageOrBuilder(); + } else { + return derivedStructData_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; + } + } + /** + *
+     * Output only. This field is OUTPUT_ONLY.
+     * It contains derived data that are not in the original input document.
+     * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getDerivedStructDataFieldBuilder() { + if (derivedStructDataBuilder_ == null) { + derivedStructDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getDerivedStructData(), + getParentForChildren(), + isClean()); + derivedStructData_ = null; + } + return derivedStructDataBuilder_; + } + @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.discoveryengine.v1alpha.Document) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Document) + private static final com.google.cloud.discoveryengine.v1alpha.Document DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Document(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfo.java new file mode 100644 index 000000000000..aa82d74fba6e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfo.java @@ -0,0 +1,1568 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Detailed document information associated with a user event.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DocumentInfo} + */ +public final class DocumentInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentInfo) + DocumentInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use DocumentInfo.newBuilder() to construct. + private DocumentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DocumentInfo() { + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DocumentInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentInfo.class, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder.class); + } + + private int bitField0_; + private int documentDescriptorCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object documentDescriptor_; + public enum DocumentDescriptorCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ID(1), + NAME(2), + URI(6), + DOCUMENTDESCRIPTOR_NOT_SET(0); + private final int value; + private DocumentDescriptorCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DocumentDescriptorCase valueOf(int value) { + return forNumber(value); + } + + public static DocumentDescriptorCase forNumber(int value) { + switch (value) { + case 1: return ID; + case 2: return NAME; + case 6: return URI; + case 0: return DOCUMENTDESCRIPTOR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DocumentDescriptorCase + getDocumentDescriptorCase() { + return DocumentDescriptorCase.forNumber( + documentDescriptorCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * ID.
+   * 
+ * + * string id = 1; + * @return Whether the id field is set. + */ + public boolean hasId() { + return documentDescriptorCase_ == 1; + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * ID.
+   * 
+ * + * string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 1) { + ref = documentDescriptor_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (documentDescriptorCase_ == 1) { + documentDescriptor_ = s; + } + return s; + } + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * ID.
+   * 
+ * + * string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 1) { + ref = documentDescriptor_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (documentDescriptorCase_ == 1) { + documentDescriptor_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * full name, of the form:
+   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return Whether the name field is set. + */ + public boolean hasName() { + return documentDescriptorCase_ == 2; + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * full name, of the form:
+   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 2) { + ref = documentDescriptor_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (documentDescriptorCase_ == 2) { + documentDescriptor_ = s; + } + return s; + } + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * full name, of the form:
+   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 2) { + ref = documentDescriptor_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (documentDescriptorCase_ == 2) { + documentDescriptor_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 6; + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+   * allowed for website data stores.
+   * 
+ * + * string uri = 6; + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return documentDescriptorCase_ == 6; + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+   * allowed for website data stores.
+   * 
+ * + * string uri = 6; + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 6) { + ref = documentDescriptor_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (documentDescriptorCase_ == 6) { + documentDescriptor_ = s; + } + return s; + } + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+   * allowed for website data stores.
+   * 
+ * + * string uri = 6; + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 6) { + ref = documentDescriptor_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (documentDescriptorCase_ == 6) { + documentDescriptor_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 3; + private int quantity_ = 0; + /** + *
+   * Quantity of the Document associated with the user event. Defaults to 1.
+   *
+   * For example, this field will be 2 if two quantities of the same Document
+   * are involved in a `add-to-cart` event.
+   *
+   * Required for events of the following event types:
+   *
+   * * `add-to-cart`
+   * * `purchase`
+   * 
+ * + * optional int32 quantity = 3; + * @return Whether the quantity field is set. + */ + @java.lang.Override + public boolean hasQuantity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Quantity of the Document associated with the user event. Defaults to 1.
+   *
+   * For example, this field will be 2 if two quantities of the same Document
+   * are involved in a `add-to-cart` event.
+   *
+   * Required for events of the following event types:
+   *
+   * * `add-to-cart`
+   * * `purchase`
+   * 
+ * + * optional int32 quantity = 3; + * @return The quantity. + */ + @java.lang.Override + public int getQuantity() { + return quantity_; + } + + public static final int PROMOTION_IDS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @return A list containing the promotionIds. + */ + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { + return promotionIds_; + } + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @return The count of promotionIds. + */ + public int getPromotionIdsCount() { + return promotionIds_.size(); + } + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @param index The index of the element to return. + * @return The promotionIds at the given index. + */ + public java.lang.String getPromotionIds(int index) { + return promotionIds_.get(index); + } + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @param index The index of the value to return. + * @return The bytes of the promotionIds at the given index. + */ + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { + return promotionIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (documentDescriptorCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentDescriptor_); + } + if (documentDescriptorCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentDescriptor_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(3, quantity_); + } + for (int i = 0; i < promotionIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, promotionIds_.getRaw(i)); + } + if (documentDescriptorCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, documentDescriptor_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (documentDescriptorCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, documentDescriptor_); + } + if (documentDescriptorCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentDescriptor_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, quantity_); + } + { + int dataSize = 0; + for (int i = 0; i < promotionIds_.size(); i++) { + dataSize += computeStringSizeNoTag(promotionIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getPromotionIdsList().size(); + } + if (documentDescriptorCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, documentDescriptor_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DocumentInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentInfo other = (com.google.cloud.discoveryengine.v1alpha.DocumentInfo) obj; + + if (hasQuantity() != other.hasQuantity()) return false; + if (hasQuantity()) { + if (getQuantity() + != other.getQuantity()) return false; + } + if (!getPromotionIdsList() + .equals(other.getPromotionIdsList())) return false; + if (!getDocumentDescriptorCase().equals(other.getDocumentDescriptorCase())) return false; + switch (documentDescriptorCase_) { + case 1: + if (!getId() + .equals(other.getId())) return false; + break; + case 2: + if (!getName() + .equals(other.getName())) return false; + break; + case 6: + if (!getUri() + .equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQuantity()) { + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity(); + } + if (getPromotionIdsCount() > 0) { + hash = (37 * hash) + PROMOTION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getPromotionIdsList().hashCode(); + } + switch (documentDescriptorCase_) { + case 1: + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + break; + case 2: + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + break; + case 6: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo 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.discoveryengine.v1alpha.DocumentInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo 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.discoveryengine.v1alpha.DocumentInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo 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.discoveryengine.v1alpha.DocumentInfo 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; + } + /** + *
+   * Detailed document information associated with a user event.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DocumentInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentInfo) + com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentInfo.class, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.DocumentInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + quantity_ = 0; + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentDescriptorCase_ = 0; + documentDescriptor_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo build() { + com.google.cloud.discoveryengine.v1alpha.DocumentInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentInfo result = new com.google.cloud.discoveryengine.v1alpha.DocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DocumentInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quantity_ = quantity_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + promotionIds_.makeImmutable(); + result.promotionIds_ = promotionIds_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.DocumentInfo result) { + result.documentDescriptorCase_ = documentDescriptorCase_; + result.documentDescriptor_ = this.documentDescriptor_; + } + + @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.discoveryengine.v1alpha.DocumentInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DocumentInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DocumentInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.DocumentInfo.getDefaultInstance()) return this; + if (other.hasQuantity()) { + setQuantity(other.getQuantity()); + } + if (!other.promotionIds_.isEmpty()) { + if (promotionIds_.isEmpty()) { + promotionIds_ = other.promotionIds_; + bitField0_ |= 0x00000010; + } else { + ensurePromotionIdsIsMutable(); + promotionIds_.addAll(other.promotionIds_); + } + onChanged(); + } + switch (other.getDocumentDescriptorCase()) { + case ID: { + documentDescriptorCase_ = 1; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case NAME: { + documentDescriptorCase_ = 2; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case URI: { + documentDescriptorCase_ = 6; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case DOCUMENTDESCRIPTOR_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 1; + documentDescriptor_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 2; + documentDescriptor_ = s; + break; + } // case 18 + case 24: { + quantity_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePromotionIdsIsMutable(); + promotionIds_.add(s); + break; + } // case 34 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 6; + documentDescriptor_ = s; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int documentDescriptorCase_ = 0; + private java.lang.Object documentDescriptor_; + public DocumentDescriptorCase + getDocumentDescriptorCase() { + return DocumentDescriptorCase.forNumber( + documentDescriptorCase_); + } + + public Builder clearDocumentDescriptor() { + documentDescriptorCase_ = 0; + documentDescriptor_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * ID.
+     * 
+ * + * string id = 1; + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return documentDescriptorCase_ == 1; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * ID.
+     * 
+ * + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 1) { + ref = documentDescriptor_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (documentDescriptorCase_ == 1) { + documentDescriptor_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * ID.
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 1) { + ref = documentDescriptor_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (documentDescriptorCase_ == 1) { + documentDescriptor_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * ID.
+     * 
+ * + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + documentDescriptorCase_ = 1; + documentDescriptor_ = value; + onChanged(); + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * ID.
+     * 
+ * + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + if (documentDescriptorCase_ == 1) { + documentDescriptorCase_ = 0; + documentDescriptor_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * ID.
+     * 
+ * + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + documentDescriptorCase_ = 1; + documentDescriptor_ = value; + onChanged(); + return this; + } + + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * full name, of the form:
+     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return documentDescriptorCase_ == 2; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * full name, of the form:
+     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 2) { + ref = documentDescriptor_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (documentDescriptorCase_ == 2) { + documentDescriptor_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * full name, of the form:
+     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 2) { + ref = documentDescriptor_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (documentDescriptorCase_ == 2) { + documentDescriptor_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * full name, of the form:
+     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + documentDescriptorCase_ = 2; + documentDescriptor_ = value; + onChanged(); + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * full name, of the form:
+     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + if (documentDescriptorCase_ == 2) { + documentDescriptorCase_ = 0; + documentDescriptor_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+     * full name, of the form:
+     * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+     * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + documentDescriptorCase_ = 2; + documentDescriptor_ = value; + onChanged(); + return this; + } + + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+     * allowed for website data stores.
+     * 
+ * + * string uri = 6; + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return documentDescriptorCase_ == 6; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+     * allowed for website data stores.
+     * 
+ * + * string uri = 6; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 6) { + ref = documentDescriptor_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (documentDescriptorCase_ == 6) { + documentDescriptor_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+     * allowed for website data stores.
+     * 
+ * + * string uri = 6; + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (documentDescriptorCase_ == 6) { + ref = documentDescriptor_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (documentDescriptorCase_ == 6) { + documentDescriptor_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+     * allowed for website data stores.
+     * 
+ * + * string uri = 6; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + documentDescriptorCase_ = 6; + documentDescriptor_ = value; + onChanged(); + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+     * allowed for website data stores.
+     * 
+ * + * string uri = 6; + * @return This builder for chaining. + */ + public Builder clearUri() { + if (documentDescriptorCase_ == 6) { + documentDescriptorCase_ = 0; + documentDescriptor_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+     * allowed for website data stores.
+     * 
+ * + * string uri = 6; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + documentDescriptorCase_ = 6; + documentDescriptor_ = value; + onChanged(); + return this; + } + + private int quantity_ ; + /** + *
+     * Quantity of the Document associated with the user event. Defaults to 1.
+     *
+     * For example, this field will be 2 if two quantities of the same Document
+     * are involved in a `add-to-cart` event.
+     *
+     * Required for events of the following event types:
+     *
+     * * `add-to-cart`
+     * * `purchase`
+     * 
+ * + * optional int32 quantity = 3; + * @return Whether the quantity field is set. + */ + @java.lang.Override + public boolean hasQuantity() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Quantity of the Document associated with the user event. Defaults to 1.
+     *
+     * For example, this field will be 2 if two quantities of the same Document
+     * are involved in a `add-to-cart` event.
+     *
+     * Required for events of the following event types:
+     *
+     * * `add-to-cart`
+     * * `purchase`
+     * 
+ * + * optional int32 quantity = 3; + * @return The quantity. + */ + @java.lang.Override + public int getQuantity() { + return quantity_; + } + /** + *
+     * Quantity of the Document associated with the user event. Defaults to 1.
+     *
+     * For example, this field will be 2 if two quantities of the same Document
+     * are involved in a `add-to-cart` event.
+     *
+     * Required for events of the following event types:
+     *
+     * * `add-to-cart`
+     * * `purchase`
+     * 
+ * + * optional int32 quantity = 3; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity(int value) { + + quantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Quantity of the Document associated with the user event. Defaults to 1.
+     *
+     * For example, this field will be 2 if two quantities of the same Document
+     * are involved in a `add-to-cart` event.
+     *
+     * Required for events of the following event types:
+     *
+     * * `add-to-cart`
+     * * `purchase`
+     * 
+ * + * optional int32 quantity = 3; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + bitField0_ = (bitField0_ & ~0x00000008); + quantity_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePromotionIdsIsMutable() { + if (!promotionIds_.isModifiable()) { + promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @return A list containing the promotionIds. + */ + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { + promotionIds_.makeImmutable(); + return promotionIds_; + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @return The count of promotionIds. + */ + public int getPromotionIdsCount() { + return promotionIds_.size(); + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @param index The index of the element to return. + * @return The promotionIds at the given index. + */ + public java.lang.String getPromotionIds(int index) { + return promotionIds_.get(index); + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @param index The index of the value to return. + * @return The bytes of the promotionIds at the given index. + */ + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { + return promotionIds_.getByteString(index); + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @param index The index to set the value at. + * @param value The promotionIds to set. + * @return This builder for chaining. + */ + public Builder setPromotionIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePromotionIdsIsMutable(); + promotionIds_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @param value The promotionIds to add. + * @return This builder for chaining. + */ + public Builder addPromotionIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePromotionIdsIsMutable(); + promotionIds_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @param values The promotionIds to add. + * @return This builder for chaining. + */ + public Builder addAllPromotionIds( + java.lang.Iterable values) { + ensurePromotionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promotionIds_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @return This builder for chaining. + */ + public Builder clearPromotionIds() { + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs associated with this Document.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 4; + * @param value The bytes of the promotionIds to add. + * @return This builder for chaining. + */ + public Builder addPromotionIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePromotionIdsIsMutable(); + promotionIds_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DocumentInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentInfo) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DocumentInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfoOrBuilder.java new file mode 100644 index 000000000000..a34003d46266 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentInfoOrBuilder.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DocumentInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * ID.
+   * 
+ * + * string id = 1; + * @return Whether the id field is set. + */ + boolean hasId(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * ID.
+   * 
+ * + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * ID.
+   * 
+ * + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * full name, of the form:
+   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * full name, of the form:
+   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] resource
+   * full name, of the form:
+   * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
+   * 
+ * + * string name = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+   * allowed for website data stores.
+   * 
+ * + * string uri = 6; + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+   * allowed for website data stores.
+   * 
+ * + * string uri = 6; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only
+   * allowed for website data stores.
+   * 
+ * + * string uri = 6; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+   * Quantity of the Document associated with the user event. Defaults to 1.
+   *
+   * For example, this field will be 2 if two quantities of the same Document
+   * are involved in a `add-to-cart` event.
+   *
+   * Required for events of the following event types:
+   *
+   * * `add-to-cart`
+   * * `purchase`
+   * 
+ * + * optional int32 quantity = 3; + * @return Whether the quantity field is set. + */ + boolean hasQuantity(); + /** + *
+   * Quantity of the Document associated with the user event. Defaults to 1.
+   *
+   * For example, this field will be 2 if two quantities of the same Document
+   * are involved in a `add-to-cart` event.
+   *
+   * Required for events of the following event types:
+   *
+   * * `add-to-cart`
+   * * `purchase`
+   * 
+ * + * optional int32 quantity = 3; + * @return The quantity. + */ + int getQuantity(); + + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @return A list containing the promotionIds. + */ + java.util.List + getPromotionIdsList(); + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @return The count of promotionIds. + */ + int getPromotionIdsCount(); + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @param index The index of the element to return. + * @return The promotionIds at the given index. + */ + java.lang.String getPromotionIds(int index); + /** + *
+   * The promotion IDs associated with this Document.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 4; + * @param index The index of the value to return. + * @return The bytes of the promotionIds at the given index. + */ + com.google.protobuf.ByteString + getPromotionIdsBytes(int index); + + com.google.cloud.discoveryengine.v1alpha.DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java new file mode 100644 index 000000000000..183e5f4c4d18 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java @@ -0,0 +1,485 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DocumentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String branch; + private final String document; + private final String collection; + + @Deprecated + protected DocumentName() { + project = null; + location = null; + dataStore = null; + branch = null; + document = null; + collection = null; + } + + private DocumentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + branch = Preconditions.checkNotNull(builder.getBranch()); + document = Preconditions.checkNotNull(builder.getDocument()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT; + } + + private DocumentName(ProjectLocationCollectionDataStoreBranchDocumentBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + branch = Preconditions.checkNotNull(builder.getBranch()); + document = Preconditions.checkNotNull(builder.getDocument()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getDocument() { + return document; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreBranchDocumentBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreBranchDocumentBuilder + newProjectLocationCollectionDataStoreBranchDocumentBuilder() { + return new ProjectLocationCollectionDataStoreBranchDocumentBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DocumentName of( + String project, String location, String dataStore, String branch, String document) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static DocumentName ofProjectLocationDataStoreBranchDocumentName( + String project, String location, String dataStore, String branch, String document) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static DocumentName ofProjectLocationCollectionDataStoreBranchDocumentName( + String project, + String location, + String collection, + String dataStore, + String branch, + String document) { + return newProjectLocationCollectionDataStoreBranchDocumentBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .build(); + } + + public static String format( + String project, String location, String dataStore, String branch, String document) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreBranchDocumentName( + String project, String location, String dataStore, String branch, String document) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreBranchDocumentName( + String project, + String location, + String collection, + String dataStore, + String branch, + String document) { + return newProjectLocationCollectionDataStoreBranchDocumentBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .build() + .toString(); + } + + public static DocumentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT.match(formattedString); + return ofProjectLocationDataStoreBranchDocumentName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("branch"), + matchMap.get("document")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT.match(formattedString); + return ofProjectLocationCollectionDataStoreBranchDocumentName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("branch"), + matchMap.get("document")); + } + throw new ValidationException("DocumentName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DocumentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (branch != null) { + fieldMapBuilder.put("branch", branch); + } + if (document != null) { + fieldMapBuilder.put("document", document); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DocumentName that = ((DocumentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.branch, that.branch) + && Objects.equals(this.document, that.document) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(branch); + h *= 1000003; + h ^= Objects.hashCode(document); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String branch; + private String document; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getDocument() { + return document; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setBranch(String branch) { + this.branch = branch; + return this; + } + + public Builder setDocument(String document) { + this.document = document; + return this; + } + + private Builder(DocumentName documentName) { + Preconditions.checkArgument( + Objects.equals(documentName.pathTemplate, PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT), + "toBuilder is only supported when DocumentName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}"); + this.project = documentName.project; + this.location = documentName.location; + this.dataStore = documentName.dataStore; + this.branch = documentName.branch; + this.document = documentName.document; + } + + public DocumentName build() { + return new DocumentName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreBranchDocumentBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String branch; + private String document; + + protected ProjectLocationCollectionDataStoreBranchDocumentBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getDocument() { + return document; + } + + public ProjectLocationCollectionDataStoreBranchDocumentBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentBuilder setCollection( + String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentBuilder setBranch(String branch) { + this.branch = branch; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentBuilder setDocument(String document) { + this.document = document; + return this; + } + + public DocumentName build() { + return new DocumentName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java new file mode 100644 index 000000000000..3532c565889d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java @@ -0,0 +1,246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DocumentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Document) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The structured JSON data for the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * .google.protobuf.Struct struct_data = 4; + * @return Whether the structData field is set. + */ + boolean hasStructData(); + /** + *
+   * The structured JSON data for the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * .google.protobuf.Struct struct_data = 4; + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); + /** + *
+   * The structured JSON data for the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * .google.protobuf.Struct struct_data = 4; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); + + /** + *
+   * The JSON string representation of the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * string json_data = 5; + * @return Whether the jsonData field is set. + */ + boolean hasJsonData(); + /** + *
+   * The JSON string representation of the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * string json_data = 5; + * @return The jsonData. + */ + java.lang.String getJsonData(); + /** + *
+   * The JSON string representation of the document. It should conform to the
+   * registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
+   * `INVALID_ARGUMENT` error is thrown.
+   * 
+ * + * string json_data = 5; + * @return The bytes for jsonData. + */ + com.google.protobuf.ByteString + getJsonDataBytes(); + + /** + *
+   * Immutable. The full resource name of the document.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Immutable. The full resource name of the document.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Immutable. The identifier of the document.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * Immutable. The identifier of the document.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+   * The identifier of the schema located in the same data store.
+   * 
+ * + * string schema_id = 3; + * @return The schemaId. + */ + java.lang.String getSchemaId(); + /** + *
+   * The identifier of the schema located in the same data store.
+   * 
+ * + * string schema_id = 3; + * @return The bytes for schemaId. + */ + com.google.protobuf.ByteString + getSchemaIdBytes(); + + /** + *
+   * The unstructured data linked to this document. Content must be set if this
+   * document is under a
+   * `CONTENT_REQUIRED` data store.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + * @return Whether the content field is set. + */ + boolean hasContent(); + /** + *
+   * The unstructured data linked to this document. Content must be set if this
+   * document is under a
+   * `CONTENT_REQUIRED` data store.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + * @return The content. + */ + com.google.cloud.discoveryengine.v1alpha.Document.Content getContent(); + /** + *
+   * The unstructured data linked to this document. Content must be set if this
+   * document is under a
+   * `CONTENT_REQUIRED` data store.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document.Content content = 10; + */ + com.google.cloud.discoveryengine.v1alpha.Document.ContentOrBuilder getContentOrBuilder(); + + /** + *
+   * The identifier of the parent document. Currently supports at most two level
+   * document hierarchy.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string parent_document_id = 7; + * @return The parentDocumentId. + */ + java.lang.String getParentDocumentId(); + /** + *
+   * The identifier of the parent document. Currently supports at most two level
+   * document hierarchy.
+   *
+   * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * standard with a length limit of 63 characters.
+   * 
+ * + * string parent_document_id = 7; + * @return The bytes for parentDocumentId. + */ + com.google.protobuf.ByteString + getParentDocumentIdBytes(); + + /** + *
+   * Output only. This field is OUTPUT_ONLY.
+   * It contains derived data that are not in the original input document.
+   * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the derivedStructData field is set. + */ + boolean hasDerivedStructData(); + /** + *
+   * Output only. This field is OUTPUT_ONLY.
+   * It contains derived data that are not in the original input document.
+   * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The derivedStructData. + */ + com.google.protobuf.Struct getDerivedStructData(); + /** + *
+   * Output only. This field is OUTPUT_ONLY.
+   * It contains derived data that are not in the original input document.
+   * 
+ * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.Document.DataCase getDataCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java new file mode 100644 index 000000000000..5a90f82b9057 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class DocumentProto { + private DocumentProto() {} + 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_discoveryengine_v1alpha_Document_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/discoveryengine/v1alpha/d" + + "ocument.proto\022$google.cloud.discoveryeng" + + "ine.v1alpha\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032\034google/" + + "protobuf/struct.proto\"\227\005\n\010Document\022.\n\013st" + + "ruct_data\030\004 \001(\0132\027.google.protobuf.Struct" + + "H\000\022\023\n\tjson_data\030\005 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\005\022\020\n\002id\030\002 \001(\tB\004\342A\001\005\022\021\n\tschema_id\030\003 \001(\t" + + "\022G\n\007content\030\n \001(\01326.google.cloud.discove" + + "ryengine.v1alpha.Document.Content\022\032\n\022par" + + "ent_document_id\030\007 \001(\t\022:\n\023derived_struct_" + + "data\030\006 \001(\0132\027.google.protobuf.StructB\004\342A\001" + + "\003\032K\n\007Content\022\023\n\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri" + + "\030\003 \001(\tH\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007content:\226" + + "\002\352A\222\002\n\'discoveryengine.googleapis.com/Do" + + "cument\022fprojects/{project}/locations/{lo" + + "cation}/dataStores/{data_store}/branches" + + "/{branch}/documents/{document}\022\177projects" + + "/{project}/locations/{location}/collecti" + + "ons/{collection}/dataStores/{data_store}" + + "/branches/{branch}/documents/{document}B" + + "\006\n\004dataB\231\002\n(com.google.cloud.discoveryen" + + "gine.v1alphaB\rDocumentProtoP\001ZRcloud.goo" + + "gle.com/go/discoveryengine/apiv1alpha/di" + + "scoveryenginepb;discoveryenginepb\242\002\017DISC" + + "OVERYENGINE\252\002$Google.Cloud.DiscoveryEngi" + + "ne.V1Alpha\312\002$Google\\Cloud\\DiscoveryEngin" + + "e\\V1alpha\352\002\'Google::Cloud::DiscoveryEngi" + + "ne::V1alphab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Document_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor, + new java.lang.String[] { "StructData", "JsonData", "Name", "Id", "SchemaId", "Content", "ParentDocumentId", "DerivedStructData", "Data", }); + internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor, + new java.lang.String[] { "RawBytes", "Uri", "MimeType", "Content", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java new file mode 100644 index 000000000000..b078af68b4a7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java @@ -0,0 +1,231 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class DocumentServiceProto { + private DocumentServiceProto() {} + 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_discoveryengine_v1alpha_GetDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DeleteDocumentRequest_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/discoveryengine/v1alpha/d" + + "ocument_service.proto\022$google.cloud.disc" + + "overyengine.v1alpha\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\0323google/cloud/discoveryen" + + "gine/v1alpha/document.proto\0328google/clou" + + "d/discoveryengine/v1alpha/import_config." + + "proto\0327google/cloud/discoveryengine/v1al" + + "pha/purge_config.proto\032#google/longrunni" + + "ng/operations.proto\032\033google/protobuf/emp" + + "ty.proto\"T\n\022GetDocumentRequest\022>\n\004name\030\001" + + " \001(\tB0\342A\001\002\372A)\n\'discoveryengine.googleapi" + + "s.com/Document\"}\n\024ListDocumentsRequest\022>" + + "\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine" + + ".googleapis.com/Branch\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"s\n\025ListDocumentsRe" + + "sponse\022A\n\tdocuments\030\001 \003(\0132..google.cloud" + + ".discoveryengine.v1alpha.Document\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\272\001\n\025CreateDocumentReq" + + "uest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discovery" + + "engine.googleapis.com/Branch\022F\n\010document" + + "\030\002 \001(\0132..google.cloud.discoveryengine.v1" + + "alpha.DocumentB\004\342A\001\002\022\031\n\013document_id\030\003 \001(" + + "\tB\004\342A\001\002\"v\n\025UpdateDocumentRequest\022F\n\010docu" + + "ment\030\001 \001(\0132..google.cloud.discoveryengin" + + "e.v1alpha.DocumentB\004\342A\001\002\022\025\n\rallow_missin" + + "g\030\002 \001(\010\"W\n\025DeleteDocumentRequest\022>\n\004name" + + "\030\001 \001(\tB0\342A\001\002\372A)\n\'discoveryengine.googlea" + + "pis.com/Document2\241\024\n\017DocumentService\022\260\002\n" + + "\013GetDocument\0228.google.cloud.discoveryeng" + + "ine.v1alpha.GetDocumentRequest\032..google." + + "cloud.discoveryengine.v1alpha.Document\"\266" + + "\001\332A\004name\202\323\344\223\002\250\001\022J/v1alpha/{name=projects" + + "/*/locations/*/dataStores/*/branches/*/d" + + "ocuments/*}ZZ\022X/v1alpha/{name=projects/*" + + "/locations/*/collections/*/dataStores/*/" + + "branches/*/documents/*}\022\303\002\n\rListDocument" + + "s\022:.google.cloud.discoveryengine.v1alpha" + + ".ListDocumentsRequest\032;.google.cloud.dis" + + "coveryengine.v1alpha.ListDocumentsRespon" + + "se\"\270\001\332A\006parent\202\323\344\223\002\250\001\022J/v1alpha/{parent=" + + "projects/*/locations/*/dataStores/*/bran" + + "ches/*}/documentsZZ\022X/v1alpha/{parent=pr" + + "ojects/*/locations/*/collections/*/dataS" + + "tores/*/branches/*}/documents\022\341\002\n\016Create" + + "Document\022;.google.cloud.discoveryengine." + + "v1alpha.CreateDocumentRequest\032..google.c" + + "loud.discoveryengine.v1alpha.Document\"\341\001" + + "\332A\033parent,document,document_id\202\323\344\223\002\274\001\"J/" + + "v1alpha/{parent=projects/*/locations/*/d" + + "ataStores/*/branches/*}/documents:\010docum" + + "entZd\"X/v1alpha/{parent=projects/*/locat" + + "ions/*/collections/*/dataStores/*/branch" + + "es/*}/documents:\010document\022\325\002\n\016UpdateDocu" + + "ment\022;.google.cloud.discoveryengine.v1al" + + "pha.UpdateDocumentRequest\032..google.cloud" + + ".discoveryengine.v1alpha.Document\"\325\001\202\323\344\223" + + "\002\316\0012S/v1alpha/{document.name=projects/*/" + + "locations/*/dataStores/*/branches/*/docu" + + "ments/*}:\010documentZm2a/v1alpha/{document" + + ".name=projects/*/locations/*/collections" + + "/*/dataStores/*/branches/*/documents/*}:" + + "\010document\022\236\002\n\016DeleteDocument\022;.google.cl" + + "oud.discoveryengine.v1alpha.DeleteDocume" + + "ntRequest\032\026.google.protobuf.Empty\"\266\001\332A\004n" + + "ame\202\323\344\223\002\250\001*J/v1alpha/{name=projects/*/lo" + + "cations/*/dataStores/*/branches/*/docume" + + "nts/*}ZZ*X/v1alpha/{name=projects/*/loca" + + "tions/*/collections/*/dataStores/*/branc" + + "hes/*/documents/*}\022\263\003\n\017ImportDocuments\022<" + + ".google.cloud.discoveryengine.v1alpha.Im" + + "portDocumentsRequest\032\035.google.longrunnin" + + "g.Operation\"\302\002\312A|\n + * Double list. + * + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DoubleList} + */ +public final class DoubleList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DoubleList) + DoubleListOrBuilder { +private static final long serialVersionUID = 0L; + // Use DoubleList.newBuilder() to construct. + private DoubleList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DoubleList() { + values_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DoubleList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DoubleList.class, com.google.cloud.discoveryengine.v1alpha.DoubleList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.DoubleList values_; + /** + *
+   * Double values.
+   * 
+ * + * repeated double values = 1; + * @return A list containing the values. + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + /** + *
+   * Double values.
+   * 
+ * + * repeated double values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+   * Double values.
+   * 
+ * + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + private int valuesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeDoubleNoTag(values_.getDouble(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getValuesList().size(); + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.DoubleList)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DoubleList other = (com.google.cloud.discoveryengine.v1alpha.DoubleList) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList 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.discoveryengine.v1alpha.DoubleList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList 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.discoveryengine.v1alpha.DoubleList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.DoubleList 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.discoveryengine.v1alpha.DoubleList 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; + } + /** + *
+   * Double list.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DoubleList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DoubleList) + com.google.cloud.discoveryengine.v1alpha.DoubleListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DoubleList.class, com.google.cloud.discoveryengine.v1alpha.DoubleList.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.DoubleList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = emptyDoubleList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DoubleList getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DoubleList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DoubleList build() { + com.google.cloud.discoveryengine.v1alpha.DoubleList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DoubleList buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DoubleList result = new com.google.cloud.discoveryengine.v1alpha.DoubleList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.DoubleList result) { + if (((bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DoubleList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.DoubleList) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DoubleList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DoubleList other) { + if (other == com.google.cloud.discoveryengine.v1alpha.DoubleList.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + double v = input.readDouble(); + ensureValuesIsMutable(); + values_.addDouble(v); + break; + } // case 9 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = mutableCopy(values_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @return A list containing the values. + */ + public java.util.List + getValuesList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(values_) : values_; + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public double getValues(int index) { + return values_.getDouble(index); + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues( + int index, double value) { + + ensureValuesIsMutable(); + values_.setDouble(index, value); + onChanged(); + return this; + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(double value) { + + ensureValuesIsMutable(); + values_.addDouble(value); + onChanged(); + return this; + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + *
+     * Double values.
+     * 
+ * + * repeated double values = 1; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.DoubleList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DoubleList) + private static final com.google.cloud.discoveryengine.v1alpha.DoubleList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DoubleList(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DoubleList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DoubleList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DoubleListOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DoubleListOrBuilder.java new file mode 100644 index 000000000000..a343c014f280 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DoubleListOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface DoubleListOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DoubleList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Double values.
+   * 
+ * + * repeated double values = 1; + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + *
+   * Double values.
+   * 
+ * + * repeated double values = 1; + * @return The count of values. + */ + int getValuesCount(); + /** + *
+   * Double values.
+   * 
+ * + * repeated double values = 1; + * @param index The index of the element to return. + * @return The values at the given index. + */ + double getValues(int index); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java new file mode 100644 index 000000000000..c7716960f79d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java @@ -0,0 +1,3541 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Configurations for fields of a schema. For example, configuring a field is
+ * indexable, or searchable.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.FieldConfig} + */ +public final class FieldConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.FieldConfig) + FieldConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use FieldConfig.newBuilder() to construct. + private FieldConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FieldConfig() { + fieldPath_ = ""; + fieldType_ = 0; + indexableOption_ = 0; + dynamicFacetableOption_ = 0; + searchableOption_ = 0; + retrievableOption_ = 0; + completableOption_ = 0; + recsFilterableOption_ = 0; + keyPropertyType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FieldConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.FieldConfig.class, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder.class); + } + + /** + *
+   * Field value type in the Schema.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType} + */ + public enum FieldType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Field type is unspecified.
+     * 
+ * + * FIELD_TYPE_UNSPECIFIED = 0; + */ + FIELD_TYPE_UNSPECIFIED(0), + /** + *
+     * Field value type is Object.
+     * 
+ * + * OBJECT = 1; + */ + OBJECT(1), + /** + *
+     * Field value type is String.
+     * 
+ * + * STRING = 2; + */ + STRING(2), + /** + *
+     * Field value type is Number.
+     * 
+ * + * NUMBER = 3; + */ + NUMBER(3), + /** + *
+     * Field value type is Integer.
+     * 
+ * + * INTEGER = 4; + */ + INTEGER(4), + /** + *
+     * Field value type is Boolean.
+     * 
+ * + * BOOLEAN = 5; + */ + BOOLEAN(5), + /** + *
+     * Field value type is Geolocation.
+     * 
+ * + * GEOLOCATION = 6; + */ + GEOLOCATION(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Field type is unspecified.
+     * 
+ * + * FIELD_TYPE_UNSPECIFIED = 0; + */ + public static final int FIELD_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Field value type is Object.
+     * 
+ * + * OBJECT = 1; + */ + public static final int OBJECT_VALUE = 1; + /** + *
+     * Field value type is String.
+     * 
+ * + * STRING = 2; + */ + public static final int STRING_VALUE = 2; + /** + *
+     * Field value type is Number.
+     * 
+ * + * NUMBER = 3; + */ + public static final int NUMBER_VALUE = 3; + /** + *
+     * Field value type is Integer.
+     * 
+ * + * INTEGER = 4; + */ + public static final int INTEGER_VALUE = 4; + /** + *
+     * Field value type is Boolean.
+     * 
+ * + * BOOLEAN = 5; + */ + public static final int BOOLEAN_VALUE = 5; + /** + *
+     * Field value type is Geolocation.
+     * 
+ * + * GEOLOCATION = 6; + */ + public static final int GEOLOCATION_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FieldType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FieldType forNumber(int value) { + switch (value) { + case 0: return FIELD_TYPE_UNSPECIFIED; + case 1: return OBJECT; + case 2: return STRING; + case 3: return NUMBER; + case 4: return INTEGER; + case 5: return BOOLEAN; + case 6: return GEOLOCATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FieldType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FieldType findValueByNumber(int number) { + return FieldType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final FieldType[] VALUES = values(); + + public static FieldType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FieldType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType) + } + + /** + *
+   * The setting of Indexable options in schema.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption} + */ + public enum IndexableOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Value used when unset.
+     * 
+ * + * INDEXABLE_OPTION_UNSPECIFIED = 0; + */ + INDEXABLE_OPTION_UNSPECIFIED(0), + /** + *
+     * Indexable option enabled for a schema field.
+     * 
+ * + * INDEXABLE_ENABLED = 1; + */ + INDEXABLE_ENABLED(1), + /** + *
+     * Indexable option disabled for a schema field.
+     * 
+ * + * INDEXABLE_DISABLED = 2; + */ + INDEXABLE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Value used when unset.
+     * 
+ * + * INDEXABLE_OPTION_UNSPECIFIED = 0; + */ + public static final int INDEXABLE_OPTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Indexable option enabled for a schema field.
+     * 
+ * + * INDEXABLE_ENABLED = 1; + */ + public static final int INDEXABLE_ENABLED_VALUE = 1; + /** + *
+     * Indexable option disabled for a schema field.
+     * 
+ * + * INDEXABLE_DISABLED = 2; + */ + public static final int INDEXABLE_DISABLED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IndexableOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IndexableOption forNumber(int value) { + switch (value) { + case 0: return INDEXABLE_OPTION_UNSPECIFIED; + case 1: return INDEXABLE_ENABLED; + case 2: return INDEXABLE_DISABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + IndexableOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IndexableOption findValueByNumber(int number) { + return IndexableOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final IndexableOption[] VALUES = values(); + + public static IndexableOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IndexableOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption) + } + + /** + *
+   * The status of the dynamic facetable option of a schema field.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption} + */ + public enum DynamicFacetableOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Value used when unset.
+     * 
+ * + * DYNAMIC_FACETABLE_OPTION_UNSPECIFIED = 0; + */ + DYNAMIC_FACETABLE_OPTION_UNSPECIFIED(0), + /** + *
+     * Dynamic facetable option enabled for a schema field.
+     * 
+ * + * DYNAMIC_FACETABLE_ENABLED = 1; + */ + DYNAMIC_FACETABLE_ENABLED(1), + /** + *
+     * Dynamic facetable option disabled for a schema field.
+     * 
+ * + * DYNAMIC_FACETABLE_DISABLED = 2; + */ + DYNAMIC_FACETABLE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Value used when unset.
+     * 
+ * + * DYNAMIC_FACETABLE_OPTION_UNSPECIFIED = 0; + */ + public static final int DYNAMIC_FACETABLE_OPTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Dynamic facetable option enabled for a schema field.
+     * 
+ * + * DYNAMIC_FACETABLE_ENABLED = 1; + */ + public static final int DYNAMIC_FACETABLE_ENABLED_VALUE = 1; + /** + *
+     * Dynamic facetable option disabled for a schema field.
+     * 
+ * + * DYNAMIC_FACETABLE_DISABLED = 2; + */ + public static final int DYNAMIC_FACETABLE_DISABLED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DynamicFacetableOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DynamicFacetableOption forNumber(int value) { + switch (value) { + case 0: return DYNAMIC_FACETABLE_OPTION_UNSPECIFIED; + case 1: return DYNAMIC_FACETABLE_ENABLED; + case 2: return DYNAMIC_FACETABLE_DISABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DynamicFacetableOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DynamicFacetableOption findValueByNumber(int number) { + return DynamicFacetableOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(2); + } + + private static final DynamicFacetableOption[] VALUES = values(); + + public static DynamicFacetableOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DynamicFacetableOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption) + } + + /** + *
+   * The setting of Searchable options in schema.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption} + */ + public enum SearchableOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Value used when unset.
+     * 
+ * + * SEARCHABLE_OPTION_UNSPECIFIED = 0; + */ + SEARCHABLE_OPTION_UNSPECIFIED(0), + /** + *
+     * Searchable option enabled for a schema field.
+     * 
+ * + * SEARCHABLE_ENABLED = 1; + */ + SEARCHABLE_ENABLED(1), + /** + *
+     * Searchable option disabled for a schema field.
+     * 
+ * + * SEARCHABLE_DISABLED = 2; + */ + SEARCHABLE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Value used when unset.
+     * 
+ * + * SEARCHABLE_OPTION_UNSPECIFIED = 0; + */ + public static final int SEARCHABLE_OPTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Searchable option enabled for a schema field.
+     * 
+ * + * SEARCHABLE_ENABLED = 1; + */ + public static final int SEARCHABLE_ENABLED_VALUE = 1; + /** + *
+     * Searchable option disabled for a schema field.
+     * 
+ * + * SEARCHABLE_DISABLED = 2; + */ + public static final int SEARCHABLE_DISABLED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchableOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SearchableOption forNumber(int value) { + switch (value) { + case 0: return SEARCHABLE_OPTION_UNSPECIFIED; + case 1: return SEARCHABLE_ENABLED; + case 2: return SEARCHABLE_DISABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SearchableOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchableOption findValueByNumber(int number) { + return SearchableOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(3); + } + + private static final SearchableOption[] VALUES = values(); + + public static SearchableOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SearchableOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption) + } + + /** + *
+   * The setting of Retrievable options in schema.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption} + */ + public enum RetrievableOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Value used when unset.
+     * 
+ * + * RETRIEVABLE_OPTION_UNSPECIFIED = 0; + */ + RETRIEVABLE_OPTION_UNSPECIFIED(0), + /** + *
+     * Retrievable option enabled for a schema field.
+     * 
+ * + * RETRIEVABLE_ENABLED = 1; + */ + RETRIEVABLE_ENABLED(1), + /** + *
+     * Retrievable option disabled for a schema field.
+     * 
+ * + * RETRIEVABLE_DISABLED = 2; + */ + RETRIEVABLE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Value used when unset.
+     * 
+ * + * RETRIEVABLE_OPTION_UNSPECIFIED = 0; + */ + public static final int RETRIEVABLE_OPTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Retrievable option enabled for a schema field.
+     * 
+ * + * RETRIEVABLE_ENABLED = 1; + */ + public static final int RETRIEVABLE_ENABLED_VALUE = 1; + /** + *
+     * Retrievable option disabled for a schema field.
+     * 
+ * + * RETRIEVABLE_DISABLED = 2; + */ + public static final int RETRIEVABLE_DISABLED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RetrievableOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RetrievableOption forNumber(int value) { + switch (value) { + case 0: return RETRIEVABLE_OPTION_UNSPECIFIED; + case 1: return RETRIEVABLE_ENABLED; + case 2: return RETRIEVABLE_DISABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RetrievableOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetrievableOption findValueByNumber(int number) { + return RetrievableOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(4); + } + + private static final RetrievableOption[] VALUES = values(); + + public static RetrievableOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RetrievableOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption) + } + + /** + *
+   * The setting of Completable options in schema.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption} + */ + public enum CompletableOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Value used when unset.
+     * 
+ * + * COMPLETABLE_OPTION_UNSPECIFIED = 0; + */ + COMPLETABLE_OPTION_UNSPECIFIED(0), + /** + *
+     * Completable option enabled for a schema field.
+     * 
+ * + * COMPLETABLE_ENABLED = 1; + */ + COMPLETABLE_ENABLED(1), + /** + *
+     * Completable option disabled for a schema field.
+     * 
+ * + * COMPLETABLE_DISABLED = 2; + */ + COMPLETABLE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Value used when unset.
+     * 
+ * + * COMPLETABLE_OPTION_UNSPECIFIED = 0; + */ + public static final int COMPLETABLE_OPTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Completable option enabled for a schema field.
+     * 
+ * + * COMPLETABLE_ENABLED = 1; + */ + public static final int COMPLETABLE_ENABLED_VALUE = 1; + /** + *
+     * Completable option disabled for a schema field.
+     * 
+ * + * COMPLETABLE_DISABLED = 2; + */ + public static final int COMPLETABLE_DISABLED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CompletableOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CompletableOption forNumber(int value) { + switch (value) { + case 0: return COMPLETABLE_OPTION_UNSPECIFIED; + case 1: return COMPLETABLE_ENABLED; + case 2: return COMPLETABLE_DISABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CompletableOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletableOption findValueByNumber(int number) { + return CompletableOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(5); + } + + private static final CompletableOption[] VALUES = values(); + + public static CompletableOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompletableOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption) + } + + /** + *
+   * Sets the filterable option for schema fields.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption} + */ + public enum FilterableOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Value used when unset.
+     * 
+ * + * FILTERABLE_OPTION_UNSPECIFIED = 0; + */ + FILTERABLE_OPTION_UNSPECIFIED(0), + /** + *
+     * Filterable option enabled for a schema field.
+     * 
+ * + * FILTERABLE_ENABLED = 1; + */ + FILTERABLE_ENABLED(1), + /** + *
+     * Filterable option disabled for a schema field.
+     * 
+ * + * FILTERABLE_DISABLED = 2; + */ + FILTERABLE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Value used when unset.
+     * 
+ * + * FILTERABLE_OPTION_UNSPECIFIED = 0; + */ + public static final int FILTERABLE_OPTION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Filterable option enabled for a schema field.
+     * 
+ * + * FILTERABLE_ENABLED = 1; + */ + public static final int FILTERABLE_ENABLED_VALUE = 1; + /** + *
+     * Filterable option disabled for a schema field.
+     * 
+ * + * FILTERABLE_DISABLED = 2; + */ + public static final int FILTERABLE_DISABLED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterableOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FilterableOption forNumber(int value) { + switch (value) { + case 0: return FILTERABLE_OPTION_UNSPECIFIED; + case 1: return FILTERABLE_ENABLED; + case 2: return FILTERABLE_DISABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FilterableOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterableOption findValueByNumber(int number) { + return FilterableOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDescriptor().getEnumTypes().get(6); + } + + private static final FilterableOption[] VALUES = values(); + + public static FilterableOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterableOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption) + } + + public static final int FIELD_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + *
+   * Required. Field path of the schema field.
+   * For example: `title`, `description`, `release_info.release_year`.
+   * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + 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(); + fieldPath_ = s; + return s; + } + } + /** + *
+   * Required. Field path of the schema field.
+   * For example: `title`, `description`, `release_info.release_year`.
+   * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_TYPE_FIELD_NUMBER = 2; + private int fieldType_ = 0; + /** + *
+   * Output only. Raw type of the field.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for fieldType. + */ + @java.lang.Override public int getFieldTypeValue() { + return fieldType_; + } + /** + *
+   * Output only. Raw type of the field.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The fieldType. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType getFieldType() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType.forNumber(fieldType_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType.UNRECOGNIZED : result; + } + + public static final int INDEXABLE_OPTION_FIELD_NUMBER = 3; + private int indexableOption_ = 0; + /** + *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+   * field values are indexed so that it can be filtered or faceted in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is unset, the server behavior defaults to
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+   * for fields that support setting indexable options. For those fields that do
+   * not support setting indexable options, such as `object` and `boolean` and
+   * key properties, the server will skip
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * setting, and setting
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return The enum numeric value on the wire for indexableOption. + */ + @java.lang.Override public int getIndexableOptionValue() { + return indexableOption_; + } + /** + *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+   * field values are indexed so that it can be filtered or faceted in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is unset, the server behavior defaults to
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+   * for fields that support setting indexable options. For those fields that do
+   * not support setting indexable options, such as `object` and `boolean` and
+   * key properties, the server will skip
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * setting, and setting
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return The indexableOption. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption getIndexableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.forNumber(indexableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.UNRECOGNIZED : result; + } + + public static final int DYNAMIC_FACETABLE_OPTION_FIELD_NUMBER = 4; + private int dynamicFacetableOption_ = 0; + /** + *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is
+   * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+   * field values are available for dynamic facet. Could only be
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * if
+   * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+   * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+   *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is unset, the server behavior defaults to
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * for fields that support setting dynamic facetable options. For those fields
+   * that do not support setting dynamic facetable options, such as `object` and
+   * `boolean`, the server will skip dynamic facetable option setting, and
+   * setting
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return The enum numeric value on the wire for dynamicFacetableOption. + */ + @java.lang.Override public int getDynamicFacetableOptionValue() { + return dynamicFacetableOption_; + } + /** + *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is
+   * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+   * field values are available for dynamic facet. Could only be
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * if
+   * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+   * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+   *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is unset, the server behavior defaults to
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * for fields that support setting dynamic facetable options. For those fields
+   * that do not support setting dynamic facetable options, such as `object` and
+   * `boolean`, the server will skip dynamic facetable option setting, and
+   * setting
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return The dynamicFacetableOption. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption getDynamicFacetableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.forNumber(dynamicFacetableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.UNRECOGNIZED : result; + } + + public static final int SEARCHABLE_OPTION_FIELD_NUMBER = 5; + private int searchableOption_ = 0; + /** + *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+   * field values are searchable by text queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+   * but field type is numerical, field values will not be searchable by text
+   * queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+   * as there are no text values associated to numerical fields.
+   *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is unset, the server behavior defaults to
+   * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+   * for fields that support setting searchable options. Only `string` fields
+   * that have no key property mapping support setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+   *
+   * For those fields that do not support setting searchable options, the server
+   * will skip searchable option setting, and setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return The enum numeric value on the wire for searchableOption. + */ + @java.lang.Override public int getSearchableOptionValue() { + return searchableOption_; + } + /** + *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+   * field values are searchable by text queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+   * but field type is numerical, field values will not be searchable by text
+   * queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+   * as there are no text values associated to numerical fields.
+   *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is unset, the server behavior defaults to
+   * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+   * for fields that support setting searchable options. Only `string` fields
+   * that have no key property mapping support setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+   *
+   * For those fields that do not support setting searchable options, the server
+   * will skip searchable option setting, and setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return The searchableOption. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption getSearchableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.forNumber(searchableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.UNRECOGNIZED : result; + } + + public static final int RETRIEVABLE_OPTION_FIELD_NUMBER = 6; + private int retrievableOption_ = 0; + /** + *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is
+   * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+   * field values are included in the search results.
+   *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is unset, the server behavior defaults to
+   * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+   * for fields that support setting retrievable options. For those fields
+   * that do not support setting retrievable options, such as `object` and
+   * `boolean`, the server will skip retrievable option setting, and setting
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return The enum numeric value on the wire for retrievableOption. + */ + @java.lang.Override public int getRetrievableOptionValue() { + return retrievableOption_; + } + /** + *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is
+   * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+   * field values are included in the search results.
+   *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is unset, the server behavior defaults to
+   * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+   * for fields that support setting retrievable options. For those fields
+   * that do not support setting retrievable options, such as `object` and
+   * `boolean`, the server will skip retrievable option setting, and setting
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return The retrievableOption. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption getRetrievableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.forNumber(retrievableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.UNRECOGNIZED : result; + } + + public static final int COMPLETABLE_OPTION_FIELD_NUMBER = 8; + private int completableOption_ = 0; + /** + *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is
+   * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+   * field values are directly used and returned as suggestions for Autocomplete
+   * in
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+   *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is unset, the server behavior defaults to
+   * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+   * for fields that support setting completable options, which are just
+   * `string` fields. For those fields that do not support setting completable
+   * options, the server will skip completable option setting, and setting
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return The enum numeric value on the wire for completableOption. + */ + @java.lang.Override public int getCompletableOptionValue() { + return completableOption_; + } + /** + *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is
+   * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+   * field values are directly used and returned as suggestions for Autocomplete
+   * in
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+   *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is unset, the server behavior defaults to
+   * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+   * for fields that support setting completable options, which are just
+   * `string` fields. For those fields that do not support setting completable
+   * options, the server will skip completable option setting, and setting
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return The completableOption. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption getCompletableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.forNumber(completableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.UNRECOGNIZED : result; + } + + public static final int RECS_FILTERABLE_OPTION_FIELD_NUMBER = 9; + private int recsFilterableOption_ = 0; + /** + *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+   * field values are filterable by filter expression in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   *
+   * If
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+   * but the field type is numerical, field values are not filterable by text
+   * queries in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * Only textual fields are supported.
+   *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is unset, the default setting is
+   * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+   * for fields that support setting filterable options.
+   *
+   * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+   * generated and an empty result is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return The enum numeric value on the wire for recsFilterableOption. + */ + @java.lang.Override public int getRecsFilterableOptionValue() { + return recsFilterableOption_; + } + /** + *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+   * field values are filterable by filter expression in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   *
+   * If
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+   * but the field type is numerical, field values are not filterable by text
+   * queries in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * Only textual fields are supported.
+   *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is unset, the default setting is
+   * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+   * for fields that support setting filterable options.
+   *
+   * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+   * generated and an empty result is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return The recsFilterableOption. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption getRecsFilterableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.forNumber(recsFilterableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.UNRECOGNIZED : result; + } + + public static final int KEY_PROPERTY_TYPE_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object keyPropertyType_ = ""; + /** + *
+   * Output only. Type of the key property that this field is mapped to. Empty
+   * string if this is not annotated as mapped to a key property.
+   *
+   * Example types are `title`, `description`. Full list is defined
+   * by `keyPropertyMapping` in the schema field annotation.
+   *
+   * If the schema field has a `KeyPropertyMapping` annotation,
+   * `indexable_option` and `searchable_option` of this field cannot be
+   * modified.
+   * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The keyPropertyType. + */ + @java.lang.Override + public java.lang.String getKeyPropertyType() { + java.lang.Object ref = keyPropertyType_; + 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(); + keyPropertyType_ = s; + return s; + } + } + /** + *
+   * Output only. Type of the key property that this field is mapped to. Empty
+   * string if this is not annotated as mapped to a key property.
+   *
+   * Example types are `title`, `description`. Full list is defined
+   * by `keyPropertyMapping` in the schema field annotation.
+   *
+   * If the schema field has a `KeyPropertyMapping` annotation,
+   * `indexable_option` and `searchable_option` of this field cannot be
+   * modified.
+   * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for keyPropertyType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyPropertyTypeBytes() { + java.lang.Object ref = keyPropertyType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyPropertyType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + } + if (fieldType_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType.FIELD_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, fieldType_); + } + if (indexableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_OPTION_UNSPECIFIED.getNumber()) { + output.writeEnum(3, indexableOption_); + } + if (dynamicFacetableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_OPTION_UNSPECIFIED.getNumber()) { + output.writeEnum(4, dynamicFacetableOption_); + } + if (searchableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_OPTION_UNSPECIFIED.getNumber()) { + output.writeEnum(5, searchableOption_); + } + if (retrievableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_OPTION_UNSPECIFIED.getNumber()) { + output.writeEnum(6, retrievableOption_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPropertyType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, keyPropertyType_); + } + if (completableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_OPTION_UNSPECIFIED.getNumber()) { + output.writeEnum(8, completableOption_); + } + if (recsFilterableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_OPTION_UNSPECIFIED.getNumber()) { + output.writeEnum(9, recsFilterableOption_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + } + if (fieldType_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType.FIELD_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, fieldType_); + } + if (indexableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, indexableOption_); + } + if (dynamicFacetableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, dynamicFacetableOption_); + } + if (searchableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, searchableOption_); + } + if (retrievableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, retrievableOption_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPropertyType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, keyPropertyType_); + } + if (completableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, completableOption_); + } + if (recsFilterableOption_ != com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_OPTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, recsFilterableOption_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.FieldConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.FieldConfig other = (com.google.cloud.discoveryengine.v1alpha.FieldConfig) obj; + + if (!getFieldPath() + .equals(other.getFieldPath())) return false; + if (fieldType_ != other.fieldType_) return false; + if (indexableOption_ != other.indexableOption_) return false; + if (dynamicFacetableOption_ != other.dynamicFacetableOption_) return false; + if (searchableOption_ != other.searchableOption_) return false; + if (retrievableOption_ != other.retrievableOption_) return false; + if (completableOption_ != other.completableOption_) return false; + if (recsFilterableOption_ != other.recsFilterableOption_) return false; + if (!getKeyPropertyType() + .equals(other.getKeyPropertyType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + hash = (37 * hash) + FIELD_TYPE_FIELD_NUMBER; + hash = (53 * hash) + fieldType_; + hash = (37 * hash) + INDEXABLE_OPTION_FIELD_NUMBER; + hash = (53 * hash) + indexableOption_; + hash = (37 * hash) + DYNAMIC_FACETABLE_OPTION_FIELD_NUMBER; + hash = (53 * hash) + dynamicFacetableOption_; + hash = (37 * hash) + SEARCHABLE_OPTION_FIELD_NUMBER; + hash = (53 * hash) + searchableOption_; + hash = (37 * hash) + RETRIEVABLE_OPTION_FIELD_NUMBER; + hash = (53 * hash) + retrievableOption_; + hash = (37 * hash) + COMPLETABLE_OPTION_FIELD_NUMBER; + hash = (53 * hash) + completableOption_; + hash = (37 * hash) + RECS_FILTERABLE_OPTION_FIELD_NUMBER; + hash = (53 * hash) + recsFilterableOption_; + hash = (37 * hash) + KEY_PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getKeyPropertyType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig 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.discoveryengine.v1alpha.FieldConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig 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.discoveryengine.v1alpha.FieldConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig 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.discoveryengine.v1alpha.FieldConfig 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; + } + /** + *
+   * Configurations for fields of a schema. For example, configuring a field is
+   * indexable, or searchable.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.FieldConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.FieldConfig) + com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.FieldConfig.class, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.FieldConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldPath_ = ""; + fieldType_ = 0; + indexableOption_ = 0; + dynamicFacetableOption_ = 0; + searchableOption_ = 0; + retrievableOption_ = 0; + completableOption_ = 0; + recsFilterableOption_ = 0; + keyPropertyType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig build() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig result = new com.google.cloud.discoveryengine.v1alpha.FieldConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.FieldConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldPath_ = fieldPath_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldType_ = fieldType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.indexableOption_ = indexableOption_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dynamicFacetableOption_ = dynamicFacetableOption_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.searchableOption_ = searchableOption_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.retrievableOption_ = retrievableOption_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.completableOption_ = completableOption_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.recsFilterableOption_ = recsFilterableOption_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.keyPropertyType_ = keyPropertyType_; + } + } + + @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.discoveryengine.v1alpha.FieldConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.FieldConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.FieldConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDefaultInstance()) return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.fieldType_ != 0) { + setFieldTypeValue(other.getFieldTypeValue()); + } + if (other.indexableOption_ != 0) { + setIndexableOptionValue(other.getIndexableOptionValue()); + } + if (other.dynamicFacetableOption_ != 0) { + setDynamicFacetableOptionValue(other.getDynamicFacetableOptionValue()); + } + if (other.searchableOption_ != 0) { + setSearchableOptionValue(other.getSearchableOptionValue()); + } + if (other.retrievableOption_ != 0) { + setRetrievableOptionValue(other.getRetrievableOptionValue()); + } + if (other.completableOption_ != 0) { + setCompletableOptionValue(other.getCompletableOptionValue()); + } + if (other.recsFilterableOption_ != 0) { + setRecsFilterableOptionValue(other.getRecsFilterableOptionValue()); + } + if (!other.getKeyPropertyType().isEmpty()) { + keyPropertyType_ = other.keyPropertyType_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + fieldType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + indexableOption_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + dynamicFacetableOption_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + searchableOption_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + retrievableOption_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + keyPropertyType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 64: { + completableOption_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: { + recsFilterableOption_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object fieldPath_ = ""; + /** + *
+     * Required. Field path of the schema field.
+     * For example: `title`, `description`, `release_info.release_year`.
+     * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Field path of the schema field.
+     * For example: `title`, `description`, `release_info.release_year`.
+     * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString + getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Field path of the schema field.
+     * For example: `title`, `description`, `release_info.release_year`.
+     * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Field path of the schema field.
+     * For example: `title`, `description`, `release_info.release_year`.
+     * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Field path of the schema field.
+     * For example: `title`, `description`, `release_info.release_year`.
+     * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int fieldType_ = 0; + /** + *
+     * Output only. Raw type of the field.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for fieldType. + */ + @java.lang.Override public int getFieldTypeValue() { + return fieldType_; + } + /** + *
+     * Output only. Raw type of the field.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for fieldType to set. + * @return This builder for chaining. + */ + public Builder setFieldTypeValue(int value) { + fieldType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Output only. Raw type of the field.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The fieldType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType getFieldType() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType.forNumber(fieldType_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType.UNRECOGNIZED : result; + } + /** + *
+     * Output only. Raw type of the field.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The fieldType to set. + * @return This builder for chaining. + */ + public Builder setFieldType(com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + fieldType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. Raw type of the field.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearFieldType() { + bitField0_ = (bitField0_ & ~0x00000002); + fieldType_ = 0; + onChanged(); + return this; + } + + private int indexableOption_ = 0; + /** + *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+     * field values are indexed so that it can be filtered or faceted in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is unset, the server behavior defaults to
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+     * for fields that support setting indexable options. For those fields that do
+     * not support setting indexable options, such as `object` and `boolean` and
+     * key properties, the server will skip
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * setting, and setting
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return The enum numeric value on the wire for indexableOption. + */ + @java.lang.Override public int getIndexableOptionValue() { + return indexableOption_; + } + /** + *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+     * field values are indexed so that it can be filtered or faceted in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is unset, the server behavior defaults to
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+     * for fields that support setting indexable options. For those fields that do
+     * not support setting indexable options, such as `object` and `boolean` and
+     * key properties, the server will skip
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * setting, and setting
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @param value The enum numeric value on the wire for indexableOption to set. + * @return This builder for chaining. + */ + public Builder setIndexableOptionValue(int value) { + indexableOption_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+     * field values are indexed so that it can be filtered or faceted in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is unset, the server behavior defaults to
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+     * for fields that support setting indexable options. For those fields that do
+     * not support setting indexable options, such as `object` and `boolean` and
+     * key properties, the server will skip
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * setting, and setting
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return The indexableOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption getIndexableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.forNumber(indexableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.UNRECOGNIZED : result; + } + /** + *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+     * field values are indexed so that it can be filtered or faceted in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is unset, the server behavior defaults to
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+     * for fields that support setting indexable options. For those fields that do
+     * not support setting indexable options, such as `object` and `boolean` and
+     * key properties, the server will skip
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * setting, and setting
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @param value The indexableOption to set. + * @return This builder for chaining. + */ + public Builder setIndexableOption(com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + indexableOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+     * field values are indexed so that it can be filtered or faceted in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is unset, the server behavior defaults to
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+     * for fields that support setting indexable options. For those fields that do
+     * not support setting indexable options, such as `object` and `boolean` and
+     * key properties, the server will skip
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * setting, and setting
+     * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return This builder for chaining. + */ + public Builder clearIndexableOption() { + bitField0_ = (bitField0_ & ~0x00000004); + indexableOption_ = 0; + onChanged(); + return this; + } + + private int dynamicFacetableOption_ = 0; + /** + *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is
+     * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+     * field values are available for dynamic facet. Could only be
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * if
+     * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+     * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+     *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is unset, the server behavior defaults to
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * for fields that support setting dynamic facetable options. For those fields
+     * that do not support setting dynamic facetable options, such as `object` and
+     * `boolean`, the server will skip dynamic facetable option setting, and
+     * setting
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return The enum numeric value on the wire for dynamicFacetableOption. + */ + @java.lang.Override public int getDynamicFacetableOptionValue() { + return dynamicFacetableOption_; + } + /** + *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is
+     * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+     * field values are available for dynamic facet. Could only be
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * if
+     * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+     * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+     *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is unset, the server behavior defaults to
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * for fields that support setting dynamic facetable options. For those fields
+     * that do not support setting dynamic facetable options, such as `object` and
+     * `boolean`, the server will skip dynamic facetable option setting, and
+     * setting
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @param value The enum numeric value on the wire for dynamicFacetableOption to set. + * @return This builder for chaining. + */ + public Builder setDynamicFacetableOptionValue(int value) { + dynamicFacetableOption_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is
+     * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+     * field values are available for dynamic facet. Could only be
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * if
+     * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+     * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+     *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is unset, the server behavior defaults to
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * for fields that support setting dynamic facetable options. For those fields
+     * that do not support setting dynamic facetable options, such as `object` and
+     * `boolean`, the server will skip dynamic facetable option setting, and
+     * setting
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return The dynamicFacetableOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption getDynamicFacetableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.forNumber(dynamicFacetableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.UNRECOGNIZED : result; + } + /** + *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is
+     * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+     * field values are available for dynamic facet. Could only be
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * if
+     * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+     * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+     *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is unset, the server behavior defaults to
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * for fields that support setting dynamic facetable options. For those fields
+     * that do not support setting dynamic facetable options, such as `object` and
+     * `boolean`, the server will skip dynamic facetable option setting, and
+     * setting
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @param value The dynamicFacetableOption to set. + * @return This builder for chaining. + */ + public Builder setDynamicFacetableOption(com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + dynamicFacetableOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is
+     * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+     * field values are available for dynamic facet. Could only be
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * if
+     * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+     * is
+     * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+     * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+     *
+     * If
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * is unset, the server behavior defaults to
+     * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+     * for fields that support setting dynamic facetable options. For those fields
+     * that do not support setting dynamic facetable options, such as `object` and
+     * `boolean`, the server will skip dynamic facetable option setting, and
+     * setting
+     * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return This builder for chaining. + */ + public Builder clearDynamicFacetableOption() { + bitField0_ = (bitField0_ & ~0x00000008); + dynamicFacetableOption_ = 0; + onChanged(); + return this; + } + + private int searchableOption_ = 0; + /** + *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+     * field values are searchable by text queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+     * but field type is numerical, field values will not be searchable by text
+     * queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+     * as there are no text values associated to numerical fields.
+     *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is unset, the server behavior defaults to
+     * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+     * for fields that support setting searchable options. Only `string` fields
+     * that have no key property mapping support setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+     *
+     * For those fields that do not support setting searchable options, the server
+     * will skip searchable option setting, and setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return The enum numeric value on the wire for searchableOption. + */ + @java.lang.Override public int getSearchableOptionValue() { + return searchableOption_; + } + /** + *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+     * field values are searchable by text queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+     * but field type is numerical, field values will not be searchable by text
+     * queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+     * as there are no text values associated to numerical fields.
+     *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is unset, the server behavior defaults to
+     * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+     * for fields that support setting searchable options. Only `string` fields
+     * that have no key property mapping support setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+     *
+     * For those fields that do not support setting searchable options, the server
+     * will skip searchable option setting, and setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @param value The enum numeric value on the wire for searchableOption to set. + * @return This builder for chaining. + */ + public Builder setSearchableOptionValue(int value) { + searchableOption_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+     * field values are searchable by text queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+     * but field type is numerical, field values will not be searchable by text
+     * queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+     * as there are no text values associated to numerical fields.
+     *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is unset, the server behavior defaults to
+     * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+     * for fields that support setting searchable options. Only `string` fields
+     * that have no key property mapping support setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+     *
+     * For those fields that do not support setting searchable options, the server
+     * will skip searchable option setting, and setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return The searchableOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption getSearchableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.forNumber(searchableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.UNRECOGNIZED : result; + } + /** + *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+     * field values are searchable by text queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+     * but field type is numerical, field values will not be searchable by text
+     * queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+     * as there are no text values associated to numerical fields.
+     *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is unset, the server behavior defaults to
+     * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+     * for fields that support setting searchable options. Only `string` fields
+     * that have no key property mapping support setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+     *
+     * For those fields that do not support setting searchable options, the server
+     * will skip searchable option setting, and setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @param value The searchableOption to set. + * @return This builder for chaining. + */ + public Builder setSearchableOption(com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + searchableOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+     * field values are searchable by text queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * If
+     * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+     * but field type is numerical, field values will not be searchable by text
+     * queries in
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+     * as there are no text values associated to numerical fields.
+     *
+     * If
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * is unset, the server behavior defaults to
+     * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+     * for fields that support setting searchable options. Only `string` fields
+     * that have no key property mapping support setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+     *
+     * For those fields that do not support setting searchable options, the server
+     * will skip searchable option setting, and setting
+     * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return This builder for chaining. + */ + public Builder clearSearchableOption() { + bitField0_ = (bitField0_ & ~0x00000010); + searchableOption_ = 0; + onChanged(); + return this; + } + + private int retrievableOption_ = 0; + /** + *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is
+     * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+     * field values are included in the search results.
+     *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is unset, the server behavior defaults to
+     * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+     * for fields that support setting retrievable options. For those fields
+     * that do not support setting retrievable options, such as `object` and
+     * `boolean`, the server will skip retrievable option setting, and setting
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return The enum numeric value on the wire for retrievableOption. + */ + @java.lang.Override public int getRetrievableOptionValue() { + return retrievableOption_; + } + /** + *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is
+     * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+     * field values are included in the search results.
+     *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is unset, the server behavior defaults to
+     * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+     * for fields that support setting retrievable options. For those fields
+     * that do not support setting retrievable options, such as `object` and
+     * `boolean`, the server will skip retrievable option setting, and setting
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @param value The enum numeric value on the wire for retrievableOption to set. + * @return This builder for chaining. + */ + public Builder setRetrievableOptionValue(int value) { + retrievableOption_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is
+     * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+     * field values are included in the search results.
+     *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is unset, the server behavior defaults to
+     * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+     * for fields that support setting retrievable options. For those fields
+     * that do not support setting retrievable options, such as `object` and
+     * `boolean`, the server will skip retrievable option setting, and setting
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return The retrievableOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption getRetrievableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.forNumber(retrievableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.UNRECOGNIZED : result; + } + /** + *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is
+     * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+     * field values are included in the search results.
+     *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is unset, the server behavior defaults to
+     * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+     * for fields that support setting retrievable options. For those fields
+     * that do not support setting retrievable options, such as `object` and
+     * `boolean`, the server will skip retrievable option setting, and setting
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @param value The retrievableOption to set. + * @return This builder for chaining. + */ + public Builder setRetrievableOption(com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + retrievableOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is
+     * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+     * field values are included in the search results.
+     *
+     * If
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * is unset, the server behavior defaults to
+     * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+     * for fields that support setting retrievable options. For those fields
+     * that do not support setting retrievable options, such as `object` and
+     * `boolean`, the server will skip retrievable option setting, and setting
+     * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return This builder for chaining. + */ + public Builder clearRetrievableOption() { + bitField0_ = (bitField0_ & ~0x00000020); + retrievableOption_ = 0; + onChanged(); + return this; + } + + private int completableOption_ = 0; + /** + *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is
+     * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+     * field values are directly used and returned as suggestions for Autocomplete
+     * in
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+     *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is unset, the server behavior defaults to
+     * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+     * for fields that support setting completable options, which are just
+     * `string` fields. For those fields that do not support setting completable
+     * options, the server will skip completable option setting, and setting
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return The enum numeric value on the wire for completableOption. + */ + @java.lang.Override public int getCompletableOptionValue() { + return completableOption_; + } + /** + *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is
+     * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+     * field values are directly used and returned as suggestions for Autocomplete
+     * in
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+     *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is unset, the server behavior defaults to
+     * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+     * for fields that support setting completable options, which are just
+     * `string` fields. For those fields that do not support setting completable
+     * options, the server will skip completable option setting, and setting
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @param value The enum numeric value on the wire for completableOption to set. + * @return This builder for chaining. + */ + public Builder setCompletableOptionValue(int value) { + completableOption_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is
+     * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+     * field values are directly used and returned as suggestions for Autocomplete
+     * in
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+     *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is unset, the server behavior defaults to
+     * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+     * for fields that support setting completable options, which are just
+     * `string` fields. For those fields that do not support setting completable
+     * options, the server will skip completable option setting, and setting
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return The completableOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption getCompletableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.forNumber(completableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.UNRECOGNIZED : result; + } + /** + *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is
+     * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+     * field values are directly used and returned as suggestions for Autocomplete
+     * in
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+     *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is unset, the server behavior defaults to
+     * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+     * for fields that support setting completable options, which are just
+     * `string` fields. For those fields that do not support setting completable
+     * options, the server will skip completable option setting, and setting
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @param value The completableOption to set. + * @return This builder for chaining. + */ + public Builder setCompletableOption(com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + completableOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is
+     * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+     * field values are directly used and returned as suggestions for Autocomplete
+     * in
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+     *
+     * If
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * is unset, the server behavior defaults to
+     * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+     * for fields that support setting completable options, which are just
+     * `string` fields. For those fields that do not support setting completable
+     * options, the server will skip completable option setting, and setting
+     * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+     * for those fields will throw `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return This builder for chaining. + */ + public Builder clearCompletableOption() { + bitField0_ = (bitField0_ & ~0x00000040); + completableOption_ = 0; + onChanged(); + return this; + } + + private int recsFilterableOption_ = 0; + /** + *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+     * field values are filterable by filter expression in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     *
+     * If
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+     * but the field type is numerical, field values are not filterable by text
+     * queries in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * Only textual fields are supported.
+     *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is unset, the default setting is
+     * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+     * for fields that support setting filterable options.
+     *
+     * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+     * generated and an empty result is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return The enum numeric value on the wire for recsFilterableOption. + */ + @java.lang.Override public int getRecsFilterableOptionValue() { + return recsFilterableOption_; + } + /** + *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+     * field values are filterable by filter expression in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     *
+     * If
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+     * but the field type is numerical, field values are not filterable by text
+     * queries in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * Only textual fields are supported.
+     *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is unset, the default setting is
+     * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+     * for fields that support setting filterable options.
+     *
+     * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+     * generated and an empty result is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @param value The enum numeric value on the wire for recsFilterableOption to set. + * @return This builder for chaining. + */ + public Builder setRecsFilterableOptionValue(int value) { + recsFilterableOption_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+     * field values are filterable by filter expression in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     *
+     * If
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+     * but the field type is numerical, field values are not filterable by text
+     * queries in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * Only textual fields are supported.
+     *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is unset, the default setting is
+     * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+     * for fields that support setting filterable options.
+     *
+     * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+     * generated and an empty result is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return The recsFilterableOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption getRecsFilterableOption() { + com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption result = com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.forNumber(recsFilterableOption_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.UNRECOGNIZED : result; + } + /** + *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+     * field values are filterable by filter expression in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     *
+     * If
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+     * but the field type is numerical, field values are not filterable by text
+     * queries in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * Only textual fields are supported.
+     *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is unset, the default setting is
+     * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+     * for fields that support setting filterable options.
+     *
+     * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+     * generated and an empty result is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @param value The recsFilterableOption to set. + * @return This builder for chaining. + */ + public Builder setRecsFilterableOption(com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + recsFilterableOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+     * field values are filterable by filter expression in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     *
+     * If
+     * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+     * but the field type is numerical, field values are not filterable by text
+     * queries in
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * Only textual fields are supported.
+     *
+     * If
+     * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+     * is unset, the default setting is
+     * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+     * for fields that support setting filterable options.
+     *
+     * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+     * generated and an empty result is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return This builder for chaining. + */ + public Builder clearRecsFilterableOption() { + bitField0_ = (bitField0_ & ~0x00000080); + recsFilterableOption_ = 0; + onChanged(); + return this; + } + + private java.lang.Object keyPropertyType_ = ""; + /** + *
+     * Output only. Type of the key property that this field is mapped to. Empty
+     * string if this is not annotated as mapped to a key property.
+     *
+     * Example types are `title`, `description`. Full list is defined
+     * by `keyPropertyMapping` in the schema field annotation.
+     *
+     * If the schema field has a `KeyPropertyMapping` annotation,
+     * `indexable_option` and `searchable_option` of this field cannot be
+     * modified.
+     * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The keyPropertyType. + */ + public java.lang.String getKeyPropertyType() { + java.lang.Object ref = keyPropertyType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyPropertyType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Type of the key property that this field is mapped to. Empty
+     * string if this is not annotated as mapped to a key property.
+     *
+     * Example types are `title`, `description`. Full list is defined
+     * by `keyPropertyMapping` in the schema field annotation.
+     *
+     * If the schema field has a `KeyPropertyMapping` annotation,
+     * `indexable_option` and `searchable_option` of this field cannot be
+     * modified.
+     * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for keyPropertyType. + */ + public com.google.protobuf.ByteString + getKeyPropertyTypeBytes() { + java.lang.Object ref = keyPropertyType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyPropertyType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Type of the key property that this field is mapped to. Empty
+     * string if this is not annotated as mapped to a key property.
+     *
+     * Example types are `title`, `description`. Full list is defined
+     * by `keyPropertyMapping` in the schema field annotation.
+     *
+     * If the schema field has a `KeyPropertyMapping` annotation,
+     * `indexable_option` and `searchable_option` of this field cannot be
+     * modified.
+     * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The keyPropertyType to set. + * @return This builder for chaining. + */ + public Builder setKeyPropertyType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + keyPropertyType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Type of the key property that this field is mapped to. Empty
+     * string if this is not annotated as mapped to a key property.
+     *
+     * Example types are `title`, `description`. Full list is defined
+     * by `keyPropertyMapping` in the schema field annotation.
+     *
+     * If the schema field has a `KeyPropertyMapping` annotation,
+     * `indexable_option` and `searchable_option` of this field cannot be
+     * modified.
+     * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearKeyPropertyType() { + keyPropertyType_ = getDefaultInstance().getKeyPropertyType(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * Output only. Type of the key property that this field is mapped to. Empty
+     * string if this is not annotated as mapped to a key property.
+     *
+     * Example types are `title`, `description`. Full list is defined
+     * by `keyPropertyMapping` in the schema field annotation.
+     *
+     * If the schema field has a `KeyPropertyMapping` annotation,
+     * `indexable_option` and `searchable_option` of this field cannot be
+     * modified.
+     * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for keyPropertyType to set. + * @return This builder for chaining. + */ + public Builder setKeyPropertyTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + keyPropertyType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.FieldConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.FieldConfig) + private static final com.google.cloud.discoveryengine.v1alpha.FieldConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.FieldConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.FieldConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfigOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfigOrBuilder.java new file mode 100644 index 000000000000..4b1ddf8c2ed2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfigOrBuilder.java @@ -0,0 +1,428 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface FieldConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.FieldConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Field path of the schema field.
+   * For example: `title`, `description`, `release_info.release_year`.
+   * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + *
+   * Required. Field path of the schema field.
+   * For example: `title`, `description`, `release_info.release_year`.
+   * 
+ * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString + getFieldPathBytes(); + + /** + *
+   * Output only. Raw type of the field.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for fieldType. + */ + int getFieldTypeValue(); + /** + *
+   * Output only. Raw type of the field.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType field_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The fieldType. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType getFieldType(); + + /** + *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+   * field values are indexed so that it can be filtered or faceted in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is unset, the server behavior defaults to
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+   * for fields that support setting indexable options. For those fields that do
+   * not support setting indexable options, such as `object` and `boolean` and
+   * key properties, the server will skip
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * setting, and setting
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return The enum numeric value on the wire for indexableOption. + */ + int getIndexableOptionValue(); + /** + *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED],
+   * field values are indexed so that it can be filtered or faceted in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is unset, the server behavior defaults to
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]
+   * for fields that support setting indexable options. For those fields that do
+   * not support setting indexable options, such as `object` and `boolean` and
+   * key properties, the server will skip
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * setting, and setting
+   * [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption indexable_option = 3; + * @return The indexableOption. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption getIndexableOption(); + + /** + *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is
+   * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+   * field values are available for dynamic facet. Could only be
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * if
+   * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+   * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+   *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is unset, the server behavior defaults to
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * for fields that support setting dynamic facetable options. For those fields
+   * that do not support setting dynamic facetable options, such as `object` and
+   * `boolean`, the server will skip dynamic facetable option setting, and
+   * setting
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return The enum numeric value on the wire for dynamicFacetableOption. + */ + int getDynamicFacetableOptionValue(); + /** + *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is
+   * [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED],
+   * field values are available for dynamic facet. Could only be
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * if
+   * [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option]
+   * is
+   * [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED].
+   * Otherwise, an `INVALID_ARGUMENT` error will be returned.
+   *
+   * If
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * is unset, the server behavior defaults to
+   * [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED]
+   * for fields that support setting dynamic facetable options. For those fields
+   * that do not support setting dynamic facetable options, such as `object` and
+   * `boolean`, the server will skip dynamic facetable option setting, and
+   * setting
+   * [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption dynamic_facetable_option = 4; + * @return The dynamicFacetableOption. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption getDynamicFacetableOption(); + + /** + *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+   * field values are searchable by text queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+   * but field type is numerical, field values will not be searchable by text
+   * queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+   * as there are no text values associated to numerical fields.
+   *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is unset, the server behavior defaults to
+   * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+   * for fields that support setting searchable options. Only `string` fields
+   * that have no key property mapping support setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+   *
+   * For those fields that do not support setting searchable options, the server
+   * will skip searchable option setting, and setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return The enum numeric value on the wire for searchableOption. + */ + int getSearchableOptionValue(); + /** + *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED],
+   * field values are searchable by text queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * If
+   * [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED]
+   * but field type is numerical, field values will not be searchable by text
+   * queries in
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search],
+   * as there are no text values associated to numerical fields.
+   *
+   * If
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * is unset, the server behavior defaults to
+   * [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED]
+   * for fields that support setting searchable options. Only `string` fields
+   * that have no key property mapping support setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option].
+   *
+   * For those fields that do not support setting searchable options, the server
+   * will skip searchable option setting, and setting
+   * [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption searchable_option = 5; + * @return The searchableOption. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption getSearchableOption(); + + /** + *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is
+   * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+   * field values are included in the search results.
+   *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is unset, the server behavior defaults to
+   * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+   * for fields that support setting retrievable options. For those fields
+   * that do not support setting retrievable options, such as `object` and
+   * `boolean`, the server will skip retrievable option setting, and setting
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return The enum numeric value on the wire for retrievableOption. + */ + int getRetrievableOptionValue(); + /** + *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is
+   * [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED],
+   * field values are included in the search results.
+   *
+   * If
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * is unset, the server behavior defaults to
+   * [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED]
+   * for fields that support setting retrievable options. For those fields
+   * that do not support setting retrievable options, such as `object` and
+   * `boolean`, the server will skip retrievable option setting, and setting
+   * [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption retrievable_option = 6; + * @return The retrievableOption. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption getRetrievableOption(); + + /** + *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is
+   * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+   * field values are directly used and returned as suggestions for Autocomplete
+   * in
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+   *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is unset, the server behavior defaults to
+   * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+   * for fields that support setting completable options, which are just
+   * `string` fields. For those fields that do not support setting completable
+   * options, the server will skip completable option setting, and setting
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return The enum numeric value on the wire for completableOption. + */ + int getCompletableOptionValue(); + /** + *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is
+   * [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED],
+   * field values are directly used and returned as suggestions for Autocomplete
+   * in
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery].
+   *
+   * If
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * is unset, the server behavior defaults to
+   * [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED]
+   * for fields that support setting completable options, which are just
+   * `string` fields. For those fields that do not support setting completable
+   * options, the server will skip completable option setting, and setting
+   * [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option]
+   * for those fields will throw `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption completable_option = 8; + * @return The completableOption. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption getCompletableOption(); + + /** + *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+   * field values are filterable by filter expression in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   *
+   * If
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+   * but the field type is numerical, field values are not filterable by text
+   * queries in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * Only textual fields are supported.
+   *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is unset, the default setting is
+   * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+   * for fields that support setting filterable options.
+   *
+   * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+   * generated and an empty result is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return The enum numeric value on the wire for recsFilterableOption. + */ + int getRecsFilterableOptionValue(); + /** + *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED],
+   * field values are filterable by filter expression in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   *
+   * If
+   * [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED]
+   * but the field type is numerical, field values are not filterable by text
+   * queries in
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * Only textual fields are supported.
+   *
+   * If
+   * [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option]
+   * is unset, the default setting is
+   * [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED]
+   * for fields that support setting filterable options.
+   *
+   * When a field set to [FILTERABLE_DISABLED] is filtered, a warning is
+   * generated and an empty result is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption recs_filterable_option = 9; + * @return The recsFilterableOption. + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption getRecsFilterableOption(); + + /** + *
+   * Output only. Type of the key property that this field is mapped to. Empty
+   * string if this is not annotated as mapped to a key property.
+   *
+   * Example types are `title`, `description`. Full list is defined
+   * by `keyPropertyMapping` in the schema field annotation.
+   *
+   * If the schema field has a `KeyPropertyMapping` annotation,
+   * `indexable_option` and `searchable_option` of this field cannot be
+   * modified.
+   * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The keyPropertyType. + */ + java.lang.String getKeyPropertyType(); + /** + *
+   * Output only. Type of the key property that this field is mapped to. Empty
+   * string if this is not annotated as mapped to a key property.
+   *
+   * Example types are `title`, `description`. Full list is defined
+   * by `keyPropertyMapping` in the schema field annotation.
+   *
+   * If the schema field has a `KeyPropertyMapping` annotation,
+   * `indexable_option` and `searchable_option` of this field cannot be
+   * modified.
+   * 
+ * + * string key_property_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for keyPropertyType. + */ + com.google.protobuf.ByteString + getKeyPropertyTypeBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSource.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSource.java new file mode 100644 index 000000000000..f59a4df0691b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSource.java @@ -0,0 +1,1070 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Cloud Storage location for input content.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GcsSource} + */ +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GcsSource) + GcsSourceOrBuilder { +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.emptyList(); + dataSchema_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcsSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GcsSource.class, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder.class); + } + + public static final int INPUT_URIS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the inputUris. + */ + public com.google.protobuf.ProtocolStringList + getInputUrisList() { + return inputUris_; + } + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of inputUris. + */ + public int getInputUrisCount() { + return inputUris_.size(); + } + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * 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. + */ + public java.lang.String getInputUris(int index) { + return inputUris_.get(index); + } + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * 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) { + return inputUris_.getByteString(index); + } + + public static final int DATA_SCHEMA_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object dataSchema_ = ""; + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One JSON
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+   * document must
+   *   have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+   * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+   *   `input_uris` becomes a document, with the ID set to the first 128
+   *   bits of SHA256(URI) encoded as a hex string.
+   * * `custom`: One custom data JSON per row in arbitrary format that conforms
+   *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+   *   the data store. This can only be used by Gen App Builder.
+   * * `csv`: A CSV file with header conforming to the defined
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. Each entry after the header is imported as a Document.
+   *   This can only be used by Gen App Builder.
+   *
+   * Supported values for user even imports:
+   *
+   * * `user_event` (default): One JSON
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+   * 
+ * + * string data_schema = 2; + * @return The dataSchema. + */ + @java.lang.Override + public java.lang.String getDataSchema() { + java.lang.Object ref = dataSchema_; + 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(); + dataSchema_ = s; + return s; + } + } + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One JSON
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+   * document must
+   *   have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+   * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+   *   `input_uris` becomes a document, with the ID set to the first 128
+   *   bits of SHA256(URI) encoded as a hex string.
+   * * `custom`: One custom data JSON per row in arbitrary format that conforms
+   *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+   *   the data store. This can only be used by Gen App Builder.
+   * * `csv`: A CSV file with header conforming to the defined
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. Each entry after the header is imported as a Document.
+   *   This can only be used by Gen App Builder.
+   *
+   * Supported values for user even imports:
+   *
+   * * `user_event` (default): One JSON
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+   * 
+ * + * string data_schema = 2; + * @return The bytes for dataSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDataSchemaBytes() { + java.lang.Object ref = dataSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < inputUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataSchema_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < inputUris_.size(); i++) { + dataSize += computeStringSizeNoTag(inputUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getInputUrisList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataSchema_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GcsSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GcsSource other = (com.google.cloud.discoveryengine.v1alpha.GcsSource) obj; + + if (!getInputUrisList() + .equals(other.getInputUrisList())) return false; + if (!getDataSchema() + .equals(other.getDataSchema())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInputUrisCount() > 0) { + hash = (37 * hash) + INPUT_URIS_FIELD_NUMBER; + hash = (53 * hash) + getInputUrisList().hashCode(); + } + hash = (37 * hash) + DATA_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getDataSchema().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GcsSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GcsSource 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.discoveryengine.v1alpha.GcsSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.GcsSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GcsSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GcsSource 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.discoveryengine.v1alpha.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GcsSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GcsSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.GcsSource 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; + } + /** + *
+   * Cloud Storage location for input content.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GcsSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GcsSource) + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GcsSource.class, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + dataSchema_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource build() { + com.google.cloud.discoveryengine.v1alpha.GcsSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GcsSource result = new com.google.cloud.discoveryengine.v1alpha.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.GcsSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + inputUris_.makeImmutable(); + result.inputUris_ = inputUris_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataSchema_ = dataSchema_; + } + } + + @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.discoveryengine.v1alpha.GcsSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GcsSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GcsSource other) { + if (other == com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) return this; + if (!other.inputUris_.isEmpty()) { + if (inputUris_.isEmpty()) { + inputUris_ = other.inputUris_; + bitField0_ |= 0x00000001; + } else { + ensureInputUrisIsMutable(); + inputUris_.addAll(other.inputUris_); + } + onChanged(); + } + if (!other.getDataSchema().isEmpty()) { + dataSchema_ = other.dataSchema_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputUrisIsMutable(); + inputUris_.add(s); + break; + } // case 10 + case 18: { + dataSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInputUrisIsMutable() { + if (!inputUris_.isModifiable()) { + inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the inputUris. + */ + public com.google.protobuf.ProtocolStringList + getInputUrisList() { + inputUris_.makeImmutable(); + return inputUris_; + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of inputUris. + */ + public int getInputUrisCount() { + return inputUris_.size(); + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * 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. + */ + public java.lang.String getInputUris(int index) { + return inputUris_.get(index); + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * 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) { + return inputUris_.getByteString(index); + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + ensureInputUrisIsMutable(); + inputUris_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + ensureInputUrisIsMutable(); + inputUris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * 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) { + ensureInputUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputUris_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearInputUris() { + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * Required. Cloud Storage URIs to input files. URI can be up to
+     * 2000 characters long. URIs can match the full object path (for example,
+     * `gs://bucket/directory/object.json`) or a pattern matching one or more
+     * files, such as `gs://bucket/directory/*.json`.
+     *
+     * A request can contain at most 100 files (or 100,000 files if `data_schema`
+     * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+     * `content`).
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureInputUrisIsMutable(); + inputUris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dataSchema_ = ""; + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One JSON
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+     * document must
+     *   have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+     *   `input_uris` becomes a document, with the ID set to the first 128
+     *   bits of SHA256(URI) encoded as a hex string.
+     * * `custom`: One custom data JSON per row in arbitrary format that conforms
+     *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+     *   the data store. This can only be used by Gen App Builder.
+     * * `csv`: A CSV file with header conforming to the defined
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. Each entry after the header is imported as a Document.
+     *   This can only be used by Gen App Builder.
+     *
+     * Supported values for user even imports:
+     *
+     * * `user_event` (default): One JSON
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+     * 
+ * + * string data_schema = 2; + * @return The dataSchema. + */ + public java.lang.String getDataSchema() { + java.lang.Object ref = dataSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One JSON
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+     * document must
+     *   have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+     *   `input_uris` becomes a document, with the ID set to the first 128
+     *   bits of SHA256(URI) encoded as a hex string.
+     * * `custom`: One custom data JSON per row in arbitrary format that conforms
+     *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+     *   the data store. This can only be used by Gen App Builder.
+     * * `csv`: A CSV file with header conforming to the defined
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. Each entry after the header is imported as a Document.
+     *   This can only be used by Gen App Builder.
+     *
+     * Supported values for user even imports:
+     *
+     * * `user_event` (default): One JSON
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+     * 
+ * + * string data_schema = 2; + * @return The bytes for dataSchema. + */ + public com.google.protobuf.ByteString + getDataSchemaBytes() { + java.lang.Object ref = dataSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One JSON
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+     * document must
+     *   have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+     *   `input_uris` becomes a document, with the ID set to the first 128
+     *   bits of SHA256(URI) encoded as a hex string.
+     * * `custom`: One custom data JSON per row in arbitrary format that conforms
+     *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+     *   the data store. This can only be used by Gen App Builder.
+     * * `csv`: A CSV file with header conforming to the defined
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. Each entry after the header is imported as a Document.
+     *   This can only be used by Gen App Builder.
+     *
+     * Supported values for user even imports:
+     *
+     * * `user_event` (default): One JSON
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+     * 
+ * + * string data_schema = 2; + * @param value The dataSchema to set. + * @return This builder for chaining. + */ + public Builder setDataSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dataSchema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One JSON
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+     * document must
+     *   have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+     *   `input_uris` becomes a document, with the ID set to the first 128
+     *   bits of SHA256(URI) encoded as a hex string.
+     * * `custom`: One custom data JSON per row in arbitrary format that conforms
+     *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+     *   the data store. This can only be used by Gen App Builder.
+     * * `csv`: A CSV file with header conforming to the defined
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. Each entry after the header is imported as a Document.
+     *   This can only be used by Gen App Builder.
+     *
+     * Supported values for user even imports:
+     *
+     * * `user_event` (default): One JSON
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+     * 
+ * + * string data_schema = 2; + * @return This builder for chaining. + */ + public Builder clearDataSchema() { + dataSchema_ = getDefaultInstance().getDataSchema(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The schema to use when parsing the data from the source.
+     *
+     * Supported values for document imports:
+     *
+     * * `document` (default): One JSON
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+     * document must
+     *   have a valid
+     *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+     *   `input_uris` becomes a document, with the ID set to the first 128
+     *   bits of SHA256(URI) encoded as a hex string.
+     * * `custom`: One custom data JSON per row in arbitrary format that conforms
+     *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+     *   the data store. This can only be used by Gen App Builder.
+     * * `csv`: A CSV file with header conforming to the defined
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+     *   data store. Each entry after the header is imported as a Document.
+     *   This can only be used by Gen App Builder.
+     *
+     * Supported values for user even imports:
+     *
+     * * `user_event` (default): One JSON
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+     * 
+ * + * string data_schema = 2; + * @param value The bytes for dataSchema to set. + * @return This builder for chaining. + */ + public Builder setDataSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dataSchema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GcsSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GcsSource) + private static final com.google.cloud.discoveryengine.v1alpha.GcsSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GcsSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GcsSource getDefaultInstance() { + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSourceOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSourceOrBuilder.java new file mode 100644 index 000000000000..c5e621c77d7d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GcsSourceOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface GcsSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GcsSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the inputUris. + */ + java.util.List + getInputUrisList(); + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of inputUris. + */ + int getInputUrisCount(); + /** + *
+   * Required. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * 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. Cloud Storage URIs to input files. URI can be up to
+   * 2000 characters long. URIs can match the full object path (for example,
+   * `gs://bucket/directory/object.json`) or a pattern matching one or more
+   * files, such as `gs://bucket/directory/*.json`.
+   *
+   * A request can contain at most 100 files (or 100,000 files if `data_schema`
+   * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
+   * `content`).
+   * 
+ * + * 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); + + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One JSON
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+   * document must
+   *   have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+   * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+   *   `input_uris` becomes a document, with the ID set to the first 128
+   *   bits of SHA256(URI) encoded as a hex string.
+   * * `custom`: One custom data JSON per row in arbitrary format that conforms
+   *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+   *   the data store. This can only be used by Gen App Builder.
+   * * `csv`: A CSV file with header conforming to the defined
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. Each entry after the header is imported as a Document.
+   *   This can only be used by Gen App Builder.
+   *
+   * Supported values for user even imports:
+   *
+   * * `user_event` (default): One JSON
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+   * 
+ * + * string data_schema = 2; + * @return The dataSchema. + */ + java.lang.String getDataSchema(); + /** + *
+   * The schema to use when parsing the data from the source.
+   *
+   * Supported values for document imports:
+   *
+   * * `document` (default): One JSON
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each
+   * document must
+   *   have a valid
+   *   [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+   * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
+   *   `input_uris` becomes a document, with the ID set to the first 128
+   *   bits of SHA256(URI) encoded as a hex string.
+   * * `custom`: One custom data JSON per row in arbitrary format that conforms
+   *   to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of
+   *   the data store. This can only be used by Gen App Builder.
+   * * `csv`: A CSV file with header conforming to the defined
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the
+   *   data store. Each entry after the header is imported as a Document.
+   *   This can only be used by Gen App Builder.
+   *
+   * Supported values for user even imports:
+   *
+   * * `user_event` (default): One JSON
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
+   * 
+ * + * string data_schema = 2; + * @return The bytes for dataSchema. + */ + com.google.protobuf.ByteString + getDataSchemaBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequest.java new file mode 100644 index 000000000000..ddc5b7ea9421 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequest.java @@ -0,0 +1,584 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request for GetConversation method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetConversationRequest} + */ +public final class GetConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetConversationRequest) + GetConversationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetConversationRequest.newBuilder() to construct. + private GetConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetConversationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetConversationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GetConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest other = (com.google.cloud.discoveryengine.v1alpha.GetConversationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest 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.discoveryengine.v1alpha.GetConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest 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.discoveryengine.v1alpha.GetConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest 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.discoveryengine.v1alpha.GetConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for GetConversation method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetConversationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetConversationRequest) + com.google.cloud.discoveryengine.v1alpha.GetConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetConversationRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetConversationRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetConversationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetConversationRequest result = new com.google.cloud.discoveryengine.v1alpha.GetConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.GetConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.GetConversationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetConversationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.GetConversationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Conversation to get. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GetConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetConversationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetConversationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetConversationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequestOrBuilder.java new file mode 100644 index 000000000000..01451a538bc4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetConversationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequest.java new file mode 100644 index 000000000000..6ab01f46f2d0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequest.java @@ -0,0 +1,644 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetDocumentRequest} + */ +public final class GetDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetDocumentRequest) + GetDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetDocumentRequest.newBuilder() to construct. + private GetDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDocumentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetDocumentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to access the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to access the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest other = (com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest 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.discoveryengine.v1alpha.GetDocumentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest 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.discoveryengine.v1alpha.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest 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.discoveryengine.v1alpha.GetDocumentRequest 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
+   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetDocumentRequest) + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest result = new com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to access the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to access the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to access the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to access the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+     *
+     * If the caller does not have permission to access the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * does not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GetDocumentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetDocumentRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequestOrBuilder.java new file mode 100644 index 000000000000..923c94c7a77d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentRequestOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to access the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Full resource name of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
+   *
+   * If the caller does not have permission to access the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * does not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequest.java new file mode 100644 index 000000000000..5a435f1f5dee --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequest.java @@ -0,0 +1,588 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetSchemaRequest} + */ +public final class GetSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetSchemaRequest) + GetSchemaRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSchemaRequest.newBuilder() to construct. + private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest other = (com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest 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.discoveryengine.v1alpha.GetSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest 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.discoveryengine.v1alpha.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest 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.discoveryengine.v1alpha.GetSchemaRequest 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
+   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetSchemaRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetSchemaRequest) + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest result = new com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.GetSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetSchemaRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..1e42cd362f90 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java new file mode 100644 index 000000000000..0ae2ef435684 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java @@ -0,0 +1,249 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class ImportConfigProto { + private ImportConfigProto() {} + 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_discoveryengine_v1alpha_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1alpha/i" + + "mport_config.proto\022$google.cloud.discove" + + "ryengine.v1alpha\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\0323go" + + "ogle/cloud/discoveryengine/v1alpha/docum" + + "ent.proto\0325google/cloud/discoveryengine/" + + "v1alpha/user_event.proto\032\037google/protobu" + + "f/timestamp.proto\032\027google/rpc/status.pro" + + "to\032\026google/type/date.proto\":\n\tGcsSource\022" + + "\030\n\ninput_uris\030\001 \003(\tB\004\342A\001\002\022\023\n\013data_schema" + + "\030\002 \001(\t\"\276\001\n\016BigQuerySource\022+\n\016partition_d" + + "ate\030\005 \001(\0132\021.google.type.DateH\000\022\022\n\nprojec" + + "t_id\030\001 \001(\t\022\030\n\ndataset_id\030\002 \001(\tB\004\342A\001\002\022\026\n\010" + + "table_id\030\003 \001(\tB\004\342A\001\002\022\027\n\017gcs_staging_dir\030" + + "\004 \001(\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpartition\"" + + "8\n\021ImportErrorConfig\022\024\n\ngcs_prefix\030\001 \001(\t" + + "H\000B\r\n\013destination\"\216\004\n\027ImportUserEventsRe" + + "quest\022c\n\rinline_source\030\002 \001(\0132J.google.cl" + + "oud.discoveryengine.v1alpha.ImportUserEv" + + "entsRequest.InlineSourceH\000\022E\n\ngcs_source" + + "\030\003 \001(\0132/.google.cloud.discoveryengine.v1" + + "alpha.GcsSourceH\000\022O\n\017bigquery_source\030\004 \001" + + "(\01324.google.cloud.discoveryengine.v1alph" + + "a.BigQuerySourceH\000\022A\n\006parent\030\001 \001(\tB1\342A\001\002" + + "\372A*\n(discoveryengine.googleapis.com/Data" + + "Store\022M\n\014error_config\030\005 \001(\01327.google.clo" + + "ud.discoveryengine.v1alpha.ImportErrorCo" + + "nfig\032Z\n\014InlineSource\022J\n\013user_events\030\001 \003(" + + "\0132/.google.cloud.discoveryengine.v1alpha" + + ".UserEventB\004\342A\001\002B\010\n\006source\"\320\001\n\030ImportUse" + + "rEventsResponse\022)\n\rerror_samples\030\001 \003(\0132\022" + + ".google.rpc.Status\022M\n\014error_config\030\002 \001(\013" + + "27.google.cloud.discoveryengine.v1alpha." + + "ImportErrorConfig\022\033\n\023joined_events_count" + + "\030\003 \001(\003\022\035\n\025unjoined_events_count\030\004 \001(\003\"\252\001" + + "\n\030ImportUserEventsMetadata\022/\n\013create_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_c" + + "ount\030\004 \001(\003\"\251\001\n\027ImportDocumentsMetadata\022/" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022" + + "\025\n\rfailure_count\030\004 \001(\003\"\367\005\n\026ImportDocumen" + + "tsRequest\022b\n\rinline_source\030\002 \001(\0132I.googl" + + "e.cloud.discoveryengine.v1alpha.ImportDo" + + "cumentsRequest.InlineSourceH\000\022E\n\ngcs_sou" + + "rce\030\003 \001(\0132/.google.cloud.discoveryengine" + + ".v1alpha.GcsSourceH\000\022O\n\017bigquery_source\030" + + "\004 \001(\01324.google.cloud.discoveryengine.v1a" + + "lpha.BigQuerySourceH\000\022>\n\006parent\030\001 \001(\tB.\342" + + "A\001\002\372A\'\n%discoveryengine.googleapis.com/B" + + "ranch\022M\n\014error_config\030\005 \001(\01327.google.clo" + + "ud.discoveryengine.v1alpha.ImportErrorCo" + + "nfig\022l\n\023reconciliation_mode\030\006 \001(\0162O.goog" + + "le.cloud.discoveryengine.v1alpha.ImportD" + + "ocumentsRequest.ReconciliationMode\022\031\n\021au" + + "to_generate_ids\030\010 \001(\010\022\020\n\010id_field\030\t \001(\t\032" + + "W\n\014InlineSource\022G\n\tdocuments\030\001 \003(\0132..goo" + + "gle.cloud.discoveryengine.v1alpha.Docume" + + "ntB\004\342A\001\002\"T\n\022ReconciliationMode\022#\n\037RECONC" + + "ILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013INCREMENT" + + "AL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"\223\001\n\027ImportDocum" + + "entsResponse\022)\n\rerror_samples\030\001 \003(\0132\022.go" + + "ogle.rpc.Status\022M\n\014error_config\030\002 \001(\01327." + + "google.cloud.discoveryengine.v1alpha.Imp" + + "ortErrorConfigB\235\002\n(com.google.cloud.disc" + + "overyengine.v1alphaB\021ImportConfigProtoP\001" + + "ZRcloud.google.com/go/discoveryengine/ap" + + "iv1alpha/discoveryenginepb;discoveryengi" + + "nepb\242\002\017DISCOVERYENGINE\252\002$Google.Cloud.Di" + + "scoveryEngine.V1Alpha\312\002$Google\\Cloud\\Dis" + + "coveryEngine\\V1alpha\352\002\'Google::Cloud::Di" + + "scoveryEngine::V1alphab\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.discoveryengine.v1alpha.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GcsSource_descriptor, + new java.lang.String[] { "InputUris", "DataSchema", }); + internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_BigQuerySource_descriptor, + new java.lang.String[] { "PartitionDate", "ProjectId", "DatasetId", "TableId", "GcsStagingDir", "DataSchema", "Partition", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_descriptor, + new java.lang.String[] { "GcsPrefix", "Destination", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor, + new java.lang.String[] { "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_descriptor, + new java.lang.String[] { "UserEvents", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorConfig", "JoinedEventsCount", "UnjoinedEventsCount", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor, + new java.lang.String[] { "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "ReconciliationMode", "AutoGenerateIds", "IdField", "Source", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_descriptor, + new java.lang.String[] { "Documents", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorConfig", }); + 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.discoveryengine.v1alpha.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadata.java new file mode 100644 index 000000000000..e4b8e3d228c7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadata.java @@ -0,0 +1,1051 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata related to the progress of the ImportDocuments operation. This is
+ * returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata} + */ +public final class ImportDocumentsMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata) + ImportDocumentsMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use ImportDocumentsMetadata.newBuilder() to construct. + private ImportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImportDocumentsMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImportDocumentsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + *
+   * Count of entries that were processed successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata other = (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata 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.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata 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.discoveryengine.v1alpha.ImportDocumentsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata 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.discoveryengine.v1alpha.ImportDocumentsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata related to the progress of the ImportDocuments operation. This is
+   * returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata) + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata build() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata result = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + } + + @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.discoveryengine.v1alpha.ImportDocumentsMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_ ; + /** + *
+     * Count of entries that were processed successfully.
+     * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + *
+     * Count of entries that were processed successfully.
+     * 
+ * + * int64 success_count = 3; + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Count of entries that were processed successfully.
+     * 
+ * + * int64 success_count = 3; + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_ ; + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadataOrBuilder.java new file mode 100644 index 000000000000..03f92f8e224a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsMetadataOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportDocumentsMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Count of entries that were processed successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + long getSuccessCount(); + + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequest.java new file mode 100644 index 000000000000..68b26fbfc112 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequest.java @@ -0,0 +1,3428 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for Import methods.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest} + */ +public final class ImportDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) + ImportDocumentsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ImportDocumentsRequest.newBuilder() to construct. + private ImportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImportDocumentsRequest() { + parent_ = ""; + reconciliationMode_ = 0; + idField_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImportDocumentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.Builder.class); + } + + /** + *
+   * Indicates how imported documents are reconciled with the existing documents
+   * created or imported before.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode} + */ + public enum ReconciliationMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Defaults to `INCREMENTAL`.
+     * 
+ * + * RECONCILIATION_MODE_UNSPECIFIED = 0; + */ + RECONCILIATION_MODE_UNSPECIFIED(0), + /** + *
+     * Inserts new documents or updates existing documents.
+     * 
+ * + * INCREMENTAL = 1; + */ + INCREMENTAL(1), + /** + *
+     * Calculates diff and replaces the entire document dataset. Existing
+     * documents may be deleted if they are not present in the source location.
+     * 
+ * + * FULL = 2; + */ + FULL(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Defaults to `INCREMENTAL`.
+     * 
+ * + * RECONCILIATION_MODE_UNSPECIFIED = 0; + */ + public static final int RECONCILIATION_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Inserts new documents or updates existing documents.
+     * 
+ * + * INCREMENTAL = 1; + */ + public static final int INCREMENTAL_VALUE = 1; + /** + *
+     * Calculates diff and replaces the entire document dataset. Existing
+     * documents may be deleted if they are not present in the source location.
+     * 
+ * + * FULL = 2; + */ + public static final int FULL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReconciliationMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ReconciliationMode forNumber(int value) { + switch (value) { + case 0: return RECONCILIATION_MODE_UNSPECIFIED; + case 1: return INCREMENTAL; + case 2: return FULL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ReconciliationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReconciliationMode findValueByNumber(int number) { + return ReconciliationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final ReconciliationMode[] VALUES = values(); + + public static ReconciliationMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ReconciliationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode) + } + + public interface InlineSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getDocumentsList(); + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.Document getDocuments(int index); + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getDocumentsCount(); + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getDocumentsOrBuilderList(); + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentsOrBuilder( + int index); + } + /** + *
+   * The inline source for the input config for ImportDocuments method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource} + */ + public static final class InlineSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InlineSource() { + documents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder.class); + } + + public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List documents_; + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List getDocumentsList() { + return documents_; + } + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List + getDocumentsOrBuilderList() { + return documents_; + } + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public int getDocumentsCount() { + return documents_.size(); + } + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDocuments(int index) { + return documents_.get(index); + } + /** + *
+     * Required. A list of documents to update/create. Each document must have a
+     * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+     * Recommended max of 100 items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentsOrBuilder( + int index) { + return documents_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < documents_.size(); i++) { + output.writeMessage(1, documents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < documents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documents_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource other = (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The inline source for the input config for ImportDocuments method.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + } else { + documents_ = null; + documentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource build() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource result = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource result) { + if (documentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + documents_ = java.util.Collections.unmodifiableList(documents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.documents_ = documents_; + } else { + result.documents_ = documentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance()) return this; + if (documentsBuilder_ == null) { + if (!other.documents_.isEmpty()) { + if (documents_.isEmpty()) { + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDocumentsIsMutable(); + documents_.addAll(other.documents_); + } + onChanged(); + } + } else { + if (!other.documents_.isEmpty()) { + if (documentsBuilder_.isEmpty()) { + documentsBuilder_.dispose(); + documentsBuilder_ = null; + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + documentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentsFieldBuilder() : null; + } else { + documentsBuilder_.addAllMessages(other.documents_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.Document m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Document.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List documents_ = + java.util.Collections.emptyList(); + private void ensureDocumentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + documents_ = new java.util.ArrayList(documents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> documentsBuilder_; + + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List getDocumentsList() { + if (documentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(documents_); + } else { + return documentsBuilder_.getMessageList(); + } + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public int getDocumentsCount() { + if (documentsBuilder_ == null) { + return documents_.size(); + } else { + return documentsBuilder_.getCount(); + } + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocuments(int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessage(index); + } + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.set(index, value); + onChanged(); + } else { + documentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.set(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDocuments(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(value); + onChanged(); + } else { + documentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(index, value); + onChanged(); + } else { + documentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDocuments( + com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addAllDocuments( + java.lang.Iterable values) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); + onChanged(); + } else { + documentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearDocuments() { + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + documentsBuilder_.clear(); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder removeDocuments(int index) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.remove(index); + onChanged(); + } else { + documentsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder getDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().getBuilder(index); + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentsOrBuilder( + int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); } else { + return documentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getDocumentsOrBuilderList() { + if (documentsBuilder_ != null) { + return documentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(documents_); + } + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder addDocumentsBuilder() { + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()); + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder addDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()); + } + /** + *
+       * Required. A list of documents to update/create. Each document must have a
+       * valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id].
+       * Recommended max of 100 items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getDocumentsBuilderList() { + return getDocumentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> + getDocumentsFieldBuilder() { + if (documentsBuilder_ == null) { + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>( + documents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + documents_ = null; + } + return documentsBuilder_; + } + @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.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int sourceCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INLINE_SOURCE(2), + GCS_SOURCE(3), + BIGQUERY_SOURCE(4), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: return INLINE_SOURCE; + case 3: return GCS_SOURCE; + case 4: return BIGQUERY_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int INLINE_SOURCE_FIELD_NUMBER = 2; + /** + *
+   * The Inline source for the input content for documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + *
+   * The Inline source for the input content for documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } + /** + *
+   * The Inline source for the input content for documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Requires create/update permission.
+   * 
+ * + * 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 branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Requires create/update permission.
+   * 
+ * + * 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 ERROR_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + /** + *
+   * The desired location of errors incurred during the Import.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return errorConfig_ != null; + } + /** + *
+   * The desired location of errors incurred during the Import.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + /** + *
+   * The desired location of errors incurred during the Import.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + + public static final int RECONCILIATION_MODE_FIELD_NUMBER = 6; + private int reconciliationMode_ = 0; + /** + *
+   * The mode of reconciliation between existing documents and the documents to
+   * be imported. Defaults to
+   * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return The enum numeric value on the wire for reconciliationMode. + */ + @java.lang.Override public int getReconciliationModeValue() { + return reconciliationMode_; + } + /** + *
+   * The mode of reconciliation between existing documents and the documents to
+   * be imported. Defaults to
+   * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return The reconciliationMode. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode getReconciliationMode() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode result = com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.forNumber(reconciliationMode_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED : result; + } + + public static final int AUTO_GENERATE_IDS_FIELD_NUMBER = 8; + private boolean autoGenerateIds_ = false; + /** + *
+   * Whether to automatically generate IDs for the documents if absent.
+   *
+   * If set to `true`,
+   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s are
+   * automatically generated based on the hash of the payload, where IDs may not
+   * be consistent during multiple imports. In which case
+   * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.FULL]
+   * is highly recommended to avoid duplicate contents. If unset or set to
+   * `false`, [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s
+   * have to be specified using
+   * [id_field][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field],
+   * otherwise, documents without IDs fail to be imported.
+   *
+   * Only set this field when using
+   * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+   * when
+   * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+   * or
+   * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+   * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
+   * 
+ * + * bool auto_generate_ids = 8; + * @return The autoGenerateIds. + */ + @java.lang.Override + public boolean getAutoGenerateIds() { + return autoGenerateIds_; + } + + public static final int ID_FIELD_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object idField_ = ""; + /** + *
+   * The field in the Cloud Storage and BigQuery sources that indicates the
+   * unique IDs of the documents.
+   *
+   * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+   * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+   * "some_uuid"}`. For
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+   * the column name of the BigQuery table where the unique ids are stored.
+   *
+   * The values of the JSON field or the BigQuery column are used as the
+   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+   * field or the BigQuery column must be of string type, and the values must be
+   * set as valid strings conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+   * Otherwise, documents without valid IDs fail to be imported.
+   *
+   * Only set this field when using
+   * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+   * when
+   * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+   * or
+   * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+   * is `custom`. And only set this field when
+   * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+   * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+   *
+   * If it is unset, a default value `_id` is used when importing from the
+   * allowed data sources.
+   * 
+ * + * string id_field = 9; + * @return The idField. + */ + @java.lang.Override + public java.lang.String getIdField() { + java.lang.Object ref = idField_; + 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(); + idField_ = s; + return s; + } + } + /** + *
+   * The field in the Cloud Storage and BigQuery sources that indicates the
+   * unique IDs of the documents.
+   *
+   * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+   * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+   * "some_uuid"}`. For
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+   * the column name of the BigQuery table where the unique ids are stored.
+   *
+   * The values of the JSON field or the BigQuery column are used as the
+   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+   * field or the BigQuery column must be of string type, and the values must be
+   * set as valid strings conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+   * Otherwise, documents without valid IDs fail to be imported.
+   *
+   * Only set this field when using
+   * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+   * when
+   * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+   * or
+   * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+   * is `custom`. And only set this field when
+   * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+   * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+   *
+   * If it is unset, a default value `_id` is used when importing from the
+   * allowed data sources.
+   * 
+ * + * string id_field = 9; + * @return The bytes for idField. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdFieldBytes() { + java.lang.Object ref = idField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_); + } + if (errorConfig_ != null) { + output.writeMessage(5, getErrorConfig()); + } + if (reconciliationMode_ != com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.RECONCILIATION_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, reconciliationMode_); + } + if (autoGenerateIds_ != false) { + output.writeBool(8, autoGenerateIds_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idField_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, idField_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_); + } + if (errorConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getErrorConfig()); + } + if (reconciliationMode_ != com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.RECONCILIATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, reconciliationMode_); + } + if (autoGenerateIds_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, autoGenerateIds_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idField_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idField_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest other = (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; + } + if (reconciliationMode_ != other.reconciliationMode_) return false; + if (getAutoGenerateIds() + != other.getAutoGenerateIds()) return false; + if (!getIdField() + .equals(other.getIdField())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource() + .equals(other.getInlineSource())) return false; + break; + case 3: + if (!getGcsSource() + .equals(other.getGcsSource())) return false; + break; + case 4: + if (!getBigquerySource() + .equals(other.getBigquerySource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (37 * hash) + RECONCILIATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + reconciliationMode_; + hash = (37 * hash) + AUTO_GENERATE_IDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoGenerateIds()); + hash = (37 * hash) + ID_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getIdField().hashCode(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 4: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest 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.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest 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.discoveryengine.v1alpha.ImportDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest 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.discoveryengine.v1alpha.ImportDocumentsRequest 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 Import methods.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (bigquerySourceBuilder_ != null) { + bigquerySourceBuilder_.clear(); + } + parent_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + reconciliationMode_ = 0; + autoGenerateIds_ = false; + idField_ = ""; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest result = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.reconciliationMode_ = reconciliationMode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.autoGenerateIds_ = autoGenerateIds_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.idField_ = idField_; + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && + inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 3 && + gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 4 && + bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + if (other.reconciliationMode_ != 0) { + setReconciliationModeValue(other.getReconciliationModeValue()); + } + if (other.getAutoGenerateIds() != false) { + setAutoGenerateIds(other.getAutoGenerateIds()); + } + if (!other.getIdField().isEmpty()) { + idField_ = other.idField_; + bitField0_ |= 0x00000080; + onChanged(); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getInlineSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getBigquerySourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + reconciliationMode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 64: { + autoGenerateIds_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 74: { + idField_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder> inlineSourceBuilder_; + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + public Builder setInlineSource(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + public Builder mergeInlineSource(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 && + source_ != com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.newBuilder((com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } + } + /** + *
+     * The Inline source for the input content for documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> gcsSourceBuilder_; + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 && + source_ != com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder((com.google.cloud.discoveryengine.v1alpha.GcsSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> bigquerySourceBuilder_; + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource(com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4 && + source_ != com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1alpha.BigQuerySource.newBuilder((com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return bigquerySourceBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Requires create/update permission.
+     * 
+ * + * 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 branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Requires create/update permission.
+     * 
+ * + * 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 branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Requires create/update permission.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Requires create/update permission.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Requires create/update permission.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> errorConfigBuilder_; + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder getErrorConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + } + /** + *
+     * The desired location of errors incurred during the Import.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + private int reconciliationMode_ = 0; + /** + *
+     * The mode of reconciliation between existing documents and the documents to
+     * be imported. Defaults to
+     * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return The enum numeric value on the wire for reconciliationMode. + */ + @java.lang.Override public int getReconciliationModeValue() { + return reconciliationMode_; + } + /** + *
+     * The mode of reconciliation between existing documents and the documents to
+     * be imported. Defaults to
+     * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @param value The enum numeric value on the wire for reconciliationMode to set. + * @return This builder for chaining. + */ + public Builder setReconciliationModeValue(int value) { + reconciliationMode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The mode of reconciliation between existing documents and the documents to
+     * be imported. Defaults to
+     * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return The reconciliationMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode getReconciliationMode() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode result = com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.forNumber(reconciliationMode_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED : result; + } + /** + *
+     * The mode of reconciliation between existing documents and the documents to
+     * be imported. Defaults to
+     * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @param value The reconciliationMode to set. + * @return This builder for chaining. + */ + public Builder setReconciliationMode(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + reconciliationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The mode of reconciliation between existing documents and the documents to
+     * be imported. Defaults to
+     * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return This builder for chaining. + */ + public Builder clearReconciliationMode() { + bitField0_ = (bitField0_ & ~0x00000020); + reconciliationMode_ = 0; + onChanged(); + return this; + } + + private boolean autoGenerateIds_ ; + /** + *
+     * Whether to automatically generate IDs for the documents if absent.
+     *
+     * If set to `true`,
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s are
+     * automatically generated based on the hash of the payload, where IDs may not
+     * be consistent during multiple imports. In which case
+     * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.FULL]
+     * is highly recommended to avoid duplicate contents. If unset or set to
+     * `false`, [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s
+     * have to be specified using
+     * [id_field][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field],
+     * otherwise, documents without IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     * 
+ * + * bool auto_generate_ids = 8; + * @return The autoGenerateIds. + */ + @java.lang.Override + public boolean getAutoGenerateIds() { + return autoGenerateIds_; + } + /** + *
+     * Whether to automatically generate IDs for the documents if absent.
+     *
+     * If set to `true`,
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s are
+     * automatically generated based on the hash of the payload, where IDs may not
+     * be consistent during multiple imports. In which case
+     * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.FULL]
+     * is highly recommended to avoid duplicate contents. If unset or set to
+     * `false`, [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s
+     * have to be specified using
+     * [id_field][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field],
+     * otherwise, documents without IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     * 
+ * + * bool auto_generate_ids = 8; + * @param value The autoGenerateIds to set. + * @return This builder for chaining. + */ + public Builder setAutoGenerateIds(boolean value) { + + autoGenerateIds_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Whether to automatically generate IDs for the documents if absent.
+     *
+     * If set to `true`,
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s are
+     * automatically generated based on the hash of the payload, where IDs may not
+     * be consistent during multiple imports. In which case
+     * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.FULL]
+     * is highly recommended to avoid duplicate contents. If unset or set to
+     * `false`, [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s
+     * have to be specified using
+     * [id_field][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field],
+     * otherwise, documents without IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     * 
+ * + * bool auto_generate_ids = 8; + * @return This builder for chaining. + */ + public Builder clearAutoGenerateIds() { + bitField0_ = (bitField0_ & ~0x00000040); + autoGenerateIds_ = false; + onChanged(); + return this; + } + + private java.lang.Object idField_ = ""; + /** + *
+     * The field in the Cloud Storage and BigQuery sources that indicates the
+     * unique IDs of the documents.
+     *
+     * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+     * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+     * "some_uuid"}`. For
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+     * the column name of the BigQuery table where the unique ids are stored.
+     *
+     * The values of the JSON field or the BigQuery column are used as the
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+     * field or the BigQuery column must be of string type, and the values must be
+     * set as valid strings conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+     * Otherwise, documents without valid IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom`. And only set this field when
+     * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+     * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     *
+     * If it is unset, a default value `_id` is used when importing from the
+     * allowed data sources.
+     * 
+ * + * string id_field = 9; + * @return The idField. + */ + public java.lang.String getIdField() { + java.lang.Object ref = idField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The field in the Cloud Storage and BigQuery sources that indicates the
+     * unique IDs of the documents.
+     *
+     * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+     * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+     * "some_uuid"}`. For
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+     * the column name of the BigQuery table where the unique ids are stored.
+     *
+     * The values of the JSON field or the BigQuery column are used as the
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+     * field or the BigQuery column must be of string type, and the values must be
+     * set as valid strings conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+     * Otherwise, documents without valid IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom`. And only set this field when
+     * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+     * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     *
+     * If it is unset, a default value `_id` is used when importing from the
+     * allowed data sources.
+     * 
+ * + * string id_field = 9; + * @return The bytes for idField. + */ + public com.google.protobuf.ByteString + getIdFieldBytes() { + java.lang.Object ref = idField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The field in the Cloud Storage and BigQuery sources that indicates the
+     * unique IDs of the documents.
+     *
+     * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+     * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+     * "some_uuid"}`. For
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+     * the column name of the BigQuery table where the unique ids are stored.
+     *
+     * The values of the JSON field or the BigQuery column are used as the
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+     * field or the BigQuery column must be of string type, and the values must be
+     * set as valid strings conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+     * Otherwise, documents without valid IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom`. And only set this field when
+     * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+     * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     *
+     * If it is unset, a default value `_id` is used when importing from the
+     * allowed data sources.
+     * 
+ * + * string id_field = 9; + * @param value The idField to set. + * @return This builder for chaining. + */ + public Builder setIdField( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + idField_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The field in the Cloud Storage and BigQuery sources that indicates the
+     * unique IDs of the documents.
+     *
+     * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+     * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+     * "some_uuid"}`. For
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+     * the column name of the BigQuery table where the unique ids are stored.
+     *
+     * The values of the JSON field or the BigQuery column are used as the
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+     * field or the BigQuery column must be of string type, and the values must be
+     * set as valid strings conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+     * Otherwise, documents without valid IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom`. And only set this field when
+     * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+     * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     *
+     * If it is unset, a default value `_id` is used when importing from the
+     * allowed data sources.
+     * 
+ * + * string id_field = 9; + * @return This builder for chaining. + */ + public Builder clearIdField() { + idField_ = getDefaultInstance().getIdField(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * The field in the Cloud Storage and BigQuery sources that indicates the
+     * unique IDs of the documents.
+     *
+     * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+     * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+     * "some_uuid"}`. For
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+     * the column name of the BigQuery table where the unique ids are stored.
+     *
+     * The values of the JSON field or the BigQuery column are used as the
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+     * field or the BigQuery column must be of string type, and the values must be
+     * set as valid strings conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+     * Otherwise, documents without valid IDs fail to be imported.
+     *
+     * Only set this field when using
+     * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+     * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+     * when
+     * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+     * or
+     * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+     * is `custom`. And only set this field when
+     * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+     * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+     *
+     * If it is unset, a default value `_id` is used when importing from the
+     * allowed data sources.
+     * 
+ * + * string id_field = 9; + * @param value The bytes for idField to set. + * @return This builder for chaining. + */ + public Builder setIdFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + idField_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequestOrBuilder.java new file mode 100644 index 000000000000..089370eb64a7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsRequestOrBuilder.java @@ -0,0 +1,272 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportDocumentsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Inline source for the input content for documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + *
+   * The Inline source for the input content for documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource getInlineSource(); + /** + *
+   * The Inline source for the input content for documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource inline_source = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder(); + + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource(); + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return The bigquerySource. + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource(); + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Requires create/update permission.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Requires create/update permission.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The desired location of errors incurred during the Import.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + *
+   * The desired location of errors incurred during the Import.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig(); + /** + *
+   * The desired location of errors incurred during the Import.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + /** + *
+   * The mode of reconciliation between existing documents and the documents to
+   * be imported. Defaults to
+   * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return The enum numeric value on the wire for reconciliationMode. + */ + int getReconciliationModeValue(); + /** + *
+   * The mode of reconciliation between existing documents and the documents to
+   * be imported. Defaults to
+   * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; + * @return The reconciliationMode. + */ + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode getReconciliationMode(); + + /** + *
+   * Whether to automatically generate IDs for the documents if absent.
+   *
+   * If set to `true`,
+   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s are
+   * automatically generated based on the hash of the payload, where IDs may not
+   * be consistent during multiple imports. In which case
+   * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.FULL]
+   * is highly recommended to avoid duplicate contents. If unset or set to
+   * `false`, [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s
+   * have to be specified using
+   * [id_field][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field],
+   * otherwise, documents without IDs fail to be imported.
+   *
+   * Only set this field when using
+   * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+   * when
+   * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+   * or
+   * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+   * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
+   * 
+ * + * bool auto_generate_ids = 8; + * @return The autoGenerateIds. + */ + boolean getAutoGenerateIds(); + + /** + *
+   * The field in the Cloud Storage and BigQuery sources that indicates the
+   * unique IDs of the documents.
+   *
+   * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+   * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+   * "some_uuid"}`. For
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+   * the column name of the BigQuery table where the unique ids are stored.
+   *
+   * The values of the JSON field or the BigQuery column are used as the
+   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+   * field or the BigQuery column must be of string type, and the values must be
+   * set as valid strings conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+   * Otherwise, documents without valid IDs fail to be imported.
+   *
+   * Only set this field when using
+   * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+   * when
+   * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+   * or
+   * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+   * is `custom`. And only set this field when
+   * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+   * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+   *
+   * If it is unset, a default value `_id` is used when importing from the
+   * allowed data sources.
+   * 
+ * + * string id_field = 9; + * @return The idField. + */ + java.lang.String getIdField(); + /** + *
+   * The field in the Cloud Storage and BigQuery sources that indicates the
+   * unique IDs of the documents.
+   *
+   * For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the
+   * key of the JSON field. For instance, `my_id` for JSON `{"my_id":
+   * "some_uuid"}`. For
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is
+   * the column name of the BigQuery table where the unique ids are stored.
+   *
+   * The values of the JSON field or the BigQuery column are used as the
+   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON
+   * field or the BigQuery column must be of string type, and the values must be
+   * set as valid strings conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
+   * Otherwise, documents without valid IDs fail to be imported.
+   *
+   * Only set this field when using
+   * [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or
+   * [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and
+   * when
+   * [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema]
+   * or
+   * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema]
+   * is `custom`. And only set this field when
+   * [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids]
+   * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
+   *
+   * If it is unset, a default value `_id` is used when importing from the
+   * allowed data sources.
+   * 
+ * + * string id_field = 9; + * @return The bytes for idField. + */ + com.google.protobuf.ByteString + getIdFieldBytes(); + + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.SourceCase getSourceCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponse.java new file mode 100644 index 000000000000..b7291290975c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponse.java @@ -0,0 +1,1094 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response of the
+ * [ImportDocumentsRequest][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest].
+ * If the long running operation is done, then this message is returned by the
+ * google.longrunning.Operations.response field if the operation was successful.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse} + */ +public final class ImportDocumentsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse) + ImportDocumentsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ImportDocumentsResponse.newBuilder() to construct. + private ImportDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImportDocumentsResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImportDocumentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.Builder.class); + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List + getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index) { + return errorSamples_.get(index); + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + /** + *
+   * Echoes the destination for the complete errors in the request if set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return errorConfig_ != null; + } + /** + *
+   * Echoes the destination for the complete errors in the request if set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + /** + *
+   * Echoes the destination for the complete errors in the request if set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (errorConfig_ != null) { + output.writeMessage(2, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errorSamples_.get(i)); + } + if (errorConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse other = (com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse) obj; + + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse 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.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse 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.discoveryengine.v1alpha.ImportDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse 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.discoveryengine.v1alpha.ImportDocumentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response of the
+   * [ImportDocumentsRequest][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest].
+   * If the long running operation is done, then this message is returned by the
+   * google.longrunning.Operations.response field if the operation was successful.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse) + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.class, com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse result = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse.getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorSamplesFieldBuilder() : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.rpc.Status m = + input.readMessage( + com.google.rpc.Status.parser(), + extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.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_; + + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(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) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + 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 value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(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) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(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) { + 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) { + if (errorSamplesBuilder_ == null) { + 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() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + 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()); + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + 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> + 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()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> errorConfigBuilder_; + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder getErrorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + } + /** + *
+     * Echoes the destination for the complete errors in the request if set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + @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.discoveryengine.v1alpha.ImportDocumentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponseOrBuilder.java new file mode 100644 index 000000000000..bb0d2f0e4ff2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportDocumentsResponseOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportDocumentsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List + getErrorSamplesList(); + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + 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); + + /** + *
+   * Echoes the destination for the complete errors in the request if set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + *
+   * Echoes the destination for the complete errors in the request if set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig(); + /** + *
+   * Echoes the destination for the complete errors in the request if set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfig.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfig.java new file mode 100644 index 000000000000..30b3c06246c1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfig.java @@ -0,0 +1,724 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Configuration of destination for Import related errors.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportErrorConfig} + */ +public final class ImportErrorConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportErrorConfig) + ImportErrorConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ImportErrorConfig.newBuilder() to construct. + private ImportErrorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImportErrorConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImportErrorConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.class, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder.class); + } + + private int destinationCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object destination_; + public enum DestinationCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_PREFIX(1), + DESTINATION_NOT_SET(0); + private final int value; + private DestinationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 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 static final int GCS_PREFIX_FIELD_NUMBER = 1; + /** + *
+   * Cloud Storage prefix for import errors. This must be an empty,
+   * existing Cloud Storage directory. Import errors are written to
+   * sharded files in this directory, one per line, as a JSON-encoded
+   * `google.rpc.Status` message.
+   * 
+ * + * string gcs_prefix = 1; + * @return Whether the gcsPrefix field is set. + */ + public boolean hasGcsPrefix() { + return destinationCase_ == 1; + } + /** + *
+   * Cloud Storage prefix for import errors. This must be an empty,
+   * existing Cloud Storage directory. Import errors are written to
+   * sharded files in this directory, one per line, as a JSON-encoded
+   * `google.rpc.Status` message.
+   * 
+ * + * string gcs_prefix = 1; + * @return The gcsPrefix. + */ + public java.lang.String getGcsPrefix() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 1) { + destination_ = s; + } + return s; + } + } + /** + *
+   * Cloud Storage prefix for import errors. This must be an empty,
+   * existing Cloud Storage directory. Import errors are written to
+   * sharded files in this directory, one per line, as a JSON-encoded
+   * `google.rpc.Status` message.
+   * 
+ * + * string gcs_prefix = 1; + * @return The bytes for gcsPrefix. + */ + 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); + if (destinationCase_ == 1) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (destinationCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig other = (com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getGcsPrefix() + .equals(other.getGcsPrefix())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (destinationCase_) { + case 1: + hash = (37 * hash) + GCS_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getGcsPrefix().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig 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.discoveryengine.v1alpha.ImportErrorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig 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.discoveryengine.v1alpha.ImportErrorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig 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.discoveryengine.v1alpha.ImportErrorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration of destination for Import related errors.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportErrorConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportErrorConfig) + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.class, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportErrorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig build() { + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig result = new com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @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.discoveryengine.v1alpha.ImportErrorConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance()) return this; + switch (other.getDestinationCase()) { + case GCS_PREFIX: { + destinationCase_ = 1; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int destinationCase_ = 0; + private java.lang.Object destination_; + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+     * Cloud Storage prefix for import errors. This must be an empty,
+     * existing Cloud Storage directory. Import errors are written to
+     * sharded files in this directory, one per line, as a JSON-encoded
+     * `google.rpc.Status` message.
+     * 
+ * + * string gcs_prefix = 1; + * @return Whether the gcsPrefix field is set. + */ + @java.lang.Override + public boolean hasGcsPrefix() { + return destinationCase_ == 1; + } + /** + *
+     * Cloud Storage prefix for import errors. This must be an empty,
+     * existing Cloud Storage directory. Import errors are written to
+     * sharded files in this directory, one per line, as a JSON-encoded
+     * `google.rpc.Status` message.
+     * 
+ * + * string gcs_prefix = 1; + * @return The gcsPrefix. + */ + @java.lang.Override + public java.lang.String getGcsPrefix() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 1) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Cloud Storage prefix for import errors. This must be an empty,
+     * existing Cloud Storage directory. Import errors are written to
+     * sharded files in this directory, one per line, as a JSON-encoded
+     * `google.rpc.Status` message.
+     * 
+ * + * string gcs_prefix = 1; + * @return The bytes for gcsPrefix. + */ + @java.lang.Override + 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); + if (destinationCase_ == 1) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Cloud Storage prefix for import errors. This must be an empty,
+     * existing Cloud Storage directory. Import errors are written to
+     * sharded files in this directory, one per line, as a JSON-encoded
+     * `google.rpc.Status` message.
+     * 
+ * + * string gcs_prefix = 1; + * @param value The gcsPrefix to set. + * @return This builder for chaining. + */ + public Builder setGcsPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + destinationCase_ = 1; + destination_ = value; + onChanged(); + return this; + } + /** + *
+     * Cloud Storage prefix for import errors. This must be an empty,
+     * existing Cloud Storage directory. Import errors are written to
+     * sharded files in this directory, one per line, as a JSON-encoded
+     * `google.rpc.Status` message.
+     * 
+ * + * string gcs_prefix = 1; + * @return This builder for chaining. + */ + public Builder clearGcsPrefix() { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + /** + *
+     * Cloud Storage prefix for import errors. This must be an empty,
+     * existing Cloud Storage directory. Import errors are written to
+     * sharded files in this directory, one per line, as a JSON-encoded
+     * `google.rpc.Status` message.
+     * 
+ * + * 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) { + if (value == null) { 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) { + 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.discoveryengine.v1alpha.ImportErrorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportErrorConfig) + private static final com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportErrorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfigOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfigOrBuilder.java new file mode 100644 index 000000000000..96f1ba0290b3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportErrorConfigOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportErrorConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportErrorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Cloud Storage prefix for import errors. This must be an empty,
+   * existing Cloud Storage directory. Import errors are written to
+   * sharded files in this directory, one per line, as a JSON-encoded
+   * `google.rpc.Status` message.
+   * 
+ * + * string gcs_prefix = 1; + * @return Whether the gcsPrefix field is set. + */ + boolean hasGcsPrefix(); + /** + *
+   * Cloud Storage prefix for import errors. This must be an empty,
+   * existing Cloud Storage directory. Import errors are written to
+   * sharded files in this directory, one per line, as a JSON-encoded
+   * `google.rpc.Status` message.
+   * 
+ * + * string gcs_prefix = 1; + * @return The gcsPrefix. + */ + java.lang.String getGcsPrefix(); + /** + *
+   * Cloud Storage prefix for import errors. This must be an empty,
+   * existing Cloud Storage directory. Import errors are written to
+   * sharded files in this directory, one per line, as a JSON-encoded
+   * `google.rpc.Status` message.
+   * 
+ * + * string gcs_prefix = 1; + * @return The bytes for gcsPrefix. + */ + com.google.protobuf.ByteString + getGcsPrefixBytes(); + + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.DestinationCase getDestinationCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadata.java new file mode 100644 index 000000000000..7bb6d7e854fd --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadata.java @@ -0,0 +1,1051 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata related to the progress of the Import operation. This is
+ * returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata} + */ +public final class ImportUserEventsMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata) + ImportUserEventsMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use ImportUserEventsMetadata.newBuilder() to construct. + private ImportUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImportUserEventsMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImportUserEventsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + *
+   * Count of entries that were processed successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata other = (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata 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.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata 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.discoveryengine.v1alpha.ImportUserEventsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata 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.discoveryengine.v1alpha.ImportUserEventsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata related to the progress of the Import operation. This is
+   * returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata) + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata build() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata result = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + } + + @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.discoveryengine.v1alpha.ImportUserEventsMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_ ; + /** + *
+     * Count of entries that were processed successfully.
+     * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + *
+     * Count of entries that were processed successfully.
+     * 
+ * + * int64 success_count = 3; + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Count of entries that were processed successfully.
+     * 
+ * + * int64 success_count = 3; + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_ ; + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadataOrBuilder.java new file mode 100644 index 000000000000..9503067649c1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsMetadataOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportUserEventsMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Count of entries that were processed successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + long getSuccessCount(); + + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequest.java new file mode 100644 index 000000000000..3d251d0caa82 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequest.java @@ -0,0 +1,2570 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for the ImportUserEvents request.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest} + */ +public final class ImportUserEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest) + ImportUserEventsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ImportUserEventsRequest.newBuilder() to construct. + private ImportUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImportUserEventsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImportUserEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.Builder.class); + } + + public interface InlineSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getUserEventsList(); + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvents(int index); + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + int getUserEventsCount(); + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getUserEventsOrBuilderList(); + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventsOrBuilder( + int index); + } + /** + *
+   * The inline source for the input config for ImportUserEvents method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource} + */ + public static final class InlineSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InlineSource() { + userEvents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder.class); + } + + public static final int USER_EVENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List userEvents_; + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List getUserEventsList() { + return userEvents_; + } + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List + getUserEventsOrBuilderList() { + return userEvents_; + } + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public int getUserEventsCount() { + return userEvents_.size(); + } + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvents(int index) { + return userEvents_.get(index); + } + /** + *
+     * Required. A list of user events to import. Recommended max of 10k items.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventsOrBuilder( + int index) { + return userEvents_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < userEvents_.size(); i++) { + output.writeMessage(1, userEvents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < userEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, userEvents_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource other = (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) obj; + + if (!getUserEventsList() + .equals(other.getUserEventsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserEventsCount() > 0) { + hash = (37 * hash) + USER_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getUserEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The inline source for the input config for ImportUserEvents method.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userEventsBuilder_ == null) { + userEvents_ = java.util.Collections.emptyList(); + } else { + userEvents_ = null; + userEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource build() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource result = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource result) { + if (userEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + userEvents_ = java.util.Collections.unmodifiableList(userEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userEvents_ = userEvents_; + } else { + result.userEvents_ = userEventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance()) return this; + if (userEventsBuilder_ == null) { + if (!other.userEvents_.isEmpty()) { + if (userEvents_.isEmpty()) { + userEvents_ = other.userEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserEventsIsMutable(); + userEvents_.addAll(other.userEvents_); + } + onChanged(); + } + } else { + if (!other.userEvents_.isEmpty()) { + if (userEventsBuilder_.isEmpty()) { + userEventsBuilder_.dispose(); + userEventsBuilder_ = null; + userEvents_ = other.userEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + userEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUserEventsFieldBuilder() : null; + } else { + userEventsBuilder_.addAllMessages(other.userEvents_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.UserEvent m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.UserEvent.parser(), + extensionRegistry); + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.add(m); + } else { + userEventsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List userEvents_ = + java.util.Collections.emptyList(); + private void ensureUserEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userEvents_ = new java.util.ArrayList(userEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder> userEventsBuilder_; + + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List getUserEventsList() { + if (userEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(userEvents_); + } else { + return userEventsBuilder_.getMessageList(); + } + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public int getUserEventsCount() { + if (userEventsBuilder_ == null) { + return userEvents_.size(); + } else { + return userEventsBuilder_.getCount(); + } + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvents(int index) { + if (userEventsBuilder_ == null) { + return userEvents_.get(index); + } else { + return userEventsBuilder_.getMessage(index); + } + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUserEvents( + int index, com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserEventsIsMutable(); + userEvents_.set(index, value); + onChanged(); + } else { + userEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUserEvents( + int index, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder builderForValue) { + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + userEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addUserEvents(com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserEventsIsMutable(); + userEvents_.add(value); + onChanged(); + } else { + userEventsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addUserEvents( + int index, com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserEventsIsMutable(); + userEvents_.add(index, value); + onChanged(); + } else { + userEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addUserEvents( + com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder builderForValue) { + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.add(builderForValue.build()); + onChanged(); + } else { + userEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addUserEvents( + int index, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder builderForValue) { + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + userEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addAllUserEvents( + java.lang.Iterable values) { + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userEvents_); + onChanged(); + } else { + userEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUserEvents() { + if (userEventsBuilder_ == null) { + userEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + userEventsBuilder_.clear(); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder removeUserEvents(int index) { + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.remove(index); + onChanged(); + } else { + userEventsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder getUserEventsBuilder( + int index) { + return getUserEventsFieldBuilder().getBuilder(index); + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventsOrBuilder( + int index) { + if (userEventsBuilder_ == null) { + return userEvents_.get(index); } else { + return userEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getUserEventsOrBuilderList() { + if (userEventsBuilder_ != null) { + return userEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userEvents_); + } + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder addUserEventsBuilder() { + return getUserEventsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance()); + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder addUserEventsBuilder( + int index) { + return getUserEventsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance()); + } + /** + *
+       * Required. A list of user events to import. Recommended max of 10k items.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getUserEventsBuilderList() { + return getUserEventsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder> + getUserEventsFieldBuilder() { + if (userEventsBuilder_ == null) { + userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder>( + userEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + userEvents_ = null; + } + return userEventsBuilder_; + } + @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.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int sourceCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INLINE_SOURCE(2), + GCS_SOURCE(3), + BIGQUERY_SOURCE(4), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: return INLINE_SOURCE; + case 3: return GCS_SOURCE; + case 4: return BIGQUERY_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int INLINE_SOURCE_FIELD_NUMBER = 2; + /** + *
+   * The Inline source for the input content for UserEvents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + *
+   * The Inline source for the input content for UserEvents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } + /** + *
+   * The Inline source for the input content for UserEvents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent DataStore resource name, of the form
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. Parent DataStore resource name, of the form
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 ERROR_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + /** + *
+   * The desired location of errors incurred during the Import. Cannot be set
+   * for inline user event imports.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return errorConfig_ != null; + } + /** + *
+   * The desired location of errors incurred during the Import. Cannot be set
+   * for inline user event imports.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + /** + *
+   * The desired location of errors incurred during the Import. Cannot be set
+   * for inline user event imports.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + + 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 (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_); + } + if (errorConfig_ != null) { + output.writeMessage(5, getErrorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_); + } + if (errorConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getErrorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest other = (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource() + .equals(other.getInlineSource())) return false; + break; + case 3: + if (!getGcsSource() + .equals(other.getGcsSource())) return false; + break; + case 4: + if (!getBigquerySource() + .equals(other.getBigquerySource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 4: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest 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.discoveryengine.v1alpha.ImportUserEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.ImportUserEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest 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.discoveryengine.v1alpha.ImportUserEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.ImportUserEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest 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 ImportUserEvents request.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest) + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (bigquerySourceBuilder_ != null) { + bigquerySourceBuilder_.clear(); + } + parent_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest result = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && + inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 3 && + gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 4 && + bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getInlineSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getBigquerySourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder> inlineSourceBuilder_; + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + public Builder setInlineSource(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + public Builder mergeInlineSource(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 && + source_ != com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.newBuilder((com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } + } + /** + *
+     * The Inline source for the input content for UserEvents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> gcsSourceBuilder_; + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 && + source_ != com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder((com.google.cloud.discoveryengine.v1alpha.GcsSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + *
+     * Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> bigquerySourceBuilder_; + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 4; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource(com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4 && + source_ != com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1alpha.BigQuerySource.newBuilder((com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + *
+     * BigQuery input source.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return bigquerySourceBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent DataStore resource name, of the form
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. Parent DataStore resource name, of the form
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. Parent DataStore resource name, of the form
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. Parent DataStore resource name, of the form
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Required. Parent DataStore resource name, of the form
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> errorConfigBuilder_; + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder getErrorConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + } + /** + *
+     * The desired location of errors incurred during the Import. Cannot be set
+     * for inline user event imports.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + @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.discoveryengine.v1alpha.ImportUserEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequestOrBuilder.java new file mode 100644 index 000000000000..62347c57c2c4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsRequestOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportUserEventsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Inline source for the input content for UserEvents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + *
+   * The Inline source for the input content for UserEvents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource getInlineSource(); + /** + *
+   * The Inline source for the input content for UserEvents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource inline_source = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder(); + + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource(); + /** + *
+   * Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + * @return The bigquerySource. + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource(); + /** + *
+   * BigQuery input source.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 4; + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + *
+   * Required. Parent DataStore resource name, of the form
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent DataStore resource name, of the form
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The desired location of errors incurred during the Import. Cannot be set
+   * for inline user event imports.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + *
+   * The desired location of errors incurred during the Import. Cannot be set
+   * for inline user event imports.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig(); + /** + *
+   * The desired location of errors incurred during the Import. Cannot be set
+   * for inline user event imports.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 5; + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.SourceCase getSourceCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponse.java new file mode 100644 index 000000000000..0b69604cf1e0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponse.java @@ -0,0 +1,1274 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response of the ImportUserEventsRequest. If the long running
+ * operation was successful, then this message is returned by the
+ * google.longrunning.Operations.response field if the operation was successful.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse} + */ +public final class ImportUserEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse) + ImportUserEventsResponseOrBuilder { +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) { + return new ImportUserEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.Builder.class); + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List + getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index) { + return errorSamples_.get(index); + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + /** + *
+   * Echoes the destination for the complete errors if this field was set in
+   * the request.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return errorConfig_ != null; + } + /** + *
+   * Echoes the destination for the complete errors if this field was set in
+   * the request.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + /** + *
+   * Echoes the destination for the complete errors if this field was set in
+   * the request.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + + public static final int JOINED_EVENTS_COUNT_FIELD_NUMBER = 3; + private long joinedEventsCount_ = 0L; + /** + *
+   * Count of user events imported with complete existing Documents.
+   * 
+ * + * int64 joined_events_count = 3; + * @return The joinedEventsCount. + */ + @java.lang.Override + public long getJoinedEventsCount() { + return joinedEventsCount_; + } + + public static final int UNJOINED_EVENTS_COUNT_FIELD_NUMBER = 4; + private long unjoinedEventsCount_ = 0L; + /** + *
+   * Count of user events imported, but with Document information not found
+   * in the existing Branch.
+   * 
+ * + * int64 unjoined_events_count = 4; + * @return The unjoinedEventsCount. + */ + @java.lang.Override + public long getUnjoinedEventsCount() { + return unjoinedEventsCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (errorConfig_ != null) { + output.writeMessage(2, getErrorConfig()); + } + if (joinedEventsCount_ != 0L) { + output.writeInt64(3, joinedEventsCount_); + } + if (unjoinedEventsCount_ != 0L) { + output.writeInt64(4, unjoinedEventsCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errorSamples_.get(i)); + } + if (errorConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorConfig()); + } + if (joinedEventsCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, joinedEventsCount_); + } + if (unjoinedEventsCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, unjoinedEventsCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse other = (com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse) obj; + + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; + } + if (getJoinedEventsCount() + != other.getJoinedEventsCount()) return false; + if (getUnjoinedEventsCount() + != other.getUnjoinedEventsCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (37 * hash) + JOINED_EVENTS_COUNT_FIELD_NUMBER; + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse 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.discoveryengine.v1alpha.ImportUserEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.ImportUserEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse 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.discoveryengine.v1alpha.ImportUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.ImportUserEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response of the ImportUserEventsRequest. If the long running
+   * operation was successful, then this message is returned by the
+   * google.longrunning.Operations.response field if the operation was successful.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse) + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.class, com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + joinedEventsCount_ = 0L; + unjoinedEventsCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_ImportUserEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse result = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.joinedEventsCount_ = joinedEventsCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.unjoinedEventsCount_ = unjoinedEventsCount_; + } + } + + @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.discoveryengine.v1alpha.ImportUserEventsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse.getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorSamplesFieldBuilder() : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + if (other.getJoinedEventsCount() != 0L) { + setJoinedEventsCount(other.getJoinedEventsCount()); + } + if (other.getUnjoinedEventsCount() != 0L) { + setUnjoinedEventsCount(other.getUnjoinedEventsCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.rpc.Status m = + input.readMessage( + com.google.rpc.Status.parser(), + extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + joinedEventsCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + unjoinedEventsCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.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_; + + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(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) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + 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 value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(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) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + 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) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(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) { + 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) { + if (errorSamplesBuilder_ == null) { + 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() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + 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()); + } + /** + *
+     * A sample of errors encountered while processing the request.
+     * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + 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> + 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()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> errorConfigBuilder_; + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder getErrorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.getDefaultInstance() : errorConfig_; + } + } + /** + *
+     * Echoes the destination for the complete errors if this field was set in
+     * the request.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + private long joinedEventsCount_ ; + /** + *
+     * Count of user events imported with complete existing Documents.
+     * 
+ * + * int64 joined_events_count = 3; + * @return The joinedEventsCount. + */ + @java.lang.Override + public long getJoinedEventsCount() { + return joinedEventsCount_; + } + /** + *
+     * Count of user events imported with complete existing Documents.
+     * 
+ * + * int64 joined_events_count = 3; + * @param value The joinedEventsCount to set. + * @return This builder for chaining. + */ + public Builder setJoinedEventsCount(long value) { + + joinedEventsCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Count of user events imported with complete existing Documents.
+     * 
+ * + * int64 joined_events_count = 3; + * @return This builder for chaining. + */ + public Builder clearJoinedEventsCount() { + bitField0_ = (bitField0_ & ~0x00000004); + joinedEventsCount_ = 0L; + onChanged(); + return this; + } + + private long unjoinedEventsCount_ ; + /** + *
+     * Count of user events imported, but with Document information not found
+     * in the existing Branch.
+     * 
+ * + * int64 unjoined_events_count = 4; + * @return The unjoinedEventsCount. + */ + @java.lang.Override + public long getUnjoinedEventsCount() { + return unjoinedEventsCount_; + } + /** + *
+     * Count of user events imported, but with Document information not found
+     * in the existing Branch.
+     * 
+ * + * int64 unjoined_events_count = 4; + * @param value The unjoinedEventsCount to set. + * @return This builder for chaining. + */ + public Builder setUnjoinedEventsCount(long value) { + + unjoinedEventsCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Count of user events imported, but with Document information not found
+     * in the existing Branch.
+     * 
+ * + * int64 unjoined_events_count = 4; + * @return This builder for chaining. + */ + public Builder clearUnjoinedEventsCount() { + bitField0_ = (bitField0_ & ~0x00000008); + unjoinedEventsCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponseOrBuilder.java new file mode 100644 index 000000000000..58fc43850c53 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportUserEventsResponseOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/import_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportUserEventsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.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(); + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + *
+   * A sample of errors encountered while processing the request.
+   * 
+ * + * repeated .google.rpc.Status error_samples = 1; + */ + 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); + + /** + *
+   * Echoes the destination for the complete errors if this field was set in
+   * the request.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + *
+   * Echoes the destination for the complete errors if this field was set in
+   * the request.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig getErrorConfig(); + /** + *
+   * Echoes the destination for the complete errors if this field was set in
+   * the request.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + /** + *
+   * Count of user events imported with complete existing Documents.
+   * 
+ * + * int64 joined_events_count = 3; + * @return The joinedEventsCount. + */ + long getJoinedEventsCount(); + + /** + *
+   * Count of user events imported, but with Document information not found
+   * in the existing Branch.
+   * 
+ * + * int64 unjoined_events_count = 4; + * @return The unjoinedEventsCount. + */ + long getUnjoinedEventsCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Interval.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Interval.java new file mode 100644 index 000000000000..910aaba09204 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Interval.java @@ -0,0 +1,1027 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * A floating point interval.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Interval} + */ +public final class Interval extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Interval) + IntervalOrBuilder { +private static final long serialVersionUID = 0L; + // Use Interval.newBuilder() to construct. + private Interval(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Interval() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Interval(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_Interval_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_Interval_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Interval.class, com.google.cloud.discoveryengine.v1alpha.Interval.Builder.class); + } + + private int minCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object min_; + public enum MinCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MINIMUM(1), + EXCLUSIVE_MINIMUM(2), + MIN_NOT_SET(0); + private final int value; + private MinCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MinCase valueOf(int value) { + return forNumber(value); + } + + public static MinCase forNumber(int value) { + switch (value) { + case 1: return MINIMUM; + case 2: return EXCLUSIVE_MINIMUM; + case 0: return MIN_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MinCase + getMinCase() { + return MinCase.forNumber( + minCase_); + } + + private int maxCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object max_; + public enum MaxCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAXIMUM(3), + EXCLUSIVE_MAXIMUM(4), + MAX_NOT_SET(0); + private final int value; + private MaxCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MaxCase valueOf(int value) { + return forNumber(value); + } + + public static MaxCase forNumber(int value) { + switch (value) { + case 3: return MAXIMUM; + case 4: return EXCLUSIVE_MAXIMUM; + case 0: return MAX_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MaxCase + getMaxCase() { + return MaxCase.forNumber( + maxCase_); + } + + public static final int MINIMUM_FIELD_NUMBER = 1; + /** + *
+   * Inclusive lower bound.
+   * 
+ * + * double minimum = 1; + * @return Whether the minimum field is set. + */ + @java.lang.Override + public boolean hasMinimum() { + return minCase_ == 1; + } + /** + *
+   * Inclusive lower bound.
+   * 
+ * + * double minimum = 1; + * @return The minimum. + */ + @java.lang.Override + public double getMinimum() { + if (minCase_ == 1) { + return (java.lang.Double) min_; + } + return 0D; + } + + public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER = 2; + /** + *
+   * Exclusive lower bound.
+   * 
+ * + * double exclusive_minimum = 2; + * @return Whether the exclusiveMinimum field is set. + */ + @java.lang.Override + public boolean hasExclusiveMinimum() { + return minCase_ == 2; + } + /** + *
+   * Exclusive lower bound.
+   * 
+ * + * double exclusive_minimum = 2; + * @return The exclusiveMinimum. + */ + @java.lang.Override + public double getExclusiveMinimum() { + if (minCase_ == 2) { + return (java.lang.Double) min_; + } + return 0D; + } + + public static final int MAXIMUM_FIELD_NUMBER = 3; + /** + *
+   * Inclusive upper bound.
+   * 
+ * + * double maximum = 3; + * @return Whether the maximum field is set. + */ + @java.lang.Override + public boolean hasMaximum() { + return maxCase_ == 3; + } + /** + *
+   * Inclusive upper bound.
+   * 
+ * + * double maximum = 3; + * @return The maximum. + */ + @java.lang.Override + public double getMaximum() { + if (maxCase_ == 3) { + return (java.lang.Double) max_; + } + return 0D; + } + + public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER = 4; + /** + *
+   * Exclusive upper bound.
+   * 
+ * + * double exclusive_maximum = 4; + * @return Whether the exclusiveMaximum field is set. + */ + @java.lang.Override + public boolean hasExclusiveMaximum() { + return maxCase_ == 4; + } + /** + *
+   * Exclusive upper bound.
+   * 
+ * + * double exclusive_maximum = 4; + * @return The exclusiveMaximum. + */ + @java.lang.Override + public double getExclusiveMaximum() { + if (maxCase_ == 4) { + return (java.lang.Double) max_; + } + return 0D; + } + + 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 (minCase_ == 1) { + output.writeDouble( + 1, (double)((java.lang.Double) min_)); + } + if (minCase_ == 2) { + output.writeDouble( + 2, (double)((java.lang.Double) min_)); + } + if (maxCase_ == 3) { + output.writeDouble( + 3, (double)((java.lang.Double) max_)); + } + if (maxCase_ == 4) { + output.writeDouble( + 4, (double)((java.lang.Double) max_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 1, (double)((java.lang.Double) min_)); + } + if (minCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) min_)); + } + if (maxCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) max_)); + } + if (maxCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 4, (double)((java.lang.Double) max_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Interval)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Interval other = (com.google.cloud.discoveryengine.v1alpha.Interval) obj; + + if (!getMinCase().equals(other.getMinCase())) return false; + switch (minCase_) { + case 1: + if (java.lang.Double.doubleToLongBits(getMinimum()) + != java.lang.Double.doubleToLongBits( + other.getMinimum())) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getExclusiveMinimum()) + != java.lang.Double.doubleToLongBits( + other.getExclusiveMinimum())) return false; + break; + case 0: + default: + } + if (!getMaxCase().equals(other.getMaxCase())) return false; + switch (maxCase_) { + case 3: + if (java.lang.Double.doubleToLongBits(getMaximum()) + != java.lang.Double.doubleToLongBits( + other.getMaximum())) return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getExclusiveMaximum()) + != java.lang.Double.doubleToLongBits( + other.getExclusiveMaximum())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (minCase_) { + case 1: + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinimum())); + break; + case 2: + hash = (37 * hash) + EXCLUSIVE_MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExclusiveMinimum())); + break; + case 0: + default: + } + switch (maxCase_) { + case 3: + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaximum())); + break; + case 4: + hash = (37 * hash) + EXCLUSIVE_MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExclusiveMaximum())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Interval parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval 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.discoveryengine.v1alpha.Interval parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval 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.discoveryengine.v1alpha.Interval parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Interval parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Interval 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.discoveryengine.v1alpha.Interval prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A floating point interval.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Interval} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Interval) + com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_Interval_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_Interval_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Interval.class, com.google.cloud.discoveryengine.v1alpha.Interval.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Interval.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + minCase_ = 0; + min_ = null; + maxCase_ = 0; + max_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_Interval_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval build() { + com.google.cloud.discoveryengine.v1alpha.Interval result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Interval result = new com.google.cloud.discoveryengine.v1alpha.Interval(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Interval result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.Interval result) { + result.minCase_ = minCase_; + result.min_ = this.min_; + result.maxCase_ = maxCase_; + result.max_ = this.max_; + } + + @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.discoveryengine.v1alpha.Interval) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Interval)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Interval other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance()) return this; + switch (other.getMinCase()) { + case MINIMUM: { + setMinimum(other.getMinimum()); + break; + } + case EXCLUSIVE_MINIMUM: { + setExclusiveMinimum(other.getExclusiveMinimum()); + break; + } + case MIN_NOT_SET: { + break; + } + } + switch (other.getMaxCase()) { + case MAXIMUM: { + setMaximum(other.getMaximum()); + break; + } + case EXCLUSIVE_MAXIMUM: { + setExclusiveMaximum(other.getExclusiveMaximum()); + break; + } + case MAX_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + min_ = input.readDouble(); + minCase_ = 1; + break; + } // case 9 + case 17: { + min_ = input.readDouble(); + minCase_ = 2; + break; + } // case 17 + case 25: { + max_ = input.readDouble(); + maxCase_ = 3; + break; + } // case 25 + case 33: { + max_ = input.readDouble(); + maxCase_ = 4; + break; + } // case 33 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int minCase_ = 0; + private java.lang.Object min_; + public MinCase + getMinCase() { + return MinCase.forNumber( + minCase_); + } + + public Builder clearMin() { + minCase_ = 0; + min_ = null; + onChanged(); + return this; + } + + private int maxCase_ = 0; + private java.lang.Object max_; + public MaxCase + getMaxCase() { + return MaxCase.forNumber( + maxCase_); + } + + public Builder clearMax() { + maxCase_ = 0; + max_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+     * Inclusive lower bound.
+     * 
+ * + * double minimum = 1; + * @return Whether the minimum field is set. + */ + public boolean hasMinimum() { + return minCase_ == 1; + } + /** + *
+     * Inclusive lower bound.
+     * 
+ * + * double minimum = 1; + * @return The minimum. + */ + public double getMinimum() { + if (minCase_ == 1) { + return (java.lang.Double) min_; + } + return 0D; + } + /** + *
+     * Inclusive lower bound.
+     * 
+ * + * double minimum = 1; + * @param value The minimum to set. + * @return This builder for chaining. + */ + public Builder setMinimum(double value) { + + minCase_ = 1; + min_ = value; + onChanged(); + return this; + } + /** + *
+     * Inclusive lower bound.
+     * 
+ * + * double minimum = 1; + * @return This builder for chaining. + */ + public Builder clearMinimum() { + if (minCase_ == 1) { + minCase_ = 0; + min_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * Exclusive lower bound.
+     * 
+ * + * double exclusive_minimum = 2; + * @return Whether the exclusiveMinimum field is set. + */ + public boolean hasExclusiveMinimum() { + return minCase_ == 2; + } + /** + *
+     * Exclusive lower bound.
+     * 
+ * + * double exclusive_minimum = 2; + * @return The exclusiveMinimum. + */ + public double getExclusiveMinimum() { + if (minCase_ == 2) { + return (java.lang.Double) min_; + } + return 0D; + } + /** + *
+     * Exclusive lower bound.
+     * 
+ * + * double exclusive_minimum = 2; + * @param value The exclusiveMinimum to set. + * @return This builder for chaining. + */ + public Builder setExclusiveMinimum(double value) { + + minCase_ = 2; + min_ = value; + onChanged(); + return this; + } + /** + *
+     * Exclusive lower bound.
+     * 
+ * + * double exclusive_minimum = 2; + * @return This builder for chaining. + */ + public Builder clearExclusiveMinimum() { + if (minCase_ == 2) { + minCase_ = 0; + min_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * Inclusive upper bound.
+     * 
+ * + * double maximum = 3; + * @return Whether the maximum field is set. + */ + public boolean hasMaximum() { + return maxCase_ == 3; + } + /** + *
+     * Inclusive upper bound.
+     * 
+ * + * double maximum = 3; + * @return The maximum. + */ + public double getMaximum() { + if (maxCase_ == 3) { + return (java.lang.Double) max_; + } + return 0D; + } + /** + *
+     * Inclusive upper bound.
+     * 
+ * + * double maximum = 3; + * @param value The maximum to set. + * @return This builder for chaining. + */ + public Builder setMaximum(double value) { + + maxCase_ = 3; + max_ = value; + onChanged(); + return this; + } + /** + *
+     * Inclusive upper bound.
+     * 
+ * + * double maximum = 3; + * @return This builder for chaining. + */ + public Builder clearMaximum() { + if (maxCase_ == 3) { + maxCase_ = 0; + max_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * Exclusive upper bound.
+     * 
+ * + * double exclusive_maximum = 4; + * @return Whether the exclusiveMaximum field is set. + */ + public boolean hasExclusiveMaximum() { + return maxCase_ == 4; + } + /** + *
+     * Exclusive upper bound.
+     * 
+ * + * double exclusive_maximum = 4; + * @return The exclusiveMaximum. + */ + public double getExclusiveMaximum() { + if (maxCase_ == 4) { + return (java.lang.Double) max_; + } + return 0D; + } + /** + *
+     * Exclusive upper bound.
+     * 
+ * + * double exclusive_maximum = 4; + * @param value The exclusiveMaximum to set. + * @return This builder for chaining. + */ + public Builder setExclusiveMaximum(double value) { + + maxCase_ = 4; + max_ = value; + onChanged(); + return this; + } + /** + *
+     * Exclusive upper bound.
+     * 
+ * + * double exclusive_maximum = 4; + * @return This builder for chaining. + */ + public Builder clearExclusiveMaximum() { + if (maxCase_ == 4) { + maxCase_ = 0; + max_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Interval) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Interval) + private static final com.google.cloud.discoveryengine.v1alpha.Interval DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Interval(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Interval getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Interval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IntervalOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IntervalOrBuilder.java new file mode 100644 index 000000000000..44256d5111b4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IntervalOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface IntervalOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Interval) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Inclusive lower bound.
+   * 
+ * + * double minimum = 1; + * @return Whether the minimum field is set. + */ + boolean hasMinimum(); + /** + *
+   * Inclusive lower bound.
+   * 
+ * + * double minimum = 1; + * @return The minimum. + */ + double getMinimum(); + + /** + *
+   * Exclusive lower bound.
+   * 
+ * + * double exclusive_minimum = 2; + * @return Whether the exclusiveMinimum field is set. + */ + boolean hasExclusiveMinimum(); + /** + *
+   * Exclusive lower bound.
+   * 
+ * + * double exclusive_minimum = 2; + * @return The exclusiveMinimum. + */ + double getExclusiveMinimum(); + + /** + *
+   * Inclusive upper bound.
+   * 
+ * + * double maximum = 3; + * @return Whether the maximum field is set. + */ + boolean hasMaximum(); + /** + *
+   * Inclusive upper bound.
+   * 
+ * + * double maximum = 3; + * @return The maximum. + */ + double getMaximum(); + + /** + *
+   * Exclusive upper bound.
+   * 
+ * + * double exclusive_maximum = 4; + * @return Whether the exclusiveMaximum field is set. + */ + boolean hasExclusiveMaximum(); + /** + *
+   * Exclusive upper bound.
+   * 
+ * + * double exclusive_maximum = 4; + * @return The exclusiveMaximum. + */ + double getExclusiveMaximum(); + + com.google.cloud.discoveryengine.v1alpha.Interval.MinCase getMinCase(); + + com.google.cloud.discoveryengine.v1alpha.Interval.MaxCase getMaxCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequest.java new file mode 100644 index 000000000000..a1c83025d383 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequest.java @@ -0,0 +1,1260 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request for ListConversations method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListConversationsRequest} + */ +public final class ListConversationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListConversationsRequest) + ListConversationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListConversationsRequest.newBuilder() to construct. + private ListConversationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListConversationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListConversationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.class, com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The data store resource name. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * 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 data store resource name. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of results to return. If unspecified, defaults
+   * to 50. Max allowed value is 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * A page token, received from a previous `ListConversations` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token, received from a previous `ListConversations` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * A filter to apply on the list results. The supported features are:
+   * user_pseudo_id, state.
+   *
+   * Example:
+   * "user_pseudo_id = some_id"
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * A filter to apply on the list results. The supported features are:
+   * user_pseudo_id, state.
+   *
+   * Example:
+   * "user_pseudo_id = some_id"
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `update_time`
+   *   * `create_time`
+   *   * `conversation_name`
+   *
+   * Example:
+   * "update_time desc"
+   * "create_time"
+   * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `update_time`
+   *   * `create_time`
+   *   * `conversation_name`
+   *
+   * Example:
+   * "update_time desc"
+   * "create_time"
+   * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest other = (com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest) 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 (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest 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.discoveryengine.v1alpha.ListConversationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest 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.discoveryengine.v1alpha.ListConversationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest 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.discoveryengine.v1alpha.ListConversationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for ListConversations method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListConversationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListConversationsRequest) + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.class, com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest result = new com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.discoveryengine.v1alpha.ListConversationsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The data store resource name. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * 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 data store resource name. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * 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 data store resource name. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The data store resource name. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The data store resource name. Format:
+     * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of results to return. If unspecified, defaults
+     * to 50. Max allowed value is 1000.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of results to return. If unspecified, defaults
+     * to 50. Max allowed value is 1000.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of results to return. If unspecified, defaults
+     * to 50. Max allowed value is 1000.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token, received from a previous `ListConversations` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token, received from a previous `ListConversations` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token, received from a previous `ListConversations` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * A page token, received from a previous `ListConversations` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * A page token, received from a previous `ListConversations` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * A filter to apply on the list results. The supported features are:
+     * user_pseudo_id, state.
+     *
+     * Example:
+     * "user_pseudo_id = some_id"
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A filter to apply on the list results. The supported features are:
+     * user_pseudo_id, state.
+     *
+     * Example:
+     * "user_pseudo_id = some_id"
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A filter to apply on the list results. The supported features are:
+     * user_pseudo_id, state.
+     *
+     * Example:
+     * "user_pseudo_id = some_id"
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * A filter to apply on the list results. The supported features are:
+     * user_pseudo_id, state.
+     *
+     * Example:
+     * "user_pseudo_id = some_id"
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * A filter to apply on the list results. The supported features are:
+     * user_pseudo_id, state.
+     *
+     * Example:
+     * "user_pseudo_id = some_id"
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `update_time`
+     *   * `create_time`
+     *   * `conversation_name`
+     *
+     * Example:
+     * "update_time desc"
+     * "create_time"
+     * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `update_time`
+     *   * `create_time`
+     *   * `conversation_name`
+     *
+     * Example:
+     * "update_time desc"
+     * "create_time"
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `update_time`
+     *   * `create_time`
+     *   * `conversation_name`
+     *
+     * Example:
+     * "update_time desc"
+     * "create_time"
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `update_time`
+     *   * `create_time`
+     *   * `conversation_name`
+     *
+     * Example:
+     * "update_time desc"
+     * "create_time"
+     * 
+ * + * string order_by = 5; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * Supported fields:
+     *   * `update_time`
+     *   * `create_time`
+     *   * `conversation_name`
+     *
+     * Example:
+     * "update_time desc"
+     * "create_time"
+     * 
+ * + * string order_by = 5; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListConversationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListConversationsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequestOrBuilder.java new file mode 100644 index 000000000000..616f758a12df --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsRequestOrBuilder.java @@ -0,0 +1,130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListConversationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListConversationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The data store resource name. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The data store resource name. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of results to return. If unspecified, defaults
+   * to 50. Max allowed value is 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token, received from a previous `ListConversations` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A page token, received from a previous `ListConversations` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * A filter to apply on the list results. The supported features are:
+   * user_pseudo_id, state.
+   *
+   * Example:
+   * "user_pseudo_id = some_id"
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * A filter to apply on the list results. The supported features are:
+   * user_pseudo_id, state.
+   *
+   * Example:
+   * "user_pseudo_id = some_id"
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `update_time`
+   *   * `create_time`
+   *   * `conversation_name`
+   *
+   * Example:
+   * "update_time desc"
+   * "create_time"
+   * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * Supported fields:
+   *   * `update_time`
+   *   * `create_time`
+   *   * `conversation_name`
+   *
+   * Example:
+   * "update_time desc"
+   * "create_time"
+   * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponse.java new file mode 100644 index 000000000000..11e283a9ee04 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponse.java @@ -0,0 +1,1023 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response for ListConversations method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListConversationsResponse} + */ +public final class ListConversationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListConversationsResponse) + ListConversationsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListConversationsResponse.newBuilder() to construct. + private ListConversationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListConversationsResponse() { + conversations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListConversationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.class, com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.Builder.class); + } + + public static final int CONVERSATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List conversations_; + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + @java.lang.Override + public java.util.List getConversationsList() { + return conversations_; + } + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + @java.lang.Override + public java.util.List + getConversationsOrBuilderList() { + return conversations_; + } + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + @java.lang.Override + public int getConversationsCount() { + return conversations_.size(); + } + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversations(int index) { + return conversations_.get(index); + } + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationsOrBuilder( + int index) { + return conversations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conversations_.size(); i++) { + output.writeMessage(1, conversations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conversations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse other = (com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse) obj; + + if (!getConversationsList() + .equals(other.getConversationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConversationsCount() > 0) { + hash = (37 * hash) + CONVERSATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConversationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse 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.discoveryengine.v1alpha.ListConversationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse 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.discoveryengine.v1alpha.ListConversationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse 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.discoveryengine.v1alpha.ListConversationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for ListConversations method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListConversationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListConversationsResponse) + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.class, com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conversationsBuilder_ == null) { + conversations_ = java.util.Collections.emptyList(); + } else { + conversations_ = null; + conversationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListConversationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse result = new com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse result) { + if (conversationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversations_ = java.util.Collections.unmodifiableList(conversations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversations_ = conversations_; + } else { + result.conversations_ = conversationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse.getDefaultInstance()) return this; + if (conversationsBuilder_ == null) { + if (!other.conversations_.isEmpty()) { + if (conversations_.isEmpty()) { + conversations_ = other.conversations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversationsIsMutable(); + conversations_.addAll(other.conversations_); + } + onChanged(); + } + } else { + if (!other.conversations_.isEmpty()) { + if (conversationsBuilder_.isEmpty()) { + conversationsBuilder_.dispose(); + conversationsBuilder_ = null; + conversations_ = other.conversations_; + bitField0_ = (bitField0_ & ~0x00000001); + conversationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConversationsFieldBuilder() : null; + } else { + conversationsBuilder_.addAllMessages(other.conversations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.Conversation m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Conversation.parser(), + extensionRegistry); + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(m); + } else { + conversationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List conversations_ = + java.util.Collections.emptyList(); + private void ensureConversationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversations_ = new java.util.ArrayList(conversations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> conversationsBuilder_; + + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public java.util.List getConversationsList() { + if (conversationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversations_); + } else { + return conversationsBuilder_.getMessageList(); + } + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public int getConversationsCount() { + if (conversationsBuilder_ == null) { + return conversations_.size(); + } else { + return conversationsBuilder_.getCount(); + } + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversations(int index) { + if (conversationsBuilder_ == null) { + return conversations_.get(index); + } else { + return conversationsBuilder_.getMessage(index); + } + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder setConversations( + int index, com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.set(index, value); + onChanged(); + } else { + conversationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder setConversations( + int index, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.set(index, builderForValue.build()); + onChanged(); + } else { + conversationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder addConversations(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.add(value); + onChanged(); + } else { + conversationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder addConversations( + int index, com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.add(index, value); + onChanged(); + } else { + conversationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder addConversations( + com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(builderForValue.build()); + onChanged(); + } else { + conversationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder addConversations( + int index, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(index, builderForValue.build()); + onChanged(); + } else { + conversationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder addAllConversations( + java.lang.Iterable values) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conversations_); + onChanged(); + } else { + conversationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder clearConversations() { + if (conversationsBuilder_ == null) { + conversations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversationsBuilder_.clear(); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public Builder removeConversations(int index) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.remove(index); + onChanged(); + } else { + conversationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder getConversationsBuilder( + int index) { + return getConversationsFieldBuilder().getBuilder(index); + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationsOrBuilder( + int index) { + if (conversationsBuilder_ == null) { + return conversations_.get(index); } else { + return conversationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public java.util.List + getConversationsOrBuilderList() { + if (conversationsBuilder_ != null) { + return conversationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversations_); + } + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder addConversationsBuilder() { + return getConversationsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()); + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder addConversationsBuilder( + int index) { + return getConversationsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()); + } + /** + *
+     * All the Conversations for a given data store.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + public java.util.List + getConversationsBuilderList() { + return getConversationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> + getConversationsFieldBuilder() { + if (conversationsBuilder_ == null) { + conversationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder>( + conversations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversations_ = null; + } + return conversationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListConversationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListConversationsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponseOrBuilder.java new file mode 100644 index 000000000000..f97be9141540 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListConversationsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListConversationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListConversationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + java.util.List + getConversationsList(); + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + com.google.cloud.discoveryengine.v1alpha.Conversation getConversations(int index); + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + int getConversationsCount(); + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + java.util.List + getConversationsOrBuilderList(); + /** + *
+   * All the Conversations for a given data store.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Conversation conversations = 1; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationsOrBuilder( + int index); + + /** + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequest.java new file mode 100644 index 000000000000..6a08bc62e3c1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequest.java @@ -0,0 +1,966 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListDocumentsRequest} + */ +public final class ListDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) + ListDocumentsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDocumentsRequest.newBuilder() to construct. + private ListDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDocumentsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListDocumentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.class, com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Use `default_branch` as the branch ID, to list documents under the default
+   * branch.
+   *
+   * If the caller does not have permission to list
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+   * branch, regardless of whether or not this branch exists, a
+   * `PERMISSION_DENIED` error is returned.
+   * 
+ * + * 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 branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Use `default_branch` as the branch ID, to list documents under the default
+   * branch.
+   *
+   * If the caller does not have permission to list
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+   * branch, regardless of whether or not this branch exists, a
+   * `PERMISSION_DENIED` error is returned.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+   * unspecified, defaults to 100. The maximum allowed value is 1000. Values
+   * above 1000 will be coerced to 1000.
+   *
+   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * A page token
+   * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+   * received from a previous
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * must match the call that provided the page token. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token
+   * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+   * received from a previous
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * must match the call that provided the page token. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest other = (com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest 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.discoveryengine.v1alpha.ListDocumentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest 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.discoveryengine.v1alpha.ListDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest 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.discoveryengine.v1alpha.ListDocumentsRequest 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
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListDocumentsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.class, com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest result = new com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Use `default_branch` as the branch ID, to list documents under the default
+     * branch.
+     *
+     * If the caller does not have permission to list
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+     * branch, regardless of whether or not this branch exists, a
+     * `PERMISSION_DENIED` error is returned.
+     * 
+ * + * 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 branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Use `default_branch` as the branch ID, to list documents under the default
+     * branch.
+     *
+     * If the caller does not have permission to list
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+     * branch, regardless of whether or not this branch exists, a
+     * `PERMISSION_DENIED` error is returned.
+     * 
+ * + * 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 branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Use `default_branch` as the branch ID, to list documents under the default
+     * branch.
+     *
+     * If the caller does not have permission to list
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+     * branch, regardless of whether or not this branch exists, a
+     * `PERMISSION_DENIED` error is returned.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Use `default_branch` as the branch ID, to list documents under the default
+     * branch.
+     *
+     * If the caller does not have permission to list
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+     * branch, regardless of whether or not this branch exists, a
+     * `PERMISSION_DENIED` error is returned.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * Use `default_branch` as the branch ID, to list documents under the default
+     * branch.
+     *
+     * If the caller does not have permission to list
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+     * branch, regardless of whether or not this branch exists, a
+     * `PERMISSION_DENIED` error is returned.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+     * unspecified, defaults to 100. The maximum allowed value is 1000. Values
+     * above 1000 will be coerced to 1000.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+     * unspecified, defaults to 100. The maximum allowed value is 1000. Values
+     * above 1000 will be coerced to 1000.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+     * unspecified, defaults to 100. The maximum allowed value is 1000. Values
+     * above 1000 will be coerced to 1000.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token
+     * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+     * received from a previous
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * must match the call that provided the page token. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token
+     * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+     * received from a previous
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * must match the call that provided the page token. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token
+     * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+     * received from a previous
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * must match the call that provided the page token. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * A page token
+     * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+     * received from a previous
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * must match the call that provided the page token. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * A page token
+     * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+     * received from a previous
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+     * must match the call that provided the page token. Otherwise, an
+     * `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequestOrBuilder.java new file mode 100644 index 000000000000..f0cb3a0f8fc0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsRequestOrBuilder.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListDocumentsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListDocumentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Use `default_branch` as the branch ID, to list documents under the default
+   * branch.
+   *
+   * If the caller does not have permission to list
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+   * branch, regardless of whether or not this branch exists, a
+   * `PERMISSION_DENIED` error is returned.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * Use `default_branch` as the branch ID, to list documents under the default
+   * branch.
+   *
+   * If the caller does not have permission to list
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s under this
+   * branch, regardless of whether or not this branch exists, a
+   * `PERMISSION_DENIED` error is returned.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+   * unspecified, defaults to 100. The maximum allowed value is 1000. Values
+   * above 1000 will be coerced to 1000.
+   *
+   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token
+   * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+   * received from a previous
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * must match the call that provided the page token. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A page token
+   * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token],
+   * received from a previous
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * must match the call that provided the page token. Otherwise, an
+   * `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponse.java new file mode 100644 index 000000000000..67e71911db65 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponse.java @@ -0,0 +1,1048 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListDocumentsResponse} + */ +public final class ListDocumentsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) + ListDocumentsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDocumentsResponse.newBuilder() to construct. + private ListDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDocumentsResponse() { + documents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListDocumentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.class, com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.Builder.class); + } + + public static final int DOCUMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List documents_; + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + @java.lang.Override + public java.util.List getDocumentsList() { + return documents_; + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + @java.lang.Override + public java.util.List + getDocumentsOrBuilderList() { + return documents_; + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + @java.lang.Override + public int getDocumentsCount() { + return documents_.size(); + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDocuments(int index) { + return documents_.get(index); + } + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentsOrBuilder( + int index) { + return documents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token that can be sent as
+   * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token that can be sent as
+   * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < documents_.size(); i++) { + output.writeMessage(1, documents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < documents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse other = (com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) obj; + + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse 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.discoveryengine.v1alpha.ListDocumentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse 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.discoveryengine.v1alpha.ListDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse 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.discoveryengine.v1alpha.ListDocumentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListDocumentsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.class, com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + } else { + documents_ = null; + documentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListDocumentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse result = new com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse result) { + if (documentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + documents_ = java.util.Collections.unmodifiableList(documents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.documents_ = documents_; + } else { + result.documents_ = documentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.getDefaultInstance()) return this; + if (documentsBuilder_ == null) { + if (!other.documents_.isEmpty()) { + if (documents_.isEmpty()) { + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDocumentsIsMutable(); + documents_.addAll(other.documents_); + } + onChanged(); + } + } else { + if (!other.documents_.isEmpty()) { + if (documentsBuilder_.isEmpty()) { + documentsBuilder_.dispose(); + documentsBuilder_ = null; + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + documentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentsFieldBuilder() : null; + } else { + documentsBuilder_.addAllMessages(other.documents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.Document m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Document.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List documents_ = + java.util.Collections.emptyList(); + private void ensureDocumentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + documents_ = new java.util.ArrayList(documents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> documentsBuilder_; + + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public java.util.List getDocumentsList() { + if (documentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(documents_); + } else { + return documentsBuilder_.getMessageList(); + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public int getDocumentsCount() { + if (documentsBuilder_ == null) { + return documents_.size(); + } else { + return documentsBuilder_.getCount(); + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocuments(int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessage(index); + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.set(index, value); + onChanged(); + } else { + documentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.set(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder addDocuments(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(value); + onChanged(); + } else { + documentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(index, value); + onChanged(); + } else { + documentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder addDocuments( + com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder addAllDocuments( + java.lang.Iterable values) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); + onChanged(); + } else { + documentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder clearDocuments() { + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + documentsBuilder_.clear(); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public Builder removeDocuments(int index) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.remove(index); + onChanged(); + } else { + documentsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder getDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().getBuilder(index); + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentsOrBuilder( + int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); } else { + return documentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public java.util.List + getDocumentsOrBuilderList() { + if (documentsBuilder_ != null) { + return documentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(documents_); + } + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder addDocumentsBuilder() { + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()); + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder addDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()); + } + /** + *
+     * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + public java.util.List + getDocumentsBuilderList() { + return getDocumentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> + getDocumentsFieldBuilder() { + if (documentsBuilder_ == null) { + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>( + documents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + documents_ = null; + } + return documentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token that can be sent as
+     * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token that can be sent as
+     * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token that can be sent as
+     * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A token that can be sent as
+     * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A token that can be sent as
+     * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponseOrBuilder.java new file mode 100644 index 000000000000..b0eaf37afae3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDocumentsResponseOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListDocumentsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListDocumentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + java.util.List + getDocumentsList(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + com.google.cloud.discoveryengine.v1alpha.Document getDocuments(int index); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + int getDocumentsCount(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + java.util.List + getDocumentsOrBuilderList(); + /** + *
+   * The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentsOrBuilder( + int index); + + /** + *
+   * A token that can be sent as
+   * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token that can be sent as
+   * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequest.java new file mode 100644 index 000000000000..863db1c9eca4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequest.java @@ -0,0 +1,904 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSchemasRequest} + */ +public final class ListSchemasRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListSchemasRequest) + ListSchemasRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSchemasRequest.newBuilder() to construct. + private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSchemasRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSchemasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.class, com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * The maximum number of
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s to return. The
+   * service may return fewer than this value.
+   *
+   * If unspecified, at most 100
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned.
+   *
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * A page token, received from a previous
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token, received from a previous
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest other = (com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest 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.discoveryengine.v1alpha.ListSchemasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest 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.discoveryengine.v1alpha.ListSchemasRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest 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.discoveryengine.v1alpha.ListSchemasRequest 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
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSchemasRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListSchemasRequest) + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.class, com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest result = new com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent data store resource name, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s to return. The
+     * service may return fewer than this value.
+     *
+     * If unspecified, at most 100
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned.
+     *
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s to return. The
+     * service may return fewer than this value.
+     *
+     * If unspecified, at most 100
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned.
+     *
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The maximum number of
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s to return. The
+     * service may return fewer than this value.
+     *
+     * If unspecified, at most 100
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned.
+     *
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token, received from a previous
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token, received from a previous
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token, received from a previous
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * A page token, received from a previous
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * A page token, received from a previous
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListSchemasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListSchemasRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequestOrBuilder.java new file mode 100644 index 000000000000..df18c8fcab3a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasRequestOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListSchemasRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListSchemasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent data store resource name, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s to return. The
+   * service may return fewer than this value.
+   *
+   * If unspecified, at most 100
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned.
+   *
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token, received from a previous
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A page token, received from a previous
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponse.java new file mode 100644 index 000000000000..b4f94ba9f85a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponse.java @@ -0,0 +1,1048 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSchemasResponse} + */ +public final class ListSchemasResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListSchemasResponse) + ListSchemasResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSchemasResponse.newBuilder() to construct. + private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSchemasResponse() { + schemas_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSchemasResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.class, com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.Builder.class); + } + + public static final int SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List schemas_; + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + @java.lang.Override + public java.util.List getSchemasList() { + return schemas_; + } + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + @java.lang.Override + public java.util.List + getSchemasOrBuilderList() { + return schemas_; + } + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + @java.lang.Override + public int getSchemasCount() { + return schemas_.size(); + } + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema getSchemas(int index) { + return schemas_.get(index); + } + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemasOrBuilder( + int index) { + return schemas_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token that can be sent as
+   * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token that can be sent as
+   * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < schemas_.size(); i++) { + output.writeMessage(1, schemas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < schemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, schemas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse other = (com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse) obj; + + if (!getSchemasList() + .equals(other.getSchemasList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSchemasCount() > 0) { + hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getSchemasList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse 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.discoveryengine.v1alpha.ListSchemasResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse 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.discoveryengine.v1alpha.ListSchemasResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse 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.discoveryengine.v1alpha.ListSchemasResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListSchemasResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListSchemasResponse) + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.class, com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + } else { + schemas_ = null; + schemasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse result = new com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse result) { + if (schemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schemas_ = java.util.Collections.unmodifiableList(schemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schemas_ = schemas_; + } else { + result.schemas_ = schemasBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse.getDefaultInstance()) return this; + if (schemasBuilder_ == null) { + if (!other.schemas_.isEmpty()) { + if (schemas_.isEmpty()) { + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchemasIsMutable(); + schemas_.addAll(other.schemas_); + } + onChanged(); + } + } else { + if (!other.schemas_.isEmpty()) { + if (schemasBuilder_.isEmpty()) { + schemasBuilder_.dispose(); + schemasBuilder_ = null; + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSchemasFieldBuilder() : null; + } else { + schemasBuilder_.addAllMessages(other.schemas_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.Schema m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Schema.parser(), + extensionRegistry); + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(m); + } else { + schemasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List schemas_ = + java.util.Collections.emptyList(); + private void ensureSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(schemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> schemasBuilder_; + + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public java.util.List getSchemasList() { + if (schemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemas_); + } else { + return schemasBuilder_.getMessageList(); + } + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public int getSchemasCount() { + if (schemasBuilder_ == null) { + return schemas_.size(); + } else { + return schemasBuilder_.getCount(); + } + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema getSchemas(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessage(index); + } + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder setSchemas( + int index, com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.set(index, value); + onChanged(); + } else { + schemasBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder setSchemas( + int index, com.google.cloud.discoveryengine.v1alpha.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.set(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder addSchemas(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(value); + onChanged(); + } else { + schemasBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder addSchemas( + int index, com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(index, value); + onChanged(); + } else { + schemasBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder addSchemas( + com.google.cloud.discoveryengine.v1alpha.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder addSchemas( + int index, com.google.cloud.discoveryengine.v1alpha.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder addAllSchemas( + java.lang.Iterable values) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schemas_); + onChanged(); + } else { + schemasBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder clearSchemas() { + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schemasBuilder_.clear(); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public Builder removeSchemas(int index) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.remove(index); + onChanged(); + } else { + schemasBuilder_.remove(index); + } + return this; + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema.Builder getSchemasBuilder( + int index) { + return getSchemasFieldBuilder().getBuilder(index); + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemasOrBuilder( + int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); } else { + return schemasBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public java.util.List + getSchemasOrBuilderList() { + if (schemasBuilder_ != null) { + return schemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schemas_); + } + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema.Builder addSchemasBuilder() { + return getSchemasFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance()); + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema.Builder addSchemasBuilder( + int index) { + return getSchemasFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance()); + } + /** + *
+     * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + public java.util.List + getSchemasBuilderList() { + return getSchemasFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> + getSchemasFieldBuilder() { + if (schemasBuilder_ == null) { + schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder>( + schemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + schemas_ = null; + } + return schemasBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token that can be sent as
+     * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token that can be sent as
+     * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token that can be sent as
+     * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A token that can be sent as
+     * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A token that can be sent as
+     * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.ListSchemasResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListSchemasResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponseOrBuilder.java new file mode 100644 index 000000000000..53ff1dcc41ef --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListSchemasResponseOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListSchemasResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListSchemasResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + java.util.List + getSchemasList(); + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + com.google.cloud.discoveryengine.v1alpha.Schema getSchemas(int index); + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + int getSchemasCount(); + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + java.util.List + getSchemasOrBuilderList(); + /** + *
+   * The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Schema schemas = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemasOrBuilder( + int index); + + /** + *
+   * A token that can be sent as
+   * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token that can be sent as
+   * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfo.java new file mode 100644 index 000000000000..8389cf17b4ec --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfo.java @@ -0,0 +1,849 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Media-specific user event information.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.MediaInfo} + */ +public final class MediaInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.MediaInfo) + MediaInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use MediaInfo.newBuilder() to construct. + private MediaInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MediaInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MediaInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.MediaInfo.class, com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder.class); + } + + private int bitField0_; + public static final int MEDIA_PROGRESS_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration mediaProgressDuration_; + /** + *
+   * The media progress time in seconds, if applicable.
+   * For example, if the end user has finished 90 seconds of a playback video,
+   * then
+   * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+   * should be set to 90.
+   * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + * @return Whether the mediaProgressDuration field is set. + */ + @java.lang.Override + public boolean hasMediaProgressDuration() { + return mediaProgressDuration_ != null; + } + /** + *
+   * The media progress time in seconds, if applicable.
+   * For example, if the end user has finished 90 seconds of a playback video,
+   * then
+   * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+   * should be set to 90.
+   * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + * @return The mediaProgressDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMediaProgressDuration() { + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; + } + /** + *
+   * The media progress time in seconds, if applicable.
+   * For example, if the end user has finished 90 seconds of a playback video,
+   * then
+   * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+   * should be set to 90.
+   * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder() { + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; + } + + public static final int MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER = 2; + private float mediaProgressPercentage_ = 0F; + /** + *
+   * Media progress should be computed using only the
+   * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+   * relative to the media total length.
+   *
+   * This value must be between `[0, 1.0]` inclusive.
+   *
+   * If this is not a playback or the progress cannot be computed (e.g. ongoing
+   * livestream), this field should be unset.
+   * 
+ * + * optional float media_progress_percentage = 2; + * @return Whether the mediaProgressPercentage field is set. + */ + @java.lang.Override + public boolean hasMediaProgressPercentage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Media progress should be computed using only the
+   * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+   * relative to the media total length.
+   *
+   * This value must be between `[0, 1.0]` inclusive.
+   *
+   * If this is not a playback or the progress cannot be computed (e.g. ongoing
+   * livestream), this field should be unset.
+   * 
+ * + * optional float media_progress_percentage = 2; + * @return The mediaProgressPercentage. + */ + @java.lang.Override + public float getMediaProgressPercentage() { + return mediaProgressPercentage_; + } + + 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 (mediaProgressDuration_ != null) { + output.writeMessage(1, getMediaProgressDuration()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, mediaProgressPercentage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mediaProgressDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMediaProgressDuration()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, mediaProgressPercentage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.MediaInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.MediaInfo other = (com.google.cloud.discoveryengine.v1alpha.MediaInfo) obj; + + if (hasMediaProgressDuration() != other.hasMediaProgressDuration()) return false; + if (hasMediaProgressDuration()) { + if (!getMediaProgressDuration() + .equals(other.getMediaProgressDuration())) return false; + } + if (hasMediaProgressPercentage() != other.hasMediaProgressPercentage()) return false; + if (hasMediaProgressPercentage()) { + if (java.lang.Float.floatToIntBits(getMediaProgressPercentage()) + != java.lang.Float.floatToIntBits( + other.getMediaProgressPercentage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMediaProgressDuration()) { + hash = (37 * hash) + MEDIA_PROGRESS_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMediaProgressDuration().hashCode(); + } + if (hasMediaProgressPercentage()) { + hash = (37 * hash) + MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMediaProgressPercentage()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo 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.discoveryengine.v1alpha.MediaInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo 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.discoveryengine.v1alpha.MediaInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo 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.discoveryengine.v1alpha.MediaInfo 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; + } + /** + *
+   * Media-specific user event information.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.MediaInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.MediaInfo) + com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.MediaInfo.class, com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.MediaInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mediaProgressDuration_ = null; + if (mediaProgressDurationBuilder_ != null) { + mediaProgressDurationBuilder_.dispose(); + mediaProgressDurationBuilder_ = null; + } + mediaProgressPercentage_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.MediaInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.MediaInfo build() { + com.google.cloud.discoveryengine.v1alpha.MediaInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.MediaInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.MediaInfo result = new com.google.cloud.discoveryengine.v1alpha.MediaInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.MediaInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mediaProgressDuration_ = mediaProgressDurationBuilder_ == null + ? mediaProgressDuration_ + : mediaProgressDurationBuilder_.build(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mediaProgressPercentage_ = mediaProgressPercentage_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.MediaInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.MediaInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.MediaInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance()) return this; + if (other.hasMediaProgressDuration()) { + mergeMediaProgressDuration(other.getMediaProgressDuration()); + } + if (other.hasMediaProgressPercentage()) { + setMediaProgressPercentage(other.getMediaProgressPercentage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getMediaProgressDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + mediaProgressPercentage_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration mediaProgressDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> mediaProgressDurationBuilder_; + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + * @return Whether the mediaProgressDuration field is set. + */ + public boolean hasMediaProgressDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + * @return The mediaProgressDuration. + */ + public com.google.protobuf.Duration getMediaProgressDuration() { + if (mediaProgressDurationBuilder_ == null) { + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; + } else { + return mediaProgressDurationBuilder_.getMessage(); + } + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + public Builder setMediaProgressDuration(com.google.protobuf.Duration value) { + if (mediaProgressDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediaProgressDuration_ = value; + } else { + mediaProgressDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + public Builder setMediaProgressDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (mediaProgressDurationBuilder_ == null) { + mediaProgressDuration_ = builderForValue.build(); + } else { + mediaProgressDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + public Builder mergeMediaProgressDuration(com.google.protobuf.Duration value) { + if (mediaProgressDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + mediaProgressDuration_ != null && + mediaProgressDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMediaProgressDurationBuilder().mergeFrom(value); + } else { + mediaProgressDuration_ = value; + } + } else { + mediaProgressDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + public Builder clearMediaProgressDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + mediaProgressDuration_ = null; + if (mediaProgressDurationBuilder_ != null) { + mediaProgressDurationBuilder_.dispose(); + mediaProgressDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + public com.google.protobuf.Duration.Builder getMediaProgressDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMediaProgressDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder() { + if (mediaProgressDurationBuilder_ != null) { + return mediaProgressDurationBuilder_.getMessageOrBuilder(); + } else { + return mediaProgressDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; + } + } + /** + *
+     * The media progress time in seconds, if applicable.
+     * For example, if the end user has finished 90 seconds of a playback video,
+     * then
+     * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+     * should be set to 90.
+     * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMediaProgressDurationFieldBuilder() { + if (mediaProgressDurationBuilder_ == null) { + mediaProgressDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMediaProgressDuration(), + getParentForChildren(), + isClean()); + mediaProgressDuration_ = null; + } + return mediaProgressDurationBuilder_; + } + + private float mediaProgressPercentage_ ; + /** + *
+     * Media progress should be computed using only the
+     * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+     * relative to the media total length.
+     *
+     * This value must be between `[0, 1.0]` inclusive.
+     *
+     * If this is not a playback or the progress cannot be computed (e.g. ongoing
+     * livestream), this field should be unset.
+     * 
+ * + * optional float media_progress_percentage = 2; + * @return Whether the mediaProgressPercentage field is set. + */ + @java.lang.Override + public boolean hasMediaProgressPercentage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Media progress should be computed using only the
+     * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+     * relative to the media total length.
+     *
+     * This value must be between `[0, 1.0]` inclusive.
+     *
+     * If this is not a playback or the progress cannot be computed (e.g. ongoing
+     * livestream), this field should be unset.
+     * 
+ * + * optional float media_progress_percentage = 2; + * @return The mediaProgressPercentage. + */ + @java.lang.Override + public float getMediaProgressPercentage() { + return mediaProgressPercentage_; + } + /** + *
+     * Media progress should be computed using only the
+     * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+     * relative to the media total length.
+     *
+     * This value must be between `[0, 1.0]` inclusive.
+     *
+     * If this is not a playback or the progress cannot be computed (e.g. ongoing
+     * livestream), this field should be unset.
+     * 
+ * + * optional float media_progress_percentage = 2; + * @param value The mediaProgressPercentage to set. + * @return This builder for chaining. + */ + public Builder setMediaProgressPercentage(float value) { + + mediaProgressPercentage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Media progress should be computed using only the
+     * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+     * relative to the media total length.
+     *
+     * This value must be between `[0, 1.0]` inclusive.
+     *
+     * If this is not a playback or the progress cannot be computed (e.g. ongoing
+     * livestream), this field should be unset.
+     * 
+ * + * optional float media_progress_percentage = 2; + * @return This builder for chaining. + */ + public Builder clearMediaProgressPercentage() { + bitField0_ = (bitField0_ & ~0x00000002); + mediaProgressPercentage_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.MediaInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.MediaInfo) + private static final com.google.cloud.discoveryengine.v1alpha.MediaInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.MediaInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.MediaInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.MediaInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfoOrBuilder.java new file mode 100644 index 000000000000..b3f2ef78a86e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/MediaInfoOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface MediaInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.MediaInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The media progress time in seconds, if applicable.
+   * For example, if the end user has finished 90 seconds of a playback video,
+   * then
+   * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+   * should be set to 90.
+   * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + * @return Whether the mediaProgressDuration field is set. + */ + boolean hasMediaProgressDuration(); + /** + *
+   * The media progress time in seconds, if applicable.
+   * For example, if the end user has finished 90 seconds of a playback video,
+   * then
+   * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+   * should be set to 90.
+   * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + * @return The mediaProgressDuration. + */ + com.google.protobuf.Duration getMediaProgressDuration(); + /** + *
+   * The media progress time in seconds, if applicable.
+   * For example, if the end user has finished 90 seconds of a playback video,
+   * then
+   * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds]
+   * should be set to 90.
+   * 
+ * + * .google.protobuf.Duration media_progress_duration = 1; + */ + com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder(); + + /** + *
+   * Media progress should be computed using only the
+   * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+   * relative to the media total length.
+   *
+   * This value must be between `[0, 1.0]` inclusive.
+   *
+   * If this is not a playback or the progress cannot be computed (e.g. ongoing
+   * livestream), this field should be unset.
+   * 
+ * + * optional float media_progress_percentage = 2; + * @return Whether the mediaProgressPercentage field is set. + */ + boolean hasMediaProgressPercentage(); + /** + *
+   * Media progress should be computed using only the
+   * [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration]
+   * relative to the media total length.
+   *
+   * This value must be between `[0, 1.0]` inclusive.
+   *
+   * If this is not a playback or the progress cannot be computed (e.g. ongoing
+   * livestream), this field should be unset.
+   * 
+ * + * optional float media_progress_percentage = 2; + * @return The mediaProgressPercentage. + */ + float getMediaProgressPercentage(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfo.java new file mode 100644 index 000000000000..383eb10fcf0b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfo.java @@ -0,0 +1,1265 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Detailed page information.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PageInfo} + */ +public final class PageInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PageInfo) + PageInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use PageInfo.newBuilder() to construct. + private PageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PageInfo() { + pageviewId_ = ""; + pageCategory_ = ""; + uri_ = ""; + referrerUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PageInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PageInfo.class, com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder.class); + } + + public static final int PAGEVIEW_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object pageviewId_ = ""; + /** + *
+   * A unique ID of a web page view.
+   *
+   * This should be kept the same for all user events triggered from the same
+   * pageview. For example, an item detail page view could trigger multiple
+   * events as the user is browsing the page. The `pageview_id` property should
+   * be kept the same for all these events so that they can be grouped together
+   * properly.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically.
+   * 
+ * + * string pageview_id = 1; + * @return The pageviewId. + */ + @java.lang.Override + public java.lang.String getPageviewId() { + java.lang.Object ref = pageviewId_; + 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(); + pageviewId_ = s; + return s; + } + } + /** + *
+   * A unique ID of a web page view.
+   *
+   * This should be kept the same for all user events triggered from the same
+   * pageview. For example, an item detail page view could trigger multiple
+   * events as the user is browsing the page. The `pageview_id` property should
+   * be kept the same for all these events so that they can be grouped together
+   * properly.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically.
+   * 
+ * + * string pageview_id = 1; + * @return The bytes for pageviewId. + */ + @java.lang.Override + 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); + pageviewId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_CATEGORY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object pageCategory_ = ""; + /** + *
+   * The most specific category associated with a category page.
+   *
+   * To represent full path of category, use '>' sign to separate different
+   * hierarchies. If '>' is part of the category name, please replace it with
+   * other character(s).
+   *
+   * Category pages include special pages such as sales or promotions. For
+   * instance, a special sale page may have the category hierarchy:
+   * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+   *
+   * Required for `view-category-page` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_category = 2; + * @return The pageCategory. + */ + @java.lang.Override + public java.lang.String getPageCategory() { + java.lang.Object ref = pageCategory_; + 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(); + pageCategory_ = s; + return s; + } + } + /** + *
+   * The most specific category associated with a category page.
+   *
+   * To represent full path of category, use '>' sign to separate different
+   * hierarchies. If '>' is part of the category name, please replace it with
+   * other character(s).
+   *
+   * Category pages include special pages such as sales or promotions. For
+   * instance, a special sale page may have the category hierarchy:
+   * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+   *
+   * Required for `view-category-page` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_category = 2; + * @return The bytes for pageCategory. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageCategoryBytes() { + java.lang.Object ref = pageCategory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+   * Complete URL (window.location.href) of the user's current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. Maximum length 5,000
+   * characters.
+   * 
+ * + * string uri = 3; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + *
+   * Complete URL (window.location.href) of the user's current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. Maximum length 5,000
+   * characters.
+   * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + @java.lang.Override + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERRER_URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object referrerUri_ = ""; + /** + *
+   * The referrer URL of the current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. However, some browser
+   * privacy restrictions may cause this field to be empty.
+   * 
+ * + * string referrer_uri = 4; + * @return The referrerUri. + */ + @java.lang.Override + public java.lang.String getReferrerUri() { + java.lang.Object ref = referrerUri_; + 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(); + referrerUri_ = s; + return s; + } + } + /** + *
+   * The referrer URL of the current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. However, some browser
+   * privacy restrictions may cause this field to be empty.
+   * 
+ * + * string referrer_uri = 4; + * @return The bytes for referrerUri. + */ + @java.lang.Override + 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); + referrerUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageviewId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pageviewId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageCategory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referrerUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, referrerUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageviewId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pageviewId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageCategory_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referrerUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, referrerUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PageInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PageInfo other = (com.google.cloud.discoveryengine.v1alpha.PageInfo) obj; + + if (!getPageviewId() + .equals(other.getPageviewId())) return false; + if (!getPageCategory() + .equals(other.getPageCategory())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getReferrerUri() + .equals(other.getReferrerUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGEVIEW_ID_FIELD_NUMBER; + hash = (53 * hash) + getPageviewId().hashCode(); + hash = (37 * hash) + PAGE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getPageCategory().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + REFERRER_URI_FIELD_NUMBER; + hash = (53 * hash) + getReferrerUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo 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.discoveryengine.v1alpha.PageInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo 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.discoveryengine.v1alpha.PageInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PageInfo 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.discoveryengine.v1alpha.PageInfo 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; + } + /** + *
+   * Detailed page information.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PageInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PageInfo) + com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PageInfo.class, com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PageInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageviewId_ = ""; + pageCategory_ = ""; + uri_ = ""; + referrerUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PageInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PageInfo build() { + com.google.cloud.discoveryengine.v1alpha.PageInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PageInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PageInfo result = new com.google.cloud.discoveryengine.v1alpha.PageInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PageInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageviewId_ = pageviewId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageCategory_ = pageCategory_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.referrerUri_ = referrerUri_; + } + } + + @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.discoveryengine.v1alpha.PageInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PageInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PageInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance()) return this; + if (!other.getPageviewId().isEmpty()) { + pageviewId_ = other.pageviewId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageCategory().isEmpty()) { + pageCategory_ = other.pageCategory_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getReferrerUri().isEmpty()) { + referrerUri_ = other.referrerUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + pageviewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + referrerUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object pageviewId_ = ""; + /** + *
+     * A unique ID of a web page view.
+     *
+     * This should be kept the same for all user events triggered from the same
+     * pageview. For example, an item detail page view could trigger multiple
+     * events as the user is browsing the page. The `pageview_id` property should
+     * be kept the same for all these events so that they can be grouped together
+     * properly.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically.
+     * 
+ * + * string pageview_id = 1; + * @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; + java.lang.String s = bs.toStringUtf8(); + pageviewId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique ID of a web page view.
+     *
+     * This should be kept the same for all user events triggered from the same
+     * pageview. For example, an item detail page view could trigger multiple
+     * events as the user is browsing the page. The `pageview_id` property should
+     * be kept the same for all these events so that they can be grouped together
+     * properly.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically.
+     * 
+ * + * string pageview_id = 1; + * @return The bytes for pageviewId. + */ + 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); + pageviewId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique ID of a web page view.
+     *
+     * This should be kept the same for all user events triggered from the same
+     * pageview. For example, an item detail page view could trigger multiple
+     * events as the user is browsing the page. The `pageview_id` property should
+     * be kept the same for all these events so that they can be grouped together
+     * properly.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically.
+     * 
+ * + * string pageview_id = 1; + * @param value The pageviewId to set. + * @return This builder for chaining. + */ + public Builder setPageviewId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageviewId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * A unique ID of a web page view.
+     *
+     * This should be kept the same for all user events triggered from the same
+     * pageview. For example, an item detail page view could trigger multiple
+     * events as the user is browsing the page. The `pageview_id` property should
+     * be kept the same for all these events so that they can be grouped together
+     * properly.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically.
+     * 
+ * + * string pageview_id = 1; + * @return This builder for chaining. + */ + public Builder clearPageviewId() { + pageviewId_ = getDefaultInstance().getPageviewId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A unique ID of a web page view.
+     *
+     * This should be kept the same for all user events triggered from the same
+     * pageview. For example, an item detail page view could trigger multiple
+     * events as the user is browsing the page. The `pageview_id` property should
+     * be kept the same for all these events so that they can be grouped together
+     * properly.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically.
+     * 
+ * + * string pageview_id = 1; + * @param value The bytes for pageviewId to set. + * @return This builder for chaining. + */ + public Builder setPageviewIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageviewId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pageCategory_ = ""; + /** + *
+     * The most specific category associated with a category page.
+     *
+     * To represent full path of category, use '>' sign to separate different
+     * hierarchies. If '>' is part of the category name, please replace it with
+     * other character(s).
+     *
+     * Category pages include special pages such as sales or promotions. For
+     * instance, a special sale page may have the category hierarchy:
+     * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+     *
+     * Required for `view-category-page` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_category = 2; + * @return The pageCategory. + */ + public java.lang.String getPageCategory() { + java.lang.Object ref = pageCategory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageCategory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The most specific category associated with a category page.
+     *
+     * To represent full path of category, use '>' sign to separate different
+     * hierarchies. If '>' is part of the category name, please replace it with
+     * other character(s).
+     *
+     * Category pages include special pages such as sales or promotions. For
+     * instance, a special sale page may have the category hierarchy:
+     * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+     *
+     * Required for `view-category-page` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_category = 2; + * @return The bytes for pageCategory. + */ + public com.google.protobuf.ByteString + getPageCategoryBytes() { + java.lang.Object ref = pageCategory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The most specific category associated with a category page.
+     *
+     * To represent full path of category, use '>' sign to separate different
+     * hierarchies. If '>' is part of the category name, please replace it with
+     * other character(s).
+     *
+     * Category pages include special pages such as sales or promotions. For
+     * instance, a special sale page may have the category hierarchy:
+     * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+     *
+     * Required for `view-category-page` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_category = 2; + * @param value The pageCategory to set. + * @return This builder for chaining. + */ + public Builder setPageCategory( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageCategory_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The most specific category associated with a category page.
+     *
+     * To represent full path of category, use '>' sign to separate different
+     * hierarchies. If '>' is part of the category name, please replace it with
+     * other character(s).
+     *
+     * Category pages include special pages such as sales or promotions. For
+     * instance, a special sale page may have the category hierarchy:
+     * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+     *
+     * Required for `view-category-page` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_category = 2; + * @return This builder for chaining. + */ + public Builder clearPageCategory() { + pageCategory_ = getDefaultInstance().getPageCategory(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The most specific category associated with a category page.
+     *
+     * To represent full path of category, use '>' sign to separate different
+     * hierarchies. If '>' is part of the category name, please replace it with
+     * other character(s).
+     *
+     * Category pages include special pages such as sales or promotions. For
+     * instance, a special sale page may have the category hierarchy:
+     * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+     *
+     * Required for `view-category-page` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string page_category = 2; + * @param value The bytes for pageCategory to set. + * @return This builder for chaining. + */ + public Builder setPageCategoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageCategory_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + *
+     * Complete URL (window.location.href) of the user's current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. Maximum length 5,000
+     * characters.
+     * 
+ * + * string uri = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Complete URL (window.location.href) of the user's current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. Maximum length 5,000
+     * characters.
+     * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Complete URL (window.location.href) of the user's current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. Maximum length 5,000
+     * characters.
+     * 
+ * + * string uri = 3; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Complete URL (window.location.href) of the user's current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. Maximum length 5,000
+     * characters.
+     * 
+ * + * string uri = 3; + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Complete URL (window.location.href) of the user's current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. Maximum length 5,000
+     * characters.
+     * 
+ * + * string uri = 3; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object referrerUri_ = ""; + /** + *
+     * The referrer URL of the current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. However, some browser
+     * privacy restrictions may cause this field to be empty.
+     * 
+ * + * string referrer_uri = 4; + * @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; + java.lang.String s = bs.toStringUtf8(); + referrerUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The referrer URL of the current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. However, some browser
+     * privacy restrictions may cause this field to be empty.
+     * 
+ * + * string referrer_uri = 4; + * @return The bytes for referrerUri. + */ + 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); + referrerUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The referrer URL of the current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. However, some browser
+     * privacy restrictions may cause this field to be empty.
+     * 
+ * + * string referrer_uri = 4; + * @param value The referrerUri to set. + * @return This builder for chaining. + */ + public Builder setReferrerUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + referrerUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The referrer URL of the current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. However, some browser
+     * privacy restrictions may cause this field to be empty.
+     * 
+ * + * string referrer_uri = 4; + * @return This builder for chaining. + */ + public Builder clearReferrerUri() { + referrerUri_ = getDefaultInstance().getReferrerUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The referrer URL of the current page.
+     *
+     * When using the client side event reporting with JavaScript pixel and Google
+     * Tag Manager, this value is filled in automatically. However, some browser
+     * privacy restrictions may cause this field to be empty.
+     * 
+ * + * string referrer_uri = 4; + * @param value The bytes for referrerUri to set. + * @return This builder for chaining. + */ + public Builder setReferrerUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + referrerUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PageInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PageInfo) + private static final com.google.cloud.discoveryengine.v1alpha.PageInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PageInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PageInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PageInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfoOrBuilder.java new file mode 100644 index 000000000000..bcf4c3135450 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PageInfoOrBuilder.java @@ -0,0 +1,145 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PageInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PageInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A unique ID of a web page view.
+   *
+   * This should be kept the same for all user events triggered from the same
+   * pageview. For example, an item detail page view could trigger multiple
+   * events as the user is browsing the page. The `pageview_id` property should
+   * be kept the same for all these events so that they can be grouped together
+   * properly.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically.
+   * 
+ * + * string pageview_id = 1; + * @return The pageviewId. + */ + java.lang.String getPageviewId(); + /** + *
+   * A unique ID of a web page view.
+   *
+   * This should be kept the same for all user events triggered from the same
+   * pageview. For example, an item detail page view could trigger multiple
+   * events as the user is browsing the page. The `pageview_id` property should
+   * be kept the same for all these events so that they can be grouped together
+   * properly.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically.
+   * 
+ * + * string pageview_id = 1; + * @return The bytes for pageviewId. + */ + com.google.protobuf.ByteString + getPageviewIdBytes(); + + /** + *
+   * The most specific category associated with a category page.
+   *
+   * To represent full path of category, use '>' sign to separate different
+   * hierarchies. If '>' is part of the category name, please replace it with
+   * other character(s).
+   *
+   * Category pages include special pages such as sales or promotions. For
+   * instance, a special sale page may have the category hierarchy:
+   * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+   *
+   * Required for `view-category-page` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_category = 2; + * @return The pageCategory. + */ + java.lang.String getPageCategory(); + /** + *
+   * The most specific category associated with a category page.
+   *
+   * To represent full path of category, use '>' sign to separate different
+   * hierarchies. If '>' is part of the category name, please replace it with
+   * other character(s).
+   *
+   * Category pages include special pages such as sales or promotions. For
+   * instance, a special sale page may have the category hierarchy:
+   * `"pageCategory" : "Sales > 2017 Black Friday Deals"`.
+   *
+   * Required for `view-category-page` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string page_category = 2; + * @return The bytes for pageCategory. + */ + com.google.protobuf.ByteString + getPageCategoryBytes(); + + /** + *
+   * Complete URL (window.location.href) of the user's current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. Maximum length 5,000
+   * characters.
+   * 
+ * + * string uri = 3; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+   * Complete URL (window.location.href) of the user's current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. Maximum length 5,000
+   * characters.
+   * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+   * The referrer URL of the current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. However, some browser
+   * privacy restrictions may cause this field to be empty.
+   * 
+ * + * string referrer_uri = 4; + * @return The referrerUri. + */ + java.lang.String getReferrerUri(); + /** + *
+   * The referrer URL of the current page.
+   *
+   * When using the client side event reporting with JavaScript pixel and Google
+   * Tag Manager, this value is filled in automatically. However, some browser
+   * privacy restrictions may cause this field to be empty.
+   * 
+ * + * string referrer_uri = 4; + * @return The bytes for referrerUri. + */ + com.google.protobuf.ByteString + getReferrerUriBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfo.java new file mode 100644 index 000000000000..38440a0f594b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfo.java @@ -0,0 +1,1004 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Detailed panel information associated with a user event.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PanelInfo} + */ +public final class PanelInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PanelInfo) + PanelInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use PanelInfo.newBuilder() to construct. + private PanelInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PanelInfo() { + panelId_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PanelInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PanelInfo.class, com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder.class); + } + + private int bitField0_; + public static final int PANEL_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object panelId_ = ""; + /** + *
+   * Required. The panel ID.
+   * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The panelId. + */ + @java.lang.Override + public java.lang.String getPanelId() { + java.lang.Object ref = panelId_; + 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(); + panelId_ = s; + return s; + } + } + /** + *
+   * Required. The panel ID.
+   * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for panelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPanelIdBytes() { + java.lang.Object ref = panelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + panelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+   * The display name of the panel.
+   * 
+ * + * string display_name = 3; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+   * The display name of the panel.
+   * 
+ * + * string display_name = 3; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PANEL_POSITION_FIELD_NUMBER = 4; + private int panelPosition_ = 0; + /** + *
+   * The ordered position of the panel, if shown to the user with other panels.
+   * If set, then
+   * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+   * must also be set.
+   * 
+ * + * optional int32 panel_position = 4; + * @return Whether the panelPosition field is set. + */ + @java.lang.Override + public boolean hasPanelPosition() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The ordered position of the panel, if shown to the user with other panels.
+   * If set, then
+   * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+   * must also be set.
+   * 
+ * + * optional int32 panel_position = 4; + * @return The panelPosition. + */ + @java.lang.Override + public int getPanelPosition() { + return panelPosition_; + } + + public static final int TOTAL_PANELS_FIELD_NUMBER = 5; + private int totalPanels_ = 0; + /** + *
+   * The total number of panels, including this one, shown to the user.
+   * Must be set if
+   * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+   * is set.
+   * 
+ * + * optional int32 total_panels = 5; + * @return Whether the totalPanels field is set. + */ + @java.lang.Override + public boolean hasTotalPanels() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * The total number of panels, including this one, shown to the user.
+   * Must be set if
+   * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+   * is set.
+   * 
+ * + * optional int32 total_panels = 5; + * @return The totalPanels. + */ + @java.lang.Override + public int getTotalPanels() { + return totalPanels_; + } + + 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(panelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, panelId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(4, panelPosition_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(5, totalPanels_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(panelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, panelId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, panelPosition_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, totalPanels_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PanelInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PanelInfo other = (com.google.cloud.discoveryengine.v1alpha.PanelInfo) obj; + + if (!getPanelId() + .equals(other.getPanelId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (hasPanelPosition() != other.hasPanelPosition()) return false; + if (hasPanelPosition()) { + if (getPanelPosition() + != other.getPanelPosition()) return false; + } + if (hasTotalPanels() != other.hasTotalPanels()) return false; + if (hasTotalPanels()) { + if (getTotalPanels() + != other.getTotalPanels()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PANEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getPanelId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasPanelPosition()) { + hash = (37 * hash) + PANEL_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPanelPosition(); + } + if (hasTotalPanels()) { + hash = (37 * hash) + TOTAL_PANELS_FIELD_NUMBER; + hash = (53 * hash) + getTotalPanels(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo 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.discoveryengine.v1alpha.PanelInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo 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.discoveryengine.v1alpha.PanelInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo 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.discoveryengine.v1alpha.PanelInfo 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; + } + /** + *
+   * Detailed panel information associated with a user event.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PanelInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PanelInfo) + com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PanelInfo.class, com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PanelInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + panelId_ = ""; + displayName_ = ""; + panelPosition_ = 0; + totalPanels_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PanelInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PanelInfo build() { + com.google.cloud.discoveryengine.v1alpha.PanelInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PanelInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PanelInfo result = new com.google.cloud.discoveryengine.v1alpha.PanelInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PanelInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.panelId_ = panelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.panelPosition_ = panelPosition_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalPanels_ = totalPanels_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.PanelInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PanelInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PanelInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance()) return this; + if (!other.getPanelId().isEmpty()) { + panelId_ = other.panelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPanelPosition()) { + setPanelPosition(other.getPanelPosition()); + } + if (other.hasTotalPanels()) { + setTotalPanels(other.getTotalPanels()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + panelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: { + panelPosition_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + totalPanels_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object panelId_ = ""; + /** + *
+     * Required. The panel ID.
+     * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The panelId. + */ + public java.lang.String getPanelId() { + java.lang.Object ref = panelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + panelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The panel ID.
+     * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for panelId. + */ + public com.google.protobuf.ByteString + getPanelIdBytes() { + java.lang.Object ref = panelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + panelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The panel ID.
+     * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The panelId to set. + * @return This builder for chaining. + */ + public Builder setPanelId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + panelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The panel ID.
+     * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearPanelId() { + panelId_ = getDefaultInstance().getPanelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The panel ID.
+     * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for panelId to set. + * @return This builder for chaining. + */ + public Builder setPanelIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + panelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * The display name of the panel.
+     * 
+ * + * string display_name = 3; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The display name of the panel.
+     * 
+ * + * string display_name = 3; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The display name of the panel.
+     * 
+ * + * string display_name = 3; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The display name of the panel.
+     * 
+ * + * string display_name = 3; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The display name of the panel.
+     * 
+ * + * string display_name = 3; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int panelPosition_ ; + /** + *
+     * The ordered position of the panel, if shown to the user with other panels.
+     * If set, then
+     * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+     * must also be set.
+     * 
+ * + * optional int32 panel_position = 4; + * @return Whether the panelPosition field is set. + */ + @java.lang.Override + public boolean hasPanelPosition() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The ordered position of the panel, if shown to the user with other panels.
+     * If set, then
+     * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+     * must also be set.
+     * 
+ * + * optional int32 panel_position = 4; + * @return The panelPosition. + */ + @java.lang.Override + public int getPanelPosition() { + return panelPosition_; + } + /** + *
+     * The ordered position of the panel, if shown to the user with other panels.
+     * If set, then
+     * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+     * must also be set.
+     * 
+ * + * optional int32 panel_position = 4; + * @param value The panelPosition to set. + * @return This builder for chaining. + */ + public Builder setPanelPosition(int value) { + + panelPosition_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The ordered position of the panel, if shown to the user with other panels.
+     * If set, then
+     * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+     * must also be set.
+     * 
+ * + * optional int32 panel_position = 4; + * @return This builder for chaining. + */ + public Builder clearPanelPosition() { + bitField0_ = (bitField0_ & ~0x00000004); + panelPosition_ = 0; + onChanged(); + return this; + } + + private int totalPanels_ ; + /** + *
+     * The total number of panels, including this one, shown to the user.
+     * Must be set if
+     * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+     * is set.
+     * 
+ * + * optional int32 total_panels = 5; + * @return Whether the totalPanels field is set. + */ + @java.lang.Override + public boolean hasTotalPanels() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The total number of panels, including this one, shown to the user.
+     * Must be set if
+     * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+     * is set.
+     * 
+ * + * optional int32 total_panels = 5; + * @return The totalPanels. + */ + @java.lang.Override + public int getTotalPanels() { + return totalPanels_; + } + /** + *
+     * The total number of panels, including this one, shown to the user.
+     * Must be set if
+     * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+     * is set.
+     * 
+ * + * optional int32 total_panels = 5; + * @param value The totalPanels to set. + * @return This builder for chaining. + */ + public Builder setTotalPanels(int value) { + + totalPanels_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The total number of panels, including this one, shown to the user.
+     * Must be set if
+     * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+     * is set.
+     * 
+ * + * optional int32 total_panels = 5; + * @return This builder for chaining. + */ + public Builder clearTotalPanels() { + bitField0_ = (bitField0_ & ~0x00000008); + totalPanels_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PanelInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PanelInfo) + private static final com.google.cloud.discoveryengine.v1alpha.PanelInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PanelInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PanelInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PanelInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PanelInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfoOrBuilder.java new file mode 100644 index 000000000000..f34419b0d321 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PanelInfoOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PanelInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PanelInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The panel ID.
+   * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The panelId. + */ + java.lang.String getPanelId(); + /** + *
+   * Required. The panel ID.
+   * 
+ * + * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for panelId. + */ + com.google.protobuf.ByteString + getPanelIdBytes(); + + /** + *
+   * The display name of the panel.
+   * 
+ * + * string display_name = 3; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * The display name of the panel.
+   * 
+ * + * string display_name = 3; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * The ordered position of the panel, if shown to the user with other panels.
+   * If set, then
+   * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+   * must also be set.
+   * 
+ * + * optional int32 panel_position = 4; + * @return Whether the panelPosition field is set. + */ + boolean hasPanelPosition(); + /** + *
+   * The ordered position of the panel, if shown to the user with other panels.
+   * If set, then
+   * [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels]
+   * must also be set.
+   * 
+ * + * optional int32 panel_position = 4; + * @return The panelPosition. + */ + int getPanelPosition(); + + /** + *
+   * The total number of panels, including this one, shown to the user.
+   * Must be set if
+   * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+   * is set.
+   * 
+ * + * optional int32 total_panels = 5; + * @return Whether the totalPanels field is set. + */ + boolean hasTotalPanels(); + /** + *
+   * The total number of panels, including this one, shown to the user.
+   * Must be set if
+   * [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position]
+   * is set.
+   * 
+ * + * optional int32 total_panels = 5; + * @return The totalPanels. + */ + int getTotalPanels(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java new file mode 100644 index 000000000000..96804b655469 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class PurgeConfigProto { + private PurgeConfigProto() {} + 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_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_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/discoveryengine/v1alpha/p" + + "urge_config.proto\022$google.cloud.discover" + + "yengine.v1alpha\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\200\001\n\026PurgeUs" + + "erEventsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*" + + "\n(discoveryengine.googleapis.com/DataSto" + + "re\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"" + + ".\n\027PurgeUserEventsResponse\022\023\n\013purge_coun" + + "t\030\001 \001(\003\"\251\001\n\027PurgeUserEventsMetadata\022/\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022/\n\013update_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\r" + + "failure_count\030\004 \001(\003\"|\n\025PurgeDocumentsReq" + + "uest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discovery" + + "engine.googleapis.com/Branch\022\024\n\006filter\030\002" + + " \001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"q\n\026PurgeDocume" + + "ntsResponse\022\023\n\013purge_count\030\001 \001(\003\022B\n\014purg" + + "e_sample\030\002 \003(\tB,\372A)\n\'discoveryengine.goo" + + "gleapis.com/Document\"\250\001\n\026PurgeDocumentsM" + + "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\022\025\n\rsuccess_cou" + + "nt\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003B\234\002\n(com." + + "google.cloud.discoveryengine.v1alphaB\020Pu" + + "rgeConfigProtoP\001ZRcloud.google.com/go/di" + + "scoveryengine/apiv1alpha/discoveryengine" + + "pb;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002" + + "$Google.Cloud.DiscoveryEngine.V1Alpha\312\002$" + + "Google\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'G" + + "oogle::Cloud::DiscoveryEngine::V1alphab\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "Force", }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_descriptor, + new java.lang.String[] { "PurgeCount", }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "Force", }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor, + new java.lang.String[] { "PurgeCount", "PurgeSample", }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java new file mode 100644 index 000000000000..bcb49df2ee86 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java @@ -0,0 +1,1051 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata related to the progress of the PurgeDocuments operation.
+ * This will be returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata} + */ +public final class PurgeDocumentsMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata) + PurgeDocumentsMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use PurgeDocumentsMetadata.newBuilder() to construct. + private PurgeDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PurgeDocumentsMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PurgeDocumentsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.class, com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata other = (com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata 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.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata 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.discoveryengine.v1alpha.PurgeDocumentsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata 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.discoveryengine.v1alpha.PurgeDocumentsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata related to the progress of the PurgeDocuments operation.
+   * This will be returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata) + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.class, com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata build() { + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata result = new com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + } + + @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.discoveryengine.v1alpha.PurgeDocumentsMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_ ; + /** + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_ ; + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java new file mode 100644 index 000000000000..c055466a10eb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeDocumentsMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + long getSuccessCount(); + + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java new file mode 100644 index 000000000000..1e76c82f5436 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java @@ -0,0 +1,853 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest} + */ +public final class PurgeDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) + PurgeDocumentsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PurgeDocumentsRequest.newBuilder() to construct. + private PurgeDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PurgeDocumentsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PurgeDocumentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.class, com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * 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 name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * 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 FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * Required. Filter matching documents to purge. Only currently supported
+   * value is
+   * `*` (all items).
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * Required. Filter matching documents to purge. Only currently supported
+   * value is
+   * `*` (all items).
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + *
+   * Actually performs the purge. If `force` is set to false, return the
+   * expected purge count without deleting any documents.
+   * 
+ * + * bool force = 3; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest other = (com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getForce() + != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest 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.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest 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.discoveryengine.v1alpha.PurgeDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest 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.discoveryengine.v1alpha.PurgeDocumentsRequest 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
+   * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.class, com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest build() { + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest result = new com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * 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 name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * 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 name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Required. Filter matching documents to purge. Only currently supported
+     * value is
+     * `*` (all items).
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Filter matching documents to purge. Only currently supported
+     * value is
+     * `*` (all items).
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Filter matching documents to purge. Only currently supported
+     * value is
+     * `*` (all items).
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Filter matching documents to purge. Only currently supported
+     * value is
+     * `*` (all items).
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. Filter matching documents to purge. Only currently supported
+     * value is
+     * `*` (all items).
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_ ; + /** + *
+     * Actually performs the purge. If `force` is set to false, return the
+     * expected purge count without deleting any documents.
+     * 
+ * + * bool force = 3; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + *
+     * Actually performs the purge. If `force` is set to false, return the
+     * expected purge count without deleting any documents.
+     * 
+ * + * bool force = 3; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Actually performs the purge. If `force` is set to false, return the
+     * expected purge count without deleting any documents.
+     * 
+ * + * bool force = 3; + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java new file mode 100644 index 000000000000..78239e3a1802 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeDocumentsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Filter matching documents to purge. Only currently supported
+   * value is
+   * `*` (all items).
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * Required. Filter matching documents to purge. Only currently supported
+   * value is
+   * `*` (all items).
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * Actually performs the purge. If `force` is set to false, return the
+   * expected purge count without deleting any documents.
+   * 
+ * + * bool force = 3; + * @return The force. + */ + boolean getForce(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponse.java new file mode 100644 index 000000000000..a110e38e1aae --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponse.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments]
+ * method. If the long running operation is successfully done, then this message
+ * is returned by the google.longrunning.Operations.response field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse} + */ +public final class PurgeDocumentsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse) + PurgeDocumentsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PurgeDocumentsResponse.newBuilder() to construct. + private PurgeDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PurgeDocumentsResponse() { + purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PurgeDocumentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.class, com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_ = 0L; + /** + *
+   * The total count of documents purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList + getPurgeSampleList() { + return purgeSample_; + } + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString + getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < purgeSample_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, purgeSample_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, purgeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < purgeSample_.size(); i++) { + dataSize += computeStringSizeNoTag(purgeSample_.getRaw(i)); + } + size += dataSize; + size += 1 * getPurgeSampleList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse other = (com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse) obj; + + if (getPurgeCount() + != other.getPurgeCount()) return false; + if (!getPurgeSampleList() + .equals(other.getPurgeSampleList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPurgeCount()); + if (getPurgeSampleCount() > 0) { + hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getPurgeSampleList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse 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.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse 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.discoveryengine.v1alpha.PurgeDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse 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.discoveryengine.v1alpha.PurgeDocumentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments]
+   * method. If the long running operation is successfully done, then this message
+   * is returned by the google.longrunning.Operations.response field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse) + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.class, com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeCount_ = 0L; + purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse build() { + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse result = new com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + purgeSample_.makeImmutable(); + result.purgeSample_ = purgeSample_; + } + } + + @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.discoveryengine.v1alpha.PurgeDocumentsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse.getDefaultInstance()) return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (!other.purgeSample_.isEmpty()) { + if (purgeSample_.isEmpty()) { + purgeSample_ = other.purgeSample_; + bitField0_ |= 0x00000002; + } else { + ensurePurgeSampleIsMutable(); + purgeSample_.addAll(other.purgeSample_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + purgeCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePurgeSampleIsMutable(); + purgeSample_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long purgeCount_ ; + /** + *
+     * The total count of documents purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + *
+     * The total count of documents purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The total count of documents purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePurgeSampleIsMutable() { + if (!purgeSample_.isModifiable()) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList + getPurgeSampleList() { + purgeSample_.makeImmutable(); + return purgeSample_; + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString + getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index to set the value at. + * @param value The purgeSample to set. + * @return This builder for chaining. + */ + public Builder setPurgeSample( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePurgeSampleIsMutable(); + purgeSample_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param value The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSample( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param values The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addAllPurgeSample( + java.lang.Iterable values) { + ensurePurgeSampleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, purgeSample_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearPurgeSample() { + purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+     * A sample of document names that will be deleted. Only populated if `force`
+     * is set to false. A max of 100 names will be returned and the names are
+     * chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param value The bytes of the purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSampleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponseOrBuilder.java new file mode 100644 index 000000000000..4400bdb72275 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsResponseOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeDocumentsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The total count of documents purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return A list containing the purgeSample. + */ + java.util.List + getPurgeSampleList(); + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @return The count of purgeSample. + */ + int getPurgeSampleCount(); + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + java.lang.String getPurgeSample(int index); + /** + *
+   * A sample of document names that will be deleted. Only populated if `force`
+   * is set to false. A max of 100 names will be returned and the names are
+   * chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + com.google.protobuf.ByteString + getPurgeSampleBytes(int index); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadata.java new file mode 100644 index 000000000000..731e2b0db1e5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadata.java @@ -0,0 +1,1051 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata related to the progress of the PurgeUserEvents operation.
+ * This will be returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata} + */ +public final class PurgeUserEventsMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata) + PurgeUserEventsMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use PurgeUserEventsMetadata.newBuilder() to construct. + private PurgeUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PurgeUserEventsMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PurgeUserEventsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.class, com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata other = (com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata 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.discoveryengine.v1alpha.PurgeUserEventsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.PurgeUserEventsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata 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.discoveryengine.v1alpha.PurgeUserEventsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.PurgeUserEventsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata related to the progress of the PurgeUserEvents operation.
+   * This will be returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata) + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.class, com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata build() { + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata result = new com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + } + + @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.discoveryengine.v1alpha.PurgeUserEventsMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_ ; + /** + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_ ; + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadataOrBuilder.java new file mode 100644 index 000000000000..1a06fd5868e0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsMetadataOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeUserEventsMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * @return The successCount. + */ + long getSuccessCount(); + + /** + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequest.java new file mode 100644 index 000000000000..6836eca8521b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequest.java @@ -0,0 +1,1026 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for PurgeUserEvents method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest} + */ +public final class PurgeUserEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) + PurgeUserEventsRequestOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PurgeUserEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.class, com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The resource name of the catalog under which the events are
+   * created. The format is
+   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+   * 
+ * + * 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 resource name of the catalog under which the events are
+   * created. The format is
+   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+   * 
+ * + * 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 FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * Required. The filter string to specify the events to be deleted with a
+   * length limit of 5,000 characters. The eligible fields for filtering are:
+   *
+   * * `eventType`: Double quoted
+   * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+   * string.
+   * * `eventTime`: in ISO 8601 "zulu" format.
+   * * `userPseudoId`: Double quoted string. Specifying this will delete all
+   *   events associated with a visitor.
+   * * `userId`: Double quoted string. Specifying this will delete all events
+   *   associated with a user.
+   *
+   * Examples:
+   *
+   * * Deleting all events in a time range:
+   *   `eventTime > "2012-04-23T18:25:43.511Z"
+   *   eventTime < "2012-04-23T18:30:43.511Z"`
+   * * Deleting specific eventType:
+   *   `eventType = "search"`
+   * * Deleting all events for a specific visitor:
+   *   `userPseudoId = "visitor1024"`
+   * * Deleting all events inside a DataStore:
+   *   `*`
+   *
+   * The filtering fields are assumed to have an implicit AND.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * Required. The filter string to specify the events to be deleted with a
+   * length limit of 5,000 characters. The eligible fields for filtering are:
+   *
+   * * `eventType`: Double quoted
+   * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+   * string.
+   * * `eventTime`: in ISO 8601 "zulu" format.
+   * * `userPseudoId`: Double quoted string. Specifying this will delete all
+   *   events associated with a visitor.
+   * * `userId`: Double quoted string. Specifying this will delete all events
+   *   associated with a user.
+   *
+   * Examples:
+   *
+   * * Deleting all events in a time range:
+   *   `eventTime > "2012-04-23T18:25:43.511Z"
+   *   eventTime < "2012-04-23T18:30:43.511Z"`
+   * * Deleting specific eventType:
+   *   `eventType = "search"`
+   * * Deleting all events for a specific visitor:
+   *   `userPseudoId = "visitor1024"`
+   * * Deleting all events inside a DataStore:
+   *   `*`
+   *
+   * The filtering fields are assumed to have an implicit AND.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + *
+   * The `force` field is currently not supported. Purge user event requests
+   * will permanently delete all purgeable events. Once the development is
+   * complete:
+   * If `force` is set to false, the method will return the expected
+   * purge count without deleting any user events. This field will default to
+   * false if not included in the request.
+   * 
+ * + * bool force = 3; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest other = (com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getForce() + != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest 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.discoveryengine.v1alpha.PurgeUserEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.PurgeUserEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest 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.discoveryengine.v1alpha.PurgeUserEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.PurgeUserEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest 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 PurgeUserEvents method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.class, com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest build() { + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest result = new com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The resource name of the catalog under which the events are
+     * created. The format is
+     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+     * 
+ * + * 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 resource name of the catalog under which the events are
+     * created. The format is
+     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+     * 
+ * + * 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 resource name of the catalog under which the events are
+     * created. The format is
+     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the catalog under which the events are
+     * created. The format is
+     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the catalog under which the events are
+     * created. The format is
+     * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Required. The filter string to specify the events to be deleted with a
+     * length limit of 5,000 characters. The eligible fields for filtering are:
+     *
+     * * `eventType`: Double quoted
+     * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+     * string.
+     * * `eventTime`: in ISO 8601 "zulu" format.
+     * * `userPseudoId`: Double quoted string. Specifying this will delete all
+     *   events associated with a visitor.
+     * * `userId`: Double quoted string. Specifying this will delete all events
+     *   associated with a user.
+     *
+     * Examples:
+     *
+     * * Deleting all events in a time range:
+     *   `eventTime > "2012-04-23T18:25:43.511Z"
+     *   eventTime < "2012-04-23T18:30:43.511Z"`
+     * * Deleting specific eventType:
+     *   `eventType = "search"`
+     * * Deleting all events for a specific visitor:
+     *   `userPseudoId = "visitor1024"`
+     * * Deleting all events inside a DataStore:
+     *   `*`
+     *
+     * The filtering fields are assumed to have an implicit AND.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The filter string to specify the events to be deleted with a
+     * length limit of 5,000 characters. The eligible fields for filtering are:
+     *
+     * * `eventType`: Double quoted
+     * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+     * string.
+     * * `eventTime`: in ISO 8601 "zulu" format.
+     * * `userPseudoId`: Double quoted string. Specifying this will delete all
+     *   events associated with a visitor.
+     * * `userId`: Double quoted string. Specifying this will delete all events
+     *   associated with a user.
+     *
+     * Examples:
+     *
+     * * Deleting all events in a time range:
+     *   `eventTime > "2012-04-23T18:25:43.511Z"
+     *   eventTime < "2012-04-23T18:30:43.511Z"`
+     * * Deleting specific eventType:
+     *   `eventType = "search"`
+     * * Deleting all events for a specific visitor:
+     *   `userPseudoId = "visitor1024"`
+     * * Deleting all events inside a DataStore:
+     *   `*`
+     *
+     * The filtering fields are assumed to have an implicit AND.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The filter string to specify the events to be deleted with a
+     * length limit of 5,000 characters. The eligible fields for filtering are:
+     *
+     * * `eventType`: Double quoted
+     * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+     * string.
+     * * `eventTime`: in ISO 8601 "zulu" format.
+     * * `userPseudoId`: Double quoted string. Specifying this will delete all
+     *   events associated with a visitor.
+     * * `userId`: Double quoted string. Specifying this will delete all events
+     *   associated with a user.
+     *
+     * Examples:
+     *
+     * * Deleting all events in a time range:
+     *   `eventTime > "2012-04-23T18:25:43.511Z"
+     *   eventTime < "2012-04-23T18:30:43.511Z"`
+     * * Deleting specific eventType:
+     *   `eventType = "search"`
+     * * Deleting all events for a specific visitor:
+     *   `userPseudoId = "visitor1024"`
+     * * Deleting all events inside a DataStore:
+     *   `*`
+     *
+     * The filtering fields are assumed to have an implicit AND.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. The filter string to specify the events to be deleted with a
+     * length limit of 5,000 characters. The eligible fields for filtering are:
+     *
+     * * `eventType`: Double quoted
+     * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+     * string.
+     * * `eventTime`: in ISO 8601 "zulu" format.
+     * * `userPseudoId`: Double quoted string. Specifying this will delete all
+     *   events associated with a visitor.
+     * * `userId`: Double quoted string. Specifying this will delete all events
+     *   associated with a user.
+     *
+     * Examples:
+     *
+     * * Deleting all events in a time range:
+     *   `eventTime > "2012-04-23T18:25:43.511Z"
+     *   eventTime < "2012-04-23T18:30:43.511Z"`
+     * * Deleting specific eventType:
+     *   `eventType = "search"`
+     * * Deleting all events for a specific visitor:
+     *   `userPseudoId = "visitor1024"`
+     * * Deleting all events inside a DataStore:
+     *   `*`
+     *
+     * The filtering fields are assumed to have an implicit AND.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. The filter string to specify the events to be deleted with a
+     * length limit of 5,000 characters. The eligible fields for filtering are:
+     *
+     * * `eventType`: Double quoted
+     * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+     * string.
+     * * `eventTime`: in ISO 8601 "zulu" format.
+     * * `userPseudoId`: Double quoted string. Specifying this will delete all
+     *   events associated with a visitor.
+     * * `userId`: Double quoted string. Specifying this will delete all events
+     *   associated with a user.
+     *
+     * Examples:
+     *
+     * * Deleting all events in a time range:
+     *   `eventTime > "2012-04-23T18:25:43.511Z"
+     *   eventTime < "2012-04-23T18:30:43.511Z"`
+     * * Deleting specific eventType:
+     *   `eventType = "search"`
+     * * Deleting all events for a specific visitor:
+     *   `userPseudoId = "visitor1024"`
+     * * Deleting all events inside a DataStore:
+     *   `*`
+     *
+     * The filtering fields are assumed to have an implicit AND.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_ ; + /** + *
+     * The `force` field is currently not supported. Purge user event requests
+     * will permanently delete all purgeable events. Once the development is
+     * complete:
+     * If `force` is set to false, the method will return the expected
+     * purge count without deleting any user events. This field will default to
+     * false if not included in the request.
+     * 
+ * + * bool force = 3; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + *
+     * The `force` field is currently not supported. Purge user event requests
+     * will permanently delete all purgeable events. Once the development is
+     * complete:
+     * If `force` is set to false, the method will return the expected
+     * purge count without deleting any user events. This field will default to
+     * false if not included in the request.
+     * 
+ * + * bool force = 3; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The `force` field is currently not supported. Purge user event requests
+     * will permanently delete all purgeable events. Once the development is
+     * complete:
+     * If `force` is set to false, the method will return the expected
+     * purge count without deleting any user events. This field will default to
+     * false if not included in the request.
+     * 
+ * + * bool force = 3; + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequestOrBuilder.java new file mode 100644 index 000000000000..4beb07c5e36a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeUserEventsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the catalog under which the events are
+   * created. The format is
+   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+   * 
+ * + * 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 catalog under which the events are
+   * created. The format is
+   * `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The filter string to specify the events to be deleted with a
+   * length limit of 5,000 characters. The eligible fields for filtering are:
+   *
+   * * `eventType`: Double quoted
+   * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+   * string.
+   * * `eventTime`: in ISO 8601 "zulu" format.
+   * * `userPseudoId`: Double quoted string. Specifying this will delete all
+   *   events associated with a visitor.
+   * * `userId`: Double quoted string. Specifying this will delete all events
+   *   associated with a user.
+   *
+   * Examples:
+   *
+   * * Deleting all events in a time range:
+   *   `eventTime > "2012-04-23T18:25:43.511Z"
+   *   eventTime < "2012-04-23T18:30:43.511Z"`
+   * * Deleting specific eventType:
+   *   `eventType = "search"`
+   * * Deleting all events for a specific visitor:
+   *   `userPseudoId = "visitor1024"`
+   * * Deleting all events inside a DataStore:
+   *   `*`
+   *
+   * The filtering fields are assumed to have an implicit AND.
+   * 
+ * + * 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 with a
+   * length limit of 5,000 characters. The eligible fields for filtering are:
+   *
+   * * `eventType`: Double quoted
+   * [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type]
+   * string.
+   * * `eventTime`: in ISO 8601 "zulu" format.
+   * * `userPseudoId`: Double quoted string. Specifying this will delete all
+   *   events associated with a visitor.
+   * * `userId`: Double quoted string. Specifying this will delete all events
+   *   associated with a user.
+   *
+   * Examples:
+   *
+   * * Deleting all events in a time range:
+   *   `eventTime > "2012-04-23T18:25:43.511Z"
+   *   eventTime < "2012-04-23T18:30:43.511Z"`
+   * * Deleting specific eventType:
+   *   `eventType = "search"`
+   * * Deleting all events for a specific visitor:
+   *   `userPseudoId = "visitor1024"`
+   * * Deleting all events inside a DataStore:
+   *   `*`
+   *
+   * The filtering fields are assumed to have an implicit AND.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * The `force` field is currently not supported. Purge user event requests
+   * will permanently delete all purgeable events. Once the development is
+   * complete:
+   * If `force` is set to false, the method will return the expected
+   * purge count without deleting any user events. This field will default to
+   * false if not included in the request.
+   * 
+ * + * bool force = 3; + * @return The force. + */ + boolean getForce(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponse.java new file mode 100644 index 000000000000..8db38c565539 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponse.java @@ -0,0 +1,500 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response of the PurgeUserEventsRequest. If the long running operation is
+ * successfully done, then this message is returned by the
+ * google.longrunning.Operations.response field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse} + */ +public final class PurgeUserEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse) + PurgeUserEventsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PurgeUserEventsResponse.newBuilder() to construct. + private PurgeUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PurgeUserEventsResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PurgeUserEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.class, com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_ = 0L; + /** + *
+   * The total count of events purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + 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 (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, purgeCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse other = (com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse) obj; + + if (getPurgeCount() + != other.getPurgeCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPurgeCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse 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.discoveryengine.v1alpha.PurgeUserEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.PurgeUserEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse 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.discoveryengine.v1alpha.PurgeUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.PurgeUserEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response of the PurgeUserEventsRequest. If the long running operation is
+   * successfully done, then this message is returned by the
+   * google.longrunning.Operations.response field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse) + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.class, com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse build() { + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse result = new com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + + @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.discoveryengine.v1alpha.PurgeUserEventsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse.getDefaultInstance()) return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + purgeCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long purgeCount_ ; + /** + *
+     * The total count of events purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + *
+     * The total count of events purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The total count of events purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponseOrBuilder.java new file mode 100644 index 000000000000..529a8a1d8c5e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeUserEventsResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/purge_config.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeUserEventsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The total count of events purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * @return The purgeCount. + */ + long getPurgeCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java new file mode 100644 index 000000000000..8a921ced45d8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java @@ -0,0 +1,2629 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for Recommend method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecommendRequest} + */ +public final class RecommendRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecommendRequest) + RecommendRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RecommendRequest.newBuilder() to construct. + private RecommendRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecommendRequest() { + servingConfig_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecommendRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetParams(); + case 8: + return internalGetUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecommendRequest.class, com.google.cloud.discoveryengine.v1alpha.RecommendRequest.Builder.class); + } + + public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfig_ = ""; + /** + *
+   * Required. Full resource name of the format:
+   * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+   *
+   * Before you can request recommendations from your model, you must create at
+   * least one serving config  for it.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + @java.lang.Override + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + 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(); + servingConfig_ = s; + return s; + } + } + /** + *
+   * Required. Full resource name of the format:
+   * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+   *
+   * Before you can request recommendations from your model, you must create at
+   * least one serving config  for it.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_EVENT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.UserEvent userEvent_; + /** + *
+   * Required. Context about the user, what they are looking at and what action
+   * they took to trigger the Recommend request. Note that this user event
+   * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+   * write request is required for event logging.
+   *
+   * Don't set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * or
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * to the same fixed ID for different users. If you are trying to receive
+   * non-personalized recommendations (not recommended; this can negatively
+   * impact model performance), instead set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * to a random unique ID and leave
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * unset.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + @java.lang.Override + public boolean hasUserEvent() { + return userEvent_ != null; + } + /** + *
+   * Required. Context about the user, what they are looking at and what action
+   * they took to trigger the Recommend request. Note that this user event
+   * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+   * write request is required for event logging.
+   *
+   * Don't set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * or
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * to the same fixed ID for different users. If you are trying to receive
+   * non-personalized recommendations (not recommended; this can negatively
+   * impact model performance), instead set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * to a random unique ID and leave
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * unset.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvent() { + return userEvent_ == null ? com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } + /** + *
+   * Required. Context about the user, what they are looking at and what action
+   * they took to trigger the Recommend request. Note that this user event
+   * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+   * write request is required for event logging.
+   *
+   * Don't set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * or
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * to the same fixed ID for different users. If you are trying to receive
+   * non-personalized recommendations (not recommended; this can negatively
+   * impact model performance), instead set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * to a random unique ID and leave
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * unset.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventOrBuilder() { + return userEvent_ == null ? com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + *
+   * Maximum number of results to return. Set this property
+   * to the number of recommendation results needed. If zero, the service will
+   * choose a reasonable default. The maximum allowed value is 100. Values
+   * above 100 will be coerced to 100.
+   * 
+ * + * int32 page_size = 3; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * Filter for restricting recommendation results with a length limit of 5,000
+   * characters. Currently, only filter expressions on the `filter_tags`
+   * attribute is supported.
+   *
+   *
+   * Examples:
+   *
+   *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+   *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+   *
+   * If `attributeFilteringSyntax` is set to true under the `params` field, then
+   * attribute-based expressions are expected instead of the above described
+   * tag-based syntax. Examples:
+   *
+   *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+   *  * (available: true) AND
+   *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+   *
+   * If your filter blocks all results, the API will return generic
+   * (unfiltered) popular Documents. If you only want results strictly matching
+   * the filters, set `strictFiltering` to True in
+   * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+   * to receive empty results instead.
+   *
+   * Note that the API will never return
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+   * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * Filter for restricting recommendation results with a length limit of 5,000
+   * characters. Currently, only filter expressions on the `filter_tags`
+   * attribute is supported.
+   *
+   *
+   * Examples:
+   *
+   *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+   *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+   *
+   * If `attributeFilteringSyntax` is set to true under the `params` field, then
+   * attribute-based expressions are expected instead of the above described
+   * tag-based syntax. Examples:
+   *
+   *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+   *  * (available: true) AND
+   *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+   *
+   * If your filter blocks all results, the API will return generic
+   * (unfiltered) popular Documents. If you only want results strictly matching
+   * the filters, set `strictFiltering` to True in
+   * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+   * to receive empty results instead.
+   *
+   * Note that the API will never return
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+   * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_ = false; + /** + *
+   * Use validate only mode for this recommendation query. If set to true, a
+   * fake model will be used that returns arbitrary Document IDs.
+   * Note that the validate only mode should only be used for testing the API,
+   * or if the model is not ready.
+   * 
+ * + * bool validate_only = 5; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> params_; + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @java.lang.Override + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParams().getMap().containsKey(key); + } + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @java.lang.Override + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @java.lang.Override + public /* nullable */ +com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int USER_LABELS_FIELD_NUMBER = 8; + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetUserLabels().getMap().containsKey(key); + } + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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(servingConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_); + } + if (userEvent_ != null) { + output.writeMessage(2, getUserEvent()); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParams(), + ParamsDefaultEntryHolder.defaultEntry, + 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 8); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, servingConfig_); + } + if (userEvent_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUserEvent()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); + } + 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__); + } + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, userLabels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecommendRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecommendRequest other = (com.google.cloud.discoveryengine.v1alpha.RecommendRequest) obj; + + if (!getServingConfig() + .equals(other.getServingConfig())) return false; + if (hasUserEvent() != other.hasUserEvent()) return false; + if (hasUserEvent()) { + if (!getUserEvent() + .equals(other.getUserEvent())) return false; + } + if (getPageSize() + != other.getPageSize()) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!internalGetParams().equals( + other.internalGetParams())) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + if (hasUserEvent()) { + hash = (37 * hash) + USER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getUserEvent().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); + } + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest 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.discoveryengine.v1alpha.RecommendRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest 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.discoveryengine.v1alpha.RecommendRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest 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.discoveryengine.v1alpha.RecommendRequest 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 Recommend method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecommendRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecommendRequest) + com.google.cloud.discoveryengine.v1alpha.RecommendRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetParams(); + case 8: + return internalGetUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 6: + return internalGetMutableParams(); + case 8: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecommendRequest.class, com.google.cloud.discoveryengine.v1alpha.RecommendRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecommendRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + servingConfig_ = ""; + userEvent_ = null; + if (userEventBuilder_ != null) { + userEventBuilder_.dispose(); + userEventBuilder_ = null; + } + pageSize_ = 0; + filter_ = ""; + validateOnly_ = false; + internalGetMutableParams().clear(); + internalGetMutableUserLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecommendRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendRequest build() { + com.google.cloud.discoveryengine.v1alpha.RecommendRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecommendRequest result = new com.google.cloud.discoveryengine.v1alpha.RecommendRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecommendRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.servingConfig_ = servingConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userEvent_ = userEventBuilder_ == null + ? userEvent_ + : userEventBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.params_ = internalGetParams(); + result.params_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + } + + @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.discoveryengine.v1alpha.RecommendRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecommendRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecommendRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecommendRequest.getDefaultInstance()) return this; + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasUserEvent()) { + mergeUserEvent(other.getUserEvent()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + internalGetMutableParams().mergeFrom( + other.internalGetParams()); + bitField0_ |= 0x00000020; + internalGetMutableUserLabels().mergeFrom( + other.internalGetUserLabels()); + bitField0_ |= 0x00000040; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + servingConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUserEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParams().getMutableMap().put( + params__.getKey(), params__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + com.google.protobuf.MapEntry + userLabels__ = input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableUserLabels().getMutableMap().put( + userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object servingConfig_ = ""; + /** + *
+     * Required. Full resource name of the format:
+     * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+     *
+     * Before you can request recommendations from your model, you must create at
+     * least one serving config  for it.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Full resource name of the format:
+     * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+     *
+     * Before you can request recommendations from your model, you must create at
+     * least one serving config  for it.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + public com.google.protobuf.ByteString + getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Full resource name of the format:
+     * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+     *
+     * Before you can request recommendations from your model, you must create at
+     * least one serving config  for it.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of the format:
+     * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+     *
+     * Before you can request recommendations from your model, you must create at
+     * least one serving config  for it.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of the format:
+     * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+     *
+     * Before you can request recommendations from your model, you must create at
+     * least one serving config  for it.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.UserEvent userEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder> userEventBuilder_; + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + public boolean hasUserEvent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvent() { + if (userEventBuilder_ == null) { + return userEvent_ == null ? com.google.cloud.discoveryengine.v1alpha.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 Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUserEvent(com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userEvent_ = value; + } else { + userEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUserEvent( + com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder builderForValue) { + if (userEventBuilder_ == null) { + userEvent_ = builderForValue.build(); + } else { + userEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + userEvent_ != null && + userEvent_ != com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance()) { + getUserEventBuilder().mergeFrom(value); + } else { + userEvent_ = value; + } + } else { + userEventBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUserEvent() { + bitField0_ = (bitField0_ & ~0x00000002); + userEvent_ = null; + if (userEventBuilder_ != null) { + userEventBuilder_.dispose(); + userEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder getUserEventBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUserEventFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventOrBuilder() { + if (userEventBuilder_ != null) { + return userEventBuilder_.getMessageOrBuilder(); + } else { + return userEvent_ == null ? + com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } + } + /** + *
+     * Required. Context about the user, what they are looking at and what action
+     * they took to trigger the Recommend request. Note that this user event
+     * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+     * write request is required for event logging.
+     *
+     * Don't set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * or
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * to the same fixed ID for different users. If you are trying to receive
+     * non-personalized recommendations (not recommended; this can negatively
+     * impact model performance), instead set
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * to a random unique ID and leave
+     * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+     * unset.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder> + getUserEventFieldBuilder() { + if (userEventBuilder_ == null) { + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder>( + getUserEvent(), + getParentForChildren(), + isClean()); + userEvent_ = null; + } + return userEventBuilder_; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of results to return. Set this property
+     * to the number of recommendation results needed. If zero, the service will
+     * choose a reasonable default. The maximum allowed value is 100. Values
+     * above 100 will be coerced to 100.
+     * 
+ * + * int32 page_size = 3; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of results to return. Set this property
+     * to the number of recommendation results needed. If zero, the service will
+     * choose a reasonable default. The maximum allowed value is 100. Values
+     * above 100 will be coerced to 100.
+     * 
+ * + * int32 page_size = 3; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Maximum number of results to return. Set this property
+     * to the number of recommendation results needed. If zero, the service will
+     * choose a reasonable default. The maximum allowed value is 100. Values
+     * above 100 will be coerced to 100.
+     * 
+ * + * int32 page_size = 3; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Filter for restricting recommendation results with a length limit of 5,000
+     * characters. Currently, only filter expressions on the `filter_tags`
+     * attribute is supported.
+     *
+     *
+     * Examples:
+     *
+     *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+     *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+     *
+     * If `attributeFilteringSyntax` is set to true under the `params` field, then
+     * attribute-based expressions are expected instead of the above described
+     * tag-based syntax. Examples:
+     *
+     *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+     *  * (available: true) AND
+     *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+     *
+     * If your filter blocks all results, the API will return generic
+     * (unfiltered) popular Documents. If you only want results strictly matching
+     * the filters, set `strictFiltering` to True in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+     * to receive empty results instead.
+     *
+     * Note that the API will never return
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+     * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter for restricting recommendation results with a length limit of 5,000
+     * characters. Currently, only filter expressions on the `filter_tags`
+     * attribute is supported.
+     *
+     *
+     * Examples:
+     *
+     *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+     *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+     *
+     * If `attributeFilteringSyntax` is set to true under the `params` field, then
+     * attribute-based expressions are expected instead of the above described
+     * tag-based syntax. Examples:
+     *
+     *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+     *  * (available: true) AND
+     *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+     *
+     * If your filter blocks all results, the API will return generic
+     * (unfiltered) popular Documents. If you only want results strictly matching
+     * the filters, set `strictFiltering` to True in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+     * to receive empty results instead.
+     *
+     * Note that the API will never return
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+     * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter for restricting recommendation results with a length limit of 5,000
+     * characters. Currently, only filter expressions on the `filter_tags`
+     * attribute is supported.
+     *
+     *
+     * Examples:
+     *
+     *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+     *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+     *
+     * If `attributeFilteringSyntax` is set to true under the `params` field, then
+     * attribute-based expressions are expected instead of the above described
+     * tag-based syntax. Examples:
+     *
+     *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+     *  * (available: true) AND
+     *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+     *
+     * If your filter blocks all results, the API will return generic
+     * (unfiltered) popular Documents. If you only want results strictly matching
+     * the filters, set `strictFiltering` to True in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+     * to receive empty results instead.
+     *
+     * Note that the API will never return
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+     * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Filter for restricting recommendation results with a length limit of 5,000
+     * characters. Currently, only filter expressions on the `filter_tags`
+     * attribute is supported.
+     *
+     *
+     * Examples:
+     *
+     *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+     *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+     *
+     * If `attributeFilteringSyntax` is set to true under the `params` field, then
+     * attribute-based expressions are expected instead of the above described
+     * tag-based syntax. Examples:
+     *
+     *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+     *  * (available: true) AND
+     *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+     *
+     * If your filter blocks all results, the API will return generic
+     * (unfiltered) popular Documents. If you only want results strictly matching
+     * the filters, set `strictFiltering` to True in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+     * to receive empty results instead.
+     *
+     * Note that the API will never return
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+     * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Filter for restricting recommendation results with a length limit of 5,000
+     * characters. Currently, only filter expressions on the `filter_tags`
+     * attribute is supported.
+     *
+     *
+     * Examples:
+     *
+     *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+     *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+     *
+     * If `attributeFilteringSyntax` is set to true under the `params` field, then
+     * attribute-based expressions are expected instead of the above described
+     * tag-based syntax. Examples:
+     *
+     *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+     *  * (available: true) AND
+     *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+     *
+     * If your filter blocks all results, the API will return generic
+     * (unfiltered) popular Documents. If you only want results strictly matching
+     * the filters, set `strictFiltering` to True in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+     * to receive empty results instead.
+     *
+     * Note that the API will never return
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+     * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * Use validate only mode for this recommendation query. If set to true, a
+     * fake model will be used that returns arbitrary Document IDs.
+     * Note that the validate only mode should only be used for testing the API,
+     * or if the model is not ready.
+     * 
+ * + * bool validate_only = 5; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * Use validate only mode for this recommendation query. If set to true, a
+     * fake model will be used that returns arbitrary Document IDs.
+     * Note that the validate only mode should only be used for testing the API,
+     * or if the model is not ready.
+     * 
+ * + * bool validate_only = 5; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Use validate only mode for this recommendation query. If set to true, a
+     * fake model will be used that returns arbitrary Document IDs.
+     * Note that the validate only mode should only be used for testing the API,
+     * or if the model is not ready.
+     * 
+ * + * bool validate_only = 5; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + validateOnly_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> params_; + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + private com.google.protobuf.MapField + internalGetMutableParams() { + if (params_ == null) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + if (!params_.isMutable()) { + params_ = params_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return params_; + } + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @java.lang.Override + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParams().getMap().containsKey(key); + } + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @java.lang.Override + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @java.lang.Override + public /* nullable */ +com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearParams() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableParams().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParams() { + bitField0_ |= 0x00000020; + return internalGetMutableParams().getMutableMap(); + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + 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"); } + internalGetMutableParams().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + *
+     * Additional domain specific parameters for the recommendations.
+     *
+     * Allowed values:
+     *
+     * * `returnDocument`: Boolean. If set to true, the associated Document
+     *    object will be returned in
+     *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+     * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+     *    corresponding to each returned Document will be set in
+     *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+     *    The given 'score' indicates the probability of a Document conversion
+     *    given the user's context and history.
+     * * `strictFiltering`: Boolean. True by default. If set to false, the service
+     *    will return generic (unfiltered) popular Documents instead of empty if
+     *    your filter blocks all recommendation results.
+     * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+     *    it needs to be one of:
+     *     *  `no-diversity`
+     *     *  `low-diversity`
+     *     *  `medium-diversity`
+     *     *  `high-diversity`
+     *     *  `auto-diversity`
+     *    This gives request-level control and adjusts recommendation results
+     *    based on Document category.
+     * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+     *    the `filter` field is interpreted according to the new,
+     *    attribute-based syntax.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + public Builder putAllParams( + java.util.Map values) { + internalGetMutableParams().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return userLabels_; + } + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetUserLabels().getMap().containsKey(key); + } + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableUserLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + public Builder removeUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableUserLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUserLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableUserLabels().getMutableMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + public Builder putUserLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 8; + */ + public Builder putAllUserLabels( + java.util.Map values) { + internalGetMutableUserLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecommendRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecommendRequest) + private static final com.google.cloud.discoveryengine.v1alpha.RecommendRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecommendRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java new file mode 100644 index 000000000000..debeca69f876 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java @@ -0,0 +1,525 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface RecommendRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecommendRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of the format:
+   * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+   *
+   * Before you can request recommendations from your model, you must create at
+   * least one serving config  for it.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + java.lang.String getServingConfig(); + /** + *
+   * Required. Full resource name of the format:
+   * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
+   *
+   * Before you can request recommendations from your model, you must create at
+   * least one serving config  for it.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + com.google.protobuf.ByteString + getServingConfigBytes(); + + /** + *
+   * Required. Context about the user, what they are looking at and what action
+   * they took to trigger the Recommend request. Note that this user event
+   * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+   * write request is required for event logging.
+   *
+   * Don't set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * or
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * to the same fixed ID for different users. If you are trying to receive
+   * non-personalized recommendations (not recommended; this can negatively
+   * impact model performance), instead set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * to a random unique ID and leave
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * unset.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.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 Recommend request. Note that this user event
+   * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+   * write request is required for event logging.
+   *
+   * Don't set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * or
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * to the same fixed ID for different users. If you are trying to receive
+   * non-personalized recommendations (not recommended; this can negatively
+   * impact model performance), instead set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * to a random unique ID and leave
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * unset.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvent(); + /** + *
+   * Required. Context about the user, what they are looking at and what action
+   * they took to trigger the Recommend request. Note that this user event
+   * detail won't be ingested to userEvent logs. Thus, a separate userEvent
+   * write request is required for event logging.
+   *
+   * Don't set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * or
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * to the same fixed ID for different users. If you are trying to receive
+   * non-personalized recommendations (not recommended; this can negatively
+   * impact model performance), instead set
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * to a random unique ID and leave
+   * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id]
+   * unset.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventOrBuilder(); + + /** + *
+   * Maximum number of results to return. Set this property
+   * to the number of recommendation results needed. If zero, the service will
+   * choose a reasonable default. The maximum allowed value is 100. Values
+   * above 100 will be coerced to 100.
+   * 
+ * + * int32 page_size = 3; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * Filter for restricting recommendation results with a length limit of 5,000
+   * characters. Currently, only filter expressions on the `filter_tags`
+   * attribute is supported.
+   *
+   *
+   * Examples:
+   *
+   *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+   *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+   *
+   * If `attributeFilteringSyntax` is set to true under the `params` field, then
+   * attribute-based expressions are expected instead of the above described
+   * tag-based syntax. Examples:
+   *
+   *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+   *  * (available: true) AND
+   *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+   *
+   * If your filter blocks all results, the API will return generic
+   * (unfiltered) popular Documents. If you only want results strictly matching
+   * the filters, set `strictFiltering` to True in
+   * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+   * to receive empty results instead.
+   *
+   * Note that the API will never return
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+   * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * Filter for restricting recommendation results with a length limit of 5,000
+   * characters. Currently, only filter expressions on the `filter_tags`
+   * attribute is supported.
+   *
+   *
+   * Examples:
+   *
+   *  * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
+   *  * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
+   *
+   * If `attributeFilteringSyntax` is set to true under the `params` field, then
+   * attribute-based expressions are expected instead of the above described
+   * tag-based syntax. Examples:
+   *
+   *  * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
+   *  * (available: true) AND
+   *    (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
+   *
+   * If your filter blocks all results, the API will return generic
+   * (unfiltered) popular Documents. If you only want results strictly matching
+   * the filters, set `strictFiltering` to True in
+   * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
+   * to receive empty results instead.
+   *
+   * Note that the API will never return
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s with
+   * `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * Use validate only mode for this recommendation query. If set to true, a
+   * fake model will be used that returns arbitrary Document IDs.
+   * Note that the validate only mode should only be used for testing the API,
+   * or if the model is not ready.
+   * 
+ * + * bool validate_only = 5; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + int getParamsCount(); + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + boolean containsParams( + java.lang.String key); + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParams(); + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + java.util.Map + getParamsMap(); + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + /* nullable */ +com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ +com.google.protobuf.Value defaultValue); + /** + *
+   * Additional domain specific parameters for the recommendations.
+   *
+   * Allowed values:
+   *
+   * * `returnDocument`: Boolean. If set to true, the associated Document
+   *    object will be returned in
+   *    [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
+   * * `returnScore`: Boolean. If set to true, the recommendation 'score'
+   *    corresponding to each returned Document will be set in
+   *    [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
+   *    The given 'score' indicates the probability of a Document conversion
+   *    given the user's context and history.
+   * * `strictFiltering`: Boolean. True by default. If set to false, the service
+   *    will return generic (unfiltered) popular Documents instead of empty if
+   *    your filter blocks all recommendation results.
+   * * `diversityLevel`: String. Default empty. If set to be non-empty, then
+   *    it needs to be one of:
+   *     *  `no-diversity`
+   *     *  `low-diversity`
+   *     *  `medium-diversity`
+   *     *  `high-diversity`
+   *     *  `auto-diversity`
+   *    This gives request-level control and adjusts recommendation results
+   *    based on Document category.
+   * * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
+   *    the `filter` field is interpreted according to the new,
+   *    attribute-based syntax.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 6; + */ + com.google.protobuf.Value getParamsOrThrow( + java.lang.String key); + + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + int getUserLabelsCount(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + boolean containsUserLabels( + java.lang.String key); + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUserLabels(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + java.util.Map + getUserLabelsMap(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 8; + */ + java.lang.String getUserLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponse.java new file mode 100644 index 000000000000..0eb6a9873c29 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponse.java @@ -0,0 +1,2754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for Recommend method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecommendResponse} + */ +public final class RecommendResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecommendResponse) + RecommendResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use RecommendResponse.newBuilder() to construct. + private RecommendResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecommendResponse() { + results_ = java.util.Collections.emptyList(); + attributionToken_ = ""; + missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecommendResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.class, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.Builder.class); + } + + public interface RecommendationResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource ID of the recommended Document.
+     * 
+ * + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * Resource ID of the recommended Document.
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Set if `returnDocument` is set to true in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return Whether the document field is set. + */ + boolean hasDocument(); + /** + *
+     * Set if `returnDocument` is set to true in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return The document. + */ + com.google.cloud.discoveryengine.v1alpha.Document getDocument(); + /** + *
+     * Set if `returnDocument` is set to true in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder(); + + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + int getMetadataCount(); + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + java.util.Map + getMetadataMap(); + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + /* nullable */ +com.google.protobuf.Value getMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.protobuf.Value defaultValue); + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + com.google.protobuf.Value getMetadataOrThrow( + java.lang.String key); + } + /** + *
+   * RecommendationResult represents a generic recommendation result with
+   * associated metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult} + */ + public static final class RecommendationResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) + RecommendationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecommendationResult.newBuilder() to construct. + private RecommendationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecommendationResult() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecommendationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.class, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * Resource ID of the recommended Document.
+     * 
+ * + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + *
+     * Resource ID of the recommended Document.
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Document document_; + /** + *
+     * Set if `returnDocument` is set to true in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return document_ != null; + } + /** + *
+     * Set if `returnDocument` is set to true in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return The document. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + /** + *
+     * Set if `returnDocument` is set to true in
+     * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + + public static final int METADATA_FIELD_NUMBER = 3; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+     * Additional Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @java.lang.Override + public /* nullable */ +com.google.protobuf.Value getMetadataOrDefault( + java.lang.String key, + /* nullable */ +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 Document metadata / annotations.
+     *
+     * Possible values:
+     *
+     * * `score`: Recommendation score in double value. Is set if
+     *   `returnScore` is set to true in
+     *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+     * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (document_ != null) { + output.writeMessage(2, getDocument()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (document_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); + } + 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(3, metadata__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult other = (com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult 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.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult 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.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult 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.discoveryengine.v1alpha.RecommendResponse.RecommendationResult 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; + } + /** + *
+     * RecommendationResult represents a generic recommendation result with
+     * associated metadata.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.class, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult build() { + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult result = new com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + } + + @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.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00000004; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * Resource ID of the recommended Document.
+       * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Resource ID of the recommended Document.
+       * 
+ * + * string id = 1; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Resource ID of the recommended Document.
+       * 
+ * + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Resource ID of the recommended Document.
+       * 
+ * + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Resource ID of the recommended Document.
+       * 
+ * + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Document document_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> documentBuilder_; + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return The document. + */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } else { + return documentBuilder_.getMessage(); + } + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000002); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocumentFieldBuilder().getBuilder(); + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null ? + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + } + /** + *
+       * Set if `returnDocument` is set to true in
+       * [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> + getDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); + document_ = null; + } + return documentBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+       * Additional Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+       * Additional Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+       * Additional Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @java.lang.Override + public /* nullable */ +com.google.protobuf.Value getMetadataOrDefault( + java.lang.String key, + /* nullable */ +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 Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Additional Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00000004; + return internalGetMutableMetadata().getMutableMap(); + } + /** + *
+       * Additional Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + 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"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Additional Document metadata / annotations.
+       *
+       * Possible values:
+       *
+       * * `score`: Recommendation score in double value. Is set if
+       *   `returnScore` is set to true in
+       *   [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
+       * 
+ * + * map<string, .google.protobuf.Value> metadata = 3; + */ + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000004; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult) + private static final com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int RESULTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List results_; + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + @java.lang.Override + public java.util.List getResultsList() { + return results_; + } + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + @java.lang.Override + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult getResults(int index) { + return results_.get(index); + } + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object attributionToken_ = ""; + /** + *
+   * A unique attribution token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this recommendation, which enables accurate attribution of
+   * recommendation model performance.
+   * 
+ * + * string attribution_token = 2; + * @return The attributionToken. + */ + @java.lang.Override + public java.lang.String getAttributionToken() { + java.lang.Object ref = attributionToken_; + 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(); + attributionToken_ = s; + return s; + } + } + /** + *
+   * A unique attribution token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this recommendation, which enables accurate attribution of
+   * recommendation model performance.
+   * 
+ * + * string attribution_token = 2; + * @return The bytes for attributionToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributionTokenBytes() { + java.lang.Object ref = attributionToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MISSING_IDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @return A list containing the missingIds. + */ + public com.google.protobuf.ProtocolStringList + getMissingIdsList() { + return missingIds_; + } + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @return The count of missingIds. + */ + public int getMissingIdsCount() { + return missingIds_.size(); + } + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @param index The index of the element to return. + * @return The missingIds at the given index. + */ + public java.lang.String getMissingIds(int index) { + return missingIds_.get(index); + } + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the missingIds at the given index. + */ + public com.google.protobuf.ByteString + getMissingIdsBytes(int index) { + return missingIds_.getByteString(index); + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + /** + *
+   * True if
+   * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1alpha.RecommendRequest.validate_only]
+   * was set.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attributionToken_); + } + for (int i = 0; i < missingIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, missingIds_.getRaw(i)); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attributionToken_); + } + { + int dataSize = 0; + for (int i = 0; i < missingIds_.size(); i++) { + dataSize += computeStringSizeNoTag(missingIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingIdsList().size(); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecommendResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecommendResponse other = (com.google.cloud.discoveryengine.v1alpha.RecommendResponse) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getMissingIdsList() + .equals(other.getMissingIdsList())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + ATTRIBUTION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAttributionToken().hashCode(); + if (getMissingIdsCount() > 0) { + hash = (37 * hash) + MISSING_IDS_FIELD_NUMBER; + hash = (53 * hash) + getMissingIdsList().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse 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.discoveryengine.v1alpha.RecommendResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse 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.discoveryengine.v1alpha.RecommendResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse 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.discoveryengine.v1alpha.RecommendResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for Recommend method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecommendResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecommendResponse) + com.google.cloud.discoveryengine.v1alpha.RecommendResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.class, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecommendResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + attributionToken_ = ""; + missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecommendResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse build() { + com.google.cloud.discoveryengine.v1alpha.RecommendResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecommendResponse result = new com.google.cloud.discoveryengine.v1alpha.RecommendResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.RecommendResponse result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecommendResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionToken_ = attributionToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + missingIds_.makeImmutable(); + result.missingIds_ = missingIds_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.RecommendResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecommendResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecommendResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecommendResponse.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (!other.getAttributionToken().isEmpty()) { + attributionToken_ = other.attributionToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.missingIds_.isEmpty()) { + if (missingIds_.isEmpty()) { + missingIds_ = other.missingIds_; + bitField0_ |= 0x00000004; + } else { + ensureMissingIdsIsMutable(); + missingIds_.addAll(other.missingIds_); + } + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + attributionToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingIdsIsMutable(); + missingIds_.add(s); + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder> resultsBuilder_; + + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder setResults( + int index, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder setResults( + int index, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder addResults(com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder addResults( + int index, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder addResults( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder addResults( + int index, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.getDefaultInstance()); + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.getDefaultInstance()); + } + /** + *
+     * A list of recommended Documents. The order represents the ranking (from the
+     * most relevant Document to the least).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.Builder, com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.lang.Object attributionToken_ = ""; + /** + *
+     * A unique attribution token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this recommendation, which enables accurate attribution of
+     * recommendation model performance.
+     * 
+ * + * string attribution_token = 2; + * @return The attributionToken. + */ + public java.lang.String getAttributionToken() { + java.lang.Object ref = attributionToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributionToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique attribution token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this recommendation, which enables accurate attribution of
+     * recommendation model performance.
+     * 
+ * + * string attribution_token = 2; + * @return The bytes for attributionToken. + */ + public com.google.protobuf.ByteString + getAttributionTokenBytes() { + java.lang.Object ref = attributionToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique attribution token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this recommendation, which enables accurate attribution of
+     * recommendation model performance.
+     * 
+ * + * string attribution_token = 2; + * @param value The attributionToken to set. + * @return This builder for chaining. + */ + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + attributionToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A unique attribution token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this recommendation, which enables accurate attribution of
+     * recommendation model performance.
+     * 
+ * + * string attribution_token = 2; + * @return This builder for chaining. + */ + public Builder clearAttributionToken() { + attributionToken_ = getDefaultInstance().getAttributionToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * A unique attribution token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this recommendation, which enables accurate attribution of
+     * recommendation model performance.
+     * 
+ * + * string attribution_token = 2; + * @param value The bytes for attributionToken to set. + * @return This builder for chaining. + */ + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + attributionToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMissingIdsIsMutable() { + if (!missingIds_.isModifiable()) { + missingIds_ = new com.google.protobuf.LazyStringArrayList(missingIds_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @return A list containing the missingIds. + */ + public com.google.protobuf.ProtocolStringList + getMissingIdsList() { + missingIds_.makeImmutable(); + return missingIds_; + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @return The count of missingIds. + */ + public int getMissingIdsCount() { + return missingIds_.size(); + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @param index The index of the element to return. + * @return The missingIds at the given index. + */ + public java.lang.String getMissingIds(int index) { + return missingIds_.get(index); + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the missingIds at the given index. + */ + public com.google.protobuf.ByteString + getMissingIdsBytes(int index) { + return missingIds_.getByteString(index); + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @param index The index to set the value at. + * @param value The missingIds to set. + * @return This builder for chaining. + */ + public Builder setMissingIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureMissingIdsIsMutable(); + missingIds_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @param value The missingIds to add. + * @return This builder for chaining. + */ + public Builder addMissingIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureMissingIdsIsMutable(); + missingIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @param values The missingIds to add. + * @return This builder for chaining. + */ + public Builder addAllMissingIds( + java.lang.Iterable values) { + ensureMissingIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingIds_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @return This builder for chaining. + */ + public Builder clearMissingIds() { + missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * IDs of documents in the request that were missing from the default Branch
+     * associated with the requested ServingConfig.
+     * 
+ * + * repeated string missing_ids = 3; + * @param value The bytes of the missingIds to add. + * @return This builder for chaining. + */ + public Builder addMissingIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureMissingIdsIsMutable(); + missingIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * True if
+     * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1alpha.RecommendRequest.validate_only]
+     * was set.
+     * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * True if
+     * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1alpha.RecommendRequest.validate_only]
+     * was set.
+     * 
+ * + * bool validate_only = 4; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * True if
+     * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1alpha.RecommendRequest.validate_only]
+     * was set.
+     * 
+ * + * bool validate_only = 4; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecommendResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecommendResponse) + private static final com.google.cloud.discoveryengine.v1alpha.RecommendResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecommendResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecommendResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecommendResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponseOrBuilder.java new file mode 100644 index 000000000000..96b77977d899 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendResponseOrBuilder.java @@ -0,0 +1,141 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface RecommendResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecommendResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + java.util.List + getResultsList(); + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult getResults(int index); + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + int getResultsCount(); + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+   * A list of recommended Documents. The order represents the ranking (from the
+   * most relevant Document to the least).
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult results = 1; + */ + com.google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder( + int index); + + /** + *
+   * A unique attribution token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this recommendation, which enables accurate attribution of
+   * recommendation model performance.
+   * 
+ * + * string attribution_token = 2; + * @return The attributionToken. + */ + java.lang.String getAttributionToken(); + /** + *
+   * A unique attribution token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this recommendation, which enables accurate attribution of
+   * recommendation model performance.
+   * 
+ * + * string attribution_token = 2; + * @return The bytes for attributionToken. + */ + com.google.protobuf.ByteString + getAttributionTokenBytes(); + + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @return A list containing the missingIds. + */ + java.util.List + getMissingIdsList(); + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @return The count of missingIds. + */ + int getMissingIdsCount(); + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @param index The index of the element to return. + * @return The missingIds at the given index. + */ + java.lang.String getMissingIds(int index); + /** + *
+   * IDs of documents in the request that were missing from the default Branch
+   * associated with the requested ServingConfig.
+   * 
+ * + * repeated string missing_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the missingIds at the given index. + */ + com.google.protobuf.ByteString + getMissingIdsBytes(int index); + + /** + *
+   * True if
+   * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1alpha.RecommendRequest.validate_only]
+   * was set.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceProto.java new file mode 100644 index 000000000000..b162dca6a30b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceProto.java @@ -0,0 +1,179 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/recommendation_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class RecommendationServiceProto { + private RecommendationServiceProto() {} + 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_discoveryengine_v1alpha_RecommendRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_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 = { + "\nAgoogle/cloud/discoveryengine/v1alpha/r" + + "ecommendation_service.proto\022$google.clou" + + "d.discoveryengine.v1alpha\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0323google/cloud/disco" + + "veryengine/v1alpha/document.proto\0325googl" + + "e/cloud/discoveryengine/v1alpha/user_eve" + + "nt.proto\032\034google/protobuf/struct.proto\"\221" + + "\004\n\020RecommendRequest\022M\n\016serving_config\030\001 " + + "\001(\tB5\342A\001\002\372A.\n,discoveryengine.googleapis" + + ".com/ServingConfig\022I\n\nuser_event\030\002 \001(\0132/" + + ".google.cloud.discoveryengine.v1alpha.Us" + + "erEventB\004\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022\016\n\006filt" + + "er\030\004 \001(\t\022\025\n\rvalidate_only\030\005 \001(\010\022R\n\006param" + + "s\030\006 \003(\0132B.google.cloud.discoveryengine.v" + + "1alpha.RecommendRequest.ParamsEntry\022[\n\013u" + + "ser_labels\030\010 \003(\0132F.google.cloud.discover" + + "yengine.v1alpha.RecommendRequest.UserLab" + + "elsEntry\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005" + + "value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032" + + "1\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"\327\003\n\021RecommendResponse\022]\n\007resu" + + "lts\030\001 \003(\0132L.google.cloud.discoveryengine" + + ".v1alpha.RecommendResponse.Recommendatio" + + "nResult\022\031\n\021attribution_token\030\002 \001(\t\022\023\n\013mi" + + "ssing_ids\030\003 \003(\t\022\025\n\rvalidate_only\030\004 \001(\010\032\233" + + "\002\n\024RecommendationResult\022\n\n\002id\030\001 \001(\t\022@\n\010d" + + "ocument\030\002 \001(\0132..google.cloud.discoveryen" + + "gine.v1alpha.Document\022l\n\010metadata\030\003 \003(\0132" + + "Z.google.cloud.discoveryengine.v1alpha.R" + + "ecommendResponse.RecommendationResult.Me" + + "tadataEntry\032G\n\rMetadataEntry\022\013\n\003key\030\001 \001(" + + "\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Value" + + ":\0028\0012\250\004\n\025RecommendationService\022\272\003\n\tRecom" + + "mend\0226.google.cloud.discoveryengine.v1al" + + "pha.RecommendRequest\0327.google.cloud.disc" + + "overyengine.v1alpha.RecommendResponse\"\273\002" + + "\202\323\344\223\002\264\002\"X/v1alpha/{serving_config=projec" + + "ts/*/locations/*/dataStores/*/servingCon" + + "figs/*}:recommend:\001*Zk\"f/v1alpha/{servin" + + "g_config=projects/*/locations/*/collecti" + + "ons/*/dataStores/*/servingConfigs/*}:rec" + + "ommend:\001*Zh\"c/v1alpha/{serving_config=pr" + + "ojects/*/locations/*/collections/*/engin" + + "es/*/servingConfigs/*}:recommend:\001*\032R\312A\036" + + "discoveryengine.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\246\002\n(com.google.cloud.discoveryengine.v1a" + + "lphaB\032RecommendationServiceProtoP\001ZRclou" + + "d.google.com/go/discoveryengine/apiv1alp" + + "ha/discoveryenginepb;discoveryenginepb\242\002" + + "\017DISCOVERYENGINE\252\002$Google.Cloud.Discover" + + "yEngine.V1Alpha\312\002$Google\\Cloud\\Discovery" + + "Engine\\V1alpha\352\002\'Google::Cloud::Discover" + + "yEngine::V1alphab\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.discoveryengine.v1alpha.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor, + new java.lang.String[] { "ServingConfig", "UserEvent", "PageSize", "Filter", "ValidateOnly", "Params", "UserLabels", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecommendRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor, + new java.lang.String[] { "Results", "AttributionToken", "MissingIds", "ValidateOnly", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor, + new java.lang.String[] { "Id", "Document", "Metadata", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_MetadataEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecommendResponse_RecommendationResult_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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadata.java new file mode 100644 index 000000000000..f5c07317aedc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadata.java @@ -0,0 +1,1488 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata related to the progress of the
+ * [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
+ * operation. This will be returned by the google.longrunning.Operation.metadata
+ * field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata} + */ +public final class RecrawlUrisMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata) + RecrawlUrisMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use RecrawlUrisMetadata.newBuilder() to construct. + private RecrawlUrisMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecrawlUrisMetadata() { + invalidUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecrawlUrisMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INVALID_URIS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList invalidUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @return A list containing the invalidUris. + */ + public com.google.protobuf.ProtocolStringList + getInvalidUrisList() { + return invalidUris_; + } + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @return The count of invalidUris. + */ + public int getInvalidUrisCount() { + return invalidUris_.size(); + } + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @param index The index of the element to return. + * @return The invalidUris at the given index. + */ + public java.lang.String getInvalidUris(int index) { + return invalidUris_.get(index); + } + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @param index The index of the value to return. + * @return The bytes of the invalidUris at the given index. + */ + public com.google.protobuf.ByteString + getInvalidUrisBytes(int index) { + return invalidUris_.getByteString(index); + } + + public static final int VALID_URIS_COUNT_FIELD_NUMBER = 4; + private int validUrisCount_ = 0; + /** + *
+   * Total number of unique URIs in the request that are not in invalid_uris.
+   * 
+ * + * int32 valid_uris_count = 4; + * @return The validUrisCount. + */ + @java.lang.Override + public int getValidUrisCount() { + return validUrisCount_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 5; + private int successCount_ = 0; + /** + *
+   * Total number of URIs that have been crawled so far.
+   * 
+ * + * int32 success_count = 5; + * @return The successCount. + */ + @java.lang.Override + public int getSuccessCount() { + return successCount_; + } + + public static final int PENDING_COUNT_FIELD_NUMBER = 6; + private int pendingCount_ = 0; + /** + *
+   * Total number of URIs that have yet to be crawled.
+   * 
+ * + * int32 pending_count = 6; + * @return The pendingCount. + */ + @java.lang.Override + public int getPendingCount() { + return pendingCount_; + } + + public static final int QUOTA_EXCEEDED_COUNT_FIELD_NUMBER = 7; + private int quotaExceededCount_ = 0; + /** + *
+   * Total number of URIs that were rejected due to insufficient indexing
+   * resources.
+   * 
+ * + * int32 quota_exceeded_count = 7; + * @return The quotaExceededCount. + */ + @java.lang.Override + public int getQuotaExceededCount() { + return quotaExceededCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + for (int i = 0; i < invalidUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, invalidUris_.getRaw(i)); + } + if (validUrisCount_ != 0) { + output.writeInt32(4, validUrisCount_); + } + if (successCount_ != 0) { + output.writeInt32(5, successCount_); + } + if (pendingCount_ != 0) { + output.writeInt32(6, pendingCount_); + } + if (quotaExceededCount_ != 0) { + output.writeInt32(7, quotaExceededCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < invalidUris_.size(); i++) { + dataSize += computeStringSizeNoTag(invalidUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvalidUrisList().size(); + } + if (validUrisCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, validUrisCount_); + } + if (successCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, successCount_); + } + if (pendingCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, pendingCount_); + } + if (quotaExceededCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, quotaExceededCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata other = (com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getInvalidUrisList() + .equals(other.getInvalidUrisList())) return false; + if (getValidUrisCount() + != other.getValidUrisCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getPendingCount() + != other.getPendingCount()) return false; + if (getQuotaExceededCount() + != other.getQuotaExceededCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getInvalidUrisCount() > 0) { + hash = (37 * hash) + INVALID_URIS_FIELD_NUMBER; + hash = (53 * hash) + getInvalidUrisList().hashCode(); + } + hash = (37 * hash) + VALID_URIS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getValidUrisCount(); + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSuccessCount(); + hash = (37 * hash) + PENDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPendingCount(); + hash = (37 * hash) + QUOTA_EXCEEDED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getQuotaExceededCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata 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.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata 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.discoveryengine.v1alpha.RecrawlUrisMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata 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.discoveryengine.v1alpha.RecrawlUrisMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata related to the progress of the
+   * [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
+   * operation. This will be returned by the google.longrunning.Operation.metadata
+   * field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata) + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + invalidUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + validUrisCount_ = 0; + successCount_ = 0; + pendingCount_ = 0; + quotaExceededCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata build() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata result = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + invalidUris_.makeImmutable(); + result.invalidUris_ = invalidUris_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validUrisCount_ = validUrisCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pendingCount_ = pendingCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.quotaExceededCount_ = quotaExceededCount_; + } + } + + @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.discoveryengine.v1alpha.RecrawlUrisMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.invalidUris_.isEmpty()) { + if (invalidUris_.isEmpty()) { + invalidUris_ = other.invalidUris_; + bitField0_ |= 0x00000004; + } else { + ensureInvalidUrisIsMutable(); + invalidUris_.addAll(other.invalidUris_); + } + onChanged(); + } + if (other.getValidUrisCount() != 0) { + setValidUrisCount(other.getValidUrisCount()); + } + if (other.getSuccessCount() != 0) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getPendingCount() != 0) { + setPendingCount(other.getPendingCount()); + } + if (other.getQuotaExceededCount() != 0) { + setQuotaExceededCount(other.getQuotaExceededCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInvalidUrisIsMutable(); + invalidUris_.add(s); + break; + } // case 26 + case 32: { + validUrisCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + successCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + pendingCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + quotaExceededCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList invalidUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInvalidUrisIsMutable() { + if (!invalidUris_.isModifiable()) { + invalidUris_ = new com.google.protobuf.LazyStringArrayList(invalidUris_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @return A list containing the invalidUris. + */ + public com.google.protobuf.ProtocolStringList + getInvalidUrisList() { + invalidUris_.makeImmutable(); + return invalidUris_; + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @return The count of invalidUris. + */ + public int getInvalidUrisCount() { + return invalidUris_.size(); + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @param index The index of the element to return. + * @return The invalidUris at the given index. + */ + public java.lang.String getInvalidUris(int index) { + return invalidUris_.get(index); + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @param index The index of the value to return. + * @return The bytes of the invalidUris at the given index. + */ + public com.google.protobuf.ByteString + getInvalidUrisBytes(int index) { + return invalidUris_.getByteString(index); + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @param index The index to set the value at. + * @param value The invalidUris to set. + * @return This builder for chaining. + */ + public Builder setInvalidUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureInvalidUrisIsMutable(); + invalidUris_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @param value The invalidUris to add. + * @return This builder for chaining. + */ + public Builder addInvalidUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureInvalidUrisIsMutable(); + invalidUris_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @param values The invalidUris to add. + * @return This builder for chaining. + */ + public Builder addAllInvalidUris( + java.lang.Iterable values) { + ensureInvalidUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, invalidUris_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @return This builder for chaining. + */ + public Builder clearInvalidUris() { + invalidUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * Unique URIs in the request that don't match any TargetSite in the
+     * DataStore, only match TargetSites that haven't been fully indexed, or match
+     * a TargetSite with type EXCLUDE.
+     * 
+ * + * repeated string invalid_uris = 3; + * @param value The bytes of the invalidUris to add. + * @return This builder for chaining. + */ + public Builder addInvalidUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureInvalidUrisIsMutable(); + invalidUris_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int validUrisCount_ ; + /** + *
+     * Total number of unique URIs in the request that are not in invalid_uris.
+     * 
+ * + * int32 valid_uris_count = 4; + * @return The validUrisCount. + */ + @java.lang.Override + public int getValidUrisCount() { + return validUrisCount_; + } + /** + *
+     * Total number of unique URIs in the request that are not in invalid_uris.
+     * 
+ * + * int32 valid_uris_count = 4; + * @param value The validUrisCount to set. + * @return This builder for chaining. + */ + public Builder setValidUrisCount(int value) { + + validUrisCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Total number of unique URIs in the request that are not in invalid_uris.
+     * 
+ * + * int32 valid_uris_count = 4; + * @return This builder for chaining. + */ + public Builder clearValidUrisCount() { + bitField0_ = (bitField0_ & ~0x00000008); + validUrisCount_ = 0; + onChanged(); + return this; + } + + private int successCount_ ; + /** + *
+     * Total number of URIs that have been crawled so far.
+     * 
+ * + * int32 success_count = 5; + * @return The successCount. + */ + @java.lang.Override + public int getSuccessCount() { + return successCount_; + } + /** + *
+     * Total number of URIs that have been crawled so far.
+     * 
+ * + * int32 success_count = 5; + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(int value) { + + successCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Total number of URIs that have been crawled so far.
+     * 
+ * + * int32 success_count = 5; + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000010); + successCount_ = 0; + onChanged(); + return this; + } + + private int pendingCount_ ; + /** + *
+     * Total number of URIs that have yet to be crawled.
+     * 
+ * + * int32 pending_count = 6; + * @return The pendingCount. + */ + @java.lang.Override + public int getPendingCount() { + return pendingCount_; + } + /** + *
+     * Total number of URIs that have yet to be crawled.
+     * 
+ * + * int32 pending_count = 6; + * @param value The pendingCount to set. + * @return This builder for chaining. + */ + public Builder setPendingCount(int value) { + + pendingCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Total number of URIs that have yet to be crawled.
+     * 
+ * + * int32 pending_count = 6; + * @return This builder for chaining. + */ + public Builder clearPendingCount() { + bitField0_ = (bitField0_ & ~0x00000020); + pendingCount_ = 0; + onChanged(); + return this; + } + + private int quotaExceededCount_ ; + /** + *
+     * Total number of URIs that were rejected due to insufficient indexing
+     * resources.
+     * 
+ * + * int32 quota_exceeded_count = 7; + * @return The quotaExceededCount. + */ + @java.lang.Override + public int getQuotaExceededCount() { + return quotaExceededCount_; + } + /** + *
+     * Total number of URIs that were rejected due to insufficient indexing
+     * resources.
+     * 
+ * + * int32 quota_exceeded_count = 7; + * @param value The quotaExceededCount to set. + * @return This builder for chaining. + */ + public Builder setQuotaExceededCount(int value) { + + quotaExceededCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Total number of URIs that were rejected due to insufficient indexing
+     * resources.
+     * 
+ * + * int32 quota_exceeded_count = 7; + * @return This builder for chaining. + */ + public Builder clearQuotaExceededCount() { + bitField0_ = (bitField0_ & ~0x00000040); + quotaExceededCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecrawlUrisMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadataOrBuilder.java new file mode 100644 index 000000000000..0d3dacb08433 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisMetadataOrBuilder.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface RecrawlUrisMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @return A list containing the invalidUris. + */ + java.util.List + getInvalidUrisList(); + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @return The count of invalidUris. + */ + int getInvalidUrisCount(); + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @param index The index of the element to return. + * @return The invalidUris at the given index. + */ + java.lang.String getInvalidUris(int index); + /** + *
+   * Unique URIs in the request that don't match any TargetSite in the
+   * DataStore, only match TargetSites that haven't been fully indexed, or match
+   * a TargetSite with type EXCLUDE.
+   * 
+ * + * repeated string invalid_uris = 3; + * @param index The index of the value to return. + * @return The bytes of the invalidUris at the given index. + */ + com.google.protobuf.ByteString + getInvalidUrisBytes(int index); + + /** + *
+   * Total number of unique URIs in the request that are not in invalid_uris.
+   * 
+ * + * int32 valid_uris_count = 4; + * @return The validUrisCount. + */ + int getValidUrisCount(); + + /** + *
+   * Total number of URIs that have been crawled so far.
+   * 
+ * + * int32 success_count = 5; + * @return The successCount. + */ + int getSuccessCount(); + + /** + *
+   * Total number of URIs that have yet to be crawled.
+   * 
+ * + * int32 pending_count = 6; + * @return The pendingCount. + */ + int getPendingCount(); + + /** + *
+   * Total number of URIs that were rejected due to insufficient indexing
+   * resources.
+   * 
+ * + * int32 quota_exceeded_count = 7; + * @return The quotaExceededCount. + */ + int getQuotaExceededCount(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequest.java new file mode 100644 index 000000000000..c319536e5787 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequest.java @@ -0,0 +1,882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest} + */ +public final class RecrawlUrisRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) + RecrawlUrisRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RecrawlUrisRequest.newBuilder() to construct. + private RecrawlUrisRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecrawlUrisRequest() { + siteSearchEngine_ = ""; + uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecrawlUrisRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.Builder.class); + } + + public static final int SITE_SEARCH_ENGINE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object siteSearchEngine_ = ""; + /** + *
+   * Required. Full resource name of the
+   * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+   * such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+   * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The siteSearchEngine. + */ + @java.lang.Override + public java.lang.String getSiteSearchEngine() { + java.lang.Object ref = siteSearchEngine_; + 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(); + siteSearchEngine_ = s; + return s; + } + } + /** + *
+   * Required. Full resource name of the
+   * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+   * such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+   * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for siteSearchEngine. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSiteSearchEngineBytes() { + java.lang.Object ref = siteSearchEngine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + siteSearchEngine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URIS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList + getUrisList() { + return uris_; + } + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString + getUrisBytes(int index) { + return uris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteSearchEngine_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteSearchEngine_); + } + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uris_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteSearchEngine_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteSearchEngine_); + } + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest other = (com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) obj; + + if (!getSiteSearchEngine() + .equals(other.getSiteSearchEngine())) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SITE_SEARCH_ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getSiteSearchEngine().hashCode(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest 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.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest 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.discoveryengine.v1alpha.RecrawlUrisRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest 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.discoveryengine.v1alpha.RecrawlUrisRequest 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
+   * [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + siteSearchEngine_ = ""; + uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest build() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest result = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.siteSearchEngine_ = siteSearchEngine_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + uris_.makeImmutable(); + result.uris_ = uris_; + } + } + + @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.discoveryengine.v1alpha.RecrawlUrisRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest.getDefaultInstance()) return this; + if (!other.getSiteSearchEngine().isEmpty()) { + siteSearchEngine_ = other.siteSearchEngine_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ |= 0x00000002; + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + siteSearchEngine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object siteSearchEngine_ = ""; + /** + *
+     * Required. Full resource name of the
+     * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+     * such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+     * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The siteSearchEngine. + */ + public java.lang.String getSiteSearchEngine() { + java.lang.Object ref = siteSearchEngine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteSearchEngine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Full resource name of the
+     * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+     * such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+     * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for siteSearchEngine. + */ + public com.google.protobuf.ByteString + getSiteSearchEngineBytes() { + java.lang.Object ref = siteSearchEngine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + siteSearchEngine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Full resource name of the
+     * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+     * such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+     * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The siteSearchEngine to set. + * @return This builder for chaining. + */ + public Builder setSiteSearchEngine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + siteSearchEngine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of the
+     * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+     * such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+     * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearSiteSearchEngine() { + siteSearchEngine_ = getDefaultInstance().getSiteSearchEngine(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Full resource name of the
+     * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+     * such as
+     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+     * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for siteSearchEngine to set. + * @return This builder for chaining. + */ + public Builder setSiteSearchEngineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + siteSearchEngine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUrisIsMutable() { + if (!uris_.isModifiable()) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList + getUrisList() { + uris_.makeImmutable(); + return uris_; + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString + getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index to set the value at. + * @param value The uris to set. + * @return This builder for chaining. + */ + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUrisIsMutable(); + uris_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The uris to add. + * @return This builder for chaining. + */ + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param values The uris to add. + * @return This builder for chaining. + */ + public Builder addAllUris( + java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearUris() { + uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+     * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+     * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+     * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+     * `site_search_engine`.
+     * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes of the uris to add. + * @return This builder for chaining. + */ + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) + private static final com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecrawlUrisRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequestOrBuilder.java new file mode 100644 index 000000000000..b9ab0c2afb13 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisRequestOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface RecrawlUrisRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of the
+   * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+   * such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+   * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The siteSearchEngine. + */ + java.lang.String getSiteSearchEngine(); + /** + *
+   * Required. Full resource name of the
+   * [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
+   * such as
+   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
+   * 
+ * + * string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for siteSearchEngine. + */ + com.google.protobuf.ByteString + getSiteSearchEngineBytes(); + + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return A list containing the uris. + */ + java.util.List + getUrisList(); + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The count of uris. + */ + int getUrisCount(); + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the element to return. + * @return The uris at the given index. + */ + java.lang.String getUris(int index); + /** + *
+   * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise
+   * an INVALID_ARGUMENT error is thrown. Each URI should match at least one
+   * [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in
+   * `site_search_engine`.
+   * 
+ * + * repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + com.google.protobuf.ByteString + getUrisBytes(int index); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java new file mode 100644 index 000000000000..233615164ab8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java @@ -0,0 +1,3076 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse} + */ +public final class RecrawlUrisResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse) + RecrawlUrisResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use RecrawlUrisResponse.newBuilder() to construct. + private RecrawlUrisResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecrawlUrisResponse() { + failureSamples_ = java.util.Collections.emptyList(); + failedUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecrawlUrisResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.Builder.class); + } + + public interface FailureInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * URI that failed to be crawled.
+     * 
+ * + * string uri = 1; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+     * URI that failed to be crawled.
+     * 
+ * + * string uri = 1; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + java.util.List + getFailureReasonsList(); + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason getFailureReasons(int index); + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + int getFailureReasonsCount(); + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + java.util.List + getFailureReasonsOrBuilderList(); + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder getFailureReasonsOrBuilder( + int index); + } + /** + *
+   * Details about why a particular URI failed to be crawled. Each FailureInfo
+   * contains one FailureReason per CorpusType.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo} + */ + public static final class FailureInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) + FailureInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use FailureInfo.newBuilder() to construct. + private FailureInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FailureInfo() { + uri_ = ""; + failureReasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FailureInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder.class); + } + + public interface FailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return The enum numeric value on the wire for corpusType. + */ + int getCorpusTypeValue(); + /** + *
+       * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return The corpusType. + */ + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType getCorpusType(); + + /** + *
+       * Reason why the URI was not crawled.
+       * 
+ * + * string error_message = 2; + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + *
+       * Reason why the URI was not crawled.
+       * 
+ * + * string error_message = 2; + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + } + /** + *
+     * Details about why crawling failed for a particular CorpusType, e.g.
+     * DESKTOP and MOBILE crawling may fail for different reasons.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason} + */ + public static final class FailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) + FailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use FailureReason.newBuilder() to construct. + private FailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FailureReason() { + corpusType_ = 0; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder.class); + } + + /** + *
+       * CorpusType for the failed crawling operation.
+       * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType} + */ + public enum CorpusType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+         * Default value.
+         * 
+ * + * CORPUS_TYPE_UNSPECIFIED = 0; + */ + CORPUS_TYPE_UNSPECIFIED(0), + /** + *
+         * Denotes a crawling attempt for the desktop version of a page.
+         * 
+ * + * DESKTOP = 1; + */ + DESKTOP(1), + /** + *
+         * Denotes a crawling attempt for the mobile version of a page.
+         * 
+ * + * MOBILE = 2; + */ + MOBILE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+         * Default value.
+         * 
+ * + * CORPUS_TYPE_UNSPECIFIED = 0; + */ + public static final int CORPUS_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+         * Denotes a crawling attempt for the desktop version of a page.
+         * 
+ * + * DESKTOP = 1; + */ + public static final int DESKTOP_VALUE = 1; + /** + *
+         * Denotes a crawling attempt for the mobile version of a page.
+         * 
+ * + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CorpusType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CorpusType forNumber(int value) { + switch (value) { + case 0: return CORPUS_TYPE_UNSPECIFIED; + case 1: return DESKTOP; + case 2: return MOBILE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CorpusType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CorpusType findValueByNumber(int number) { + return CorpusType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.getDescriptor().getEnumTypes().get(0); + } + + private static final CorpusType[] VALUES = values(); + + public static CorpusType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CorpusType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType) + } + + public static final int CORPUS_TYPE_FIELD_NUMBER = 1; + private int corpusType_ = 0; + /** + *
+       * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return The enum numeric value on the wire for corpusType. + */ + @java.lang.Override public int getCorpusTypeValue() { + return corpusType_; + } + /** + *
+       * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return The corpusType. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType getCorpusType() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType result = com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType.forNumber(corpusType_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType.UNRECOGNIZED : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + *
+       * Reason why the URI was not crawled.
+       * 
+ * + * string error_message = 2; + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + *
+       * Reason why the URI was not crawled.
+       * 
+ * + * string error_message = 2; + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (corpusType_ != com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType.CORPUS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, corpusType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (corpusType_ != com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType.CORPUS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, corpusType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason other = (com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) obj; + + if (corpusType_ != other.corpusType_) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CORPUS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + corpusType_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason 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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason 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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason 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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason 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; + } + /** + *
+       * Details about why crawling failed for a particular CorpusType, e.g.
+       * DESKTOP and MOBILE crawling may fail for different reasons.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + corpusType_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason build() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason result = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.corpusType_ = corpusType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.getDefaultInstance()) return this; + if (other.corpusType_ != 0) { + setCorpusTypeValue(other.getCorpusTypeValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + corpusType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int corpusType_ = 0; + /** + *
+         * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return The enum numeric value on the wire for corpusType. + */ + @java.lang.Override public int getCorpusTypeValue() { + return corpusType_; + } + /** + *
+         * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @param value The enum numeric value on the wire for corpusType to set. + * @return This builder for chaining. + */ + public Builder setCorpusTypeValue(int value) { + corpusType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return The corpusType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType getCorpusType() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType result = com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType.forNumber(corpusType_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType.UNRECOGNIZED : result; + } + /** + *
+         * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @param value The corpusType to set. + * @return This builder for chaining. + */ + public Builder setCorpusType(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + corpusType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; + * @return This builder for chaining. + */ + public Builder clearCorpusType() { + bitField0_ = (bitField0_ & ~0x00000001); + corpusType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + *
+         * Reason why the URI was not crawled.
+         * 
+ * + * string error_message = 2; + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Reason why the URI was not crawled.
+         * 
+ * + * string error_message = 2; + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Reason why the URI was not crawled.
+         * 
+ * + * string error_message = 2; + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Reason why the URI was not crawled.
+         * 
+ * + * string error_message = 2; + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * Reason why the URI was not crawled.
+         * 
+ * + * string error_message = 2; + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason) + private static final com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+     * URI that failed to be crawled.
+     * 
+ * + * string uri = 1; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + *
+     * URI that failed to be crawled.
+     * 
+ * + * string uri = 1; + * @return The bytes for uri. + */ + @java.lang.Override + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAILURE_REASONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List failureReasons_; + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + @java.lang.Override + public java.util.List getFailureReasonsList() { + return failureReasons_; + } + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + @java.lang.Override + public java.util.List + getFailureReasonsOrBuilderList() { + return failureReasons_; + } + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + @java.lang.Override + public int getFailureReasonsCount() { + return failureReasons_.size(); + } + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason getFailureReasons(int index) { + return failureReasons_.get(index); + } + /** + *
+     * List of failure reasons by corpus type (e.g. desktop, mobile).
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder getFailureReasonsOrBuilder( + int index) { + return failureReasons_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + for (int i = 0; i < failureReasons_.size(); i++) { + output.writeMessage(2, failureReasons_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + for (int i = 0; i < failureReasons_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, failureReasons_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo other = (com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getFailureReasonsList() + .equals(other.getFailureReasonsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (getFailureReasonsCount() > 0) { + hash = (37 * hash) + FAILURE_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getFailureReasonsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo 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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo 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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo 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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo 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; + } + /** + *
+     * Details about why a particular URI failed to be crawled. Each FailureInfo
+     * contains one FailureReason per CorpusType.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + if (failureReasonsBuilder_ == null) { + failureReasons_ = java.util.Collections.emptyList(); + } else { + failureReasons_ = null; + failureReasonsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo build() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo result = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo result) { + if (failureReasonsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + failureReasons_ = java.util.Collections.unmodifiableList(failureReasons_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.failureReasons_ = failureReasons_; + } else { + result.failureReasons_ = failureReasonsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } + + @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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (failureReasonsBuilder_ == null) { + if (!other.failureReasons_.isEmpty()) { + if (failureReasons_.isEmpty()) { + failureReasons_ = other.failureReasons_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFailureReasonsIsMutable(); + failureReasons_.addAll(other.failureReasons_); + } + onChanged(); + } + } else { + if (!other.failureReasons_.isEmpty()) { + if (failureReasonsBuilder_.isEmpty()) { + failureReasonsBuilder_.dispose(); + failureReasonsBuilder_ = null; + failureReasons_ = other.failureReasons_; + bitField0_ = (bitField0_ & ~0x00000002); + failureReasonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFailureReasonsFieldBuilder() : null; + } else { + failureReasonsBuilder_.addAllMessages(other.failureReasons_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.parser(), + extensionRegistry); + if (failureReasonsBuilder_ == null) { + ensureFailureReasonsIsMutable(); + failureReasons_.add(m); + } else { + failureReasonsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + *
+       * URI that failed to be crawled.
+       * 
+ * + * string uri = 1; + * @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; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI that failed to be crawled.
+       * 
+ * + * string uri = 1; + * @return The bytes for uri. + */ + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI that failed to be crawled.
+       * 
+ * + * string uri = 1; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * URI that failed to be crawled.
+       * 
+ * + * string uri = 1; + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * URI that failed to be crawled.
+       * 
+ * + * string uri = 1; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List failureReasons_ = + java.util.Collections.emptyList(); + private void ensureFailureReasonsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + failureReasons_ = new java.util.ArrayList(failureReasons_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder> failureReasonsBuilder_; + + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public java.util.List getFailureReasonsList() { + if (failureReasonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(failureReasons_); + } else { + return failureReasonsBuilder_.getMessageList(); + } + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public int getFailureReasonsCount() { + if (failureReasonsBuilder_ == null) { + return failureReasons_.size(); + } else { + return failureReasonsBuilder_.getCount(); + } + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason getFailureReasons(int index) { + if (failureReasonsBuilder_ == null) { + return failureReasons_.get(index); + } else { + return failureReasonsBuilder_.getMessage(index); + } + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder setFailureReasons( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason value) { + if (failureReasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureReasonsIsMutable(); + failureReasons_.set(index, value); + onChanged(); + } else { + failureReasonsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder setFailureReasons( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder builderForValue) { + if (failureReasonsBuilder_ == null) { + ensureFailureReasonsIsMutable(); + failureReasons_.set(index, builderForValue.build()); + onChanged(); + } else { + failureReasonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder addFailureReasons(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason value) { + if (failureReasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureReasonsIsMutable(); + failureReasons_.add(value); + onChanged(); + } else { + failureReasonsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder addFailureReasons( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason value) { + if (failureReasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureReasonsIsMutable(); + failureReasons_.add(index, value); + onChanged(); + } else { + failureReasonsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder addFailureReasons( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder builderForValue) { + if (failureReasonsBuilder_ == null) { + ensureFailureReasonsIsMutable(); + failureReasons_.add(builderForValue.build()); + onChanged(); + } else { + failureReasonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder addFailureReasons( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder builderForValue) { + if (failureReasonsBuilder_ == null) { + ensureFailureReasonsIsMutable(); + failureReasons_.add(index, builderForValue.build()); + onChanged(); + } else { + failureReasonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder addAllFailureReasons( + java.lang.Iterable values) { + if (failureReasonsBuilder_ == null) { + ensureFailureReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failureReasons_); + onChanged(); + } else { + failureReasonsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder clearFailureReasons() { + if (failureReasonsBuilder_ == null) { + failureReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + failureReasonsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public Builder removeFailureReasons(int index) { + if (failureReasonsBuilder_ == null) { + ensureFailureReasonsIsMutable(); + failureReasons_.remove(index); + onChanged(); + } else { + failureReasonsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder getFailureReasonsBuilder( + int index) { + return getFailureReasonsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder getFailureReasonsOrBuilder( + int index) { + if (failureReasonsBuilder_ == null) { + return failureReasons_.get(index); } else { + return failureReasonsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public java.util.List + getFailureReasonsOrBuilderList() { + if (failureReasonsBuilder_ != null) { + return failureReasonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(failureReasons_); + } + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder addFailureReasonsBuilder() { + return getFailureReasonsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.getDefaultInstance()); + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder addFailureReasonsBuilder( + int index) { + return getFailureReasonsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.getDefaultInstance()); + } + /** + *
+       * List of failure reasons by corpus type (e.g. desktop, mobile).
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; + */ + public java.util.List + getFailureReasonsBuilderList() { + return getFailureReasonsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder> + getFailureReasonsFieldBuilder() { + if (failureReasonsBuilder_ == null) { + failureReasonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReason.Builder, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.FailureReasonOrBuilder>( + failureReasons_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + failureReasons_ = null; + } + return failureReasonsBuilder_; + } + @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.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo) + private static final com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailureInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FAILURE_SAMPLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List failureSamples_; + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + @java.lang.Override + public java.util.List getFailureSamplesList() { + return failureSamples_; + } + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + @java.lang.Override + public java.util.List + getFailureSamplesOrBuilderList() { + return failureSamples_; + } + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + @java.lang.Override + public int getFailureSamplesCount() { + return failureSamples_.size(); + } + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo getFailureSamples(int index) { + return failureSamples_.get(index); + } + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder getFailureSamplesOrBuilder( + int index) { + return failureSamples_.get(index); + } + + public static final int FAILED_URIS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList failedUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @return A list containing the failedUris. + */ + public com.google.protobuf.ProtocolStringList + getFailedUrisList() { + return failedUris_; + } + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @return The count of failedUris. + */ + public int getFailedUrisCount() { + return failedUris_.size(); + } + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @param index The index of the element to return. + * @return The failedUris at the given index. + */ + public java.lang.String getFailedUris(int index) { + return failedUris_.get(index); + } + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @param index The index of the value to return. + * @return The bytes of the failedUris at the given index. + */ + public com.google.protobuf.ByteString + getFailedUrisBytes(int index) { + return failedUris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < failureSamples_.size(); i++) { + output.writeMessage(1, failureSamples_.get(i)); + } + for (int i = 0; i < failedUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, failedUris_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < failureSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, failureSamples_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < failedUris_.size(); i++) { + dataSize += computeStringSizeNoTag(failedUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getFailedUrisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse other = (com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse) obj; + + if (!getFailureSamplesList() + .equals(other.getFailureSamplesList())) return false; + if (!getFailedUrisList() + .equals(other.getFailedUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFailureSamplesCount() > 0) { + hash = (37 * hash) + FAILURE_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getFailureSamplesList().hashCode(); + } + if (getFailedUrisCount() > 0) { + hash = (37 * hash) + FAILED_URIS_FIELD_NUMBER; + hash = (53 * hash) + getFailedUrisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse 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.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse 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.discoveryengine.v1alpha.RecrawlUrisResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse 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.discoveryengine.v1alpha.RecrawlUrisResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse) + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.class, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (failureSamplesBuilder_ == null) { + failureSamples_ = java.util.Collections.emptyList(); + } else { + failureSamples_ = null; + failureSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + failedUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse build() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse result = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse result) { + if (failureSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + failureSamples_ = java.util.Collections.unmodifiableList(failureSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.failureSamples_ = failureSamples_; + } else { + result.failureSamples_ = failureSamplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + failedUris_.makeImmutable(); + result.failedUris_ = failedUris_; + } + } + + @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.discoveryengine.v1alpha.RecrawlUrisResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.getDefaultInstance()) return this; + if (failureSamplesBuilder_ == null) { + if (!other.failureSamples_.isEmpty()) { + if (failureSamples_.isEmpty()) { + failureSamples_ = other.failureSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFailureSamplesIsMutable(); + failureSamples_.addAll(other.failureSamples_); + } + onChanged(); + } + } else { + if (!other.failureSamples_.isEmpty()) { + if (failureSamplesBuilder_.isEmpty()) { + failureSamplesBuilder_.dispose(); + failureSamplesBuilder_ = null; + failureSamples_ = other.failureSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + failureSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFailureSamplesFieldBuilder() : null; + } else { + failureSamplesBuilder_.addAllMessages(other.failureSamples_); + } + } + } + if (!other.failedUris_.isEmpty()) { + if (failedUris_.isEmpty()) { + failedUris_ = other.failedUris_; + bitField0_ |= 0x00000002; + } else { + ensureFailedUrisIsMutable(); + failedUris_.addAll(other.failedUris_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.parser(), + extensionRegistry); + if (failureSamplesBuilder_ == null) { + ensureFailureSamplesIsMutable(); + failureSamples_.add(m); + } else { + failureSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFailedUrisIsMutable(); + failedUris_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List failureSamples_ = + java.util.Collections.emptyList(); + private void ensureFailureSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + failureSamples_ = new java.util.ArrayList(failureSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder> failureSamplesBuilder_; + + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public java.util.List getFailureSamplesList() { + if (failureSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(failureSamples_); + } else { + return failureSamplesBuilder_.getMessageList(); + } + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public int getFailureSamplesCount() { + if (failureSamplesBuilder_ == null) { + return failureSamples_.size(); + } else { + return failureSamplesBuilder_.getCount(); + } + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo getFailureSamples(int index) { + if (failureSamplesBuilder_ == null) { + return failureSamples_.get(index); + } else { + return failureSamplesBuilder_.getMessage(index); + } + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder setFailureSamples( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo value) { + if (failureSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureSamplesIsMutable(); + failureSamples_.set(index, value); + onChanged(); + } else { + failureSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder setFailureSamples( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder builderForValue) { + if (failureSamplesBuilder_ == null) { + ensureFailureSamplesIsMutable(); + failureSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + failureSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder addFailureSamples(com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo value) { + if (failureSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureSamplesIsMutable(); + failureSamples_.add(value); + onChanged(); + } else { + failureSamplesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder addFailureSamples( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo value) { + if (failureSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailureSamplesIsMutable(); + failureSamples_.add(index, value); + onChanged(); + } else { + failureSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder addFailureSamples( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder builderForValue) { + if (failureSamplesBuilder_ == null) { + ensureFailureSamplesIsMutable(); + failureSamples_.add(builderForValue.build()); + onChanged(); + } else { + failureSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder addFailureSamples( + int index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder builderForValue) { + if (failureSamplesBuilder_ == null) { + ensureFailureSamplesIsMutable(); + failureSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + failureSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder addAllFailureSamples( + java.lang.Iterable values) { + if (failureSamplesBuilder_ == null) { + ensureFailureSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failureSamples_); + onChanged(); + } else { + failureSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder clearFailureSamples() { + if (failureSamplesBuilder_ == null) { + failureSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + failureSamplesBuilder_.clear(); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public Builder removeFailureSamples(int index) { + if (failureSamplesBuilder_ == null) { + ensureFailureSamplesIsMutable(); + failureSamples_.remove(index); + onChanged(); + } else { + failureSamplesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder getFailureSamplesBuilder( + int index) { + return getFailureSamplesFieldBuilder().getBuilder(index); + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder getFailureSamplesOrBuilder( + int index) { + if (failureSamplesBuilder_ == null) { + return failureSamples_.get(index); } else { + return failureSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public java.util.List + getFailureSamplesOrBuilderList() { + if (failureSamplesBuilder_ != null) { + return failureSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(failureSamples_); + } + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder addFailureSamplesBuilder() { + return getFailureSamplesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.getDefaultInstance()); + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder addFailureSamplesBuilder( + int index) { + return getFailureSamplesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.getDefaultInstance()); + } + /** + *
+     * Details for a sample of up to 10 `failed_uris`.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + public java.util.List + getFailureSamplesBuilderList() { + return getFailureSamplesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder> + getFailureSamplesFieldBuilder() { + if (failureSamplesBuilder_ == null) { + failureSamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo.Builder, com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder>( + failureSamples_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + failureSamples_ = null; + } + return failureSamplesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList failedUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFailedUrisIsMutable() { + if (!failedUris_.isModifiable()) { + failedUris_ = new com.google.protobuf.LazyStringArrayList(failedUris_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @return A list containing the failedUris. + */ + public com.google.protobuf.ProtocolStringList + getFailedUrisList() { + failedUris_.makeImmutable(); + return failedUris_; + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @return The count of failedUris. + */ + public int getFailedUrisCount() { + return failedUris_.size(); + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @param index The index of the element to return. + * @return The failedUris at the given index. + */ + public java.lang.String getFailedUris(int index) { + return failedUris_.get(index); + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @param index The index of the value to return. + * @return The bytes of the failedUris at the given index. + */ + public com.google.protobuf.ByteString + getFailedUrisBytes(int index) { + return failedUris_.getByteString(index); + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @param index The index to set the value at. + * @param value The failedUris to set. + * @return This builder for chaining. + */ + public Builder setFailedUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFailedUrisIsMutable(); + failedUris_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @param value The failedUris to add. + * @return This builder for chaining. + */ + public Builder addFailedUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFailedUrisIsMutable(); + failedUris_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @param values The failedUris to add. + * @return This builder for chaining. + */ + public Builder addAllFailedUris( + java.lang.Iterable values) { + ensureFailedUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failedUris_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @return This builder for chaining. + */ + public Builder clearFailedUris() { + failedUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+     * URIs that were not crawled before the LRO terminated.
+     * 
+ * + * repeated string failed_uris = 2; + * @param value The bytes of the failedUris to add. + * @return This builder for chaining. + */ + public Builder addFailedUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureFailedUrisIsMutable(); + failedUris_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse) + private static final com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecrawlUrisResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponseOrBuilder.java new file mode 100644 index 000000000000..51b8a6ee41ad --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponseOrBuilder.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface RecrawlUrisResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + java.util.List + getFailureSamplesList(); + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo getFailureSamples(int index); + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + int getFailureSamplesCount(); + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + java.util.List + getFailureSamplesOrBuilderList(); + /** + *
+   * Details for a sample of up to 10 `failed_uris`.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfo failure_samples = 1; + */ + com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse.FailureInfoOrBuilder getFailureSamplesOrBuilder( + int index); + + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @return A list containing the failedUris. + */ + java.util.List + getFailedUrisList(); + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @return The count of failedUris. + */ + int getFailedUrisCount(); + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @param index The index of the element to return. + * @return The failedUris at the given index. + */ + java.lang.String getFailedUris(int index); + /** + *
+   * URIs that were not crawled before the LRO terminated.
+   * 
+ * + * repeated string failed_uris = 2; + * @param index The index of the value to return. + * @return The bytes of the failedUris at the given index. + */ + com.google.protobuf.ByteString + getFailedUrisBytes(int index); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Reply.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Reply.java new file mode 100644 index 000000000000..913d32a2732d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Reply.java @@ -0,0 +1,2237 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Defines a reply message to user.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Reply} + */ +public final class Reply extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Reply) + ReplyOrBuilder { +private static final long serialVersionUID = 0L; + // Use Reply.newBuilder() to construct. + private Reply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Reply() { + reply_ = ""; + references_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Reply(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Reply.class, com.google.cloud.discoveryengine.v1alpha.Reply.Builder.class); + } + + @java.lang.Deprecated public interface ReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Reply.Reference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * URI link reference.
+     * 
+ * + * string uri = 1; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+     * URI link reference.
+     * 
+ * + * string uri = 1; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+     * Anchor text.
+     * 
+ * + * string anchor_text = 2; + * @return The anchorText. + */ + java.lang.String getAnchorText(); + /** + *
+     * Anchor text.
+     * 
+ * + * string anchor_text = 2; + * @return The bytes for anchorText. + */ + com.google.protobuf.ByteString + getAnchorTextBytes(); + + /** + *
+     * Anchor text start index.
+     * 
+ * + * int32 start = 3; + * @return The start. + */ + int getStart(); + + /** + *
+     * Anchor text end index.
+     * 
+ * + * int32 end = 4; + * @return The end. + */ + int getEnd(); + } + /** + *
+   * Defines reference in reply.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Reply.Reference} + */ + @java.lang.Deprecated public static final class Reference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Reply.Reference) + ReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Reference.newBuilder() to construct. + private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Reference() { + uri_ = ""; + anchorText_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Reference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Reply.Reference.class, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+     * URI link reference.
+     * 
+ * + * string uri = 1; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + *
+     * URI link reference.
+     * 
+ * + * string uri = 1; + * @return The bytes for uri. + */ + @java.lang.Override + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANCHOR_TEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object anchorText_ = ""; + /** + *
+     * Anchor text.
+     * 
+ * + * string anchor_text = 2; + * @return The anchorText. + */ + @java.lang.Override + public java.lang.String getAnchorText() { + java.lang.Object ref = anchorText_; + 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(); + anchorText_ = s; + return s; + } + } + /** + *
+     * Anchor text.
+     * 
+ * + * string anchor_text = 2; + * @return The bytes for anchorText. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAnchorTextBytes() { + java.lang.Object ref = anchorText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + anchorText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_FIELD_NUMBER = 3; + private int start_ = 0; + /** + *
+     * Anchor text start index.
+     * 
+ * + * int32 start = 3; + * @return The start. + */ + @java.lang.Override + public int getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 4; + private int end_ = 0; + /** + *
+     * Anchor text end index.
+     * 
+ * + * int32 end = 4; + * @return The end. + */ + @java.lang.Override + public int getEnd() { + return end_; + } + + 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(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anchorText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, anchorText_); + } + if (start_ != 0) { + output.writeInt32(3, start_); + } + if (end_ != 0) { + output.writeInt32(4, end_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anchorText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, anchorText_); + } + if (start_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, start_); + } + if (end_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, end_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Reply.Reference)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Reply.Reference other = (com.google.cloud.discoveryengine.v1alpha.Reply.Reference) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getAnchorText() + .equals(other.getAnchorText())) return false; + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + ANCHOR_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getAnchorText().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart(); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference 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.discoveryengine.v1alpha.Reply.Reference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference 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.discoveryengine.v1alpha.Reply.Reference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference 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.discoveryengine.v1alpha.Reply.Reference 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; + } + /** + *
+     * Defines reference in reply.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Reply.Reference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Reply.Reference) + com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Reply.Reference.class, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Reply.Reference.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + anchorText_ = ""; + start_ = 0; + end_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_Reference_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply.Reference getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Reply.Reference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply.Reference build() { + com.google.cloud.discoveryengine.v1alpha.Reply.Reference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply.Reference buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Reply.Reference result = new com.google.cloud.discoveryengine.v1alpha.Reply.Reference(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Reply.Reference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.anchorText_ = anchorText_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.start_ = start_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.end_ = end_; + } + } + + @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.discoveryengine.v1alpha.Reply.Reference) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Reply.Reference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Reply.Reference other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Reply.Reference.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAnchorText().isEmpty()) { + anchorText_ = other.anchorText_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getStart() != 0) { + setStart(other.getStart()); + } + if (other.getEnd() != 0) { + setEnd(other.getEnd()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + anchorText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + start_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + end_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + *
+       * URI link reference.
+       * 
+ * + * string uri = 1; + * @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; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI link reference.
+       * 
+ * + * string uri = 1; + * @return The bytes for uri. + */ + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI link reference.
+       * 
+ * + * string uri = 1; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * URI link reference.
+       * 
+ * + * string uri = 1; + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * URI link reference.
+       * 
+ * + * string uri = 1; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object anchorText_ = ""; + /** + *
+       * Anchor text.
+       * 
+ * + * string anchor_text = 2; + * @return The anchorText. + */ + public java.lang.String getAnchorText() { + java.lang.Object ref = anchorText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + anchorText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Anchor text.
+       * 
+ * + * string anchor_text = 2; + * @return The bytes for anchorText. + */ + public com.google.protobuf.ByteString + getAnchorTextBytes() { + java.lang.Object ref = anchorText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + anchorText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Anchor text.
+       * 
+ * + * string anchor_text = 2; + * @param value The anchorText to set. + * @return This builder for chaining. + */ + public Builder setAnchorText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + anchorText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Anchor text.
+       * 
+ * + * string anchor_text = 2; + * @return This builder for chaining. + */ + public Builder clearAnchorText() { + anchorText_ = getDefaultInstance().getAnchorText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Anchor text.
+       * 
+ * + * string anchor_text = 2; + * @param value The bytes for anchorText to set. + * @return This builder for chaining. + */ + public Builder setAnchorTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + anchorText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int start_ ; + /** + *
+       * Anchor text start index.
+       * 
+ * + * int32 start = 3; + * @return The start. + */ + @java.lang.Override + public int getStart() { + return start_; + } + /** + *
+       * Anchor text start index.
+       * 
+ * + * int32 start = 3; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(int value) { + + start_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Anchor text start index.
+       * 
+ * + * int32 start = 3; + * @return This builder for chaining. + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000004); + start_ = 0; + onChanged(); + return this; + } + + private int end_ ; + /** + *
+       * Anchor text end index.
+       * 
+ * + * int32 end = 4; + * @return The end. + */ + @java.lang.Override + public int getEnd() { + return end_; + } + /** + *
+       * Anchor text end index.
+       * 
+ * + * int32 end = 4; + * @param value The end to set. + * @return This builder for chaining. + */ + public Builder setEnd(int value) { + + end_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Anchor text end index.
+       * 
+ * + * int32 end = 4; + * @return This builder for chaining. + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000008); + end_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.Reply.Reference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Reply.Reference) + private static final com.google.cloud.discoveryengine.v1alpha.Reply.Reference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Reply.Reference(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Reply.Reference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply.Reference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int REPLY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object reply_ = ""; + /** + *
+   * DEPRECATED: use `summary` instead.
+   * Text reply.
+   * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return The reply. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getReply() { + java.lang.Object ref = reply_; + 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(); + reply_ = s; + return s; + } + } + /** + *
+   * DEPRECATED: use `summary` instead.
+   * Text reply.
+   * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return The bytes for reply. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getReplyBytes() { + java.lang.Object ref = reply_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reply_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERENCES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List references_; + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public java.util.List getReferencesList() { + return references_; + } + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public java.util.List + getReferencesOrBuilderList() { + return references_; + } + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public int getReferencesCount() { + return references_.size(); + } + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.Reference getReferences(int index) { + return references_.get(index); + } + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder getReferencesOrBuilder( + int index) { + return references_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary_; + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + * @return Whether the summary field is set. + */ + @java.lang.Override + public boolean hasSummary() { + return summary_ != null; + } + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + * @return The summary. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getSummary() { + return summary_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { + return summary_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } + + 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(reply_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reply_); + } + for (int i = 0; i < references_.size(); i++) { + output.writeMessage(2, references_.get(i)); + } + if (summary_ != null) { + output.writeMessage(3, getSummary()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reply_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reply_); + } + for (int i = 0; i < references_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, references_.get(i)); + } + if (summary_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSummary()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Reply)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Reply other = (com.google.cloud.discoveryengine.v1alpha.Reply) obj; + + if (!getReply() + .equals(other.getReply())) return false; + if (!getReferencesList() + .equals(other.getReferencesList())) return false; + if (hasSummary() != other.hasSummary()) return false; + if (hasSummary()) { + if (!getSummary() + .equals(other.getSummary())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLY_FIELD_NUMBER; + hash = (53 * hash) + getReply().hashCode(); + if (getReferencesCount() > 0) { + hash = (37 * hash) + REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getReferencesList().hashCode(); + } + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Reply parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply 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.discoveryengine.v1alpha.Reply parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply 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.discoveryengine.v1alpha.Reply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Reply parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Reply 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.discoveryengine.v1alpha.Reply 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; + } + /** + *
+   * Defines a reply message to user.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Reply} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Reply) + com.google.cloud.discoveryengine.v1alpha.ReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Reply.class, com.google.cloud.discoveryengine.v1alpha.Reply.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Reply.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reply_ = ""; + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + } else { + references_ = null; + referencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + summary_ = null; + if (summaryBuilder_ != null) { + summaryBuilder_.dispose(); + summaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_Reply_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply build() { + com.google.cloud.discoveryengine.v1alpha.Reply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Reply result = new com.google.cloud.discoveryengine.v1alpha.Reply(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.Reply result) { + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + references_ = java.util.Collections.unmodifiableList(references_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.references_ = references_; + } else { + result.references_ = referencesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Reply result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reply_ = reply_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.summary_ = summaryBuilder_ == null + ? summary_ + : summaryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.Reply) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Reply)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Reply other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Reply.getDefaultInstance()) return this; + if (!other.getReply().isEmpty()) { + reply_ = other.reply_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (referencesBuilder_ == null) { + if (!other.references_.isEmpty()) { + if (references_.isEmpty()) { + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReferencesIsMutable(); + references_.addAll(other.references_); + } + onChanged(); + } + } else { + if (!other.references_.isEmpty()) { + if (referencesBuilder_.isEmpty()) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000002); + referencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReferencesFieldBuilder() : null; + } else { + referencesBuilder_.addAllMessages(other.references_); + } + } + } + if (other.hasSummary()) { + mergeSummary(other.getSummary()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + reply_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1alpha.Reply.Reference m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Reply.Reference.parser(), + extensionRegistry); + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(m); + } else { + referencesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + input.readMessage( + getSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object reply_ = ""; + /** + *
+     * DEPRECATED: use `summary` instead.
+     * Text reply.
+     * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return The reply. + */ + @java.lang.Deprecated public java.lang.String getReply() { + java.lang.Object ref = reply_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reply_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * DEPRECATED: use `summary` instead.
+     * Text reply.
+     * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return The bytes for reply. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getReplyBytes() { + java.lang.Object ref = reply_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reply_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * DEPRECATED: use `summary` instead.
+     * Text reply.
+     * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @param value The reply to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setReply( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + reply_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * DEPRECATED: use `summary` instead.
+     * Text reply.
+     * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearReply() { + reply_ = getDefaultInstance().getReply(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * DEPRECATED: use `summary` instead.
+     * Text reply.
+     * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @param value The bytes for reply to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setReplyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + reply_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List references_ = + java.util.Collections.emptyList(); + private void ensureReferencesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + references_ = new java.util.ArrayList(references_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply.Reference, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder, com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder> referencesBuilder_; + + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List getReferencesList() { + if (referencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(references_); + } else { + return referencesBuilder_.getMessageList(); + } + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public int getReferencesCount() { + if (referencesBuilder_ == null) { + return references_.size(); + } else { + return referencesBuilder_.getCount(); + } + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.Reference getReferences(int index) { + if (referencesBuilder_ == null) { + return references_.get(index); + } else { + return referencesBuilder_.getMessage(index); + } + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setReferences( + int index, com.google.cloud.discoveryengine.v1alpha.Reply.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.set(index, value); + onChanged(); + } else { + referencesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setReferences( + int index, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.set(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addReferences(com.google.cloud.discoveryengine.v1alpha.Reply.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(value); + onChanged(); + } else { + referencesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addReferences( + int index, com.google.cloud.discoveryengine.v1alpha.Reply.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(index, value); + onChanged(); + } else { + referencesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addReferences( + com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addReferences( + int index, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addAllReferences( + java.lang.Iterable values) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, references_); + onChanged(); + } else { + referencesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearReferences() { + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + referencesBuilder_.clear(); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder removeReferences(int index) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.remove(index); + onChanged(); + } else { + referencesBuilder_.remove(index); + } + return this; + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder getReferencesBuilder( + int index) { + return getReferencesFieldBuilder().getBuilder(index); + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder getReferencesOrBuilder( + int index) { + if (referencesBuilder_ == null) { + return references_.get(index); } else { + return referencesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List + getReferencesOrBuilderList() { + if (referencesBuilder_ != null) { + return referencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(references_); + } + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder addReferencesBuilder() { + return getReferencesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.Reply.Reference.getDefaultInstance()); + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder addReferencesBuilder( + int index) { + return getReferencesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.getDefaultInstance()); + } + /** + *
+     * References in the reply.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List + getReferencesBuilderList() { + return getReferencesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply.Reference, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder, com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder> + getReferencesFieldBuilder() { + if (referencesBuilder_ == null) { + referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Reply.Reference, com.google.cloud.discoveryengine.v1alpha.Reply.Reference.Builder, com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder>( + references_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + references_ = null; + } + return referencesBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder> summaryBuilder_; + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + * @return Whether the summary field is set. + */ + public boolean hasSummary() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + * @return The summary. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getSummary() { + if (summaryBuilder_ == null) { + return summary_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } else { + return summaryBuilder_.getMessage(); + } + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + public Builder setSummary(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary value) { + if (summaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + } else { + summaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + public Builder setSummary( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder builderForValue) { + if (summaryBuilder_ == null) { + summary_ = builderForValue.build(); + } else { + summaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + public Builder mergeSummary(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary value) { + if (summaryBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + summary_ != null && + summary_ != com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance()) { + getSummaryBuilder().mergeFrom(value); + } else { + summary_ = value; + } + } else { + summaryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + public Builder clearSummary() { + bitField0_ = (bitField0_ & ~0x00000004); + summary_ = null; + if (summaryBuilder_ != null) { + summaryBuilder_.dispose(); + summaryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder getSummaryBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSummaryFieldBuilder().getBuilder(); + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { + if (summaryBuilder_ != null) { + return summaryBuilder_.getMessageOrBuilder(); + } else { + return summary_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } + } + /** + *
+     * Summary based on search results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder> + getSummaryFieldBuilder() { + if (summaryBuilder_ == null) { + summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder>( + getSummary(), + getParentForChildren(), + isClean()); + summary_ = null; + } + return summaryBuilder_; + } + @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.discoveryengine.v1alpha.Reply) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Reply) + private static final com.google.cloud.discoveryengine.v1alpha.Reply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Reply(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Reply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Reply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ReplyOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ReplyOrBuilder.java new file mode 100644 index 000000000000..a141699474f0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ReplyOrBuilder.java @@ -0,0 +1,106 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface ReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Reply) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DEPRECATED: use `summary` instead.
+   * Text reply.
+   * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return The reply. + */ + @java.lang.Deprecated java.lang.String getReply(); + /** + *
+   * DEPRECATED: use `summary` instead.
+   * Text reply.
+   * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1alpha/conversation.proto;l=95 + * @return The bytes for reply. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getReplyBytes(); + + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getReferencesList(); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.cloud.discoveryengine.v1alpha.Reply.Reference getReferences(int index); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated int getReferencesCount(); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getReferencesOrBuilderList(); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder getReferencesOrBuilder( + int index); + + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + * @return Whether the summary field is set. + */ + boolean hasSummary(); + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + * @return The summary. + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getSummary(); + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder getSummaryOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Schema.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Schema.java new file mode 100644 index 000000000000..f4c81b4f80b5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Schema.java @@ -0,0 +1,1591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Defines the structure and layout of a type of document data.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Schema} + */ +public final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Schema) + SchemaOrBuilder { +private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schema() { + name_ = ""; + fieldConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Schema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Schema.class, com.google.cloud.discoveryengine.v1alpha.Schema.Builder.class); + } + + private int schemaCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object schema_; + public enum SchemaCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRUCT_SCHEMA(2), + JSON_SCHEMA(3), + SCHEMA_NOT_SET(0); + private final int value; + private SchemaCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaCase valueOf(int value) { + return forNumber(value); + } + + public static SchemaCase forNumber(int value) { + switch (value) { + case 2: return STRUCT_SCHEMA; + case 3: return JSON_SCHEMA; + case 0: return SCHEMA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); + } + + public static final int STRUCT_SCHEMA_FIELD_NUMBER = 2; + /** + *
+   * The structured representation of the schema.
+   * 
+ * + * .google.protobuf.Struct struct_schema = 2; + * @return Whether the structSchema field is set. + */ + @java.lang.Override + public boolean hasStructSchema() { + return schemaCase_ == 2; + } + /** + *
+   * The structured representation of the schema.
+   * 
+ * + * .google.protobuf.Struct struct_schema = 2; + * @return The structSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructSchema() { + if (schemaCase_ == 2) { + return (com.google.protobuf.Struct) schema_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + *
+   * The structured representation of the schema.
+   * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { + if (schemaCase_ == 2) { + return (com.google.protobuf.Struct) schema_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_SCHEMA_FIELD_NUMBER = 3; + /** + *
+   * The JSON representation of the schema.
+   * 
+ * + * string json_schema = 3; + * @return Whether the jsonSchema field is set. + */ + public boolean hasJsonSchema() { + return schemaCase_ == 3; + } + /** + *
+   * The JSON representation of the schema.
+   * 
+ * + * string json_schema = 3; + * @return The jsonSchema. + */ + public java.lang.String getJsonSchema() { + java.lang.Object ref = ""; + if (schemaCase_ == 3) { + ref = schema_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (schemaCase_ == 3) { + schema_ = s; + } + return s; + } + } + /** + *
+   * The JSON representation of the schema.
+   * 
+ * + * string json_schema = 3; + * @return The bytes for jsonSchema. + */ + public com.google.protobuf.ByteString + getJsonSchemaBytes() { + java.lang.Object ref = ""; + if (schemaCase_ == 3) { + ref = schema_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (schemaCase_ == 3) { + schema_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Immutable. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Immutable. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_CONFIGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List fieldConfigs_; + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getFieldConfigsList() { + return fieldConfigs_; + } + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getFieldConfigsOrBuilderList() { + return fieldConfigs_; + } + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getFieldConfigsCount() { + return fieldConfigs_.size(); + } + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfig getFieldConfigs(int index) { + return fieldConfigs_.get(index); + } + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder getFieldConfigsOrBuilder( + int index) { + return fieldConfigs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (schemaCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Struct) schema_); + } + if (schemaCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); + } + for (int i = 0; i < fieldConfigs_.size(); i++) { + output.writeMessage(4, fieldConfigs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (schemaCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Struct) schema_); + } + if (schemaCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); + } + for (int i = 0; i < fieldConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fieldConfigs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.Schema)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Schema other = (com.google.cloud.discoveryengine.v1alpha.Schema) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFieldConfigsList() + .equals(other.getFieldConfigsList())) return false; + if (!getSchemaCase().equals(other.getSchemaCase())) return false; + switch (schemaCase_) { + case 2: + if (!getStructSchema() + .equals(other.getStructSchema())) return false; + break; + case 3: + if (!getJsonSchema() + .equals(other.getJsonSchema())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getFieldConfigsCount() > 0) { + hash = (37 * hash) + FIELD_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getFieldConfigsList().hashCode(); + } + switch (schemaCase_) { + case 2: + hash = (37 * hash) + STRUCT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStructSchema().hashCode(); + break; + case 3: + hash = (37 * hash) + JSON_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getJsonSchema().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Schema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema 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.discoveryengine.v1alpha.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema 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.discoveryengine.v1alpha.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Schema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.Schema 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.discoveryengine.v1alpha.Schema 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; + } + /** + *
+   * Defines the structure and layout of a type of document data.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Schema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Schema) + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Schema.class, com.google.cloud.discoveryengine.v1alpha.Schema.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Schema.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (structSchemaBuilder_ != null) { + structSchemaBuilder_.clear(); + } + name_ = ""; + if (fieldConfigsBuilder_ == null) { + fieldConfigs_ = java.util.Collections.emptyList(); + } else { + fieldConfigs_ = null; + fieldConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + schemaCase_ = 0; + schema_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaProto.internal_static_google_cloud_discoveryengine_v1alpha_Schema_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema build() { + com.google.cloud.discoveryengine.v1alpha.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Schema result = new com.google.cloud.discoveryengine.v1alpha.Schema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.Schema result) { + if (fieldConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + fieldConfigs_ = java.util.Collections.unmodifiableList(fieldConfigs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.fieldConfigs_ = fieldConfigs_; + } else { + result.fieldConfigs_ = fieldConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Schema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.Schema result) { + result.schemaCase_ = schemaCase_; + result.schema_ = this.schema_; + if (schemaCase_ == 2 && + structSchemaBuilder_ != null) { + result.schema_ = structSchemaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.Schema) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Schema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Schema other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (fieldConfigsBuilder_ == null) { + if (!other.fieldConfigs_.isEmpty()) { + if (fieldConfigs_.isEmpty()) { + fieldConfigs_ = other.fieldConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFieldConfigsIsMutable(); + fieldConfigs_.addAll(other.fieldConfigs_); + } + onChanged(); + } + } else { + if (!other.fieldConfigs_.isEmpty()) { + if (fieldConfigsBuilder_.isEmpty()) { + fieldConfigsBuilder_.dispose(); + fieldConfigsBuilder_ = null; + fieldConfigs_ = other.fieldConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + fieldConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldConfigsFieldBuilder() : null; + } else { + fieldConfigsBuilder_.addAllMessages(other.fieldConfigs_); + } + } + } + switch (other.getSchemaCase()) { + case STRUCT_SCHEMA: { + mergeStructSchema(other.getStructSchema()); + break; + } + case JSON_SCHEMA: { + schemaCase_ = 3; + schema_ = other.schema_; + onChanged(); + break; + } + case SCHEMA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + input.readMessage( + getStructSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + schemaCase_ = 3; + schema_ = s; + break; + } // case 26 + case 34: { + com.google.cloud.discoveryengine.v1alpha.FieldConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.FieldConfig.parser(), + extensionRegistry); + if (fieldConfigsBuilder_ == null) { + ensureFieldConfigsIsMutable(); + fieldConfigs_.add(m); + } else { + fieldConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int schemaCase_ = 0; + private java.lang.Object schema_; + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); + } + + public Builder clearSchema() { + schemaCase_ = 0; + schema_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structSchemaBuilder_; + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + * @return Whether the structSchema field is set. + */ + @java.lang.Override + public boolean hasStructSchema() { + return schemaCase_ == 2; + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + * @return The structSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructSchema() { + if (structSchemaBuilder_ == null) { + if (schemaCase_ == 2) { + return (com.google.protobuf.Struct) schema_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (schemaCase_ == 2) { + return structSchemaBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + public Builder setStructSchema(com.google.protobuf.Struct value) { + if (structSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + onChanged(); + } else { + structSchemaBuilder_.setMessage(value); + } + schemaCase_ = 2; + return this; + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + public Builder setStructSchema( + com.google.protobuf.Struct.Builder builderForValue) { + if (structSchemaBuilder_ == null) { + schema_ = builderForValue.build(); + onChanged(); + } else { + structSchemaBuilder_.setMessage(builderForValue.build()); + } + schemaCase_ = 2; + return this; + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + public Builder mergeStructSchema(com.google.protobuf.Struct value) { + if (structSchemaBuilder_ == null) { + if (schemaCase_ == 2 && + schema_ != com.google.protobuf.Struct.getDefaultInstance()) { + schema_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) schema_) + .mergeFrom(value).buildPartial(); + } else { + schema_ = value; + } + onChanged(); + } else { + if (schemaCase_ == 2) { + structSchemaBuilder_.mergeFrom(value); + } else { + structSchemaBuilder_.setMessage(value); + } + } + schemaCase_ = 2; + return this; + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + public Builder clearStructSchema() { + if (structSchemaBuilder_ == null) { + if (schemaCase_ == 2) { + schemaCase_ = 0; + schema_ = null; + onChanged(); + } + } else { + if (schemaCase_ == 2) { + schemaCase_ = 0; + schema_ = null; + } + structSchemaBuilder_.clear(); + } + return this; + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + public com.google.protobuf.Struct.Builder getStructSchemaBuilder() { + return getStructSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { + if ((schemaCase_ == 2) && (structSchemaBuilder_ != null)) { + return structSchemaBuilder_.getMessageOrBuilder(); + } else { + if (schemaCase_ == 2) { + return (com.google.protobuf.Struct) schema_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + *
+     * The structured representation of the schema.
+     * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getStructSchemaFieldBuilder() { + if (structSchemaBuilder_ == null) { + if (!(schemaCase_ == 2)) { + schema_ = com.google.protobuf.Struct.getDefaultInstance(); + } + structSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) schema_, + getParentForChildren(), + isClean()); + schema_ = null; + } + schemaCase_ = 2; + onChanged(); + return structSchemaBuilder_; + } + + /** + *
+     * The JSON representation of the schema.
+     * 
+ * + * string json_schema = 3; + * @return Whether the jsonSchema field is set. + */ + @java.lang.Override + public boolean hasJsonSchema() { + return schemaCase_ == 3; + } + /** + *
+     * The JSON representation of the schema.
+     * 
+ * + * string json_schema = 3; + * @return The jsonSchema. + */ + @java.lang.Override + public java.lang.String getJsonSchema() { + java.lang.Object ref = ""; + if (schemaCase_ == 3) { + ref = schema_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (schemaCase_ == 3) { + schema_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The JSON representation of the schema.
+     * 
+ * + * string json_schema = 3; + * @return The bytes for jsonSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJsonSchemaBytes() { + java.lang.Object ref = ""; + if (schemaCase_ == 3) { + ref = schema_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (schemaCase_ == 3) { + schema_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The JSON representation of the schema.
+     * 
+ * + * string json_schema = 3; + * @param value The jsonSchema to set. + * @return This builder for chaining. + */ + public Builder setJsonSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + schemaCase_ = 3; + schema_ = value; + onChanged(); + return this; + } + /** + *
+     * The JSON representation of the schema.
+     * 
+ * + * string json_schema = 3; + * @return This builder for chaining. + */ + public Builder clearJsonSchema() { + if (schemaCase_ == 3) { + schemaCase_ = 0; + schema_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The JSON representation of the schema.
+     * 
+ * + * string json_schema = 3; + * @param value The bytes for jsonSchema to set. + * @return This builder for chaining. + */ + public Builder setJsonSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + schemaCase_ = 3; + schema_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Immutable. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Immutable. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Immutable. The full resource name of the schema, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List fieldConfigs_ = + java.util.Collections.emptyList(); + private void ensureFieldConfigsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + fieldConfigs_ = new java.util.ArrayList(fieldConfigs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.FieldConfig, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder, com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder> fieldConfigsBuilder_; + + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getFieldConfigsList() { + if (fieldConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fieldConfigs_); + } else { + return fieldConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getFieldConfigsCount() { + if (fieldConfigsBuilder_ == null) { + return fieldConfigs_.size(); + } else { + return fieldConfigsBuilder_.getCount(); + } + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.discoveryengine.v1alpha.FieldConfig getFieldConfigs(int index) { + if (fieldConfigsBuilder_ == null) { + return fieldConfigs_.get(index); + } else { + return fieldConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setFieldConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.FieldConfig value) { + if (fieldConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldConfigsIsMutable(); + fieldConfigs_.set(index, value); + onChanged(); + } else { + fieldConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setFieldConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder builderForValue) { + if (fieldConfigsBuilder_ == null) { + ensureFieldConfigsIsMutable(); + fieldConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addFieldConfigs(com.google.cloud.discoveryengine.v1alpha.FieldConfig value) { + if (fieldConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldConfigsIsMutable(); + fieldConfigs_.add(value); + onChanged(); + } else { + fieldConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addFieldConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.FieldConfig value) { + if (fieldConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldConfigsIsMutable(); + fieldConfigs_.add(index, value); + onChanged(); + } else { + fieldConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addFieldConfigs( + com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder builderForValue) { + if (fieldConfigsBuilder_ == null) { + ensureFieldConfigsIsMutable(); + fieldConfigs_.add(builderForValue.build()); + onChanged(); + } else { + fieldConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addFieldConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder builderForValue) { + if (fieldConfigsBuilder_ == null) { + ensureFieldConfigsIsMutable(); + fieldConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllFieldConfigs( + java.lang.Iterable values) { + if (fieldConfigsBuilder_ == null) { + ensureFieldConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fieldConfigs_); + onChanged(); + } else { + fieldConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearFieldConfigs() { + if (fieldConfigsBuilder_ == null) { + fieldConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + fieldConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeFieldConfigs(int index) { + if (fieldConfigsBuilder_ == null) { + ensureFieldConfigsIsMutable(); + fieldConfigs_.remove(index); + onChanged(); + } else { + fieldConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder getFieldConfigsBuilder( + int index) { + return getFieldConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder getFieldConfigsOrBuilder( + int index) { + if (fieldConfigsBuilder_ == null) { + return fieldConfigs_.get(index); } else { + return fieldConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getFieldConfigsOrBuilderList() { + if (fieldConfigsBuilder_ != null) { + return fieldConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fieldConfigs_); + } + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder addFieldConfigsBuilder() { + return getFieldConfigsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDefaultInstance()); + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder addFieldConfigsBuilder( + int index) { + return getFieldConfigsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.FieldConfig.getDefaultInstance()); + } + /** + *
+     * Output only. Configurations for fields of the schema.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getFieldConfigsBuilderList() { + return getFieldConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.FieldConfig, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder, com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder> + getFieldConfigsFieldBuilder() { + if (fieldConfigsBuilder_ == null) { + fieldConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.FieldConfig, com.google.cloud.discoveryengine.v1alpha.FieldConfig.Builder, com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder>( + fieldConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + fieldConfigs_ = null; + } + return fieldConfigsBuilder_; + } + @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.discoveryengine.v1alpha.Schema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Schema) + private static final com.google.cloud.discoveryengine.v1alpha.Schema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Schema(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java new file mode 100644 index 000000000000..b35edde06146 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java @@ -0,0 +1,427 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SchemaName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_SCHEMA = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_SCHEMA = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String schema; + private final String collection; + + @Deprecated + protected SchemaName() { + project = null; + location = null; + dataStore = null; + schema = null; + collection = null; + } + + private SchemaName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + schema = Preconditions.checkNotNull(builder.getSchema()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_SCHEMA; + } + + private SchemaName(ProjectLocationCollectionDataStoreSchemaBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + schema = Preconditions.checkNotNull(builder.getSchema()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_SCHEMA; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getSchema() { + return schema; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreSchemaBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreSchemaBuilder + newProjectLocationCollectionDataStoreSchemaBuilder() { + return new ProjectLocationCollectionDataStoreSchemaBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SchemaName of(String project, String location, String dataStore, String schema) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setSchema(schema) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SchemaName ofProjectLocationDataStoreSchemaName( + String project, String location, String dataStore, String schema) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setSchema(schema) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SchemaName ofProjectLocationCollectionDataStoreSchemaName( + String project, String location, String collection, String dataStore, String schema) { + return newProjectLocationCollectionDataStoreSchemaBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setSchema(schema) + .build(); + } + + public static String format(String project, String location, String dataStore, String schema) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setSchema(schema) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreSchemaName( + String project, String location, String dataStore, String schema) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setSchema(schema) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreSchemaName( + String project, String location, String collection, String dataStore, String schema) { + return newProjectLocationCollectionDataStoreSchemaBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setSchema(schema) + .build() + .toString(); + } + + public static SchemaName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_SCHEMA.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_STORE_SCHEMA.match(formattedString); + return ofProjectLocationDataStoreSchemaName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("schema")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_SCHEMA.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_SCHEMA.match(formattedString); + return ofProjectLocationCollectionDataStoreSchemaName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("schema")); + } + throw new ValidationException("SchemaName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SchemaName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_SCHEMA.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_SCHEMA.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (schema != null) { + fieldMapBuilder.put("schema", schema); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SchemaName that = ((SchemaName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.schema, that.schema) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(schema); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String schema; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getSchema() { + return schema; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setSchema(String schema) { + this.schema = schema; + return this; + } + + private Builder(SchemaName schemaName) { + Preconditions.checkArgument( + Objects.equals(schemaName.pathTemplate, PROJECT_LOCATION_DATA_STORE_SCHEMA), + "toBuilder is only supported when SchemaName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}"); + this.project = schemaName.project; + this.location = schemaName.location; + this.dataStore = schemaName.dataStore; + this.schema = schemaName.schema; + } + + public SchemaName build() { + return new SchemaName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreSchemaBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String schema; + + protected ProjectLocationCollectionDataStoreSchemaBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getSchema() { + return schema; + } + + public ProjectLocationCollectionDataStoreSchemaBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreSchemaBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreSchemaBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreSchemaBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreSchemaBuilder setSchema(String schema) { + this.schema = schema; + return this; + } + + public SchemaName build() { + return new SchemaName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaOrBuilder.java new file mode 100644 index 000000000000..ff690cabd430 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaOrBuilder.java @@ -0,0 +1,139 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface SchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The structured representation of the schema.
+   * 
+ * + * .google.protobuf.Struct struct_schema = 2; + * @return Whether the structSchema field is set. + */ + boolean hasStructSchema(); + /** + *
+   * The structured representation of the schema.
+   * 
+ * + * .google.protobuf.Struct struct_schema = 2; + * @return The structSchema. + */ + com.google.protobuf.Struct getStructSchema(); + /** + *
+   * The structured representation of the schema.
+   * 
+ * + * .google.protobuf.Struct struct_schema = 2; + */ + com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder(); + + /** + *
+   * The JSON representation of the schema.
+   * 
+ * + * string json_schema = 3; + * @return Whether the jsonSchema field is set. + */ + boolean hasJsonSchema(); + /** + *
+   * The JSON representation of the schema.
+   * 
+ * + * string json_schema = 3; + * @return The jsonSchema. + */ + java.lang.String getJsonSchema(); + /** + *
+   * The JSON representation of the schema.
+   * 
+ * + * string json_schema = 3; + * @return The bytes for jsonSchema. + */ + com.google.protobuf.ByteString + getJsonSchemaBytes(); + + /** + *
+   * Immutable. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Immutable. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getFieldConfigsList(); + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfig getFieldConfigs(int index); + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getFieldConfigsCount(); + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getFieldConfigsOrBuilderList(); + /** + *
+   * Output only. Configurations for fields of the schema.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.discoveryengine.v1alpha.FieldConfigOrBuilder getFieldConfigsOrBuilder( + int index); + + com.google.cloud.discoveryengine.v1alpha.Schema.SchemaCase getSchemaCase(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java new file mode 100644 index 000000000000..6b3bc6b4f7a5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java @@ -0,0 +1,129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class SchemaProto { + private SchemaProto() {} + 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_discoveryengine_v1alpha_Schema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/discoveryengine/v1alpha/s" + + "chema.proto\022$google.cloud.discoveryengin" + + "e.v1alpha\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\034google/pr" + + "otobuf/struct.proto\"\252\003\n\006Schema\0220\n\rstruct" + + "_schema\030\002 \001(\0132\027.google.protobuf.StructH\000" + + "\022\025\n\013json_schema\030\003 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\005\022N\n\rfield_configs\030\004 \003(\01321.google.clou" + + "d.discoveryengine.v1alpha.FieldConfigB\004\342" + + "A\001\003:\350\001\352A\344\001\n%discoveryengine.googleapis.c" + + "om/Schema\022Pprojects/{project}/locations/" + + "{location}/dataStores/{data_store}/schem" + + "as/{schema}\022iprojects/{project}/location" + + "s/{location}/collections/{collection}/da" + + "taStores/{data_store}/schemas/{schema}B\010" + + "\n\006schema\"\365\013\n\013FieldConfig\022\030\n\nfield_path\030\001" + + " \001(\tB\004\342A\001\002\022U\n\nfield_type\030\002 \001(\0162;.google." + + "cloud.discoveryengine.v1alpha.FieldConfi" + + "g.FieldTypeB\004\342A\001\003\022[\n\020indexable_option\030\003 " + + "\001(\0162A.google.cloud.discoveryengine.v1alp" + + "ha.FieldConfig.IndexableOption\022j\n\030dynami" + + "c_facetable_option\030\004 \001(\0162H.google.cloud." + + "discoveryengine.v1alpha.FieldConfig.Dyna" + + "micFacetableOption\022]\n\021searchable_option\030" + + "\005 \001(\0162B.google.cloud.discoveryengine.v1a" + + "lpha.FieldConfig.SearchableOption\022_\n\022ret" + + "rievable_option\030\006 \001(\0162C.google.cloud.dis" + + "coveryengine.v1alpha.FieldConfig.Retriev" + + "ableOption\022_\n\022completable_option\030\010 \001(\0162C" + + ".google.cloud.discoveryengine.v1alpha.Fi" + + "eldConfig.CompletableOption\022b\n\026recs_filt" + + "erable_option\030\t \001(\0162B.google.cloud.disco" + + "veryengine.v1alpha.FieldConfig.Filterabl" + + "eOption\022\037\n\021key_property_type\030\007 \001(\tB\004\342A\001\003" + + "\"v\n\tFieldType\022\032\n\026FIELD_TYPE_UNSPECIFIED\020" + + "\000\022\n\n\006OBJECT\020\001\022\n\n\006STRING\020\002\022\n\n\006NUMBER\020\003\022\013\n" + + "\007INTEGER\020\004\022\013\n\007BOOLEAN\020\005\022\017\n\013GEOLOCATION\020\006" + + "\"b\n\017IndexableOption\022 \n\034INDEXABLE_OPTION_" + + "UNSPECIFIED\020\000\022\025\n\021INDEXABLE_ENABLED\020\001\022\026\n\022" + + "INDEXABLE_DISABLED\020\002\"\201\001\n\026DynamicFacetabl" + + "eOption\022(\n$DYNAMIC_FACETABLE_OPTION_UNSP" + + "ECIFIED\020\000\022\035\n\031DYNAMIC_FACETABLE_ENABLED\020\001" + + "\022\036\n\032DYNAMIC_FACETABLE_DISABLED\020\002\"f\n\020Sear" + + "chableOption\022!\n\035SEARCHABLE_OPTION_UNSPEC" + + "IFIED\020\000\022\026\n\022SEARCHABLE_ENABLED\020\001\022\027\n\023SEARC" + + "HABLE_DISABLED\020\002\"j\n\021RetrievableOption\022\"\n" + + "\036RETRIEVABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023RET" + + "RIEVABLE_ENABLED\020\001\022\030\n\024RETRIEVABLE_DISABL" + + "ED\020\002\"j\n\021CompletableOption\022\"\n\036COMPLETABLE" + + "_OPTION_UNSPECIFIED\020\000\022\027\n\023COMPLETABLE_ENA" + + "BLED\020\001\022\030\n\024COMPLETABLE_DISABLED\020\002\"f\n\020Filt" + + "erableOption\022!\n\035FILTERABLE_OPTION_UNSPEC" + + "IFIED\020\000\022\026\n\022FILTERABLE_ENABLED\020\001\022\027\n\023FILTE" + + "RABLE_DISABLED\020\002B\227\002\n(com.google.cloud.di" + + "scoveryengine.v1alphaB\013SchemaProtoP\001ZRcl" + + "oud.google.com/go/discoveryengine/apiv1a" + + "lpha/discoveryenginepb;discoveryenginepb" + + "\242\002\017DISCOVERYENGINE\252\002$Google.Cloud.Discov" + + "eryEngine.V1Alpha\312\002$Google\\Cloud\\Discove" + + "ryEngine\\V1alpha\352\002\'Google::Cloud::Discov" + + "eryEngine::V1alphab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_Schema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Schema_descriptor, + new java.lang.String[] { "StructSchema", "JsonSchema", "Name", "FieldConfigs", "Schema", }); + internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_FieldConfig_descriptor, + new java.lang.String[] { "FieldPath", "FieldType", "IndexableOption", "DynamicFacetableOption", "SearchableOption", "RetrievableOption", "CompletableOption", "RecsFilterableOption", "KeyPropertyType", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceProto.java new file mode 100644 index 000000000000..da106bb5834e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceProto.java @@ -0,0 +1,249 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class SchemaServiceProto { + private SchemaServiceProto() {} + 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_discoveryengine_v1alpha_GetSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/discoveryengine/v1alpha/s" + + "chema_service.proto\022$google.cloud.discov" + + "eryengine.v1alpha\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0321google/cloud/discoveryengi" + + "ne/v1alpha/schema.proto\032#google/longrunn" + + "ing/operations.proto\032\033google/protobuf/em" + + "pty.proto\032\037google/protobuf/timestamp.pro" + + "to\"P\n\020GetSchemaRequest\022<\n\004name\030\001 \001(\tB.\342A" + + "\001\002\372A\'\n%discoveryengine.googleapis.com/Sc" + + "hema\"~\n\022ListSchemasRequest\022A\n\006parent\030\001 \001" + + "(\tB1\342A\001\002\372A*\n(discoveryengine.googleapis." + + "com/DataStore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"m\n\023ListSchemasResponse\022=\n\007s" + + "chemas\030\001 \003(\0132,.google.cloud.discoveryeng" + + "ine.v1alpha.Schema\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\265\001\n\023CreateSchemaRequest\022A\n\006parent\030\001 " + + "\001(\tB1\342A\001\002\372A*\n(discoveryengine.googleapis" + + ".com/DataStore\022B\n\006schema\030\002 \001(\0132,.google." + + "cloud.discoveryengine.v1alpha.SchemaB\004\342A" + + "\001\002\022\027\n\tschema_id\030\003 \001(\tB\004\342A\001\002\"p\n\023UpdateSch" + + "emaRequest\022B\n\006schema\030\001 \001(\0132,.google.clou" + + "d.discoveryengine.v1alpha.SchemaB\004\342A\001\002\022\025" + + "\n\rallow_missing\030\003 \001(\010\"S\n\023DeleteSchemaReq" + + "uest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryen" + + "gine.googleapis.com/Schema\"x\n\024CreateSche" + + "maMetadata\022/\n\013create_time\030\001 \001(\0132\032.google" + + ".protobuf.Timestamp\022/\n\013update_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\"x\n\024UpdateSc" + + "hemaMetadata\022/\n\013create_time\030\001 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013update_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\"x\n\024Delete" + + "SchemaMetadata\022/\n\013create_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022/\n\013update_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp2\237\016\n\rSch" + + "emaService\022\220\002\n\tGetSchema\0226.google.cloud." + + "discoveryengine.v1alpha.GetSchemaRequest" + + "\032,.google.cloud.discoveryengine.v1alpha." + + "Schema\"\234\001\332A\004name\202\323\344\223\002\216\001\022=/v1alpha/{name=" + + "projects/*/locations/*/dataStores/*/sche" + + "mas/*}ZM\022K/v1alpha/{name=projects/*/loca" + + "tions/*/collections/*/dataStores/*/schem" + + "as/*}\022\243\002\n\013ListSchemas\0228.google.cloud.dis" + + "coveryengine.v1alpha.ListSchemasRequest\032" + + "9.google.cloud.discoveryengine.v1alpha.L" + + "istSchemasResponse\"\236\001\332A\006parent\202\323\344\223\002\216\001\022=/" + + "v1alpha/{parent=projects/*/locations/*/d" + + "ataStores/*}/schemasZM\022K/v1alpha/{parent" + + "=projects/*/locations/*/collections/*/da" + + "taStores/*}/schemas\022\225\003\n\014CreateSchema\0229.g" + + "oogle.cloud.discoveryengine.v1alpha.Crea" + + "teSchemaRequest\032\035.google.longrunning.Ope" + + "ration\"\252\002\312Ah\n+google.cloud.discoveryengi" + + "ne.v1alpha.Schema\0229google.cloud.discover" + + "yengine.v1alpha.CreateSchemaMetadata\332A\027p" + + "arent,schema,schema_id\202\323\344\223\002\236\001\"=/v1alpha/" + + "{parent=projects/*/locations/*/dataStore" + + "s/*}/schemas:\006schemaZU\"K/v1alpha/{parent" + + "=projects/*/locations/*/collections/*/da" + + "taStores/*}/schemas:\006schema\022\211\003\n\014UpdateSc" + + "hema\0229.google.cloud.discoveryengine.v1al" + + "pha.UpdateSchemaRequest\032\035.google.longrun" + + "ning.Operation\"\236\002\312Ah\n+google.cloud.disco" + + "veryengine.v1alpha.Schema\0229google.cloud." + + "discoveryengine.v1alpha.UpdateSchemaMeta" + + "data\202\323\344\223\002\254\0012D/v1alpha/{schema.name=proje" + + "cts/*/locations/*/dataStores/*/schemas/*" + + "}:\006schemaZ\\2R/v1alpha/{schema.name=proje" + + "cts/*/locations/*/collections/*/dataStor" + + "es/*/schemas/*}:\006schema\022\334\002\n\014DeleteSchema" + + "\0229.google.cloud.discoveryengine.v1alpha." + + "DeleteSchemaRequest\032\035.google.longrunning" + + ".Operation\"\361\001\312AR\n\025google.protobuf.Empty\022" + + "9google.cloud.discoveryengine.v1alpha.De" + + "leteSchemaMetadata\332A\004name\202\323\344\223\002\216\001*=/v1alp" + + "ha/{name=projects/*/locations/*/dataStor" + + "es/*/schemas/*}ZM*K/v1alpha/{name=projec" + + "ts/*/locations/*/collections/*/dataStore" + + "s/*/schemas/*}\032R\312A\036discoveryengine.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\236\002\n(com.google.cloud." + + "discoveryengine.v1alphaB\022SchemaServicePr" + + "otoP\001ZRcloud.google.com/go/discoveryengi" + + "ne/apiv1alpha/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002$Google.Clo" + + "ud.DiscoveryEngine.V1Alpha\312\002$Google\\Clou" + + "d\\DiscoveryEngine\\V1alpha\352\002\'Google::Clou" + + "d::DiscoveryEngine::V1alphab\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.discoveryengine.v1alpha.SchemaProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListSchemasResponse_descriptor, + new java.lang.String[] { "Schemas", "NextPageToken", }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaRequest_descriptor, + new java.lang.String[] { "Parent", "Schema", "SchemaId", }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_descriptor, + new java.lang.String[] { "Schema", "AllowMissing", }); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CreateSchemaMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DeleteSchemaMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", }); + 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.discoveryengine.v1alpha.SchemaProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfo.java new file mode 100644 index 000000000000..350bbecd37c0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfo.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Detailed search information.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchInfo} + */ +public final class SearchInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchInfo) + SearchInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchInfo.newBuilder() to construct. + private SearchInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchInfo() { + searchQuery_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchInfo.class, com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder.class); + } + + private int bitField0_; + public static final int SEARCH_QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object searchQuery_ = ""; + /** + *
+   * The user's search query.
+   *
+   * See
+   * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+   * for definition.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 5,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * At least one of
+   * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+   * or
+   * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+   * is required for `search` events. Other event types should not set this
+   * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string search_query = 1; + * @return The searchQuery. + */ + @java.lang.Override + public java.lang.String getSearchQuery() { + java.lang.Object ref = searchQuery_; + 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(); + searchQuery_ = s; + return s; + } + } + /** + *
+   * The user's search query.
+   *
+   * See
+   * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+   * for definition.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 5,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * At least one of
+   * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+   * or
+   * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+   * is required for `search` events. Other event types should not set this
+   * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string search_query = 1; + * @return The bytes for searchQuery. + */ + @java.lang.Override + 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); + searchQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + *
+   * The order in which products are returned, if applicable.
+   *
+   * See
+   * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+   * for definition and syntax.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string order_by = 2; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * The order in which products are returned, if applicable.
+   *
+   * See
+   * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+   * for definition and syntax.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string order_by = 2; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFSET_FIELD_NUMBER = 3; + private int offset_ = 0; + /** + *
+   * An integer that specifies the current offset for pagination (the 0-indexed
+   * starting location, amongst the products deemed by the API as relevant).
+   *
+   * See
+   * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+   * for definition.
+   *
+   * If this field is negative, an `INVALID_ARGUMENT` is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * optional int32 offset = 3; + * @return Whether the offset field is set. + */ + @java.lang.Override + public boolean hasOffset() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * An integer that specifies the current offset for pagination (the 0-indexed
+   * starting location, amongst the products deemed by the API as relevant).
+   *
+   * See
+   * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+   * for definition.
+   *
+   * If this field is negative, an `INVALID_ARGUMENT` is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * optional int32 offset = 3; + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + + 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(searchQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, searchQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(3, offset_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, searchQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, offset_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchInfo other = (com.google.cloud.discoveryengine.v1alpha.SearchInfo) obj; + + if (!getSearchQuery() + .equals(other.getSearchQuery())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (hasOffset() != other.hasOffset()) return false; + if (hasOffset()) { + if (getOffset() + != other.getOffset()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEARCH_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSearchQuery().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasOffset()) { + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo 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.discoveryengine.v1alpha.SearchInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo 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.discoveryengine.v1alpha.SearchInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo 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.discoveryengine.v1alpha.SearchInfo 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; + } + /** + *
+   * Detailed search information.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchInfo) + com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchInfo.class, com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchQuery_ = ""; + orderBy_ = ""; + offset_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchInfo build() { + com.google.cloud.discoveryengine.v1alpha.SearchInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchInfo result = new com.google.cloud.discoveryengine.v1alpha.SearchInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchQuery_ = searchQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orderBy_ = orderBy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.offset_ = offset_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance()) return this; + if (!other.getSearchQuery().isEmpty()) { + searchQuery_ = other.searchQuery_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOffset()) { + setOffset(other.getOffset()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + searchQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + offset_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object searchQuery_ = ""; + /** + *
+     * The user's search query.
+     *
+     * See
+     * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+     * for definition.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 5,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * At least one of
+     * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+     * or
+     * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+     * is required for `search` events. Other event types should not set this
+     * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + searchQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The user's search query.
+     *
+     * See
+     * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+     * for definition.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 5,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * At least one of
+     * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+     * or
+     * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+     * is required for `search` events. Other event types should not set this
+     * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string search_query = 1; + * @return The bytes for searchQuery. + */ + 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); + searchQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The user's search query.
+     *
+     * See
+     * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+     * for definition.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 5,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * At least one of
+     * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+     * or
+     * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+     * is required for `search` events. Other event types should not set this
+     * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string search_query = 1; + * @param value The searchQuery to set. + * @return This builder for chaining. + */ + public Builder setSearchQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + searchQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The user's search query.
+     *
+     * See
+     * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+     * for definition.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 5,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * At least one of
+     * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+     * or
+     * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+     * is required for `search` events. Other event types should not set this
+     * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string search_query = 1; + * @return This builder for chaining. + */ + public Builder clearSearchQuery() { + searchQuery_ = getDefaultInstance().getSearchQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The user's search query.
+     *
+     * See
+     * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+     * for definition.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 5,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * At least one of
+     * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+     * or
+     * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+     * is required for `search` events. Other event types should not set this
+     * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + searchQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * The order in which products are returned, if applicable.
+     *
+     * See
+     * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+     * for definition and syntax.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string order_by = 2; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The order in which products are returned, if applicable.
+     *
+     * See
+     * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+     * for definition and syntax.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string order_by = 2; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The order in which products are returned, if applicable.
+     *
+     * See
+     * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+     * for definition and syntax.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string order_by = 2; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + orderBy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The order in which products are returned, if applicable.
+     *
+     * See
+     * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+     * for definition and syntax.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string order_by = 2; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The order in which products are returned, if applicable.
+     *
+     * See
+     * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+     * for definition and syntax.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string order_by = 2; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int offset_ ; + /** + *
+     * An integer that specifies the current offset for pagination (the 0-indexed
+     * starting location, amongst the products deemed by the API as relevant).
+     *
+     * See
+     * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+     * for definition.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * optional int32 offset = 3; + * @return Whether the offset field is set. + */ + @java.lang.Override + public boolean hasOffset() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * An integer that specifies the current offset for pagination (the 0-indexed
+     * starting location, amongst the products deemed by the API as relevant).
+     *
+     * See
+     * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+     * for definition.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * optional int32 offset = 3; + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + /** + *
+     * An integer that specifies the current offset for pagination (the 0-indexed
+     * starting location, amongst the products deemed by the API as relevant).
+     *
+     * See
+     * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+     * for definition.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * optional int32 offset = 3; + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * An integer that specifies the current offset for pagination (the 0-indexed
+     * starting location, amongst the products deemed by the API as relevant).
+     *
+     * See
+     * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+     * for definition.
+     *
+     * If this field is negative, an `INVALID_ARGUMENT` is returned.
+     *
+     * This can only be set for `search` events. Other event types should not set
+     * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * optional int32 offset = 3; + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000004); + offset_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchInfo) + private static final com.google.cloud.discoveryengine.v1alpha.SearchInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfoOrBuilder.java new file mode 100644 index 000000000000..77f34fbc0adb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchInfoOrBuilder.java @@ -0,0 +1,136 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface SearchInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The user's search query.
+   *
+   * See
+   * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+   * for definition.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 5,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * At least one of
+   * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+   * or
+   * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+   * is required for `search` events. Other event types should not set this
+   * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string search_query = 1; + * @return The searchQuery. + */ + java.lang.String getSearchQuery(); + /** + *
+   * The user's search query.
+   *
+   * See
+   * [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query]
+   * for definition.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 5,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * At least one of
+   * [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query]
+   * or
+   * [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category]
+   * is required for `search` events. Other event types should not set this
+   * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string search_query = 1; + * @return The bytes for searchQuery. + */ + com.google.protobuf.ByteString + getSearchQueryBytes(); + + /** + *
+   * The order in which products are returned, if applicable.
+   *
+   * See
+   * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+   * for definition and syntax.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string order_by = 2; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * The order in which products are returned, if applicable.
+   *
+   * See
+   * [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by]
+   * for definition and syntax.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string order_by = 2; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); + + /** + *
+   * An integer that specifies the current offset for pagination (the 0-indexed
+   * starting location, amongst the products deemed by the API as relevant).
+   *
+   * See
+   * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+   * for definition.
+   *
+   * If this field is negative, an `INVALID_ARGUMENT` is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * optional int32 offset = 3; + * @return Whether the offset field is set. + */ + boolean hasOffset(); + /** + *
+   * An integer that specifies the current offset for pagination (the 0-indexed
+   * starting location, amongst the products deemed by the API as relevant).
+   *
+   * See
+   * [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset]
+   * for definition.
+   *
+   * If this field is negative, an `INVALID_ARGUMENT` is returned.
+   *
+   * This can only be set for `search` events. Other event types should not set
+   * this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * optional int32 offset = 3; + * @return The offset. + */ + int getOffset(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java new file mode 100644 index 000000000000..1b82c8f0f9b8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java @@ -0,0 +1,20030 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest} + */ +public final class SearchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest) + SearchRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchRequest.newBuilder() to construct. + private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchRequest() { + servingConfig_ = ""; + branch_ = ""; + query_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + facetSpecs_ = java.util.Collections.emptyList(); + userPseudoId_ = ""; + rankingExpression_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetParams(); + case 22: + return internalGetUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder.class); + } + + public interface ImageQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+     * BMP.
+     * 
+ * + * string image_bytes = 1; + * @return Whether the imageBytes field is set. + */ + boolean hasImageBytes(); + /** + *
+     * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+     * BMP.
+     * 
+ * + * string image_bytes = 1; + * @return The imageBytes. + */ + java.lang.String getImageBytes(); + /** + *
+     * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+     * BMP.
+     * 
+ * + * string image_bytes = 1; + * @return The bytes for imageBytes. + */ + com.google.protobuf.ByteString + getImageBytesBytes(); + + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.ImageCase getImageCase(); + } + /** + *
+   * Specifies the image query input.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery} + */ + public static final class ImageQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery) + ImageQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImageQuery.newBuilder() to construct. + private ImageQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ImageQuery() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ImageQuery(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder.class); + } + + private int imageCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object image_; + public enum ImageCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IMAGE_BYTES(1), + IMAGE_NOT_SET(0); + private final int value; + private ImageCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ImageCase valueOf(int value) { + return forNumber(value); + } + + public static ImageCase forNumber(int value) { + switch (value) { + case 1: return IMAGE_BYTES; + case 0: return IMAGE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ImageCase + getImageCase() { + return ImageCase.forNumber( + imageCase_); + } + + public static final int IMAGE_BYTES_FIELD_NUMBER = 1; + /** + *
+     * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+     * BMP.
+     * 
+ * + * string image_bytes = 1; + * @return Whether the imageBytes field is set. + */ + public boolean hasImageBytes() { + return imageCase_ == 1; + } + /** + *
+     * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+     * BMP.
+     * 
+ * + * string image_bytes = 1; + * @return The imageBytes. + */ + public java.lang.String getImageBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (imageCase_ == 1) { + image_ = s; + } + return s; + } + } + /** + *
+     * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+     * BMP.
+     * 
+ * + * string image_bytes = 1; + * @return The bytes for imageBytes. + */ + public com.google.protobuf.ByteString + getImageBytesBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (imageCase_ == 1) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (imageCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (imageCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery) obj; + + if (!getImageCase().equals(other.getImageCase())) return false; + switch (imageCase_) { + case 1: + if (!getImageBytes() + .equals(other.getImageBytes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (imageCase_) { + case 1: + hash = (37 * hash) + IMAGE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getImageBytes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery 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.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery 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.discoveryengine.v1alpha.SearchRequest.ImageQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery 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.discoveryengine.v1alpha.SearchRequest.ImageQuery 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; + } + /** + *
+     * Specifies the image query input.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + imageCase_ = 0; + image_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery result) { + result.imageCase_ = imageCase_; + result.image_ = this.image_; + } + + @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.discoveryengine.v1alpha.SearchRequest.ImageQuery) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance()) return this; + switch (other.getImageCase()) { + case IMAGE_BYTES: { + imageCase_ = 1; + image_ = other.image_; + onChanged(); + break; + } + case IMAGE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 1; + image_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int imageCase_ = 0; + private java.lang.Object image_; + public ImageCase + getImageCase() { + return ImageCase.forNumber( + imageCase_); + } + + public Builder clearImage() { + imageCase_ = 0; + image_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+       * BMP.
+       * 
+ * + * string image_bytes = 1; + * @return Whether the imageBytes field is set. + */ + @java.lang.Override + public boolean hasImageBytes() { + return imageCase_ == 1; + } + /** + *
+       * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+       * BMP.
+       * 
+ * + * string image_bytes = 1; + * @return The imageBytes. + */ + @java.lang.Override + public java.lang.String getImageBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (imageCase_ == 1) { + image_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+       * BMP.
+       * 
+ * + * string image_bytes = 1; + * @return The bytes for imageBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getImageBytesBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (imageCase_ == 1) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+       * BMP.
+       * 
+ * + * string image_bytes = 1; + * @param value The imageBytes to set. + * @return This builder for chaining. + */ + public Builder setImageBytes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + imageCase_ = 1; + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+       * BMP.
+       * 
+ * + * string image_bytes = 1; + * @return This builder for chaining. + */ + public Builder clearImageBytes() { + if (imageCase_ == 1) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
+       * BMP.
+       * 
+ * + * string image_bytes = 1; + * @param value The bytes for imageBytes to set. + * @return This builder for chaining. + */ + public Builder setImageBytesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + imageCase_ = 1; + image_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FacetSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required. The facet key specification.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the facetKey field is set. + */ + boolean hasFacetKey(); + /** + *
+     * Required. The facet key specification.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The facetKey. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getFacetKey(); + /** + *
+     * Required. The facet key specification.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder(); + + /** + *
+     * Maximum of facet values that should be returned for this facet. If
+     * unspecified, defaults to 20. The maximum allowed value is 300. Values
+     * above 300 are coerced to 300.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 limit = 2; + * @return The limit. + */ + int getLimit(); + + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @return A list containing the excludedFilterKeys. + */ + java.util.List + getExcludedFilterKeysList(); + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @return The count of excludedFilterKeys. + */ + int getExcludedFilterKeysCount(); + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index of the element to return. + * @return The excludedFilterKeys at the given index. + */ + java.lang.String getExcludedFilterKeys(int index); + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index of the value to return. + * @return The bytes of the excludedFilterKeys at the given index. + */ + com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index); + + /** + *
+     * Enables dynamic position for this facet. If set to true, the position of
+     * this facet among all facets in the response is determined automatically.
+     * If dynamic facets are enabled, it is ordered together.
+     * If set to false, the position of this facet in the
+     * response is the same as in the request, and it is ranked before
+     * the facets with dynamic position enable and all dynamic facets.
+     *
+     * For example, you may always want to have rating facet returned in
+     * the response, but it's not necessarily to always display the rating facet
+     * at the top. In that case, you can set enable_dynamic_position to true so
+     * that the position of rating facet in response is determined
+     * automatically.
+     *
+     * Another example, assuming you have the following facets in the request:
+     *
+     * * "rating", enable_dynamic_position = true
+     *
+     * * "price", enable_dynamic_position = false
+     *
+     * * "brands", enable_dynamic_position = false
+     *
+     * And also you have a dynamic facets enabled, which generates a facet
+     * `gender`. Then the final order of the facets in the response can be
+     * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
+     * "rating") depends on how API orders "gender" and "rating" facets.
+     * However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * is false.
+     * 
+ * + * bool enable_dynamic_position = 4; + * @return The enableDynamicPosition. + */ + boolean getEnableDynamicPosition(); + } + /** + *
+   * A facet specification to perform faceted search.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec} + */ + public static final class FacetSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + FacetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetSpec.newBuilder() to construct. + private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FacetSpec() { + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FacetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder.class); + } + + public interface FacetKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Required. Supported textual and numerical facet keys in
+       * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+       * which the facet values are computed. Facet key is case-sensitive.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The key. + */ + java.lang.String getKey(); + /** + *
+       * Required. Supported textual and numerical facet keys in
+       * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+       * which the facet values are computed. Facet key is case-sensitive.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + java.util.List + getIntervalsList(); + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + com.google.cloud.discoveryengine.v1alpha.Interval getIntervals(int index); + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + int getIntervalsCount(); + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + java.util.List + getIntervalsOrBuilderList(); + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder getIntervalsOrBuilder( + int index); + + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @return A list containing the restrictedValues. + */ + java.util.List + getRestrictedValuesList(); + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @return The count of restrictedValues. + */ + int getRestrictedValuesCount(); + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @param index The index of the element to return. + * @return The restrictedValues at the given index. + */ + java.lang.String getRestrictedValues(int index); + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @param index The index of the value to return. + * @return The bytes of the restrictedValues at the given index. + */ + com.google.protobuf.ByteString + getRestrictedValuesBytes(int index); + + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @return A list containing the prefixes. + */ + java.util.List + getPrefixesList(); + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @return The count of prefixes. + */ + int getPrefixesCount(); + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @param index The index of the element to return. + * @return The prefixes at the given index. + */ + java.lang.String getPrefixes(int index); + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @param index The index of the value to return. + * @return The bytes of the prefixes at the given index. + */ + com.google.protobuf.ByteString + getPrefixesBytes(int index); + + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @return A list containing the contains. + */ + java.util.List + getContainsList(); + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @return The count of contains. + */ + int getContainsCount(); + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @param index The index of the element to return. + * @return The contains at the given index. + */ + java.lang.String getContains(int index); + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @param index The index of the value to return. + * @return The bytes of the contains at the given index. + */ + com.google.protobuf.ByteString + getContainsBytes(int index); + + /** + *
+       * True to make facet keys case insensitive when getting faceting
+       * values with prefixes or contains; false otherwise.
+       * 
+ * + * bool case_insensitive = 6; + * @return The caseInsensitive. + */ + boolean getCaseInsensitive(); + + /** + *
+       * The order in which documents are returned.
+       *
+       * Allowed values are:
+       *
+       * * "count desc", which means order by
+       * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+       * descending.
+       *
+       * * "value desc", which means order by
+       * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+       * descending.
+       *   Only applies to textual facets.
+       *
+       * If not set, textual values are sorted in [natural
+       * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+       * intervals are sorted in the order given by
+       * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * string order_by = 7; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+       * The order in which documents are returned.
+       *
+       * Allowed values are:
+       *
+       * * "count desc", which means order by
+       * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+       * descending.
+       *
+       * * "value desc", which means order by
+       * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+       * descending.
+       *   Only applies to textual facets.
+       *
+       * If not set, textual values are sorted in [natural
+       * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+       * intervals are sorted in the order given by
+       * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * string order_by = 7; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); + } + /** + *
+     * Specifies how a facet is computed.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey} + */ + public static final class FacetKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) + FacetKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetKey.newBuilder() to construct. + private FacetKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FacetKey() { + key_ = ""; + intervals_ = java.util.Collections.emptyList(); + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FacetKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+       * Required. Supported textual and numerical facet keys in
+       * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+       * which the facet values are computed. Facet key is case-sensitive.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + *
+       * Required. Supported textual and numerical facet keys in
+       * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+       * which the facet values are computed. Facet key is case-sensitive.
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERVALS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List intervals_; + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + @java.lang.Override + public java.util.List getIntervalsList() { + return intervals_; + } + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + @java.lang.Override + public java.util.List + getIntervalsOrBuilderList() { + return intervals_; + } + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + @java.lang.Override + public int getIntervalsCount() { + return intervals_.size(); + } + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval getIntervals(int index) { + return intervals_.get(index); + } + /** + *
+       * Set only if values should be bucketed into intervals. Must be set
+       * for facets with numerical values. Must not be set for facet with text
+       * values. Maximum number of intervals is 30.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder getIntervalsOrBuilder( + int index) { + return intervals_.get(index); + } + + public static final int RESTRICTED_VALUES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @return A list containing the restrictedValues. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedValuesList() { + return restrictedValues_; + } + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @return The count of restrictedValues. + */ + public int getRestrictedValuesCount() { + return restrictedValues_.size(); + } + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @param index The index of the element to return. + * @return The restrictedValues at the given index. + */ + public java.lang.String getRestrictedValues(int index) { + return restrictedValues_.get(index); + } + /** + *
+       * Only get facet for the given restricted values. Only supported on
+       * textual fields. For example, suppose "category" has three values
+       * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+       * "restricted_values" to "Action > 2022", the "category" facet only
+       * contains "Action > 2022". Only supported on textual fields. Maximum
+       * is 10.
+       * 
+ * + * repeated string restricted_values = 3; + * @param index The index of the value to return. + * @return The bytes of the restrictedValues at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedValuesBytes(int index) { + return restrictedValues_.getByteString(index); + } + + public static final int PREFIXES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @return A list containing the prefixes. + */ + public com.google.protobuf.ProtocolStringList + getPrefixesList() { + return prefixes_; + } + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @return The count of prefixes. + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @param index The index of the element to return. + * @return The prefixes at the given index. + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + *
+       * Only get facet values that start with the given string prefix. For
+       * example, suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+       * "category" facet only contains "Action > 2022" and "Action > 2021".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string prefixes = 4; + * @param index The index of the value to return. + * @return The bytes of the prefixes at the given index. + */ + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + + public static final int CONTAINS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @return A list containing the contains. + */ + public com.google.protobuf.ProtocolStringList + getContainsList() { + return contains_; + } + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @return The count of contains. + */ + public int getContainsCount() { + return contains_.size(); + } + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @param index The index of the element to return. + * @return The contains at the given index. + */ + public java.lang.String getContains(int index) { + return contains_.get(index); + } + /** + *
+       * Only get facet values that contains the given strings. For example,
+       * suppose "category" has three values "Action > 2022",
+       * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+       * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+       * Only supported on textual fields. Maximum is 10.
+       * 
+ * + * repeated string contains = 5; + * @param index The index of the value to return. + * @return The bytes of the contains at the given index. + */ + public com.google.protobuf.ByteString + getContainsBytes(int index) { + return contains_.getByteString(index); + } + + public static final int CASE_INSENSITIVE_FIELD_NUMBER = 6; + private boolean caseInsensitive_ = false; + /** + *
+       * True to make facet keys case insensitive when getting faceting
+       * values with prefixes or contains; false otherwise.
+       * 
+ * + * bool case_insensitive = 6; + * @return The caseInsensitive. + */ + @java.lang.Override + public boolean getCaseInsensitive() { + return caseInsensitive_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + *
+       * The order in which documents are returned.
+       *
+       * Allowed values are:
+       *
+       * * "count desc", which means order by
+       * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+       * descending.
+       *
+       * * "value desc", which means order by
+       * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+       * descending.
+       *   Only applies to textual facets.
+       *
+       * If not set, textual values are sorted in [natural
+       * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+       * intervals are sorted in the order given by
+       * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * string order_by = 7; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+       * The order in which documents are returned.
+       *
+       * Allowed values are:
+       *
+       * * "count desc", which means order by
+       * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+       * descending.
+       *
+       * * "value desc", which means order by
+       * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+       * descending.
+       *   Only applies to textual facets.
+       *
+       * If not set, textual values are sorted in [natural
+       * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+       * intervals are sorted in the order given by
+       * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * string order_by = 7; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + for (int i = 0; i < intervals_.size(); i++) { + output.writeMessage(2, intervals_.get(i)); + } + for (int i = 0; i < restrictedValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, restrictedValues_.getRaw(i)); + } + for (int i = 0; i < prefixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, prefixes_.getRaw(i)); + } + for (int i = 0; i < contains_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contains_.getRaw(i)); + } + if (caseInsensitive_ != false) { + output.writeBool(6, caseInsensitive_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + for (int i = 0; i < intervals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, intervals_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedValues_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedValuesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < prefixes_.size(); i++) { + dataSize += computeStringSizeNoTag(prefixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrefixesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < contains_.size(); i++) { + dataSize += computeStringSizeNoTag(contains_.getRaw(i)); + } + size += dataSize; + size += 1 * getContainsList().size(); + } + if (caseInsensitive_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, caseInsensitive_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getIntervalsList() + .equals(other.getIntervalsList())) return false; + if (!getRestrictedValuesList() + .equals(other.getRestrictedValuesList())) return false; + if (!getPrefixesList() + .equals(other.getPrefixesList())) return false; + if (!getContainsList() + .equals(other.getContainsList())) return false; + if (getCaseInsensitive() + != other.getCaseInsensitive()) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (getIntervalsCount() > 0) { + hash = (37 * hash) + INTERVALS_FIELD_NUMBER; + hash = (53 * hash) + getIntervalsList().hashCode(); + } + if (getRestrictedValuesCount() > 0) { + hash = (37 * hash) + RESTRICTED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedValuesList().hashCode(); + } + if (getPrefixesCount() > 0) { + hash = (37 * hash) + PREFIXES_FIELD_NUMBER; + hash = (53 * hash) + getPrefixesList().hashCode(); + } + if (getContainsCount() > 0) { + hash = (37 * hash) + CONTAINS_FIELD_NUMBER; + hash = (53 * hash) + getContainsList().hashCode(); + } + hash = (37 * hash) + CASE_INSENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaseInsensitive()); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey 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; + } + /** + *
+       * Specifies how a facet is computed.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + if (intervalsBuilder_ == null) { + intervals_ = java.util.Collections.emptyList(); + } else { + intervals_ = null; + intervalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + caseInsensitive_ = false; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey result) { + if (intervalsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + intervals_ = java.util.Collections.unmodifiableList(intervals_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.intervals_ = intervals_; + } else { + result.intervals_ = intervalsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + restrictedValues_.makeImmutable(); + result.restrictedValues_ = restrictedValues_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + prefixes_.makeImmutable(); + result.prefixes_ = prefixes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + contains_.makeImmutable(); + result.contains_ = contains_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.caseInsensitive_ = caseInsensitive_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (intervalsBuilder_ == null) { + if (!other.intervals_.isEmpty()) { + if (intervals_.isEmpty()) { + intervals_ = other.intervals_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIntervalsIsMutable(); + intervals_.addAll(other.intervals_); + } + onChanged(); + } + } else { + if (!other.intervals_.isEmpty()) { + if (intervalsBuilder_.isEmpty()) { + intervalsBuilder_.dispose(); + intervalsBuilder_ = null; + intervals_ = other.intervals_; + bitField0_ = (bitField0_ & ~0x00000002); + intervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntervalsFieldBuilder() : null; + } else { + intervalsBuilder_.addAllMessages(other.intervals_); + } + } + } + if (!other.restrictedValues_.isEmpty()) { + if (restrictedValues_.isEmpty()) { + restrictedValues_ = other.restrictedValues_; + bitField0_ |= 0x00000004; + } else { + ensureRestrictedValuesIsMutable(); + restrictedValues_.addAll(other.restrictedValues_); + } + onChanged(); + } + if (!other.prefixes_.isEmpty()) { + if (prefixes_.isEmpty()) { + prefixes_ = other.prefixes_; + bitField0_ |= 0x00000008; + } else { + ensurePrefixesIsMutable(); + prefixes_.addAll(other.prefixes_); + } + onChanged(); + } + if (!other.contains_.isEmpty()) { + if (contains_.isEmpty()) { + contains_ = other.contains_; + bitField0_ |= 0x00000010; + } else { + ensureContainsIsMutable(); + contains_.addAll(other.contains_); + } + onChanged(); + } + if (other.getCaseInsensitive() != false) { + setCaseInsensitive(other.getCaseInsensitive()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1alpha.Interval m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Interval.parser(), + extensionRegistry); + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.add(m); + } else { + intervalsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedValuesIsMutable(); + restrictedValues_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrefixesIsMutable(); + prefixes_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContainsIsMutable(); + contains_.add(s); + break; + } // case 42 + case 48: { + caseInsensitive_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + *
+         * Required. Supported textual and numerical facet keys in
+         * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+         * which the facet values are computed. Facet key is case-sensitive.
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Required. Supported textual and numerical facet keys in
+         * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+         * which the facet values are computed. Facet key is case-sensitive.
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Required. Supported textual and numerical facet keys in
+         * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+         * which the facet values are computed. Facet key is case-sensitive.
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Required. Supported textual and numerical facet keys in
+         * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+         * which the facet values are computed. Facet key is case-sensitive.
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * Required. Supported textual and numerical facet keys in
+         * [Document][google.cloud.discoveryengine.v1alpha.Document] object, over
+         * which the facet values are computed. Facet key is case-sensitive.
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List intervals_ = + java.util.Collections.emptyList(); + private void ensureIntervalsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + intervals_ = new java.util.ArrayList(intervals_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Interval, com.google.cloud.discoveryengine.v1alpha.Interval.Builder, com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder> intervalsBuilder_; + + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public java.util.List getIntervalsList() { + if (intervalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(intervals_); + } else { + return intervalsBuilder_.getMessageList(); + } + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public int getIntervalsCount() { + if (intervalsBuilder_ == null) { + return intervals_.size(); + } else { + return intervalsBuilder_.getCount(); + } + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Interval getIntervals(int index) { + if (intervalsBuilder_ == null) { + return intervals_.get(index); + } else { + return intervalsBuilder_.getMessage(index); + } + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder setIntervals( + int index, com.google.cloud.discoveryengine.v1alpha.Interval value) { + if (intervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntervalsIsMutable(); + intervals_.set(index, value); + onChanged(); + } else { + intervalsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder setIntervals( + int index, com.google.cloud.discoveryengine.v1alpha.Interval.Builder builderForValue) { + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.set(index, builderForValue.build()); + onChanged(); + } else { + intervalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder addIntervals(com.google.cloud.discoveryengine.v1alpha.Interval value) { + if (intervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntervalsIsMutable(); + intervals_.add(value); + onChanged(); + } else { + intervalsBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder addIntervals( + int index, com.google.cloud.discoveryengine.v1alpha.Interval value) { + if (intervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntervalsIsMutable(); + intervals_.add(index, value); + onChanged(); + } else { + intervalsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder addIntervals( + com.google.cloud.discoveryengine.v1alpha.Interval.Builder builderForValue) { + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.add(builderForValue.build()); + onChanged(); + } else { + intervalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder addIntervals( + int index, com.google.cloud.discoveryengine.v1alpha.Interval.Builder builderForValue) { + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.add(index, builderForValue.build()); + onChanged(); + } else { + intervalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder addAllIntervals( + java.lang.Iterable values) { + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intervals_); + onChanged(); + } else { + intervalsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder clearIntervals() { + if (intervalsBuilder_ == null) { + intervals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + intervalsBuilder_.clear(); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public Builder removeIntervals(int index) { + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.remove(index); + onChanged(); + } else { + intervalsBuilder_.remove(index); + } + return this; + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Interval.Builder getIntervalsBuilder( + int index) { + return getIntervalsFieldBuilder().getBuilder(index); + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder getIntervalsOrBuilder( + int index) { + if (intervalsBuilder_ == null) { + return intervals_.get(index); } else { + return intervalsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public java.util.List + getIntervalsOrBuilderList() { + if (intervalsBuilder_ != null) { + return intervalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(intervals_); + } + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Interval.Builder addIntervalsBuilder() { + return getIntervalsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance()); + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Interval.Builder addIntervalsBuilder( + int index) { + return getIntervalsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance()); + } + /** + *
+         * Set only if values should be bucketed into intervals. Must be set
+         * for facets with numerical values. Must not be set for facet with text
+         * values. Maximum number of intervals is 30.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.Interval intervals = 2; + */ + public java.util.List + getIntervalsBuilderList() { + return getIntervalsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Interval, com.google.cloud.discoveryengine.v1alpha.Interval.Builder, com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder> + getIntervalsFieldBuilder() { + if (intervalsBuilder_ == null) { + intervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Interval, com.google.cloud.discoveryengine.v1alpha.Interval.Builder, com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder>( + intervals_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + intervals_ = null; + } + return intervalsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedValuesIsMutable() { + if (!restrictedValues_.isModifiable()) { + restrictedValues_ = new com.google.protobuf.LazyStringArrayList(restrictedValues_); + } + bitField0_ |= 0x00000004; + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @return A list containing the restrictedValues. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedValuesList() { + restrictedValues_.makeImmutable(); + return restrictedValues_; + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @return The count of restrictedValues. + */ + public int getRestrictedValuesCount() { + return restrictedValues_.size(); + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @param index The index of the element to return. + * @return The restrictedValues at the given index. + */ + public java.lang.String getRestrictedValues(int index) { + return restrictedValues_.get(index); + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @param index The index of the value to return. + * @return The bytes of the restrictedValues at the given index. + */ + public com.google.protobuf.ByteString + getRestrictedValuesBytes(int index) { + return restrictedValues_.getByteString(index); + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @param index The index to set the value at. + * @param value The restrictedValues to set. + * @return This builder for chaining. + */ + public Builder setRestrictedValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedValuesIsMutable(); + restrictedValues_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @param value The restrictedValues to add. + * @return This builder for chaining. + */ + public Builder addRestrictedValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRestrictedValuesIsMutable(); + restrictedValues_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @param values The restrictedValues to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedValues( + java.lang.Iterable values) { + ensureRestrictedValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedValues_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @return This builder for chaining. + */ + public Builder clearRestrictedValues() { + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+         * Only get facet for the given restricted values. Only supported on
+         * textual fields. For example, suppose "category" has three values
+         * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
+         * "restricted_values" to "Action > 2022", the "category" facet only
+         * contains "Action > 2022". Only supported on textual fields. Maximum
+         * is 10.
+         * 
+ * + * repeated string restricted_values = 3; + * @param value The bytes of the restrictedValues to add. + * @return This builder for chaining. + */ + public Builder addRestrictedValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRestrictedValuesIsMutable(); + restrictedValues_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePrefixesIsMutable() { + if (!prefixes_.isModifiable()) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); + } + bitField0_ |= 0x00000008; + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @return A list containing the prefixes. + */ + public com.google.protobuf.ProtocolStringList + getPrefixesList() { + prefixes_.makeImmutable(); + return prefixes_; + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @return The count of prefixes. + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @param index The index of the element to return. + * @return The prefixes at the given index. + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @param index The index of the value to return. + * @return The bytes of the prefixes at the given index. + */ + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @param index The index to set the value at. + * @param value The prefixes to set. + * @return This builder for chaining. + */ + public Builder setPrefixes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePrefixesIsMutable(); + prefixes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @param value The prefixes to add. + * @return This builder for chaining. + */ + public Builder addPrefixes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePrefixesIsMutable(); + prefixes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @param values The prefixes to add. + * @return This builder for chaining. + */ + public Builder addAllPrefixes( + java.lang.Iterable values) { + ensurePrefixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prefixes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @return This builder for chaining. + */ + public Builder clearPrefixes() { + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that start with the given string prefix. For
+         * example, suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the
+         * "category" facet only contains "Action > 2022" and "Action > 2021".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string prefixes = 4; + * @param value The bytes of the prefixes to add. + * @return This builder for chaining. + */ + public Builder addPrefixesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePrefixesIsMutable(); + prefixes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureContainsIsMutable() { + if (!contains_.isModifiable()) { + contains_ = new com.google.protobuf.LazyStringArrayList(contains_); + } + bitField0_ |= 0x00000010; + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @return A list containing the contains. + */ + public com.google.protobuf.ProtocolStringList + getContainsList() { + contains_.makeImmutable(); + return contains_; + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @return The count of contains. + */ + public int getContainsCount() { + return contains_.size(); + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @param index The index of the element to return. + * @return The contains at the given index. + */ + public java.lang.String getContains(int index) { + return contains_.get(index); + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @param index The index of the value to return. + * @return The bytes of the contains at the given index. + */ + public com.google.protobuf.ByteString + getContainsBytes(int index) { + return contains_.getByteString(index); + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @param index The index to set the value at. + * @param value The contains to set. + * @return This builder for chaining. + */ + public Builder setContains( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureContainsIsMutable(); + contains_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @param value The contains to add. + * @return This builder for chaining. + */ + public Builder addContains( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureContainsIsMutable(); + contains_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @param values The contains to add. + * @return This builder for chaining. + */ + public Builder addAllContains( + java.lang.Iterable values) { + ensureContainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contains_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @return This builder for chaining. + */ + public Builder clearContains() { + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + *
+         * Only get facet values that contains the given strings. For example,
+         * suppose "category" has three values "Action > 2022",
+         * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
+         * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
+         * Only supported on textual fields. Maximum is 10.
+         * 
+ * + * repeated string contains = 5; + * @param value The bytes of the contains to add. + * @return This builder for chaining. + */ + public Builder addContainsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureContainsIsMutable(); + contains_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean caseInsensitive_ ; + /** + *
+         * True to make facet keys case insensitive when getting faceting
+         * values with prefixes or contains; false otherwise.
+         * 
+ * + * bool case_insensitive = 6; + * @return The caseInsensitive. + */ + @java.lang.Override + public boolean getCaseInsensitive() { + return caseInsensitive_; + } + /** + *
+         * True to make facet keys case insensitive when getting faceting
+         * values with prefixes or contains; false otherwise.
+         * 
+ * + * bool case_insensitive = 6; + * @param value The caseInsensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseInsensitive(boolean value) { + + caseInsensitive_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+         * True to make facet keys case insensitive when getting faceting
+         * values with prefixes or contains; false otherwise.
+         * 
+ * + * bool case_insensitive = 6; + * @return This builder for chaining. + */ + public Builder clearCaseInsensitive() { + bitField0_ = (bitField0_ & ~0x00000020); + caseInsensitive_ = false; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+         * The order in which documents are returned.
+         *
+         * Allowed values are:
+         *
+         * * "count desc", which means order by
+         * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+         * descending.
+         *
+         * * "value desc", which means order by
+         * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+         * descending.
+         *   Only applies to textual facets.
+         *
+         * If not set, textual values are sorted in [natural
+         * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+         * intervals are sorted in the order given by
+         * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * string order_by = 7; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The order in which documents are returned.
+         *
+         * Allowed values are:
+         *
+         * * "count desc", which means order by
+         * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+         * descending.
+         *
+         * * "value desc", which means order by
+         * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+         * descending.
+         *   Only applies to textual facets.
+         *
+         * If not set, textual values are sorted in [natural
+         * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+         * intervals are sorted in the order given by
+         * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * string order_by = 7; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The order in which documents are returned.
+         *
+         * Allowed values are:
+         *
+         * * "count desc", which means order by
+         * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+         * descending.
+         *
+         * * "value desc", which means order by
+         * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+         * descending.
+         *   Only applies to textual facets.
+         *
+         * If not set, textual values are sorted in [natural
+         * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+         * intervals are sorted in the order given by
+         * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * string order_by = 7; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + orderBy_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * The order in which documents are returned.
+         *
+         * Allowed values are:
+         *
+         * * "count desc", which means order by
+         * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+         * descending.
+         *
+         * * "value desc", which means order by
+         * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+         * descending.
+         *   Only applies to textual facets.
+         *
+         * If not set, textual values are sorted in [natural
+         * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+         * intervals are sorted in the order given by
+         * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * string order_by = 7; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+         * The order in which documents are returned.
+         *
+         * Allowed values are:
+         *
+         * * "count desc", which means order by
+         * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count]
+         * descending.
+         *
+         * * "value desc", which means order by
+         * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value]
+         * descending.
+         *   Only applies to textual facets.
+         *
+         * If not set, textual values are sorted in [natural
+         * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical
+         * intervals are sorted in the order given by
+         * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * string order_by = 7; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FACET_KEY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facetKey_; + /** + *
+     * Required. The facet key specification.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the facetKey field is set. + */ + @java.lang.Override + public boolean hasFacetKey() { + return facetKey_ != null; + } + /** + *
+     * Required. The facet key specification.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The facetKey. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getFacetKey() { + return facetKey_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; + } + /** + *
+     * Required. The facet key specification.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder() { + return facetKey_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_ = 0; + /** + *
+     * Maximum of facet values that should be returned for this facet. If
+     * unspecified, defaults to 20. The maximum allowed value is 300. Values
+     * above 300 are coerced to 300.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 limit = 2; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + + public static final int EXCLUDED_FILTER_KEYS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @return A list containing the excludedFilterKeys. + */ + public com.google.protobuf.ProtocolStringList + getExcludedFilterKeysList() { + return excludedFilterKeys_; + } + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @return The count of excludedFilterKeys. + */ + public int getExcludedFilterKeysCount() { + return excludedFilterKeys_.size(); + } + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index of the element to return. + * @return The excludedFilterKeys at the given index. + */ + public java.lang.String getExcludedFilterKeys(int index) { + return excludedFilterKeys_.get(index); + } + /** + *
+     * List of keys to exclude when faceting.
+     *
+     *
+     * By default,
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * is not excluded from the filter unless it is listed in this field.
+     *
+     * Listing a facet key in this field allows its values to appear as facet
+     * results, even when they are filtered out of search results. Using this
+     * field does not affect what search results are returned.
+     *
+     * For example, suppose there are 100 documents with the color facet "Red"
+     * and 200 documents with the color facet "Blue". A query containing the
+     * filter "color:ANY("Red")" and having "color" as
+     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+     * would by default return only "Red" documents in the search results, and
+     * also return "Red" with count 100 as the only color facet. Although there
+     * are also blue documents available, "Blue" would not be shown as an
+     * available facet value.
+     *
+     * If "color" is listed in "excludedFilterKeys", then the query returns the
+     * facet values "Red" with count 100 and "Blue" with count 200, because the
+     * "color" key is now excluded from the filter. Because this field doesn't
+     * affect search results, the search results are still correctly filtered to
+     * return only "Red" documents.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index of the value to return. + * @return The bytes of the excludedFilterKeys at the given index. + */ + public com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index) { + return excludedFilterKeys_.getByteString(index); + } + + public static final int ENABLE_DYNAMIC_POSITION_FIELD_NUMBER = 4; + private boolean enableDynamicPosition_ = false; + /** + *
+     * Enables dynamic position for this facet. If set to true, the position of
+     * this facet among all facets in the response is determined automatically.
+     * If dynamic facets are enabled, it is ordered together.
+     * If set to false, the position of this facet in the
+     * response is the same as in the request, and it is ranked before
+     * the facets with dynamic position enable and all dynamic facets.
+     *
+     * For example, you may always want to have rating facet returned in
+     * the response, but it's not necessarily to always display the rating facet
+     * at the top. In that case, you can set enable_dynamic_position to true so
+     * that the position of rating facet in response is determined
+     * automatically.
+     *
+     * Another example, assuming you have the following facets in the request:
+     *
+     * * "rating", enable_dynamic_position = true
+     *
+     * * "price", enable_dynamic_position = false
+     *
+     * * "brands", enable_dynamic_position = false
+     *
+     * And also you have a dynamic facets enabled, which generates a facet
+     * `gender`. Then the final order of the facets in the response can be
+     * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
+     * "rating") depends on how API orders "gender" and "rating" facets.
+     * However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * is false.
+     * 
+ * + * bool enable_dynamic_position = 4; + * @return The enableDynamicPosition. + */ + @java.lang.Override + public boolean getEnableDynamicPosition() { + return enableDynamicPosition_; + } + + 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 (facetKey_ != null) { + output.writeMessage(1, getFacetKey()); + } + if (limit_ != 0) { + output.writeInt32(2, limit_); + } + for (int i = 0; i < excludedFilterKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludedFilterKeys_.getRaw(i)); + } + if (enableDynamicPosition_ != false) { + output.writeBool(4, enableDynamicPosition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (facetKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFacetKey()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, limit_); + } + { + int dataSize = 0; + for (int i = 0; i < excludedFilterKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedFilterKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedFilterKeysList().size(); + } + if (enableDynamicPosition_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableDynamicPosition_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) obj; + + if (hasFacetKey() != other.hasFacetKey()) return false; + if (hasFacetKey()) { + if (!getFacetKey() + .equals(other.getFacetKey())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getExcludedFilterKeysList() + .equals(other.getExcludedFilterKeysList())) return false; + if (getEnableDynamicPosition() + != other.getEnableDynamicPosition()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFacetKey()) { + hash = (37 * hash) + FACET_KEY_FIELD_NUMBER; + hash = (53 * hash) + getFacetKey().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + if (getExcludedFilterKeysCount() > 0) { + hash = (37 * hash) + EXCLUDED_FILTER_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedFilterKeysList().hashCode(); + } + hash = (37 * hash) + ENABLE_DYNAMIC_POSITION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDynamicPosition()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec 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.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec 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.discoveryengine.v1alpha.SearchRequest.FacetSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec 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.discoveryengine.v1alpha.SearchRequest.FacetSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A facet specification to perform faceted search.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + facetKey_ = null; + if (facetKeyBuilder_ != null) { + facetKeyBuilder_.dispose(); + facetKeyBuilder_ = null; + } + limit_ = 0; + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + enableDynamicPosition_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.facetKey_ = facetKeyBuilder_ == null + ? facetKey_ + : facetKeyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.limit_ = limit_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + excludedFilterKeys_.makeImmutable(); + result.excludedFilterKeys_ = excludedFilterKeys_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableDynamicPosition_ = enableDynamicPosition_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.FacetSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.getDefaultInstance()) return this; + if (other.hasFacetKey()) { + mergeFacetKey(other.getFacetKey()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.excludedFilterKeys_.isEmpty()) { + if (excludedFilterKeys_.isEmpty()) { + excludedFilterKeys_ = other.excludedFilterKeys_; + bitField0_ |= 0x00000004; + } else { + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.addAll(other.excludedFilterKeys_); + } + onChanged(); + } + if (other.getEnableDynamicPosition() != false) { + setEnableDynamicPosition(other.getEnableDynamicPosition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getFacetKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + limit_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.add(s); + break; + } // case 26 + case 32: { + enableDynamicPosition_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facetKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder> facetKeyBuilder_; + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the facetKey field is set. + */ + public boolean hasFacetKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The facetKey. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getFacetKey() { + if (facetKeyBuilder_ == null) { + return facetKey_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; + } else { + return facetKeyBuilder_.getMessage(); + } + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFacetKey(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey value) { + if (facetKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + facetKey_ = value; + } else { + facetKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFacetKey( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder builderForValue) { + if (facetKeyBuilder_ == null) { + facetKey_ = builderForValue.build(); + } else { + facetKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeFacetKey(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey value) { + if (facetKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + facetKey_ != null && + facetKey_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance()) { + getFacetKeyBuilder().mergeFrom(value); + } else { + facetKey_ = value; + } + } else { + facetKeyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearFacetKey() { + bitField0_ = (bitField0_ & ~0x00000001); + facetKey_ = null; + if (facetKeyBuilder_ != null) { + facetKeyBuilder_.dispose(); + facetKeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder getFacetKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFacetKeyFieldBuilder().getBuilder(); + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder() { + if (facetKeyBuilder_ != null) { + return facetKeyBuilder_.getMessageOrBuilder(); + } else { + return facetKey_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; + } + } + /** + *
+       * Required. The facet key specification.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder> + getFacetKeyFieldBuilder() { + if (facetKeyBuilder_ == null) { + facetKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder>( + getFacetKey(), + getParentForChildren(), + isClean()); + facetKey_ = null; + } + return facetKeyBuilder_; + } + + private int limit_ ; + /** + *
+       * Maximum of facet values that should be returned for this facet. If
+       * unspecified, defaults to 20. The maximum allowed value is 300. Values
+       * above 300 are coerced to 300.
+       *
+       * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+       * 
+ * + * int32 limit = 2; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + /** + *
+       * Maximum of facet values that should be returned for this facet. If
+       * unspecified, defaults to 20. The maximum allowed value is 300. Values
+       * above 300 are coerced to 300.
+       *
+       * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+       * 
+ * + * int32 limit = 2; + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(int value) { + + limit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Maximum of facet values that should be returned for this facet. If
+       * unspecified, defaults to 20. The maximum allowed value is 300. Values
+       * above 300 are coerced to 300.
+       *
+       * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+       * 
+ * + * int32 limit = 2; + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000002); + limit_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExcludedFilterKeysIsMutable() { + if (!excludedFilterKeys_.isModifiable()) { + excludedFilterKeys_ = new com.google.protobuf.LazyStringArrayList(excludedFilterKeys_); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @return A list containing the excludedFilterKeys. + */ + public com.google.protobuf.ProtocolStringList + getExcludedFilterKeysList() { + excludedFilterKeys_.makeImmutable(); + return excludedFilterKeys_; + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @return The count of excludedFilterKeys. + */ + public int getExcludedFilterKeysCount() { + return excludedFilterKeys_.size(); + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index of the element to return. + * @return The excludedFilterKeys at the given index. + */ + public java.lang.String getExcludedFilterKeys(int index) { + return excludedFilterKeys_.get(index); + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index of the value to return. + * @return The bytes of the excludedFilterKeys at the given index. + */ + public com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index) { + return excludedFilterKeys_.getByteString(index); + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @param index The index to set the value at. + * @param value The excludedFilterKeys to set. + * @return This builder for chaining. + */ + public Builder setExcludedFilterKeys( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @param value The excludedFilterKeys to add. + * @return This builder for chaining. + */ + public Builder addExcludedFilterKeys( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @param values The excludedFilterKeys to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedFilterKeys( + java.lang.Iterable values) { + ensureExcludedFilterKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, excludedFilterKeys_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @return This builder for chaining. + */ + public Builder clearExcludedFilterKeys() { + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+       * List of keys to exclude when faceting.
+       *
+       *
+       * By default,
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * is not excluded from the filter unless it is listed in this field.
+       *
+       * Listing a facet key in this field allows its values to appear as facet
+       * results, even when they are filtered out of search results. Using this
+       * field does not affect what search results are returned.
+       *
+       * For example, suppose there are 100 documents with the color facet "Red"
+       * and 200 documents with the color facet "Blue". A query containing the
+       * filter "color:ANY("Red")" and having "color" as
+       * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
+       * would by default return only "Red" documents in the search results, and
+       * also return "Red" with count 100 as the only color facet. Although there
+       * are also blue documents available, "Blue" would not be shown as an
+       * available facet value.
+       *
+       * If "color" is listed in "excludedFilterKeys", then the query returns the
+       * facet values "Red" with count 100 and "Blue" with count 200, because the
+       * "color" key is now excluded from the filter. Because this field doesn't
+       * affect search results, the search results are still correctly filtered to
+       * return only "Red" documents.
+       *
+       * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+       * error is returned.
+       * 
+ * + * repeated string excluded_filter_keys = 3; + * @param value The bytes of the excludedFilterKeys to add. + * @return This builder for chaining. + */ + public Builder addExcludedFilterKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean enableDynamicPosition_ ; + /** + *
+       * Enables dynamic position for this facet. If set to true, the position of
+       * this facet among all facets in the response is determined automatically.
+       * If dynamic facets are enabled, it is ordered together.
+       * If set to false, the position of this facet in the
+       * response is the same as in the request, and it is ranked before
+       * the facets with dynamic position enable and all dynamic facets.
+       *
+       * For example, you may always want to have rating facet returned in
+       * the response, but it's not necessarily to always display the rating facet
+       * at the top. In that case, you can set enable_dynamic_position to true so
+       * that the position of rating facet in response is determined
+       * automatically.
+       *
+       * Another example, assuming you have the following facets in the request:
+       *
+       * * "rating", enable_dynamic_position = true
+       *
+       * * "price", enable_dynamic_position = false
+       *
+       * * "brands", enable_dynamic_position = false
+       *
+       * And also you have a dynamic facets enabled, which generates a facet
+       * `gender`. Then the final order of the facets in the response can be
+       * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
+       * "rating") depends on how API orders "gender" and "rating" facets.
+       * However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * is false.
+       * 
+ * + * bool enable_dynamic_position = 4; + * @return The enableDynamicPosition. + */ + @java.lang.Override + public boolean getEnableDynamicPosition() { + return enableDynamicPosition_; + } + /** + *
+       * Enables dynamic position for this facet. If set to true, the position of
+       * this facet among all facets in the response is determined automatically.
+       * If dynamic facets are enabled, it is ordered together.
+       * If set to false, the position of this facet in the
+       * response is the same as in the request, and it is ranked before
+       * the facets with dynamic position enable and all dynamic facets.
+       *
+       * For example, you may always want to have rating facet returned in
+       * the response, but it's not necessarily to always display the rating facet
+       * at the top. In that case, you can set enable_dynamic_position to true so
+       * that the position of rating facet in response is determined
+       * automatically.
+       *
+       * Another example, assuming you have the following facets in the request:
+       *
+       * * "rating", enable_dynamic_position = true
+       *
+       * * "price", enable_dynamic_position = false
+       *
+       * * "brands", enable_dynamic_position = false
+       *
+       * And also you have a dynamic facets enabled, which generates a facet
+       * `gender`. Then the final order of the facets in the response can be
+       * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
+       * "rating") depends on how API orders "gender" and "rating" facets.
+       * However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * is false.
+       * 
+ * + * bool enable_dynamic_position = 4; + * @param value The enableDynamicPosition to set. + * @return This builder for chaining. + */ + public Builder setEnableDynamicPosition(boolean value) { + + enableDynamicPosition_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Enables dynamic position for this facet. If set to true, the position of
+       * this facet among all facets in the response is determined automatically.
+       * If dynamic facets are enabled, it is ordered together.
+       * If set to false, the position of this facet in the
+       * response is the same as in the request, and it is ranked before
+       * the facets with dynamic position enable and all dynamic facets.
+       *
+       * For example, you may always want to have rating facet returned in
+       * the response, but it's not necessarily to always display the rating facet
+       * at the top. In that case, you can set enable_dynamic_position to true so
+       * that the position of rating facet in response is determined
+       * automatically.
+       *
+       * Another example, assuming you have the following facets in the request:
+       *
+       * * "rating", enable_dynamic_position = true
+       *
+       * * "price", enable_dynamic_position = false
+       *
+       * * "brands", enable_dynamic_position = false
+       *
+       * And also you have a dynamic facets enabled, which generates a facet
+       * `gender`. Then the final order of the facets in the response can be
+       * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
+       * "rating") depends on how API orders "gender" and "rating" facets.
+       * However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * is false.
+       * 
+ * + * bool enable_dynamic_position = 4; + * @return This builder for chaining. + */ + public Builder clearEnableDynamicPosition() { + bitField0_ = (bitField0_ & ~0x00000008); + enableDynamicPosition_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BoostSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + java.util.List + getConditionBoostSpecsList(); + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index); + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + int getConditionBoostSpecsCount(); + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + java.util.List + getConditionBoostSpecsOrBuilderList(); + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index); + } + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec} + */ + public static final class BoostSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec) + BoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BoostSpec.newBuilder() to construct. + private BoostSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BoostSpec() { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BoostSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder.class); + } + + public interface ConditionBoostSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * An expression which specifies a boost condition. The syntax and
+       * supported fields are the same as a filter expression. See
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+       * for detail syntax and limitations.
+       *
+       * Examples:
+       *
+       * * To boost documents with document ID "doc_1" or "doc_2", and
+       * color
+       *   "Red" or "Blue":
+       *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+       * 
+ * + * string condition = 1; + * @return The condition. + */ + java.lang.String getCondition(); + /** + *
+       * An expression which specifies a boost condition. The syntax and
+       * supported fields are the same as a filter expression. See
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+       * for detail syntax and limitations.
+       *
+       * Examples:
+       *
+       * * To boost documents with document ID "doc_1" or "doc_2", and
+       * color
+       *   "Red" or "Blue":
+       *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+       * 
+ * + * string condition = 1; + * @return The bytes for condition. + */ + com.google.protobuf.ByteString + getConditionBytes(); + + /** + *
+       * Strength of the condition boost, which should be in [-1, 1]. Negative
+       * boost means demotion. Default is 0.0.
+       *
+       * Setting to 1.0 gives the document a big promotion. However, it does not
+       * necessarily mean that the boosted document will be the top result at
+       * all times, nor that other documents will be excluded. Results could
+       * still be shown even when none of them matches the condition. And
+       * results that are significantly more relevant to the search query can
+       * still trump your heavily favored but irrelevant documents.
+       *
+       * Setting to -1.0 gives the document a big demotion. However, results
+       * that are deeply relevant might still be shown. The document will have
+       * an upstream battle to get a fairly high ranking, but it is not blocked
+       * out completely.
+       *
+       * Setting to 0.0 means no boost applied. The boosting condition is
+       * ignored.
+       * 
+ * + * float boost = 2; + * @return The boost. + */ + float getBoost(); + } + /** + *
+     * Boost applies to documents which match a condition.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec} + */ + public static final class ConditionBoostSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) + ConditionBoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConditionBoostSpec.newBuilder() to construct. + private ConditionBoostSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConditionBoostSpec() { + condition_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConditionBoostSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + /** + *
+       * An expression which specifies a boost condition. The syntax and
+       * supported fields are the same as a filter expression. See
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+       * for detail syntax and limitations.
+       *
+       * Examples:
+       *
+       * * To boost documents with document ID "doc_1" or "doc_2", and
+       * color
+       *   "Red" or "Blue":
+       *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+       * 
+ * + * string condition = 1; + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + 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(); + condition_ = s; + return s; + } + } + /** + *
+       * An expression which specifies a boost condition. The syntax and
+       * supported fields are the same as a filter expression. See
+       * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+       * for detail syntax and limitations.
+       *
+       * Examples:
+       *
+       * * To boost documents with document ID "doc_1" or "doc_2", and
+       * color
+       *   "Red" or "Blue":
+       *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+       * 
+ * + * string condition = 1; + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_FIELD_NUMBER = 2; + private float boost_ = 0F; + /** + *
+       * Strength of the condition boost, which should be in [-1, 1]. Negative
+       * boost means demotion. Default is 0.0.
+       *
+       * Setting to 1.0 gives the document a big promotion. However, it does not
+       * necessarily mean that the boosted document will be the top result at
+       * all times, nor that other documents will be excluded. Results could
+       * still be shown even when none of them matches the condition. And
+       * results that are significantly more relevant to the search query can
+       * still trump your heavily favored but irrelevant documents.
+       *
+       * Setting to -1.0 gives the document a big demotion. However, results
+       * that are deeply relevant might still be shown. The document will have
+       * an upstream battle to get a fairly high ranking, but it is not blocked
+       * out completely.
+       *
+       * Setting to 0.0 means no boost applied. The boosting condition is
+       * ignored.
+       * 
+ * + * float boost = 2; + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + + 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(condition_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); + } + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + output.writeFloat(2, boost_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); + } + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) obj; + + if (!getCondition() + .equals(other.getCondition())) return false; + if (java.lang.Float.floatToIntBits(getBoost()) + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + hash = (37 * hash) + BOOST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec 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; + } + /** + *
+       * Boost applies to documents which match a condition.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = ""; + boost_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.boost_ = boost_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()) return this; + if (!other.getCondition().isEmpty()) { + condition_ = other.condition_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getBoost() != 0F) { + setBoost(other.getBoost()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object condition_ = ""; + /** + *
+         * An expression which specifies a boost condition. The syntax and
+         * supported fields are the same as a filter expression. See
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+         * for detail syntax and limitations.
+         *
+         * Examples:
+         *
+         * * To boost documents with document ID "doc_1" or "doc_2", and
+         * color
+         *   "Red" or "Blue":
+         *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+         * 
+ * + * string condition = 1; + * @return The condition. + */ + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * An expression which specifies a boost condition. The syntax and
+         * supported fields are the same as a filter expression. See
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+         * for detail syntax and limitations.
+         *
+         * Examples:
+         *
+         * * To boost documents with document ID "doc_1" or "doc_2", and
+         * color
+         *   "Red" or "Blue":
+         *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+         * 
+ * + * string condition = 1; + * @return The bytes for condition. + */ + public com.google.protobuf.ByteString + getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * An expression which specifies a boost condition. The syntax and
+         * supported fields are the same as a filter expression. See
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+         * for detail syntax and limitations.
+         *
+         * Examples:
+         *
+         * * To boost documents with document ID "doc_1" or "doc_2", and
+         * color
+         *   "Red" or "Blue":
+         *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+         * 
+ * + * string condition = 1; + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * An expression which specifies a boost condition. The syntax and
+         * supported fields are the same as a filter expression. See
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+         * for detail syntax and limitations.
+         *
+         * Examples:
+         *
+         * * To boost documents with document ID "doc_1" or "doc_2", and
+         * color
+         *   "Red" or "Blue":
+         *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+         * 
+ * + * string condition = 1; + * @return This builder for chaining. + */ + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * An expression which specifies a boost condition. The syntax and
+         * supported fields are the same as a filter expression. See
+         * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+         * for detail syntax and limitations.
+         *
+         * Examples:
+         *
+         * * To boost documents with document ID "doc_1" or "doc_2", and
+         * color
+         *   "Red" or "Blue":
+         *     * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))
+         * 
+ * + * string condition = 1; + * @param value The bytes for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float boost_ ; + /** + *
+         * Strength of the condition boost, which should be in [-1, 1]. Negative
+         * boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the document a big promotion. However, it does not
+         * necessarily mean that the boosted document will be the top result at
+         * all times, nor that other documents will be excluded. Results could
+         * still be shown even when none of them matches the condition. And
+         * results that are significantly more relevant to the search query can
+         * still trump your heavily favored but irrelevant documents.
+         *
+         * Setting to -1.0 gives the document a big demotion. However, results
+         * that are deeply relevant might still be shown. The document will have
+         * an upstream battle to get a fairly high ranking, but it is not blocked
+         * out completely.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored.
+         * 
+ * + * float boost = 2; + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + /** + *
+         * Strength of the condition boost, which should be in [-1, 1]. Negative
+         * boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the document a big promotion. However, it does not
+         * necessarily mean that the boosted document will be the top result at
+         * all times, nor that other documents will be excluded. Results could
+         * still be shown even when none of them matches the condition. And
+         * results that are significantly more relevant to the search query can
+         * still trump your heavily favored but irrelevant documents.
+         *
+         * Setting to -1.0 gives the document a big demotion. However, results
+         * that are deeply relevant might still be shown. The document will have
+         * an upstream battle to get a fairly high ranking, but it is not blocked
+         * out completely.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored.
+         * 
+ * + * float boost = 2; + * @param value The boost to set. + * @return This builder for chaining. + */ + public Builder setBoost(float value) { + + boost_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Strength of the condition boost, which should be in [-1, 1]. Negative
+         * boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the document a big promotion. However, it does not
+         * necessarily mean that the boosted document will be the top result at
+         * all times, nor that other documents will be excluded. Results could
+         * still be shown even when none of them matches the condition. And
+         * results that are significantly more relevant to the search query can
+         * still trump your heavily favored but irrelevant documents.
+         *
+         * Setting to -1.0 gives the document a big demotion. However, results
+         * that are deeply relevant might still be shown. The document will have
+         * an upstream battle to get a fairly high ranking, but it is not blocked
+         * out completely.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored.
+         * 
+ * + * float boost = 2; + * @return This builder for chaining. + */ + public Builder clearBoost() { + bitField0_ = (bitField0_ & ~0x00000002); + boost_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionBoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int CONDITION_BOOST_SPECS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List conditionBoostSpecs_; + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + @java.lang.Override + public java.util.List getConditionBoostSpecsList() { + return conditionBoostSpecs_; + } + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + @java.lang.Override + public java.util.List + getConditionBoostSpecsOrBuilderList() { + return conditionBoostSpecs_; + } + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + @java.lang.Override + public int getConditionBoostSpecsCount() { + return conditionBoostSpecs_.size(); + } + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index) { + return conditionBoostSpecs_.get(index); + } + /** + *
+     * Condition boost specifications. If a document matches multiple conditions
+     * in the specifictions, boost scores from these specifications are all
+     * applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index) { + return conditionBoostSpecs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conditionBoostSpecs_.size(); i++) { + output.writeMessage(1, conditionBoostSpecs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conditionBoostSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conditionBoostSpecs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec) obj; + + if (!getConditionBoostSpecsList() + .equals(other.getConditionBoostSpecsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConditionBoostSpecsCount() > 0) { + hash = (37 * hash) + CONDITION_BOOST_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getConditionBoostSpecsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec 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.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec 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.discoveryengine.v1alpha.SearchRequest.BoostSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec 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.discoveryengine.v1alpha.SearchRequest.BoostSpec 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; + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + } else { + conditionBoostSpecs_ = null; + conditionBoostSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec result) { + if (conditionBoostSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conditionBoostSpecs_ = java.util.Collections.unmodifiableList(conditionBoostSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conditionBoostSpecs_ = conditionBoostSpecs_; + } else { + result.conditionBoostSpecs_ = conditionBoostSpecsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance()) return this; + if (conditionBoostSpecsBuilder_ == null) { + if (!other.conditionBoostSpecs_.isEmpty()) { + if (conditionBoostSpecs_.isEmpty()) { + conditionBoostSpecs_ = other.conditionBoostSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.addAll(other.conditionBoostSpecs_); + } + onChanged(); + } + } else { + if (!other.conditionBoostSpecs_.isEmpty()) { + if (conditionBoostSpecsBuilder_.isEmpty()) { + conditionBoostSpecsBuilder_.dispose(); + conditionBoostSpecsBuilder_ = null; + conditionBoostSpecs_ = other.conditionBoostSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + conditionBoostSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionBoostSpecsFieldBuilder() : null; + } else { + conditionBoostSpecsBuilder_.addAllMessages(other.conditionBoostSpecs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.parser(), + extensionRegistry); + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(m); + } else { + conditionBoostSpecsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List conditionBoostSpecs_ = + java.util.Collections.emptyList(); + private void ensureConditionBoostSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conditionBoostSpecs_ = new java.util.ArrayList(conditionBoostSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> conditionBoostSpecsBuilder_; + + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public java.util.List getConditionBoostSpecsList() { + if (conditionBoostSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditionBoostSpecs_); + } else { + return conditionBoostSpecsBuilder_.getMessageList(); + } + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public int getConditionBoostSpecsCount() { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.size(); + } else { + return conditionBoostSpecsBuilder_.getCount(); + } + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index) { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.get(index); + } else { + return conditionBoostSpecsBuilder_.getMessage(index); + } + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder setConditionBoostSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.set(index, value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder setConditionBoostSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder addConditionBoostSpecs(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder addConditionBoostSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(index, value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder addConditionBoostSpecs( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder addConditionBoostSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder addAllConditionBoostSpecs( + java.lang.Iterable values) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditionBoostSpecs_); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder clearConditionBoostSpecs() { + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conditionBoostSpecsBuilder_.clear(); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public Builder removeConditionBoostSpecs(int index) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.remove(index); + onChanged(); + } else { + conditionBoostSpecsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder( + int index) { + return getConditionBoostSpecsFieldBuilder().getBuilder(index); + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index) { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.get(index); } else { + return conditionBoostSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public java.util.List + getConditionBoostSpecsOrBuilderList() { + if (conditionBoostSpecsBuilder_ != null) { + return conditionBoostSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditionBoostSpecs_); + } + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder() { + return getConditionBoostSpecsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()); + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder( + int index) { + return getConditionBoostSpecsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()); + } + /** + *
+       * Condition boost specifications. If a document matches multiple conditions
+       * in the specifictions, boost scores from these specifications are all
+       * applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + */ + public java.util.List + getConditionBoostSpecsBuilderList() { + return getConditionBoostSpecsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> + getConditionBoostSpecsFieldBuilder() { + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder>( + conditionBoostSpecs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conditionBoostSpecs_ = null; + } + return conditionBoostSpecsBuilder_; + } + @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.discoveryengine.v1alpha.SearchRequest.BoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryExpansionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The condition under which query expansion should occur. Default to
+     * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return The enum numeric value on the wire for condition. + */ + int getConditionValue(); + /** + *
+     * The condition under which query expansion should occur. Default to
+     * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return The condition. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition getCondition(); + + /** + *
+     * Whether to pin unexpanded results. If this field is set to true,
+     * unexpanded products are always at the top of the search results, followed
+     * by the expanded results.
+     * 
+ * + * bool pin_unexpanded_results = 2; + * @return The pinUnexpandedResults. + */ + boolean getPinUnexpandedResults(); + } + /** + *
+   * Specification to determine under which conditions query expansion should
+   * occur.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec} + */ + public static final class QueryExpansionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) + QueryExpansionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryExpansionSpec.newBuilder() to construct. + private QueryExpansionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryExpansionSpec() { + condition_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryExpansionSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder.class); + } + + /** + *
+     * Enum describing under which condition query expansion should occur.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition} + */ + public enum Condition + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Unspecified query expansion condition. In this case, server behavior
+       * defaults to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * CONDITION_UNSPECIFIED = 0; + */ + CONDITION_UNSPECIFIED(0), + /** + *
+       * Disabled query expansion. Only the exact search query is used, even if
+       * [SearchResponse.total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+       * is zero.
+       * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+       * Automatic query expansion built by the Search API.
+       * 
+ * + * AUTO = 2; + */ + AUTO(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Unspecified query expansion condition. In this case, server behavior
+       * defaults to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * CONDITION_UNSPECIFIED = 0; + */ + public static final int CONDITION_UNSPECIFIED_VALUE = 0; + /** + *
+       * Disabled query expansion. Only the exact search query is used, even if
+       * [SearchResponse.total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+       * is zero.
+       * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+       * Automatic query expansion built by the Search API.
+       * 
+ * + * AUTO = 2; + */ + public static final int AUTO_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Condition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Condition forNumber(int value) { + switch (value) { + case 0: return CONDITION_UNSPECIFIED; + case 1: return DISABLED; + case 2: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Condition> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Condition findValueByNumber(int number) { + return Condition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final Condition[] VALUES = values(); + + public static Condition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Condition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition) + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private int condition_ = 0; + /** + *
+     * The condition under which query expansion should occur. Default to
+     * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override public int getConditionValue() { + return condition_; + } + /** + *
+     * The condition under which query expansion should occur. Default to
+     * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return The condition. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition getCondition() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition result = com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.forNumber(condition_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.UNRECOGNIZED : result; + } + + public static final int PIN_UNEXPANDED_RESULTS_FIELD_NUMBER = 2; + private boolean pinUnexpandedResults_ = false; + /** + *
+     * Whether to pin unexpanded results. If this field is set to true,
+     * unexpanded products are always at the top of the search results, followed
+     * by the expanded results.
+     * 
+ * + * bool pin_unexpanded_results = 2; + * @return The pinUnexpandedResults. + */ + @java.lang.Override + public boolean getPinUnexpandedResults() { + return pinUnexpandedResults_; + } + + 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 (condition_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.CONDITION_UNSPECIFIED.getNumber()) { + output.writeEnum(1, condition_); + } + if (pinUnexpandedResults_ != false) { + output.writeBool(2, pinUnexpandedResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (condition_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.CONDITION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, condition_); + } + if (pinUnexpandedResults_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, pinUnexpandedResults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) obj; + + if (condition_ != other.condition_) return false; + if (getPinUnexpandedResults() + != other.getPinUnexpandedResults()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + condition_; + hash = (37 * hash) + PIN_UNEXPANDED_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinUnexpandedResults()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec 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; + } + /** + *
+     * Specification to determine under which conditions query expansion should
+     * occur.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = 0; + pinUnexpandedResults_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pinUnexpandedResults_ = pinUnexpandedResults_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance()) return this; + if (other.condition_ != 0) { + setConditionValue(other.getConditionValue()); + } + if (other.getPinUnexpandedResults() != false) { + setPinUnexpandedResults(other.getPinUnexpandedResults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + condition_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + pinUnexpandedResults_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int condition_ = 0; + /** + *
+       * The condition under which query expansion should occur. Default to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override public int getConditionValue() { + return condition_; + } + /** + *
+       * The condition under which query expansion should occur. Default to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @param value The enum numeric value on the wire for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionValue(int value) { + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The condition under which query expansion should occur. Default to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return The condition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition getCondition() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition result = com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.forNumber(condition_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.UNRECOGNIZED : result; + } + /** + *
+       * The condition under which query expansion should occur. Default to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + condition_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The condition under which query expansion should occur. Default to
+       * [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1; + * @return This builder for chaining. + */ + public Builder clearCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + condition_ = 0; + onChanged(); + return this; + } + + private boolean pinUnexpandedResults_ ; + /** + *
+       * Whether to pin unexpanded results. If this field is set to true,
+       * unexpanded products are always at the top of the search results, followed
+       * by the expanded results.
+       * 
+ * + * bool pin_unexpanded_results = 2; + * @return The pinUnexpandedResults. + */ + @java.lang.Override + public boolean getPinUnexpandedResults() { + return pinUnexpandedResults_; + } + /** + *
+       * Whether to pin unexpanded results. If this field is set to true,
+       * unexpanded products are always at the top of the search results, followed
+       * by the expanded results.
+       * 
+ * + * bool pin_unexpanded_results = 2; + * @param value The pinUnexpandedResults to set. + * @return This builder for chaining. + */ + public Builder setPinUnexpandedResults(boolean value) { + + pinUnexpandedResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Whether to pin unexpanded results. If this field is set to true,
+       * unexpanded products are always at the top of the search results, followed
+       * by the expanded results.
+       * 
+ * + * bool pin_unexpanded_results = 2; + * @return This builder for chaining. + */ + public Builder clearPinUnexpandedResults() { + bitField0_ = (bitField0_ & ~0x00000002); + pinUnexpandedResults_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExpansionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SpellCorrectionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The mode under which spell correction should take effect to
+     * replace the original search query. Default to
+     * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + *
+     * The mode under which spell correction should take effect to
+     * replace the original search query. Default to
+     * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return The mode. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode getMode(); + } + /** + *
+   * The specification for query spell correction.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec} + */ + public static final class SpellCorrectionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) + SpellCorrectionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpellCorrectionSpec.newBuilder() to construct. + private SpellCorrectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SpellCorrectionSpec() { + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SpellCorrectionSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder.class); + } + + /** + *
+     * Enum describing under which mode spell correction should occur.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Unspecified spell correction mode. In this case, server behavior
+       * defaults to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + *
+       * Search API will try to find a spell suggestion if there
+       * is any and put in the
+       * [SearchResponse.corrected_query][google.cloud.discoveryengine.v1alpha.SearchResponse.corrected_query].
+       * The spell suggestion will not be used as the search query.
+       * 
+ * + * SUGGESTION_ONLY = 1; + */ + SUGGESTION_ONLY(1), + /** + *
+       * Automatic spell correction built by the Search API. Search will
+       * be based on the corrected query if found.
+       * 
+ * + * AUTO = 2; + */ + AUTO(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Unspecified spell correction mode. In this case, server behavior
+       * defaults to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + *
+       * Search API will try to find a spell suggestion if there
+       * is any and put in the
+       * [SearchResponse.corrected_query][google.cloud.discoveryengine.v1alpha.SearchResponse.corrected_query].
+       * The spell suggestion will not be used as the search query.
+       * 
+ * + * SUGGESTION_ONLY = 1; + */ + public static final int SUGGESTION_ONLY_VALUE = 1; + /** + *
+       * Automatic spell correction built by the Search API. Search will
+       * be based on the corrected query if found.
+       * 
+ * + * AUTO = 2; + */ + public static final int AUTO_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: return MODE_UNSPECIFIED; + case 1: return SUGGESTION_ONLY; + case 2: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + *
+     * The mode under which spell correction should take effect to
+     * replace the original search query. Default to
+     * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+     * The mode under which spell correction should take effect to
+     * replace the original search query. Default to
+     * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return The mode. + */ + @java.lang.Override public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode result = com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.forNumber(mode_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) obj; + + if (mode_ != other.mode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The specification for query spell correction.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int mode_ = 0; + /** + *
+       * The mode under which spell correction should take effect to
+       * replace the original search query. Default to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+       * The mode under which spell correction should take effect to
+       * replace the original search query. Default to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The mode under which spell correction should take effect to
+       * replace the original search query. Default to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode result = com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.forNumber(mode_); + return result == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED : result; + } + /** + *
+       * The mode under which spell correction should take effect to
+       * replace the original search query. Default to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The mode under which spell correction should take effect to
+       * replace the original search query. Default to
+       * [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1; + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpellCorrectionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContentSearchSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * If `snippetSpec` is not specified, snippets are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * @return Whether the snippetSpec field is set. + */ + boolean hasSnippetSpec(); + /** + *
+     * If `snippetSpec` is not specified, snippets are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * @return The snippetSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec(); + /** + *
+     * If `snippetSpec` is not specified, snippets are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder(); + + /** + *
+     * If `summarySpec` is not specified, summaries are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * @return Whether the summarySpec field is set. + */ + boolean hasSummarySpec(); + /** + *
+     * If `summarySpec` is not specified, summaries are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * @return The summarySpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec(); + /** + *
+     * If `summarySpec` is not specified, summaries are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder(); + + /** + *
+     * If there is no extractive_content_spec provided, there will be no
+     * extractive answer in the search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * @return Whether the extractiveContentSpec field is set. + */ + boolean hasExtractiveContentSpec(); + /** + *
+     * If there is no extractive_content_spec provided, there will be no
+     * extractive answer in the search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * @return The extractiveContentSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec(); + /** + *
+     * If there is no extractive_content_spec provided, there will be no
+     * extractive answer in the search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder(); + } + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec} + */ + public static final class ContentSearchSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) + ContentSearchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContentSearchSpec.newBuilder() to construct. + private ContentSearchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContentSearchSpec() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ContentSearchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder.class); + } + + public interface SnippetSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * [DEPRECATED] This field is deprecated. To control snippet return, use
+       * `return_snippet` field. For backwards compatibility, we will return
+       * snippet if max_snippet_count > 0.
+       * 
+ * + * int32 max_snippet_count = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * @return The maxSnippetCount. + */ + @java.lang.Deprecated int getMaxSnippetCount(); + + /** + *
+       * [DEPRECATED] This field is deprecated and will have no affect on the
+       * snippet.
+       * 
+ * + * bool reference_only = 2 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * @return The referenceOnly. + */ + @java.lang.Deprecated boolean getReferenceOnly(); + + /** + *
+       * If `true`, then return snippet. If no snippet can be generated, we
+       * return "No snippet is available for this page." A `snippet_status` with
+       * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned.
+       * 
+ * + * bool return_snippet = 3; + * @return The returnSnippet. + */ + boolean getReturnSnippet(); + } + /** + *
+     * A specification for configuring snippets in a search response.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec} + */ + public static final class SnippetSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) + SnippetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnippetSpec.newBuilder() to construct. + private SnippetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnippetSpec() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnippetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder.class); + } + + public static final int MAX_SNIPPET_COUNT_FIELD_NUMBER = 1; + private int maxSnippetCount_ = 0; + /** + *
+       * [DEPRECATED] This field is deprecated. To control snippet return, use
+       * `return_snippet` field. For backwards compatibility, we will return
+       * snippet if max_snippet_count > 0.
+       * 
+ * + * int32 max_snippet_count = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * @return The maxSnippetCount. + */ + @java.lang.Override + @java.lang.Deprecated public int getMaxSnippetCount() { + return maxSnippetCount_; + } + + public static final int REFERENCE_ONLY_FIELD_NUMBER = 2; + private boolean referenceOnly_ = false; + /** + *
+       * [DEPRECATED] This field is deprecated and will have no affect on the
+       * snippet.
+       * 
+ * + * bool reference_only = 2 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * @return The referenceOnly. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getReferenceOnly() { + return referenceOnly_; + } + + public static final int RETURN_SNIPPET_FIELD_NUMBER = 3; + private boolean returnSnippet_ = false; + /** + *
+       * If `true`, then return snippet. If no snippet can be generated, we
+       * return "No snippet is available for this page." A `snippet_status` with
+       * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned.
+       * 
+ * + * bool return_snippet = 3; + * @return The returnSnippet. + */ + @java.lang.Override + public boolean getReturnSnippet() { + return returnSnippet_; + } + + 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 (maxSnippetCount_ != 0) { + output.writeInt32(1, maxSnippetCount_); + } + if (referenceOnly_ != false) { + output.writeBool(2, referenceOnly_); + } + if (returnSnippet_ != false) { + output.writeBool(3, returnSnippet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxSnippetCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxSnippetCount_); + } + if (referenceOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, referenceOnly_); + } + if (returnSnippet_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, returnSnippet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) obj; + + if (getMaxSnippetCount() + != other.getMaxSnippetCount()) return false; + if (getReferenceOnly() + != other.getReferenceOnly()) return false; + if (getReturnSnippet() + != other.getReturnSnippet()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_SNIPPET_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxSnippetCount(); + hash = (37 * hash) + REFERENCE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReferenceOnly()); + hash = (37 * hash) + RETURN_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnSnippet()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * A specification for configuring snippets in a search response.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxSnippetCount_ = 0; + referenceOnly_ = false; + returnSnippet_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxSnippetCount_ = maxSnippetCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceOnly_ = referenceOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnSnippet_ = returnSnippet_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance()) return this; + if (other.getMaxSnippetCount() != 0) { + setMaxSnippetCount(other.getMaxSnippetCount()); + } + if (other.getReferenceOnly() != false) { + setReferenceOnly(other.getReferenceOnly()); + } + if (other.getReturnSnippet() != false) { + setReturnSnippet(other.getReturnSnippet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxSnippetCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + referenceOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + returnSnippet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int maxSnippetCount_ ; + /** + *
+         * [DEPRECATED] This field is deprecated. To control snippet return, use
+         * `return_snippet` field. For backwards compatibility, we will return
+         * snippet if max_snippet_count > 0.
+         * 
+ * + * int32 max_snippet_count = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * @return The maxSnippetCount. + */ + @java.lang.Override + @java.lang.Deprecated public int getMaxSnippetCount() { + return maxSnippetCount_; + } + /** + *
+         * [DEPRECATED] This field is deprecated. To control snippet return, use
+         * `return_snippet` field. For backwards compatibility, we will return
+         * snippet if max_snippet_count > 0.
+         * 
+ * + * int32 max_snippet_count = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * @param value The maxSnippetCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMaxSnippetCount(int value) { + + maxSnippetCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * [DEPRECATED] This field is deprecated. To control snippet return, use
+         * `return_snippet` field. For backwards compatibility, we will return
+         * snippet if max_snippet_count > 0.
+         * 
+ * + * int32 max_snippet_count = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearMaxSnippetCount() { + bitField0_ = (bitField0_ & ~0x00000001); + maxSnippetCount_ = 0; + onChanged(); + return this; + } + + private boolean referenceOnly_ ; + /** + *
+         * [DEPRECATED] This field is deprecated and will have no affect on the
+         * snippet.
+         * 
+ * + * bool reference_only = 2 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * @return The referenceOnly. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getReferenceOnly() { + return referenceOnly_; + } + /** + *
+         * [DEPRECATED] This field is deprecated and will have no affect on the
+         * snippet.
+         * 
+ * + * bool reference_only = 2 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * @param value The referenceOnly to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setReferenceOnly(boolean value) { + + referenceOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * [DEPRECATED] This field is deprecated and will have no affect on the
+         * snippet.
+         * 
+ * + * bool reference_only = 2 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearReferenceOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceOnly_ = false; + onChanged(); + return this; + } + + private boolean returnSnippet_ ; + /** + *
+         * If `true`, then return snippet. If no snippet can be generated, we
+         * return "No snippet is available for this page." A `snippet_status` with
+         * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned.
+         * 
+ * + * bool return_snippet = 3; + * @return The returnSnippet. + */ + @java.lang.Override + public boolean getReturnSnippet() { + return returnSnippet_; + } + /** + *
+         * If `true`, then return snippet. If no snippet can be generated, we
+         * return "No snippet is available for this page." A `snippet_status` with
+         * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned.
+         * 
+ * + * bool return_snippet = 3; + * @param value The returnSnippet to set. + * @return This builder for chaining. + */ + public Builder setReturnSnippet(boolean value) { + + returnSnippet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * If `true`, then return snippet. If no snippet can be generated, we
+         * return "No snippet is available for this page." A `snippet_status` with
+         * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned.
+         * 
+ * + * bool return_snippet = 3; + * @return This builder for chaining. + */ + public Builder clearReturnSnippet() { + bitField0_ = (bitField0_ & ~0x00000004); + returnSnippet_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnippetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SummarySpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The number of top results to generate the summary from. If the number
+       * of results returned is less than `summaryResultCount`, the summary is
+       * generated from all of the results.
+       *
+       * At most five results can be used to generate a summary.
+       * 
+ * + * int32 summary_result_count = 1; + * @return The summaryResultCount. + */ + int getSummaryResultCount(); + + /** + *
+       * Specifies whether to include citations in the summary. The default
+       * value is `false`.
+       *
+       * When this field is set to `true`, summaries include in-line citation
+       * numbers.
+       *
+       * Example summary including citations:
+       *
+       * BigQuery is Google Cloud's fully managed and completely serverless
+       * enterprise data warehouse [1]. BigQuery supports all data types, works
+       * across clouds, and has built-in machine learning and business
+       * intelligence, all within a unified platform [2, 3].
+       *
+       * The citation numbers refer to the returned search results and are
+       * 1-indexed. For example, [1] means that the sentence is attributed to
+       * the first search result. [2, 3] means that the sentence is attributed
+       * to both the second and third search results.
+       * 
+ * + * bool include_citations = 2; + * @return The includeCitations. + */ + boolean getIncludeCitations(); + + /** + *
+       * Specifies whether to filter out adversarial queries. The default value
+       * is `false`.
+       *
+       * Google employs search-query classification to detect adversarial
+       * queries. No summary is returned if the search query is classified as an
+       * adversarial query. For example, a user might ask a question regarding
+       * negative comments about the company or submit a query designed to
+       * generate unsafe, policy-violating output. If this field is set to
+       * `true`, we skip generating summaries for adversarial queries and return
+       * fallback messages instead.
+       * 
+ * + * bool ignore_adversarial_query = 3; + * @return The ignoreAdversarialQuery. + */ + boolean getIgnoreAdversarialQuery(); + + /** + *
+       * Specifies whether to filter out queries that are not summary-seeking.
+       * The default value is `false`.
+       *
+       * Google employs search-query classification to detect summary-seeking
+       * queries. No summary is returned if the search query is classified as a
+       * non-summary seeking query. For example, `why is the sky blue` and `Who
+       * is the best soccer player in the world?` are summary-seeking queries,
+       * but `SFO airport` and `world cup 2026` are not. They are most likely
+       * navigational queries. If this field is set to `true`, we skip
+       * generating summaries for non-summary seeking queries and return
+       * fallback messages instead.
+       * 
+ * + * bool ignore_non_summary_seeking_query = 4; + * @return The ignoreNonSummarySeekingQuery. + */ + boolean getIgnoreNonSummarySeekingQuery(); + + /** + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 6; + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 6; + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString + getLanguageCodeBytes(); + } + /** + *
+     * A specification for configuring a summary returned in a search
+     * response.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec} + */ + public static final class SummarySpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) + SummarySpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SummarySpec.newBuilder() to construct. + private SummarySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SummarySpec() { + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SummarySpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder.class); + } + + public static final int SUMMARY_RESULT_COUNT_FIELD_NUMBER = 1; + private int summaryResultCount_ = 0; + /** + *
+       * The number of top results to generate the summary from. If the number
+       * of results returned is less than `summaryResultCount`, the summary is
+       * generated from all of the results.
+       *
+       * At most five results can be used to generate a summary.
+       * 
+ * + * int32 summary_result_count = 1; + * @return The summaryResultCount. + */ + @java.lang.Override + public int getSummaryResultCount() { + return summaryResultCount_; + } + + public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 2; + private boolean includeCitations_ = false; + /** + *
+       * Specifies whether to include citations in the summary. The default
+       * value is `false`.
+       *
+       * When this field is set to `true`, summaries include in-line citation
+       * numbers.
+       *
+       * Example summary including citations:
+       *
+       * BigQuery is Google Cloud's fully managed and completely serverless
+       * enterprise data warehouse [1]. BigQuery supports all data types, works
+       * across clouds, and has built-in machine learning and business
+       * intelligence, all within a unified platform [2, 3].
+       *
+       * The citation numbers refer to the returned search results and are
+       * 1-indexed. For example, [1] means that the sentence is attributed to
+       * the first search result. [2, 3] means that the sentence is attributed
+       * to both the second and third search results.
+       * 
+ * + * bool include_citations = 2; + * @return The includeCitations. + */ + @java.lang.Override + public boolean getIncludeCitations() { + return includeCitations_; + } + + public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 3; + private boolean ignoreAdversarialQuery_ = false; + /** + *
+       * Specifies whether to filter out adversarial queries. The default value
+       * is `false`.
+       *
+       * Google employs search-query classification to detect adversarial
+       * queries. No summary is returned if the search query is classified as an
+       * adversarial query. For example, a user might ask a question regarding
+       * negative comments about the company or submit a query designed to
+       * generate unsafe, policy-violating output. If this field is set to
+       * `true`, we skip generating summaries for adversarial queries and return
+       * fallback messages instead.
+       * 
+ * + * bool ignore_adversarial_query = 3; + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } + + public static final int IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER = 4; + private boolean ignoreNonSummarySeekingQuery_ = false; + /** + *
+       * Specifies whether to filter out queries that are not summary-seeking.
+       * The default value is `false`.
+       *
+       * Google employs search-query classification to detect summary-seeking
+       * queries. No summary is returned if the search query is classified as a
+       * non-summary seeking query. For example, `why is the sky blue` and `Who
+       * is the best soccer player in the world?` are summary-seeking queries,
+       * but `SFO airport` and `world cup 2026` are not. They are most likely
+       * navigational queries. If this field is set to `true`, we skip
+       * generating summaries for non-summary seeking queries and return
+       * fallback messages instead.
+       * 
+ * + * bool ignore_non_summary_seeking_query = 4; + * @return The ignoreNonSummarySeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonSummarySeekingQuery() { + return ignoreNonSummarySeekingQuery_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 6; + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 6; + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (summaryResultCount_ != 0) { + output.writeInt32(1, summaryResultCount_); + } + if (includeCitations_ != false) { + output.writeBool(2, includeCitations_); + } + if (ignoreAdversarialQuery_ != false) { + output.writeBool(3, ignoreAdversarialQuery_); + } + if (ignoreNonSummarySeekingQuery_ != false) { + output.writeBool(4, ignoreNonSummarySeekingQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, languageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (summaryResultCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, summaryResultCount_); + } + if (includeCitations_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeCitations_); + } + if (ignoreAdversarialQuery_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, ignoreAdversarialQuery_); + } + if (ignoreNonSummarySeekingQuery_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, ignoreNonSummarySeekingQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) obj; + + if (getSummaryResultCount() + != other.getSummaryResultCount()) return false; + if (getIncludeCitations() + != other.getIncludeCitations()) return false; + if (getIgnoreAdversarialQuery() + != other.getIgnoreAdversarialQuery()) return false; + if (getIgnoreNonSummarySeekingQuery() + != other.getIgnoreNonSummarySeekingQuery()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUMMARY_RESULT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSummaryResultCount(); + hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeCitations()); + hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreAdversarialQuery()); + hash = (37 * hash) + IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreNonSummarySeekingQuery()); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * A specification for configuring a summary returned in a search
+       * response.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + summaryResultCount_ = 0; + includeCitations_ = false; + ignoreAdversarialQuery_ = false; + ignoreNonSummarySeekingQuery_ = false; + languageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.summaryResultCount_ = summaryResultCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.includeCitations_ = includeCitations_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreAdversarialQuery_ = ignoreAdversarialQuery_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ignoreNonSummarySeekingQuery_ = ignoreNonSummarySeekingQuery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.languageCode_ = languageCode_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) return this; + if (other.getSummaryResultCount() != 0) { + setSummaryResultCount(other.getSummaryResultCount()); + } + if (other.getIncludeCitations() != false) { + setIncludeCitations(other.getIncludeCitations()); + } + if (other.getIgnoreAdversarialQuery() != false) { + setIgnoreAdversarialQuery(other.getIgnoreAdversarialQuery()); + } + if (other.getIgnoreNonSummarySeekingQuery() != false) { + setIgnoreNonSummarySeekingQuery(other.getIgnoreNonSummarySeekingQuery()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + summaryResultCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + includeCitations_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ignoreAdversarialQuery_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ignoreNonSummarySeekingQuery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int summaryResultCount_ ; + /** + *
+         * The number of top results to generate the summary from. If the number
+         * of results returned is less than `summaryResultCount`, the summary is
+         * generated from all of the results.
+         *
+         * At most five results can be used to generate a summary.
+         * 
+ * + * int32 summary_result_count = 1; + * @return The summaryResultCount. + */ + @java.lang.Override + public int getSummaryResultCount() { + return summaryResultCount_; + } + /** + *
+         * The number of top results to generate the summary from. If the number
+         * of results returned is less than `summaryResultCount`, the summary is
+         * generated from all of the results.
+         *
+         * At most five results can be used to generate a summary.
+         * 
+ * + * int32 summary_result_count = 1; + * @param value The summaryResultCount to set. + * @return This builder for chaining. + */ + public Builder setSummaryResultCount(int value) { + + summaryResultCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The number of top results to generate the summary from. If the number
+         * of results returned is less than `summaryResultCount`, the summary is
+         * generated from all of the results.
+         *
+         * At most five results can be used to generate a summary.
+         * 
+ * + * int32 summary_result_count = 1; + * @return This builder for chaining. + */ + public Builder clearSummaryResultCount() { + bitField0_ = (bitField0_ & ~0x00000001); + summaryResultCount_ = 0; + onChanged(); + return this; + } + + private boolean includeCitations_ ; + /** + *
+         * Specifies whether to include citations in the summary. The default
+         * value is `false`.
+         *
+         * When this field is set to `true`, summaries include in-line citation
+         * numbers.
+         *
+         * Example summary including citations:
+         *
+         * BigQuery is Google Cloud's fully managed and completely serverless
+         * enterprise data warehouse [1]. BigQuery supports all data types, works
+         * across clouds, and has built-in machine learning and business
+         * intelligence, all within a unified platform [2, 3].
+         *
+         * The citation numbers refer to the returned search results and are
+         * 1-indexed. For example, [1] means that the sentence is attributed to
+         * the first search result. [2, 3] means that the sentence is attributed
+         * to both the second and third search results.
+         * 
+ * + * bool include_citations = 2; + * @return The includeCitations. + */ + @java.lang.Override + public boolean getIncludeCitations() { + return includeCitations_; + } + /** + *
+         * Specifies whether to include citations in the summary. The default
+         * value is `false`.
+         *
+         * When this field is set to `true`, summaries include in-line citation
+         * numbers.
+         *
+         * Example summary including citations:
+         *
+         * BigQuery is Google Cloud's fully managed and completely serverless
+         * enterprise data warehouse [1]. BigQuery supports all data types, works
+         * across clouds, and has built-in machine learning and business
+         * intelligence, all within a unified platform [2, 3].
+         *
+         * The citation numbers refer to the returned search results and are
+         * 1-indexed. For example, [1] means that the sentence is attributed to
+         * the first search result. [2, 3] means that the sentence is attributed
+         * to both the second and third search results.
+         * 
+ * + * bool include_citations = 2; + * @param value The includeCitations to set. + * @return This builder for chaining. + */ + public Builder setIncludeCitations(boolean value) { + + includeCitations_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Specifies whether to include citations in the summary. The default
+         * value is `false`.
+         *
+         * When this field is set to `true`, summaries include in-line citation
+         * numbers.
+         *
+         * Example summary including citations:
+         *
+         * BigQuery is Google Cloud's fully managed and completely serverless
+         * enterprise data warehouse [1]. BigQuery supports all data types, works
+         * across clouds, and has built-in machine learning and business
+         * intelligence, all within a unified platform [2, 3].
+         *
+         * The citation numbers refer to the returned search results and are
+         * 1-indexed. For example, [1] means that the sentence is attributed to
+         * the first search result. [2, 3] means that the sentence is attributed
+         * to both the second and third search results.
+         * 
+ * + * bool include_citations = 2; + * @return This builder for chaining. + */ + public Builder clearIncludeCitations() { + bitField0_ = (bitField0_ & ~0x00000002); + includeCitations_ = false; + onChanged(); + return this; + } + + private boolean ignoreAdversarialQuery_ ; + /** + *
+         * Specifies whether to filter out adversarial queries. The default value
+         * is `false`.
+         *
+         * Google employs search-query classification to detect adversarial
+         * queries. No summary is returned if the search query is classified as an
+         * adversarial query. For example, a user might ask a question regarding
+         * negative comments about the company or submit a query designed to
+         * generate unsafe, policy-violating output. If this field is set to
+         * `true`, we skip generating summaries for adversarial queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_adversarial_query = 3; + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } + /** + *
+         * Specifies whether to filter out adversarial queries. The default value
+         * is `false`.
+         *
+         * Google employs search-query classification to detect adversarial
+         * queries. No summary is returned if the search query is classified as an
+         * adversarial query. For example, a user might ask a question regarding
+         * negative comments about the company or submit a query designed to
+         * generate unsafe, policy-violating output. If this field is set to
+         * `true`, we skip generating summaries for adversarial queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_adversarial_query = 3; + * @param value The ignoreAdversarialQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreAdversarialQuery(boolean value) { + + ignoreAdversarialQuery_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Specifies whether to filter out adversarial queries. The default value
+         * is `false`.
+         *
+         * Google employs search-query classification to detect adversarial
+         * queries. No summary is returned if the search query is classified as an
+         * adversarial query. For example, a user might ask a question regarding
+         * negative comments about the company or submit a query designed to
+         * generate unsafe, policy-violating output. If this field is set to
+         * `true`, we skip generating summaries for adversarial queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_adversarial_query = 3; + * @return This builder for chaining. + */ + public Builder clearIgnoreAdversarialQuery() { + bitField0_ = (bitField0_ & ~0x00000004); + ignoreAdversarialQuery_ = false; + onChanged(); + return this; + } + + private boolean ignoreNonSummarySeekingQuery_ ; + /** + *
+         * Specifies whether to filter out queries that are not summary-seeking.
+         * The default value is `false`.
+         *
+         * Google employs search-query classification to detect summary-seeking
+         * queries. No summary is returned if the search query is classified as a
+         * non-summary seeking query. For example, `why is the sky blue` and `Who
+         * is the best soccer player in the world?` are summary-seeking queries,
+         * but `SFO airport` and `world cup 2026` are not. They are most likely
+         * navigational queries. If this field is set to `true`, we skip
+         * generating summaries for non-summary seeking queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_non_summary_seeking_query = 4; + * @return The ignoreNonSummarySeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonSummarySeekingQuery() { + return ignoreNonSummarySeekingQuery_; + } + /** + *
+         * Specifies whether to filter out queries that are not summary-seeking.
+         * The default value is `false`.
+         *
+         * Google employs search-query classification to detect summary-seeking
+         * queries. No summary is returned if the search query is classified as a
+         * non-summary seeking query. For example, `why is the sky blue` and `Who
+         * is the best soccer player in the world?` are summary-seeking queries,
+         * but `SFO airport` and `world cup 2026` are not. They are most likely
+         * navigational queries. If this field is set to `true`, we skip
+         * generating summaries for non-summary seeking queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_non_summary_seeking_query = 4; + * @param value The ignoreNonSummarySeekingQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreNonSummarySeekingQuery(boolean value) { + + ignoreNonSummarySeekingQuery_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Specifies whether to filter out queries that are not summary-seeking.
+         * The default value is `false`.
+         *
+         * Google employs search-query classification to detect summary-seeking
+         * queries. No summary is returned if the search query is classified as a
+         * non-summary seeking query. For example, `why is the sky blue` and `Who
+         * is the best soccer player in the world?` are summary-seeking queries,
+         * but `SFO airport` and `world cup 2026` are not. They are most likely
+         * navigational queries. If this field is set to `true`, we skip
+         * generating summaries for non-summary seeking queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_non_summary_seeking_query = 4; + * @return This builder for chaining. + */ + public Builder clearIgnoreNonSummarySeekingQuery() { + bitField0_ = (bitField0_ & ~0x00000008); + ignoreNonSummarySeekingQuery_ = false; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 6; + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 6; + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString + getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 6; + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + languageCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 6; + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 6; + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExtractiveContentSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The maximum number of extractive answers returned in each search
+       * result.
+       *
+       * An extractive answer is a verbatim answer extracted from the original
+       * document, which provides a precise and contextually relevant answer to
+       * the search query.
+       *
+       * If the number of matching answers is less than the
+       * `max_extractive_answer_count`, return all of the answers. Otherwise,
+       * return the `max_extractive_answer_count`.
+       *
+       * At most one answer is returned for each
+       * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult].
+       * 
+ * + * int32 max_extractive_answer_count = 1; + * @return The maxExtractiveAnswerCount. + */ + int getMaxExtractiveAnswerCount(); + + /** + *
+       * The max number of extractive segments returned in each search result.
+       * Only applied if the
+       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is set to
+       * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig.CONTENT_REQUIRED]
+       * or
+       * [DataStore.solution_types][google.cloud.discoveryengine.v1alpha.DataStore.solution_types]
+       * is
+       * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT].
+       *
+       * An extractive segment is a text segment extracted from the original
+       * document that is relevant to the search query, and, in general, more
+       * verbose than an extractive answer. The segment could then be used as
+       * input for LLMs to generate summaries and answers.
+       *
+       * If the number of matching segments is less than
+       * `max_extractive_segment_count`, return all of the segments. Otherwise,
+       * return the `max_extractive_segment_count`.
+       * 
+ * + * int32 max_extractive_segment_count = 2; + * @return The maxExtractiveSegmentCount. + */ + int getMaxExtractiveSegmentCount(); + + /** + *
+       * Specifies whether to return the confidence score from the extractive
+       * segments in each search result. The default value is `false`.
+       *
+       * Note: this is a priavte preview feature and only works for allowlisted
+       * users, please reach out to Cloud Support team if you want to use it.
+       * 
+ * + * bool return_extractive_segment_score = 3; + * @return The returnExtractiveSegmentScore. + */ + boolean getReturnExtractiveSegmentScore(); + + /** + *
+       * Specifies whether to also include the adjacent from each selected
+       * segments.
+       * Return at most `num_previous_segments` segments before each selected
+       * segments.
+       * 
+ * + * int32 num_previous_segments = 4; + * @return The numPreviousSegments. + */ + int getNumPreviousSegments(); + + /** + *
+       * Return at most `num_next_segments` segments after each selected
+       * segments.
+       * 
+ * + * int32 num_next_segments = 5; + * @return The numNextSegments. + */ + int getNumNextSegments(); + } + /** + *
+     * A specification for configuring the extractive content in a search
+     * response.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} + */ + public static final class ExtractiveContentSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + ExtractiveContentSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExtractiveContentSpec.newBuilder() to construct. + private ExtractiveContentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExtractiveContentSpec() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExtractiveContentSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder.class); + } + + public static final int MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER = 1; + private int maxExtractiveAnswerCount_ = 0; + /** + *
+       * The maximum number of extractive answers returned in each search
+       * result.
+       *
+       * An extractive answer is a verbatim answer extracted from the original
+       * document, which provides a precise and contextually relevant answer to
+       * the search query.
+       *
+       * If the number of matching answers is less than the
+       * `max_extractive_answer_count`, return all of the answers. Otherwise,
+       * return the `max_extractive_answer_count`.
+       *
+       * At most one answer is returned for each
+       * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult].
+       * 
+ * + * int32 max_extractive_answer_count = 1; + * @return The maxExtractiveAnswerCount. + */ + @java.lang.Override + public int getMaxExtractiveAnswerCount() { + return maxExtractiveAnswerCount_; + } + + public static final int MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER = 2; + private int maxExtractiveSegmentCount_ = 0; + /** + *
+       * The max number of extractive segments returned in each search result.
+       * Only applied if the
+       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is set to
+       * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig.CONTENT_REQUIRED]
+       * or
+       * [DataStore.solution_types][google.cloud.discoveryengine.v1alpha.DataStore.solution_types]
+       * is
+       * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT].
+       *
+       * An extractive segment is a text segment extracted from the original
+       * document that is relevant to the search query, and, in general, more
+       * verbose than an extractive answer. The segment could then be used as
+       * input for LLMs to generate summaries and answers.
+       *
+       * If the number of matching segments is less than
+       * `max_extractive_segment_count`, return all of the segments. Otherwise,
+       * return the `max_extractive_segment_count`.
+       * 
+ * + * int32 max_extractive_segment_count = 2; + * @return The maxExtractiveSegmentCount. + */ + @java.lang.Override + public int getMaxExtractiveSegmentCount() { + return maxExtractiveSegmentCount_; + } + + public static final int RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER = 3; + private boolean returnExtractiveSegmentScore_ = false; + /** + *
+       * Specifies whether to return the confidence score from the extractive
+       * segments in each search result. The default value is `false`.
+       *
+       * Note: this is a priavte preview feature and only works for allowlisted
+       * users, please reach out to Cloud Support team if you want to use it.
+       * 
+ * + * bool return_extractive_segment_score = 3; + * @return The returnExtractiveSegmentScore. + */ + @java.lang.Override + public boolean getReturnExtractiveSegmentScore() { + return returnExtractiveSegmentScore_; + } + + public static final int NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER = 4; + private int numPreviousSegments_ = 0; + /** + *
+       * Specifies whether to also include the adjacent from each selected
+       * segments.
+       * Return at most `num_previous_segments` segments before each selected
+       * segments.
+       * 
+ * + * int32 num_previous_segments = 4; + * @return The numPreviousSegments. + */ + @java.lang.Override + public int getNumPreviousSegments() { + return numPreviousSegments_; + } + + public static final int NUM_NEXT_SEGMENTS_FIELD_NUMBER = 5; + private int numNextSegments_ = 0; + /** + *
+       * Return at most `num_next_segments` segments after each selected
+       * segments.
+       * 
+ * + * int32 num_next_segments = 5; + * @return The numNextSegments. + */ + @java.lang.Override + public int getNumNextSegments() { + return numNextSegments_; + } + + 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 (maxExtractiveAnswerCount_ != 0) { + output.writeInt32(1, maxExtractiveAnswerCount_); + } + if (maxExtractiveSegmentCount_ != 0) { + output.writeInt32(2, maxExtractiveSegmentCount_); + } + if (returnExtractiveSegmentScore_ != false) { + output.writeBool(3, returnExtractiveSegmentScore_); + } + if (numPreviousSegments_ != 0) { + output.writeInt32(4, numPreviousSegments_); + } + if (numNextSegments_ != 0) { + output.writeInt32(5, numNextSegments_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxExtractiveAnswerCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxExtractiveAnswerCount_); + } + if (maxExtractiveSegmentCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxExtractiveSegmentCount_); + } + if (returnExtractiveSegmentScore_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, returnExtractiveSegmentScore_); + } + if (numPreviousSegments_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, numPreviousSegments_); + } + if (numNextSegments_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, numNextSegments_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) obj; + + if (getMaxExtractiveAnswerCount() + != other.getMaxExtractiveAnswerCount()) return false; + if (getMaxExtractiveSegmentCount() + != other.getMaxExtractiveSegmentCount()) return false; + if (getReturnExtractiveSegmentScore() + != other.getReturnExtractiveSegmentScore()) return false; + if (getNumPreviousSegments() + != other.getNumPreviousSegments()) return false; + if (getNumNextSegments() + != other.getNumNextSegments()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxExtractiveAnswerCount(); + hash = (37 * hash) + MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxExtractiveSegmentCount(); + hash = (37 * hash) + RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnExtractiveSegmentScore()); + hash = (37 * hash) + NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getNumPreviousSegments(); + hash = (37 * hash) + NUM_NEXT_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getNumNextSegments(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * A specification for configuring the extractive content in a search
+       * response.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxExtractiveAnswerCount_ = 0; + maxExtractiveSegmentCount_ = 0; + returnExtractiveSegmentScore_ = false; + numPreviousSegments_ = 0; + numNextSegments_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxExtractiveAnswerCount_ = maxExtractiveAnswerCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxExtractiveSegmentCount_ = maxExtractiveSegmentCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnExtractiveSegmentScore_ = returnExtractiveSegmentScore_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.numPreviousSegments_ = numPreviousSegments_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.numNextSegments_ = numNextSegments_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance()) return this; + if (other.getMaxExtractiveAnswerCount() != 0) { + setMaxExtractiveAnswerCount(other.getMaxExtractiveAnswerCount()); + } + if (other.getMaxExtractiveSegmentCount() != 0) { + setMaxExtractiveSegmentCount(other.getMaxExtractiveSegmentCount()); + } + if (other.getReturnExtractiveSegmentScore() != false) { + setReturnExtractiveSegmentScore(other.getReturnExtractiveSegmentScore()); + } + if (other.getNumPreviousSegments() != 0) { + setNumPreviousSegments(other.getNumPreviousSegments()); + } + if (other.getNumNextSegments() != 0) { + setNumNextSegments(other.getNumNextSegments()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxExtractiveAnswerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + maxExtractiveSegmentCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + returnExtractiveSegmentScore_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + numPreviousSegments_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + numNextSegments_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int maxExtractiveAnswerCount_ ; + /** + *
+         * The maximum number of extractive answers returned in each search
+         * result.
+         *
+         * An extractive answer is a verbatim answer extracted from the original
+         * document, which provides a precise and contextually relevant answer to
+         * the search query.
+         *
+         * If the number of matching answers is less than the
+         * `max_extractive_answer_count`, return all of the answers. Otherwise,
+         * return the `max_extractive_answer_count`.
+         *
+         * At most one answer is returned for each
+         * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult].
+         * 
+ * + * int32 max_extractive_answer_count = 1; + * @return The maxExtractiveAnswerCount. + */ + @java.lang.Override + public int getMaxExtractiveAnswerCount() { + return maxExtractiveAnswerCount_; + } + /** + *
+         * The maximum number of extractive answers returned in each search
+         * result.
+         *
+         * An extractive answer is a verbatim answer extracted from the original
+         * document, which provides a precise and contextually relevant answer to
+         * the search query.
+         *
+         * If the number of matching answers is less than the
+         * `max_extractive_answer_count`, return all of the answers. Otherwise,
+         * return the `max_extractive_answer_count`.
+         *
+         * At most one answer is returned for each
+         * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult].
+         * 
+ * + * int32 max_extractive_answer_count = 1; + * @param value The maxExtractiveAnswerCount to set. + * @return This builder for chaining. + */ + public Builder setMaxExtractiveAnswerCount(int value) { + + maxExtractiveAnswerCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The maximum number of extractive answers returned in each search
+         * result.
+         *
+         * An extractive answer is a verbatim answer extracted from the original
+         * document, which provides a precise and contextually relevant answer to
+         * the search query.
+         *
+         * If the number of matching answers is less than the
+         * `max_extractive_answer_count`, return all of the answers. Otherwise,
+         * return the `max_extractive_answer_count`.
+         *
+         * At most one answer is returned for each
+         * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult].
+         * 
+ * + * int32 max_extractive_answer_count = 1; + * @return This builder for chaining. + */ + public Builder clearMaxExtractiveAnswerCount() { + bitField0_ = (bitField0_ & ~0x00000001); + maxExtractiveAnswerCount_ = 0; + onChanged(); + return this; + } + + private int maxExtractiveSegmentCount_ ; + /** + *
+         * The max number of extractive segments returned in each search result.
+         * Only applied if the
+         * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is set to
+         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig.CONTENT_REQUIRED]
+         * or
+         * [DataStore.solution_types][google.cloud.discoveryengine.v1alpha.DataStore.solution_types]
+         * is
+         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT].
+         *
+         * An extractive segment is a text segment extracted from the original
+         * document that is relevant to the search query, and, in general, more
+         * verbose than an extractive answer. The segment could then be used as
+         * input for LLMs to generate summaries and answers.
+         *
+         * If the number of matching segments is less than
+         * `max_extractive_segment_count`, return all of the segments. Otherwise,
+         * return the `max_extractive_segment_count`.
+         * 
+ * + * int32 max_extractive_segment_count = 2; + * @return The maxExtractiveSegmentCount. + */ + @java.lang.Override + public int getMaxExtractiveSegmentCount() { + return maxExtractiveSegmentCount_; + } + /** + *
+         * The max number of extractive segments returned in each search result.
+         * Only applied if the
+         * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is set to
+         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig.CONTENT_REQUIRED]
+         * or
+         * [DataStore.solution_types][google.cloud.discoveryengine.v1alpha.DataStore.solution_types]
+         * is
+         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT].
+         *
+         * An extractive segment is a text segment extracted from the original
+         * document that is relevant to the search query, and, in general, more
+         * verbose than an extractive answer. The segment could then be used as
+         * input for LLMs to generate summaries and answers.
+         *
+         * If the number of matching segments is less than
+         * `max_extractive_segment_count`, return all of the segments. Otherwise,
+         * return the `max_extractive_segment_count`.
+         * 
+ * + * int32 max_extractive_segment_count = 2; + * @param value The maxExtractiveSegmentCount to set. + * @return This builder for chaining. + */ + public Builder setMaxExtractiveSegmentCount(int value) { + + maxExtractiveSegmentCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The max number of extractive segments returned in each search result.
+         * Only applied if the
+         * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is set to
+         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig.CONTENT_REQUIRED]
+         * or
+         * [DataStore.solution_types][google.cloud.discoveryengine.v1alpha.DataStore.solution_types]
+         * is
+         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT].
+         *
+         * An extractive segment is a text segment extracted from the original
+         * document that is relevant to the search query, and, in general, more
+         * verbose than an extractive answer. The segment could then be used as
+         * input for LLMs to generate summaries and answers.
+         *
+         * If the number of matching segments is less than
+         * `max_extractive_segment_count`, return all of the segments. Otherwise,
+         * return the `max_extractive_segment_count`.
+         * 
+ * + * int32 max_extractive_segment_count = 2; + * @return This builder for chaining. + */ + public Builder clearMaxExtractiveSegmentCount() { + bitField0_ = (bitField0_ & ~0x00000002); + maxExtractiveSegmentCount_ = 0; + onChanged(); + return this; + } + + private boolean returnExtractiveSegmentScore_ ; + /** + *
+         * Specifies whether to return the confidence score from the extractive
+         * segments in each search result. The default value is `false`.
+         *
+         * Note: this is a priavte preview feature and only works for allowlisted
+         * users, please reach out to Cloud Support team if you want to use it.
+         * 
+ * + * bool return_extractive_segment_score = 3; + * @return The returnExtractiveSegmentScore. + */ + @java.lang.Override + public boolean getReturnExtractiveSegmentScore() { + return returnExtractiveSegmentScore_; + } + /** + *
+         * Specifies whether to return the confidence score from the extractive
+         * segments in each search result. The default value is `false`.
+         *
+         * Note: this is a priavte preview feature and only works for allowlisted
+         * users, please reach out to Cloud Support team if you want to use it.
+         * 
+ * + * bool return_extractive_segment_score = 3; + * @param value The returnExtractiveSegmentScore to set. + * @return This builder for chaining. + */ + public Builder setReturnExtractiveSegmentScore(boolean value) { + + returnExtractiveSegmentScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Specifies whether to return the confidence score from the extractive
+         * segments in each search result. The default value is `false`.
+         *
+         * Note: this is a priavte preview feature and only works for allowlisted
+         * users, please reach out to Cloud Support team if you want to use it.
+         * 
+ * + * bool return_extractive_segment_score = 3; + * @return This builder for chaining. + */ + public Builder clearReturnExtractiveSegmentScore() { + bitField0_ = (bitField0_ & ~0x00000004); + returnExtractiveSegmentScore_ = false; + onChanged(); + return this; + } + + private int numPreviousSegments_ ; + /** + *
+         * Specifies whether to also include the adjacent from each selected
+         * segments.
+         * Return at most `num_previous_segments` segments before each selected
+         * segments.
+         * 
+ * + * int32 num_previous_segments = 4; + * @return The numPreviousSegments. + */ + @java.lang.Override + public int getNumPreviousSegments() { + return numPreviousSegments_; + } + /** + *
+         * Specifies whether to also include the adjacent from each selected
+         * segments.
+         * Return at most `num_previous_segments` segments before each selected
+         * segments.
+         * 
+ * + * int32 num_previous_segments = 4; + * @param value The numPreviousSegments to set. + * @return This builder for chaining. + */ + public Builder setNumPreviousSegments(int value) { + + numPreviousSegments_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Specifies whether to also include the adjacent from each selected
+         * segments.
+         * Return at most `num_previous_segments` segments before each selected
+         * segments.
+         * 
+ * + * int32 num_previous_segments = 4; + * @return This builder for chaining. + */ + public Builder clearNumPreviousSegments() { + bitField0_ = (bitField0_ & ~0x00000008); + numPreviousSegments_ = 0; + onChanged(); + return this; + } + + private int numNextSegments_ ; + /** + *
+         * Return at most `num_next_segments` segments after each selected
+         * segments.
+         * 
+ * + * int32 num_next_segments = 5; + * @return The numNextSegments. + */ + @java.lang.Override + public int getNumNextSegments() { + return numNextSegments_; + } + /** + *
+         * Return at most `num_next_segments` segments after each selected
+         * segments.
+         * 
+ * + * int32 num_next_segments = 5; + * @param value The numNextSegments to set. + * @return This builder for chaining. + */ + public Builder setNumNextSegments(int value) { + + numNextSegments_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Return at most `num_next_segments` segments after each selected
+         * segments.
+         * 
+ * + * int32 num_next_segments = 5; + * @return This builder for chaining. + */ + public Builder clearNumNextSegments() { + bitField0_ = (bitField0_ & ~0x00000010); + numNextSegments_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtractiveContentSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippetSpec_; + /** + *
+     * If `snippetSpec` is not specified, snippets are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * @return Whether the snippetSpec field is set. + */ + @java.lang.Override + public boolean hasSnippetSpec() { + return snippetSpec_ != null; + } + /** + *
+     * If `snippetSpec` is not specified, snippets are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * @return The snippetSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec() { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; + } + /** + *
+     * If `snippetSpec` is not specified, snippets are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder() { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; + } + + public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; + /** + *
+     * If `summarySpec` is not specified, summaries are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * @return Whether the summarySpec field is set. + */ + @java.lang.Override + public boolean hasSummarySpec() { + return summarySpec_ != null; + } + /** + *
+     * If `summarySpec` is not specified, summaries are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * @return The summarySpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } + /** + *
+     * If `summarySpec` is not specified, summaries are not included in the
+     * search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } + + public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractiveContentSpec_; + /** + *
+     * If there is no extractive_content_spec provided, there will be no
+     * extractive answer in the search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * @return Whether the extractiveContentSpec field is set. + */ + @java.lang.Override + public boolean hasExtractiveContentSpec() { + return extractiveContentSpec_ != null; + } + /** + *
+     * If there is no extractive_content_spec provided, there will be no
+     * extractive answer in the search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * @return The extractiveContentSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec() { + return extractiveContentSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; + } + /** + *
+     * If there is no extractive_content_spec provided, there will be no
+     * extractive answer in the search response.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder() { + return extractiveContentSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; + } + + 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 (snippetSpec_ != null) { + output.writeMessage(1, getSnippetSpec()); + } + if (summarySpec_ != null) { + output.writeMessage(2, getSummarySpec()); + } + if (extractiveContentSpec_ != null) { + output.writeMessage(3, getExtractiveContentSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (snippetSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnippetSpec()); + } + if (summarySpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSummarySpec()); + } + if (extractiveContentSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExtractiveContentSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) obj; + + if (hasSnippetSpec() != other.hasSnippetSpec()) return false; + if (hasSnippetSpec()) { + if (!getSnippetSpec() + .equals(other.getSnippetSpec())) return false; + } + if (hasSummarySpec() != other.hasSummarySpec()) return false; + if (hasSummarySpec()) { + if (!getSummarySpec() + .equals(other.getSummarySpec())) return false; + } + if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false; + if (hasExtractiveContentSpec()) { + if (!getExtractiveContentSpec() + .equals(other.getExtractiveContentSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSnippetSpec()) { + hash = (37 * hash) + SNIPPET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSnippetSpec().hashCode(); + } + if (hasSummarySpec()) { + hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSummarySpec().hashCode(); + } + if (hasExtractiveContentSpec()) { + hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getExtractiveContentSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec 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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snippetSpec_ = null; + if (snippetSpecBuilder_ != null) { + snippetSpecBuilder_.dispose(); + snippetSpecBuilder_ = null; + } + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + extractiveContentSpec_ = null; + if (extractiveContentSpecBuilder_ != null) { + extractiveContentSpecBuilder_.dispose(); + extractiveContentSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snippetSpec_ = snippetSpecBuilder_ == null + ? snippetSpec_ + : snippetSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summarySpec_ = summarySpecBuilder_ == null + ? summarySpec_ + : summarySpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extractiveContentSpec_ = extractiveContentSpecBuilder_ == null + ? extractiveContentSpec_ + : extractiveContentSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance()) return this; + if (other.hasSnippetSpec()) { + mergeSnippetSpec(other.getSnippetSpec()); + } + if (other.hasSummarySpec()) { + mergeSummarySpec(other.getSummarySpec()); + } + if (other.hasExtractiveContentSpec()) { + mergeExtractiveContentSpec(other.getExtractiveContentSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSnippetSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSummarySpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getExtractiveContentSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippetSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder> snippetSpecBuilder_; + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * @return Whether the snippetSpec field is set. + */ + public boolean hasSnippetSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * @return The snippetSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec() { + if (snippetSpecBuilder_ == null) { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; + } else { + return snippetSpecBuilder_.getMessage(); + } + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + public Builder setSnippetSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec value) { + if (snippetSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snippetSpec_ = value; + } else { + snippetSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + public Builder setSnippetSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue) { + if (snippetSpecBuilder_ == null) { + snippetSpec_ = builderForValue.build(); + } else { + snippetSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + public Builder mergeSnippetSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec value) { + if (snippetSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + snippetSpec_ != null && + snippetSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance()) { + getSnippetSpecBuilder().mergeFrom(value); + } else { + snippetSpec_ = value; + } + } else { + snippetSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + public Builder clearSnippetSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + snippetSpec_ = null; + if (snippetSpecBuilder_ != null) { + snippetSpecBuilder_.dispose(); + snippetSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder getSnippetSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSnippetSpecFieldBuilder().getBuilder(); + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder() { + if (snippetSpecBuilder_ != null) { + return snippetSpecBuilder_.getMessageOrBuilder(); + } else { + return snippetSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; + } + } + /** + *
+       * If `snippetSpec` is not specified, snippets are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder> + getSnippetSpecFieldBuilder() { + if (snippetSpecBuilder_ == null) { + snippetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder>( + getSnippetSpec(), + getParentForChildren(), + isClean()); + snippetSpec_ = null; + } + return snippetSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> summarySpecBuilder_; + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * @return Whether the summarySpec field is set. + */ + public boolean hasSummarySpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * @return The summarySpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + if (summarySpecBuilder_ == null) { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } else { + return summarySpecBuilder_.getMessage(); + } + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + public Builder setSummarySpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec value) { + if (summarySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summarySpec_ = value; + } else { + summarySpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + public Builder setSummarySpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue) { + if (summarySpecBuilder_ == null) { + summarySpec_ = builderForValue.build(); + } else { + summarySpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + public Builder mergeSummarySpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec value) { + if (summarySpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + summarySpec_ != null && + summarySpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) { + getSummarySpecBuilder().mergeFrom(value); + } else { + summarySpec_ = value; + } + } else { + summarySpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + public Builder clearSummarySpec() { + bitField0_ = (bitField0_ & ~0x00000002); + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSummarySpecFieldBuilder().getBuilder(); + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + if (summarySpecBuilder_ != null) { + return summarySpecBuilder_.getMessageOrBuilder(); + } else { + return summarySpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; + } + } + /** + *
+       * If `summarySpec` is not specified, summaries are not included in the
+       * search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> + getSummarySpecFieldBuilder() { + if (summarySpecBuilder_ == null) { + summarySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder>( + getSummarySpec(), + getParentForChildren(), + isClean()); + summarySpec_ = null; + } + return summarySpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractiveContentSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder> extractiveContentSpecBuilder_; + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * @return Whether the extractiveContentSpec field is set. + */ + public boolean hasExtractiveContentSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * @return The extractiveContentSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec() { + if (extractiveContentSpecBuilder_ == null) { + return extractiveContentSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; + } else { + return extractiveContentSpecBuilder_.getMessage(); + } + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + public Builder setExtractiveContentSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec value) { + if (extractiveContentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + extractiveContentSpec_ = value; + } else { + extractiveContentSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + public Builder setExtractiveContentSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder builderForValue) { + if (extractiveContentSpecBuilder_ == null) { + extractiveContentSpec_ = builderForValue.build(); + } else { + extractiveContentSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + public Builder mergeExtractiveContentSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec value) { + if (extractiveContentSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + extractiveContentSpec_ != null && + extractiveContentSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance()) { + getExtractiveContentSpecBuilder().mergeFrom(value); + } else { + extractiveContentSpec_ = value; + } + } else { + extractiveContentSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + public Builder clearExtractiveContentSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + extractiveContentSpec_ = null; + if (extractiveContentSpecBuilder_ != null) { + extractiveContentSpecBuilder_.dispose(); + extractiveContentSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder getExtractiveContentSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getExtractiveContentSpecFieldBuilder().getBuilder(); + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder() { + if (extractiveContentSpecBuilder_ != null) { + return extractiveContentSpecBuilder_.getMessageOrBuilder(); + } else { + return extractiveContentSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; + } + } + /** + *
+       * If there is no extractive_content_spec provided, there will be no
+       * extractive answer in the search response.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder> + getExtractiveContentSpecFieldBuilder() { + if (extractiveContentSpecBuilder_ == null) { + extractiveContentSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder>( + getExtractiveContentSpec(), + getParentForChildren(), + isClean()); + extractiveContentSpec_ = null; + } + return extractiveContentSpecBuilder_; + } + @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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentSearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmbeddingSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + java.util.List + getEmbeddingVectorsList(); + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index); + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + int getEmbeddingVectorsCount(); + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + java.util.List + getEmbeddingVectorsOrBuilderList(); + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder( + int index); + } + /** + *
+   * The specification that uses customized query embedding vector to do
+   * semantic document retrieval.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec} + */ + public static final class EmbeddingSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) + EmbeddingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmbeddingSpec.newBuilder() to construct. + private EmbeddingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmbeddingSpec() { + embeddingVectors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EmbeddingSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder.class); + } + + public interface EmbeddingVectorOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Embedding field path in schema.
+       * 
+ * + * string field_path = 1; + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + *
+       * Embedding field path in schema.
+       * 
+ * + * string field_path = 1; + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString + getFieldPathBytes(); + + /** + *
+       * Query embedding vector.
+       * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + java.util.List getVectorList(); + /** + *
+       * Query embedding vector.
+       * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + int getVectorCount(); + /** + *
+       * Query embedding vector.
+       * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); + } + /** + *
+     * Embedding vector.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector} + */ + public static final class EmbeddingVector extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) + EmbeddingVectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmbeddingVector.newBuilder() to construct. + private EmbeddingVector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmbeddingVector() { + fieldPath_ = ""; + vector_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EmbeddingVector(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder.class); + } + + public static final int FIELD_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + *
+       * Embedding field path in schema.
+       * 
+ * + * string field_path = 1; + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + 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(); + fieldPath_ = s; + return s; + } + } + /** + *
+       * Embedding field path in schema.
+       * 
+ * + * string field_path = 1; + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VECTOR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_; + /** + *
+       * Query embedding vector.
+       * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + @java.lang.Override + public java.util.List + getVectorList() { + return vector_; + } + /** + *
+       * Query embedding vector.
+       * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+       * Query embedding vector.
+       * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + private int vectorMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + } + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + } + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) obj; + + if (!getFieldPath() + .equals(other.getFieldPath())) return false; + if (!getVectorList() + .equals(other.getVectorList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + if (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector 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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector 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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector 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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector 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; + } + /** + *
+       * Embedding vector.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldPath_ = ""; + vector_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector result) { + if (((bitField0_ & 0x00000002) != 0)) { + vector_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.vector_ = vector_; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldPath_ = fieldPath_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance()) return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureVectorIsMutable(); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object fieldPath_ = ""; + /** + *
+         * Embedding field path in schema.
+         * 
+ * + * string field_path = 1; + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Embedding field path in schema.
+         * 
+ * + * string field_path = 1; + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString + getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Embedding field path in schema.
+         * 
+ * + * string field_path = 1; + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Embedding field path in schema.
+         * 
+ * + * string field_path = 1; + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * Embedding field path in schema.
+         * 
+ * + * string field_path = 1; + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + private void ensureVectorIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + vector_ = mutableCopy(vector_); + bitField0_ |= 0x00000002; + } + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @return A list containing the vector. + */ + public java.util.List + getVectorList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(vector_) : vector_; + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector( + int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + onChanged(); + return this; + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + onChanged(); + return this; + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector( + java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vector_); + onChanged(); + return this; + } + /** + *
+         * Query embedding vector.
+         * 
+ * + * repeated float vector = 2; + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingVector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int EMBEDDING_VECTORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List embeddingVectors_; + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + @java.lang.Override + public java.util.List getEmbeddingVectorsList() { + return embeddingVectors_; + } + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + @java.lang.Override + public java.util.List + getEmbeddingVectorsOrBuilderList() { + return embeddingVectors_; + } + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + @java.lang.Override + public int getEmbeddingVectorsCount() { + return embeddingVectors_.size(); + } + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index) { + return embeddingVectors_.get(index); + } + /** + *
+     * The embedding vector used for retrieval. Limit to 1.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder( + int index) { + return embeddingVectors_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < embeddingVectors_.size(); i++) { + output.writeMessage(1, embeddingVectors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < embeddingVectors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, embeddingVectors_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) obj; + + if (!getEmbeddingVectorsList() + .equals(other.getEmbeddingVectorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEmbeddingVectorsCount() > 0) { + hash = (37 * hash) + EMBEDDING_VECTORS_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingVectorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec 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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec 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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec 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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The specification that uses customized query embedding vector to do
+     * semantic document retrieval.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (embeddingVectorsBuilder_ == null) { + embeddingVectors_ = java.util.Collections.emptyList(); + } else { + embeddingVectors_ = null; + embeddingVectorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec result) { + if (embeddingVectorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + embeddingVectors_ = java.util.Collections.unmodifiableList(embeddingVectors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.embeddingVectors_ = embeddingVectors_; + } else { + result.embeddingVectors_ = embeddingVectorsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance()) return this; + if (embeddingVectorsBuilder_ == null) { + if (!other.embeddingVectors_.isEmpty()) { + if (embeddingVectors_.isEmpty()) { + embeddingVectors_ = other.embeddingVectors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.addAll(other.embeddingVectors_); + } + onChanged(); + } + } else { + if (!other.embeddingVectors_.isEmpty()) { + if (embeddingVectorsBuilder_.isEmpty()) { + embeddingVectorsBuilder_.dispose(); + embeddingVectorsBuilder_ = null; + embeddingVectors_ = other.embeddingVectors_; + bitField0_ = (bitField0_ & ~0x00000001); + embeddingVectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEmbeddingVectorsFieldBuilder() : null; + } else { + embeddingVectorsBuilder_.addAllMessages(other.embeddingVectors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.parser(), + extensionRegistry); + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(m); + } else { + embeddingVectorsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List embeddingVectors_ = + java.util.Collections.emptyList(); + private void ensureEmbeddingVectorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + embeddingVectors_ = new java.util.ArrayList(embeddingVectors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder> embeddingVectorsBuilder_; + + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public java.util.List getEmbeddingVectorsList() { + if (embeddingVectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(embeddingVectors_); + } else { + return embeddingVectorsBuilder_.getMessageList(); + } + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public int getEmbeddingVectorsCount() { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.size(); + } else { + return embeddingVectorsBuilder_.getCount(); + } + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index) { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.get(index); + } else { + return embeddingVectorsBuilder_.getMessage(index); + } + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder setEmbeddingVectors( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.set(index, value); + onChanged(); + } else { + embeddingVectorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder setEmbeddingVectors( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.set(index, builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder addEmbeddingVectors(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(value); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder addEmbeddingVectors( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(index, value); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder addEmbeddingVectors( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder addEmbeddingVectors( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(index, builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder addAllEmbeddingVectors( + java.lang.Iterable values) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, embeddingVectors_); + onChanged(); + } else { + embeddingVectorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder clearEmbeddingVectors() { + if (embeddingVectorsBuilder_ == null) { + embeddingVectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + embeddingVectorsBuilder_.clear(); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public Builder removeEmbeddingVectors(int index) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.remove(index); + onChanged(); + } else { + embeddingVectorsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder getEmbeddingVectorsBuilder( + int index) { + return getEmbeddingVectorsFieldBuilder().getBuilder(index); + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder( + int index) { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.get(index); } else { + return embeddingVectorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public java.util.List + getEmbeddingVectorsOrBuilderList() { + if (embeddingVectorsBuilder_ != null) { + return embeddingVectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(embeddingVectors_); + } + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder addEmbeddingVectorsBuilder() { + return getEmbeddingVectorsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance()); + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder addEmbeddingVectorsBuilder( + int index) { + return getEmbeddingVectorsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance()); + } + /** + *
+       * The embedding vector used for retrieval. Limit to 1.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + */ + public java.util.List + getEmbeddingVectorsBuilderList() { + return getEmbeddingVectorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder> + getEmbeddingVectorsFieldBuilder() { + if (embeddingVectorsBuilder_ == null) { + embeddingVectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder>( + embeddingVectors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + embeddingVectors_ = null; + } + return embeddingVectorsBuilder_; + } + @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.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfig_ = ""; + /** + *
+   * Required. The resource name of the Search serving config, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+   * This field is used to identify the serving configuration name, set
+   * of models used to make the search.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + @java.lang.Override + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + 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(); + servingConfig_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the Search serving config, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+   * This field is used to identify the serving configuration name, set
+   * of models used to make the search.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + /** + *
+   * The branch resource name, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+   *
+   * Use `default_branch` as the branch ID or leave this field empty, to search
+   * documents under the default branch.
+   * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + 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(); + branch_ = s; + return s; + } + } + /** + *
+   * The branch resource name, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+   *
+   * Use `default_branch` as the branch ID or leave this field empty, to search
+   * documents under the default branch.
+   * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + *
+   * Raw search query.
+   * 
+ * + * string query = 3; + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + *
+   * Raw search query.
+   * 
+ * + * string query = 3; + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_QUERY_FIELD_NUMBER = 19; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery imageQuery_; + /** + *
+   * Raw image query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * @return Whether the imageQuery field is set. + */ + @java.lang.Override + public boolean hasImageQuery() { + return imageQuery_ != null; + } + /** + *
+   * Raw image query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * @return The imageQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getImageQuery() { + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; + } + /** + *
+   * Raw image query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder() { + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_ = 0; + /** + *
+   * Maximum number of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+   * unspecified, defaults to a reasonable value. The maximum allowed value is
+   * 100. Values above 100 are coerced to 100.
+   *
+   * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * int32 page_size = 4; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * A page token received from a previous
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * must match the call that provided the page token. Otherwise, an
+   *  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string page_token = 5; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token received from a previous
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * must match the call that provided the page token. Otherwise, an
+   *  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string page_token = 5; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFSET_FIELD_NUMBER = 6; + private int offset_ = 0; + /** + *
+   * A 0-indexed integer that specifies the current offset (that is, starting
+   * result location, amongst the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
+   * API as relevant) in search results. This field is only considered if
+   * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+   * is unset.
+   *
+   * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * int32 offset = 6; + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + + public static final int FILTER_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered. Filter
+   * expression is case-sensitive.
+   *
+   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * string filter = 7; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered. Filter
+   * expression is case-sensitive.
+   *
+   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * string filter = 7; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + *
+   * The order in which documents are returned. Documents can be ordered by
+   * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * object. Leave it unset if ordered by relevance. `order_by` expression is
+   * case-sensitive.
+   *
+   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+   * 
+ * + * string order_by = 8; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * The order in which documents are returned. Documents can be ordered by
+   * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * object. Leave it unset if ordered by relevance. `order_by` expression is
+   * case-sensitive.
+   *
+   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+   * 
+ * + * string order_by = 8; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 21; + private com.google.cloud.discoveryengine.v1alpha.UserInfo userInfo_; + /** + *
+   * Information about the end user.
+   * Highly recommended for analytics.
+   * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * is used to deduce `device_type` for analytics.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return userInfo_ != null; + } + /** + *
+   * Information about the end user.
+   * Highly recommended for analytics.
+   * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * is used to deduce `device_type` for analytics.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfo getUserInfo() { + return userInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } + /** + *
+   * Information about the end user.
+   * Highly recommended for analytics.
+   * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * is used to deduce `device_type` for analytics.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } + + public static final int FACET_SPECS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private java.util.List facetSpecs_; + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + @java.lang.Override + public java.util.List getFacetSpecsList() { + return facetSpecs_; + } + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + @java.lang.Override + public java.util.List + getFacetSpecsOrBuilderList() { + return facetSpecs_; + } + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + @java.lang.Override + public int getFacetSpecsCount() { + return facetSpecs_.size(); + } + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec getFacetSpecs(int index) { + return facetSpecs_.get(index); + } + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( + int index) { + return facetSpecs_.get(index); + } + + public static final int BOOST_SPEC_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boostSpec_; + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return boostSpec_ != null; + } + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; + } + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; + } + + public static final int PARAMS_FIELD_NUMBER = 11; + private static final class ParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> params_; + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParams().getMap().containsKey(key); + } + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public /* nullable */ +com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int QUERY_EXPANSION_SPEC_FIELD_NUMBER = 13; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec queryExpansionSpec_; + /** + *
+   * The query expansion specification that specifies the conditions under which
+   * query expansion occurs.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * @return Whether the queryExpansionSpec field is set. + */ + @java.lang.Override + public boolean hasQueryExpansionSpec() { + return queryExpansionSpec_ != null; + } + /** + *
+   * The query expansion specification that specifies the conditions under which
+   * query expansion occurs.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * @return The queryExpansionSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec getQueryExpansionSpec() { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; + } + /** + *
+   * The query expansion specification that specifies the conditions under which
+   * query expansion occurs.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder() { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; + } + + public static final int SPELL_CORRECTION_SPEC_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spellCorrectionSpec_; + /** + *
+   * The spell correction specification that specifies the mode under
+   * which spell correction takes effect.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * @return Whether the spellCorrectionSpec field is set. + */ + @java.lang.Override + public boolean hasSpellCorrectionSpec() { + return spellCorrectionSpec_ != null; + } + /** + *
+   * The spell correction specification that specifies the mode under
+   * which spell correction takes effect.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * @return The spellCorrectionSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec() { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; + } + /** + *
+   * The spell correction specification that specifies the mode under
+   * which spell correction takes effect.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder() { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string user_pseudo_id = 15; + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + 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(); + userPseudoId_ = s; + return s; + } + } + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string user_pseudo_id = 15; + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER = 24; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec contentSearchSpec_; + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + * @return Whether the contentSearchSpec field is set. + */ + @java.lang.Override + public boolean hasContentSearchSpec() { + return contentSearchSpec_ != null; + } + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + * @return The contentSearchSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getContentSearchSpec() { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; + } + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder() { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; + } + + public static final int EMBEDDING_SPEC_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embeddingSpec_; + /** + *
+   * Uses the provided embedding to do additional semantic document retrieval.
+   * The retrieval is based on the dot product of
+   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+   * embedding that is provided in
+   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+   *
+   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+   * provided, it will use [ServingConfig.embedding_config.field_paths][].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + * @return Whether the embeddingSpec field is set. + */ + @java.lang.Override + public boolean hasEmbeddingSpec() { + return embeddingSpec_ != null; + } + /** + *
+   * Uses the provided embedding to do additional semantic document retrieval.
+   * The retrieval is based on the dot product of
+   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+   * embedding that is provided in
+   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+   *
+   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+   * provided, it will use [ServingConfig.embedding_config.field_paths][].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + * @return The embeddingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getEmbeddingSpec() { + return embeddingSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; + } + /** + *
+   * Uses the provided embedding to do additional semantic document retrieval.
+   * The retrieval is based on the dot product of
+   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+   * embedding that is provided in
+   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+   *
+   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+   * provided, it will use [ServingConfig.embedding_config.field_paths][].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder getEmbeddingSpecOrBuilder() { + return embeddingSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; + } + + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 26; + @SuppressWarnings("serial") + private volatile java.lang.Object rankingExpression_ = ""; + /** + *
+   * The ranking expression controls the customized ranking on retrieval
+   * documents. This overrides
+   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+   * The ranking expression is a single function or multiple functions that are
+   * joint by "+".
+   *   * ranking_expression = function, { " + ", function };
+   * Supported functions:
+   *   * double * relevance_score
+   *   * double * dotProduct(embedding_field_path)
+   * Function variables:
+   *   `relevance_score`: pre-defined keywords, used for measure relevance
+   *   between query and document.
+   *   `embedding_field_path`: the document embedding field
+   *   used with query embedding vector.
+   *   `dotProduct`: embedding function between embedding_field_path and query
+   *   embedding vector.
+   *
+   *  Example ranking expression:
+   *    If document has an embedding field doc_embedding, the ranking expression
+   *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+   * 
+ * + * string ranking_expression = 26; + * @return The rankingExpression. + */ + @java.lang.Override + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + 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(); + rankingExpression_ = s; + return s; + } + } + /** + *
+   * The ranking expression controls the customized ranking on retrieval
+   * documents. This overrides
+   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+   * The ranking expression is a single function or multiple functions that are
+   * joint by "+".
+   *   * ranking_expression = function, { " + ", function };
+   * Supported functions:
+   *   * double * relevance_score
+   *   * double * dotProduct(embedding_field_path)
+   * Function variables:
+   *   `relevance_score`: pre-defined keywords, used for measure relevance
+   *   between query and document.
+   *   `embedding_field_path`: the document embedding field
+   *   used with query embedding vector.
+   *   `dotProduct`: embedding function between embedding_field_path and query
+   *   embedding vector.
+   *
+   *  Example ranking expression:
+   *    If document has an embedding field doc_embedding, the ranking expression
+   *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+   * 
+ * + * string ranking_expression = 26; + * @return The bytes for rankingExpression. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFE_SEARCH_FIELD_NUMBER = 20; + private boolean safeSearch_ = false; + /** + *
+   * Whether to turn on safe search. This is only supported for
+   * website search.
+   * 
+ * + * bool safe_search = 20; + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + + public static final int USER_LABELS_FIELD_NUMBER = 22; + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetUserLabels().getMap().containsKey(key); + } + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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(servingConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, branch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + if (offset_ != 0) { + output.writeInt32(6, offset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_); + } + for (int i = 0; i < facetSpecs_.size(); i++) { + output.writeMessage(9, facetSpecs_.get(i)); + } + if (boostSpec_ != null) { + output.writeMessage(10, getBoostSpec()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParams(), + ParamsDefaultEntryHolder.defaultEntry, + 11); + if (queryExpansionSpec_ != null) { + output.writeMessage(13, getQueryExpansionSpec()); + } + if (spellCorrectionSpec_ != null) { + output.writeMessage(14, getSpellCorrectionSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, userPseudoId_); + } + if (imageQuery_ != null) { + output.writeMessage(19, getImageQuery()); + } + if (safeSearch_ != false) { + output.writeBool(20, safeSearch_); + } + if (userInfo_ != null) { + output.writeMessage(21, getUserInfo()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 22); + if (embeddingSpec_ != null) { + output.writeMessage(23, getEmbeddingSpec()); + } + if (contentSearchSpec_ != null) { + output.writeMessage(24, getContentSearchSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, rankingExpression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, servingConfig_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, branch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, offset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); + } + for (int i = 0; i < facetSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, facetSpecs_.get(i)); + } + if (boostSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getBoostSpec()); + } + 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(11, params__); + } + if (queryExpansionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getQueryExpansionSpec()); + } + if (spellCorrectionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getSpellCorrectionSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, userPseudoId_); + } + if (imageQuery_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getImageQuery()); + } + if (safeSearch_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, safeSearch_); + } + if (userInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getUserInfo()); + } + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, userLabels__); + } + if (embeddingSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getEmbeddingSpec()); + } + if (contentSearchSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getContentSearchSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, rankingExpression_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest other = (com.google.cloud.discoveryengine.v1alpha.SearchRequest) obj; + + if (!getServingConfig() + .equals(other.getServingConfig())) return false; + if (!getBranch() + .equals(other.getBranch())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (hasImageQuery() != other.hasImageQuery()) return false; + if (hasImageQuery()) { + if (!getImageQuery() + .equals(other.getImageQuery())) return false; + } + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getOffset() + != other.getOffset()) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo() + .equals(other.getUserInfo())) return false; + } + if (!getFacetSpecsList() + .equals(other.getFacetSpecsList())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec() + .equals(other.getBoostSpec())) return false; + } + if (!internalGetParams().equals( + other.internalGetParams())) return false; + if (hasQueryExpansionSpec() != other.hasQueryExpansionSpec()) return false; + if (hasQueryExpansionSpec()) { + if (!getQueryExpansionSpec() + .equals(other.getQueryExpansionSpec())) return false; + } + if (hasSpellCorrectionSpec() != other.hasSpellCorrectionSpec()) return false; + if (hasSpellCorrectionSpec()) { + if (!getSpellCorrectionSpec() + .equals(other.getSpellCorrectionSpec())) return false; + } + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (hasContentSearchSpec() != other.hasContentSearchSpec()) return false; + if (hasContentSearchSpec()) { + if (!getContentSearchSpec() + .equals(other.getContentSearchSpec())) return false; + } + if (hasEmbeddingSpec() != other.hasEmbeddingSpec()) return false; + if (hasEmbeddingSpec()) { + if (!getEmbeddingSpec() + .equals(other.getEmbeddingSpec())) return false; + } + if (!getRankingExpression() + .equals(other.getRankingExpression())) return false; + if (getSafeSearch() + != other.getSafeSearch()) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (hasImageQuery()) { + hash = (37 * hash) + IMAGE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getImageQuery().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + if (getFacetSpecsCount() > 0) { + hash = (37 * hash) + FACET_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getFacetSpecsList().hashCode(); + } + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); + } + if (hasQueryExpansionSpec()) { + hash = (37 * hash) + QUERY_EXPANSION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getQueryExpansionSpec().hashCode(); + } + if (hasSpellCorrectionSpec()) { + hash = (37 * hash) + SPELL_CORRECTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrectionSpec().hashCode(); + } + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (hasContentSearchSpec()) { + hash = (37 * hash) + CONTENT_SEARCH_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getContentSearchSpec().hashCode(); + } + if (hasEmbeddingSpec()) { + hash = (37 * hash) + EMBEDDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingSpec().hashCode(); + } + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSafeSearch()); + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest 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.discoveryengine.v1alpha.SearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest 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.discoveryengine.v1alpha.SearchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest 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.discoveryengine.v1alpha.SearchRequest 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
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest) + com.google.cloud.discoveryengine.v1alpha.SearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetParams(); + case 22: + return internalGetUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 11: + return internalGetMutableParams(); + case 22: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.class, com.google.cloud.discoveryengine.v1alpha.SearchRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + servingConfig_ = ""; + branch_ = ""; + query_ = ""; + imageQuery_ = null; + if (imageQueryBuilder_ != null) { + imageQueryBuilder_.dispose(); + imageQueryBuilder_ = null; + } + pageSize_ = 0; + pageToken_ = ""; + offset_ = 0; + filter_ = ""; + orderBy_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + if (facetSpecsBuilder_ == null) { + facetSpecs_ = java.util.Collections.emptyList(); + } else { + facetSpecs_ = null; + facetSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + internalGetMutableParams().clear(); + queryExpansionSpec_ = null; + if (queryExpansionSpecBuilder_ != null) { + queryExpansionSpecBuilder_.dispose(); + queryExpansionSpecBuilder_ = null; + } + spellCorrectionSpec_ = null; + if (spellCorrectionSpecBuilder_ != null) { + spellCorrectionSpecBuilder_.dispose(); + spellCorrectionSpecBuilder_ = null; + } + userPseudoId_ = ""; + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; + } + embeddingSpec_ = null; + if (embeddingSpecBuilder_ != null) { + embeddingSpecBuilder_.dispose(); + embeddingSpecBuilder_ = null; + } + rankingExpression_ = ""; + safeSearch_ = false; + internalGetMutableUserLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest result = new com.google.cloud.discoveryengine.v1alpha.SearchRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchRequest result) { + if (facetSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.facetSpecs_ = facetSpecs_; + } else { + result.facetSpecs_ = facetSpecsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.servingConfig_ = servingConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.imageQuery_ = imageQueryBuilder_ == null + ? imageQuery_ + : imageQueryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.userInfo_ = userInfoBuilder_ == null + ? userInfo_ + : userInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null + ? boostSpec_ + : boostSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.params_ = internalGetParams(); + result.params_.makeImmutable(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null + ? queryExpansionSpec_ + : queryExpansionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null + ? spellCorrectionSpec_ + : spellCorrectionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.contentSearchSpec_ = contentSearchSpecBuilder_ == null + ? contentSearchSpec_ + : contentSearchSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.embeddingSpec_ = embeddingSpecBuilder_ == null + ? embeddingSpec_ + : embeddingSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.rankingExpression_ = rankingExpression_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.safeSearch_ = safeSearch_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + } + + @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.discoveryengine.v1alpha.SearchRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchRequest.getDefaultInstance()) return this; + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasImageQuery()) { + mergeImageQuery(other.getImageQuery()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (facetSpecsBuilder_ == null) { + if (!other.facetSpecs_.isEmpty()) { + if (facetSpecs_.isEmpty()) { + facetSpecs_ = other.facetSpecs_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureFacetSpecsIsMutable(); + facetSpecs_.addAll(other.facetSpecs_); + } + onChanged(); + } + } else { + if (!other.facetSpecs_.isEmpty()) { + if (facetSpecsBuilder_.isEmpty()) { + facetSpecsBuilder_.dispose(); + facetSpecsBuilder_ = null; + facetSpecs_ = other.facetSpecs_; + bitField0_ = (bitField0_ & ~0x00000400); + facetSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFacetSpecsFieldBuilder() : null; + } else { + facetSpecsBuilder_.addAllMessages(other.facetSpecs_); + } + } + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + internalGetMutableParams().mergeFrom( + other.internalGetParams()); + bitField0_ |= 0x00001000; + if (other.hasQueryExpansionSpec()) { + mergeQueryExpansionSpec(other.getQueryExpansionSpec()); + } + if (other.hasSpellCorrectionSpec()) { + mergeSpellCorrectionSpec(other.getSpellCorrectionSpec()); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasContentSearchSpec()) { + mergeContentSearchSpec(other.getContentSearchSpec()); + } + if (other.hasEmbeddingSpec()) { + mergeEmbeddingSpec(other.getEmbeddingSpec()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.getSafeSearch() != false) { + setSafeSearch(other.getSafeSearch()); + } + internalGetMutableUserLabels().mergeFrom( + other.internalGetUserLabels()); + bitField0_ |= 0x00100000; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + servingConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: { + offset_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.parser(), + extensionRegistry); + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(m); + } else { + facetSpecsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + input.readMessage( + getBoostSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 90: { + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParams().getMutableMap().put( + params__.getKey(), params__.getValue()); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 106: { + input.readMessage( + getQueryExpansionSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 106 + case 114: { + input.readMessage( + getSpellCorrectionSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 122: { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 154: { + input.readMessage( + getImageQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 154 + case 160: { + safeSearch_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 170: { + input.readMessage( + getUserInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 170 + case 178: { + com.google.protobuf.MapEntry + userLabels__ = input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableUserLabels().getMutableMap().put( + userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00100000; + break; + } // case 178 + case 186: { + input.readMessage( + getEmbeddingSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 + case 194: { + input.readMessage( + getContentSearchSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 194 + case 210: { + rankingExpression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 210 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object servingConfig_ = ""; + /** + *
+     * Required. The resource name of the Search serving config, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+     * This field is used to identify the serving configuration name, set
+     * of models used to make the search.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the Search serving config, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+     * This field is used to identify the serving configuration name, set
+     * of models used to make the search.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + public com.google.protobuf.ByteString + getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the Search serving config, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+     * This field is used to identify the serving configuration name, set
+     * of models used to make the search.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Search serving config, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+     * This field is used to identify the serving configuration name, set
+     * of models used to make the search.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the Search serving config, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+     * This field is used to identify the serving configuration name, set
+     * of models used to make the search.
+     * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + /** + *
+     * The branch resource name, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+     *
+     * Use `default_branch` as the branch ID or leave this field empty, to search
+     * documents under the default branch.
+     * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The branch resource name, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+     *
+     * Use `default_branch` as the branch ID or leave this field empty, to search
+     * documents under the default branch.
+     * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The branch resource name, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+     *
+     * Use `default_branch` as the branch ID or leave this field empty, to search
+     * documents under the default branch.
+     * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The branch resource name, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+     *
+     * Use `default_branch` as the branch ID or leave this field empty, to search
+     * documents under the default branch.
+     * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The branch resource name, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+     *
+     * Use `default_branch` as the branch ID or leave this field empty, to search
+     * documents under the default branch.
+     * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + *
+     * Raw search query.
+     * 
+ * + * string query = 3; + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Raw search query.
+     * 
+ * + * string query = 3; + * @return The bytes for query. + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Raw search query.
+     * 
+ * + * string query = 3; + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Raw search query.
+     * 
+ * + * string query = 3; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Raw search query.
+     * 
+ * + * string query = 3; + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery imageQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder> imageQueryBuilder_; + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * @return Whether the imageQuery field is set. + */ + public boolean hasImageQuery() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * @return The imageQuery. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getImageQuery() { + if (imageQueryBuilder_ == null) { + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; + } else { + return imageQueryBuilder_.getMessage(); + } + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageQuery_ = value; + } else { + imageQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder builderForValue) { + if (imageQueryBuilder_ == null) { + imageQuery_ = builderForValue.build(); + } else { + imageQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public Builder mergeImageQuery(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + imageQuery_ != null && + imageQuery_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance()) { + getImageQueryBuilder().mergeFrom(value); + } else { + imageQuery_ = value; + } + } else { + imageQueryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public Builder clearImageQuery() { + bitField0_ = (bitField0_ & ~0x00000008); + imageQuery_ = null; + if (imageQueryBuilder_ != null) { + imageQueryBuilder_.dispose(); + imageQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder getImageQueryBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getImageQueryFieldBuilder().getBuilder(); + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder() { + if (imageQueryBuilder_ != null) { + return imageQueryBuilder_.getMessageOrBuilder(); + } else { + return imageQuery_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; + } + } + /** + *
+     * Raw image query.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder> + getImageQueryFieldBuilder() { + if (imageQueryBuilder_ == null) { + imageQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder>( + getImageQuery(), + getParentForChildren(), + isClean()); + imageQuery_ = null; + } + return imageQueryBuilder_; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+     * unspecified, defaults to a reasonable value. The maximum allowed value is
+     * 100. Values above 100 are coerced to 100.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 page_size = 4; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+     * unspecified, defaults to a reasonable value. The maximum allowed value is
+     * 100. Values above 100 are coerced to 100.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 page_size = 4; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Maximum number of
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+     * unspecified, defaults to a reasonable value. The maximum allowed value is
+     * 100. Values above 100 are coerced to 100.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 page_size = 4; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000010); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token received from a previous
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * must match the call that provided the page token. Otherwise, an
+     *  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string page_token = 5; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token received from a previous
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * must match the call that provided the page token. Otherwise, an
+     *  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string page_token = 5; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token received from a previous
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * must match the call that provided the page token. Otherwise, an
+     *  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string page_token = 5; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * A page token received from a previous
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * must match the call that provided the page token. Otherwise, an
+     *  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string page_token = 5; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * A page token received from a previous
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * must match the call that provided the page token. Otherwise, an
+     *  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string page_token = 5; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int offset_ ; + /** + *
+     * A 0-indexed integer that specifies the current offset (that is, starting
+     * result location, amongst the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
+     * API as relevant) in search results. This field is only considered if
+     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * is unset.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 offset = 6; + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; + } + /** + *
+     * A 0-indexed integer that specifies the current offset (that is, starting
+     * result location, amongst the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
+     * API as relevant) in search results. This field is only considered if
+     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * is unset.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 offset = 6; + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * A 0-indexed integer that specifies the current offset (that is, starting
+     * result location, amongst the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
+     * API as relevant) in search results. This field is only considered if
+     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * is unset.
+     *
+     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * int32 offset = 6; + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000040); + offset_ = 0; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered. Filter
+     * expression is case-sensitive.
+     *
+     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * string filter = 7; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered. Filter
+     * expression is case-sensitive.
+     *
+     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * string filter = 7; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered. Filter
+     * expression is case-sensitive.
+     *
+     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * string filter = 7; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered. Filter
+     * expression is case-sensitive.
+     *
+     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * string filter = 7; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered. Filter
+     * expression is case-sensitive.
+     *
+     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+     * 
+ * + * string filter = 7; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * The order in which documents are returned. Documents can be ordered by
+     * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * object. Leave it unset if ordered by relevance. `order_by` expression is
+     * case-sensitive.
+     *
+     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+     * 
+ * + * string order_by = 8; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The order in which documents are returned. Documents can be ordered by
+     * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * object. Leave it unset if ordered by relevance. `order_by` expression is
+     * case-sensitive.
+     *
+     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+     * 
+ * + * string order_by = 8; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The order in which documents are returned. Documents can be ordered by
+     * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * object. Leave it unset if ordered by relevance. `order_by` expression is
+     * case-sensitive.
+     *
+     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+     * 
+ * + * string order_by = 8; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + orderBy_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The order in which documents are returned. Documents can be ordered by
+     * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * object. Leave it unset if ordered by relevance. `order_by` expression is
+     * case-sensitive.
+     *
+     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+     * 
+ * + * string order_by = 8; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * The order in which documents are returned. Documents can be ordered by
+     * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+     * object. Leave it unset if ordered by relevance. `order_by` expression is
+     * case-sensitive.
+     *
+     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+     * 
+ * + * string order_by = 8; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserInfo, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder, com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder> userInfoBuilder_; + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + * @return The userInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + public Builder setUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + public Builder setUserInfo( + com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + userInfo_ != null && + userInfo_ != com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000200); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + public com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + public com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } + } + /** + *
+     * Information about the end user.
+     * Highly recommended for analytics.
+     * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * is used to deduce `device_type` for analytics.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserInfo, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder, com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserInfo, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder, com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + + private java.util.List facetSpecs_ = + java.util.Collections.emptyList(); + private void ensureFacetSpecsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + facetSpecs_ = new java.util.ArrayList(facetSpecs_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder> facetSpecsBuilder_; + + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public java.util.List getFacetSpecsList() { + if (facetSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetSpecs_); + } else { + return facetSpecsBuilder_.getMessageList(); + } + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public int getFacetSpecsCount() { + if (facetSpecsBuilder_ == null) { + return facetSpecs_.size(); + } else { + return facetSpecsBuilder_.getCount(); + } + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec getFacetSpecs(int index) { + if (facetSpecsBuilder_ == null) { + return facetSpecs_.get(index); + } else { + return facetSpecsBuilder_.getMessage(index); + } + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder setFacetSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec value) { + if (facetSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetSpecsIsMutable(); + facetSpecs_.set(index, value); + onChanged(); + } else { + facetSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder setFacetSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder builderForValue) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + facetSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder addFacetSpecs(com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec value) { + if (facetSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetSpecsIsMutable(); + facetSpecs_.add(value); + onChanged(); + } else { + facetSpecsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder addFacetSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec value) { + if (facetSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetSpecsIsMutable(); + facetSpecs_.add(index, value); + onChanged(); + } else { + facetSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder addFacetSpecs( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder builderForValue) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(builderForValue.build()); + onChanged(); + } else { + facetSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder addFacetSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder builderForValue) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + facetSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder addAllFacetSpecs( + java.lang.Iterable values) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facetSpecs_); + onChanged(); + } else { + facetSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder clearFacetSpecs() { + if (facetSpecsBuilder_ == null) { + facetSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + facetSpecsBuilder_.clear(); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public Builder removeFacetSpecs(int index) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.remove(index); + onChanged(); + } else { + facetSpecsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder getFacetSpecsBuilder( + int index) { + return getFacetSpecsFieldBuilder().getBuilder(index); + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( + int index) { + if (facetSpecsBuilder_ == null) { + return facetSpecs_.get(index); } else { + return facetSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public java.util.List + getFacetSpecsOrBuilderList() { + if (facetSpecsBuilder_ != null) { + return facetSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetSpecs_); + } + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder addFacetSpecsBuilder() { + return getFacetSpecsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.getDefaultInstance()); + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder addFacetSpecsBuilder( + int index) { + return getFacetSpecsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.getDefaultInstance()); + } + /** + *
+     * Facet specifications for faceted search. If empty, no facets are returned.
+     *
+     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+     * error is returned.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + public java.util.List + getFacetSpecsBuilderList() { + return getFacetSpecsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder> + getFacetSpecsFieldBuilder() { + if (facetSpecsBuilder_ == null) { + facetSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder>( + facetSpecs_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + facetSpecs_ = null; + } + return facetSpecsBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder> boostSpecBuilder_; + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder setBoostSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder mergeBoostSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + boostSpec_ != null && + boostSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000800); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getBoostSpecFieldBuilder().getBuilder(); + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; + } + } + /** + *
+     * Boost specification to boost certain documents.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder> + getBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), + getParentForChildren(), + isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> params_; + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + private com.google.protobuf.MapField + internalGetMutableParams() { + if (params_ == null) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + if (!params_.isMutable()) { + params_ = params_.copy(); + } + bitField0_ |= 0x00001000; + onChanged(); + return params_; + } + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParams().getMap().containsKey(key); + } + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public /* nullable */ +com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearParams() { + bitField0_ = (bitField0_ & ~0x00001000); + internalGetMutableParams().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParams() { + bitField0_ |= 0x00001000; + return internalGetMutableParams().getMutableMap(); + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + 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"); } + internalGetMutableParams().getMutableMap() + .put(key, value); + bitField0_ |= 0x00001000; + return this; + } + /** + *
+     * Additional search parameters.
+     *
+     * For public website search only, supported values are:
+     *
+     * * `user_country_code`: string. Default empty. If set to non-empty, results
+     *    are restricted or boosted based on the location provided.
+     * * `search_type`: double. Default empty. Enables non-webpage searching
+     *   depending on the value. The only valid non-default value is 1,
+     *   which enables image searching.
+     * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + public Builder putAllParams( + java.util.Map values) { + internalGetMutableParams().getMutableMap() + .putAll(values); + bitField0_ |= 0x00001000; + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec queryExpansionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder> queryExpansionSpecBuilder_; + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * @return Whether the queryExpansionSpec field is set. + */ + public boolean hasQueryExpansionSpec() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * @return The queryExpansionSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec getQueryExpansionSpec() { + if (queryExpansionSpecBuilder_ == null) { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; + } else { + return queryExpansionSpecBuilder_.getMessage(); + } + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + public Builder setQueryExpansionSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec value) { + if (queryExpansionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryExpansionSpec_ = value; + } else { + queryExpansionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + public Builder setQueryExpansionSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder builderForValue) { + if (queryExpansionSpecBuilder_ == null) { + queryExpansionSpec_ = builderForValue.build(); + } else { + queryExpansionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + public Builder mergeQueryExpansionSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec value) { + if (queryExpansionSpecBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + queryExpansionSpec_ != null && + queryExpansionSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance()) { + getQueryExpansionSpecBuilder().mergeFrom(value); + } else { + queryExpansionSpec_ = value; + } + } else { + queryExpansionSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + public Builder clearQueryExpansionSpec() { + bitField0_ = (bitField0_ & ~0x00002000); + queryExpansionSpec_ = null; + if (queryExpansionSpecBuilder_ != null) { + queryExpansionSpecBuilder_.dispose(); + queryExpansionSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getQueryExpansionSpecFieldBuilder().getBuilder(); + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder() { + if (queryExpansionSpecBuilder_ != null) { + return queryExpansionSpecBuilder_.getMessageOrBuilder(); + } else { + return queryExpansionSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; + } + } + /** + *
+     * The query expansion specification that specifies the conditions under which
+     * query expansion occurs.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder> + getQueryExpansionSpecFieldBuilder() { + if (queryExpansionSpecBuilder_ == null) { + queryExpansionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder>( + getQueryExpansionSpec(), + getParentForChildren(), + isClean()); + queryExpansionSpec_ = null; + } + return queryExpansionSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spellCorrectionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder> spellCorrectionSpecBuilder_; + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * @return Whether the spellCorrectionSpec field is set. + */ + public boolean hasSpellCorrectionSpec() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * @return The spellCorrectionSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec() { + if (spellCorrectionSpecBuilder_ == null) { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; + } else { + return spellCorrectionSpecBuilder_.getMessage(); + } + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + public Builder setSpellCorrectionSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec value) { + if (spellCorrectionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrectionSpec_ = value; + } else { + spellCorrectionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + public Builder setSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder builderForValue) { + if (spellCorrectionSpecBuilder_ == null) { + spellCorrectionSpec_ = builderForValue.build(); + } else { + spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + public Builder mergeSpellCorrectionSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec value) { + if (spellCorrectionSpecBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + spellCorrectionSpec_ != null && + spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance()) { + getSpellCorrectionSpecBuilder().mergeFrom(value); + } else { + spellCorrectionSpec_ = value; + } + } else { + spellCorrectionSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + public Builder clearSpellCorrectionSpec() { + bitField0_ = (bitField0_ & ~0x00004000); + spellCorrectionSpec_ = null; + if (spellCorrectionSpecBuilder_ != null) { + spellCorrectionSpecBuilder_.dispose(); + spellCorrectionSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getSpellCorrectionSpecFieldBuilder().getBuilder(); + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder() { + if (spellCorrectionSpecBuilder_ != null) { + return spellCorrectionSpecBuilder_.getMessageOrBuilder(); + } else { + return spellCorrectionSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; + } + } + /** + *
+     * The spell correction specification that specifies the mode under
+     * which spell correction takes effect.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder> + getSpellCorrectionSpecFieldBuilder() { + if (spellCorrectionSpecBuilder_ == null) { + spellCorrectionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder>( + getSpellCorrectionSpec(), + getParentForChildren(), + isClean()); + spellCorrectionSpec_ = null; + } + return spellCorrectionSpecBuilder_; + } + + private java.lang.Object userPseudoId_ = ""; + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string user_pseudo_id = 15; + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string user_pseudo_id = 15; + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string user_pseudo_id = 15; + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userPseudoId_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string user_pseudo_id = 15; + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking visitors. For example, this could be
+     * implemented with an HTTP cookie, which should be able to uniquely identify
+     * a visitor on a single device. This unique identifier should not change if
+     * the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * and
+     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+     * 
+ * + * string user_pseudo_id = 15; + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec contentSearchSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder> contentSearchSpecBuilder_; + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + * @return Whether the contentSearchSpec field is set. + */ + public boolean hasContentSearchSpec() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + * @return The contentSearchSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getContentSearchSpec() { + if (contentSearchSpecBuilder_ == null) { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; + } else { + return contentSearchSpecBuilder_.getMessage(); + } + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + public Builder setContentSearchSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentSearchSpec_ = value; + } else { + contentSearchSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder builderForValue) { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpec_ = builderForValue.build(); + } else { + contentSearchSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + public Builder mergeContentSearchSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + contentSearchSpec_ != null && + contentSearchSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance()) { + getContentSearchSpecBuilder().mergeFrom(value); + } else { + contentSearchSpec_ = value; + } + } else { + contentSearchSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + public Builder clearContentSearchSpec() { + bitField0_ = (bitField0_ & ~0x00010000); + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getContentSearchSpecFieldBuilder().getBuilder(); + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder() { + if (contentSearchSpecBuilder_ != null) { + return contentSearchSpecBuilder_.getMessageOrBuilder(); + } else { + return contentSearchSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; + } + } + /** + *
+     * A specification for configuring the behavior of content search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder> + getContentSearchSpecFieldBuilder() { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder>( + getContentSearchSpec(), + getParentForChildren(), + isClean()); + contentSearchSpec_ = null; + } + return contentSearchSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embeddingSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder> embeddingSpecBuilder_; + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + * @return Whether the embeddingSpec field is set. + */ + public boolean hasEmbeddingSpec() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + * @return The embeddingSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getEmbeddingSpec() { + if (embeddingSpecBuilder_ == null) { + return embeddingSpec_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; + } else { + return embeddingSpecBuilder_.getMessage(); + } + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + public Builder setEmbeddingSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec value) { + if (embeddingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + embeddingSpec_ = value; + } else { + embeddingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + public Builder setEmbeddingSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder builderForValue) { + if (embeddingSpecBuilder_ == null) { + embeddingSpec_ = builderForValue.build(); + } else { + embeddingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + public Builder mergeEmbeddingSpec(com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec value) { + if (embeddingSpecBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + embeddingSpec_ != null && + embeddingSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance()) { + getEmbeddingSpecBuilder().mergeFrom(value); + } else { + embeddingSpec_ = value; + } + } else { + embeddingSpecBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + public Builder clearEmbeddingSpec() { + bitField0_ = (bitField0_ & ~0x00020000); + embeddingSpec_ = null; + if (embeddingSpecBuilder_ != null) { + embeddingSpecBuilder_.dispose(); + embeddingSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder getEmbeddingSpecBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getEmbeddingSpecFieldBuilder().getBuilder(); + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder getEmbeddingSpecOrBuilder() { + if (embeddingSpecBuilder_ != null) { + return embeddingSpecBuilder_.getMessageOrBuilder(); + } else { + return embeddingSpec_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; + } + } + /** + *
+     * Uses the provided embedding to do additional semantic document retrieval.
+     * The retrieval is based on the dot product of
+     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+     * embedding that is provided in
+     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+     *
+     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+     * provided, it will use [ServingConfig.embedding_config.field_paths][].
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder> + getEmbeddingSpecFieldBuilder() { + if (embeddingSpecBuilder_ == null) { + embeddingSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder>( + getEmbeddingSpec(), + getParentForChildren(), + isClean()); + embeddingSpec_ = null; + } + return embeddingSpecBuilder_; + } + + private java.lang.Object rankingExpression_ = ""; + /** + *
+     * The ranking expression controls the customized ranking on retrieval
+     * documents. This overrides
+     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+     * The ranking expression is a single function or multiple functions that are
+     * joint by "+".
+     *   * ranking_expression = function, { " + ", function };
+     * Supported functions:
+     *   * double * relevance_score
+     *   * double * dotProduct(embedding_field_path)
+     * Function variables:
+     *   `relevance_score`: pre-defined keywords, used for measure relevance
+     *   between query and document.
+     *   `embedding_field_path`: the document embedding field
+     *   used with query embedding vector.
+     *   `dotProduct`: embedding function between embedding_field_path and query
+     *   embedding vector.
+     *
+     *  Example ranking expression:
+     *    If document has an embedding field doc_embedding, the ranking expression
+     *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+     * 
+ * + * string ranking_expression = 26; + * @return The rankingExpression. + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ranking expression controls the customized ranking on retrieval
+     * documents. This overrides
+     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+     * The ranking expression is a single function or multiple functions that are
+     * joint by "+".
+     *   * ranking_expression = function, { " + ", function };
+     * Supported functions:
+     *   * double * relevance_score
+     *   * double * dotProduct(embedding_field_path)
+     * Function variables:
+     *   `relevance_score`: pre-defined keywords, used for measure relevance
+     *   between query and document.
+     *   `embedding_field_path`: the document embedding field
+     *   used with query embedding vector.
+     *   `dotProduct`: embedding function between embedding_field_path and query
+     *   embedding vector.
+     *
+     *  Example ranking expression:
+     *    If document has an embedding field doc_embedding, the ranking expression
+     *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+     * 
+ * + * string ranking_expression = 26; + * @return The bytes for rankingExpression. + */ + public com.google.protobuf.ByteString + getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ranking expression controls the customized ranking on retrieval
+     * documents. This overrides
+     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+     * The ranking expression is a single function or multiple functions that are
+     * joint by "+".
+     *   * ranking_expression = function, { " + ", function };
+     * Supported functions:
+     *   * double * relevance_score
+     *   * double * dotProduct(embedding_field_path)
+     * Function variables:
+     *   `relevance_score`: pre-defined keywords, used for measure relevance
+     *   between query and document.
+     *   `embedding_field_path`: the document embedding field
+     *   used with query embedding vector.
+     *   `dotProduct`: embedding function between embedding_field_path and query
+     *   embedding vector.
+     *
+     *  Example ranking expression:
+     *    If document has an embedding field doc_embedding, the ranking expression
+     *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+     * 
+ * + * string ranking_expression = 26; + * @param value The rankingExpression to set. + * @return This builder for chaining. + */ + public Builder setRankingExpression( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + rankingExpression_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * The ranking expression controls the customized ranking on retrieval
+     * documents. This overrides
+     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+     * The ranking expression is a single function or multiple functions that are
+     * joint by "+".
+     *   * ranking_expression = function, { " + ", function };
+     * Supported functions:
+     *   * double * relevance_score
+     *   * double * dotProduct(embedding_field_path)
+     * Function variables:
+     *   `relevance_score`: pre-defined keywords, used for measure relevance
+     *   between query and document.
+     *   `embedding_field_path`: the document embedding field
+     *   used with query embedding vector.
+     *   `dotProduct`: embedding function between embedding_field_path and query
+     *   embedding vector.
+     *
+     *  Example ranking expression:
+     *    If document has an embedding field doc_embedding, the ranking expression
+     *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+     * 
+ * + * string ranking_expression = 26; + * @return This builder for chaining. + */ + public Builder clearRankingExpression() { + rankingExpression_ = getDefaultInstance().getRankingExpression(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + *
+     * The ranking expression controls the customized ranking on retrieval
+     * documents. This overrides
+     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+     * The ranking expression is a single function or multiple functions that are
+     * joint by "+".
+     *   * ranking_expression = function, { " + ", function };
+     * Supported functions:
+     *   * double * relevance_score
+     *   * double * dotProduct(embedding_field_path)
+     * Function variables:
+     *   `relevance_score`: pre-defined keywords, used for measure relevance
+     *   between query and document.
+     *   `embedding_field_path`: the document embedding field
+     *   used with query embedding vector.
+     *   `dotProduct`: embedding function between embedding_field_path and query
+     *   embedding vector.
+     *
+     *  Example ranking expression:
+     *    If document has an embedding field doc_embedding, the ranking expression
+     *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+     * 
+ * + * string ranking_expression = 26; + * @param value The bytes for rankingExpression to set. + * @return This builder for chaining. + */ + public Builder setRankingExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + rankingExpression_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private boolean safeSearch_ ; + /** + *
+     * Whether to turn on safe search. This is only supported for
+     * website search.
+     * 
+ * + * bool safe_search = 20; + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + /** + *
+     * Whether to turn on safe search. This is only supported for
+     * website search.
+     * 
+ * + * bool safe_search = 20; + * @param value The safeSearch to set. + * @return This builder for chaining. + */ + public Builder setSafeSearch(boolean value) { + + safeSearch_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Whether to turn on safe search. This is only supported for
+     * website search.
+     * 
+ * + * bool safe_search = 20; + * @return This builder for chaining. + */ + public Builder clearSafeSearch() { + bitField0_ = (bitField0_ & ~0x00080000); + safeSearch_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00100000; + onChanged(); + return userLabels_; + } + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public boolean containsUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetUserLabels().getMap().containsKey(key); + } + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00100000); + internalGetMutableUserLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + public Builder removeUserLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableUserLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUserLabels() { + bitField0_ |= 0x00100000; + return internalGetMutableUserLabels().getMutableMap(); + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + public Builder putUserLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00100000; + return this; + } + /** + *
+     * The user labels applied to a resource must meet the following requirements:
+     *
+     * * Each resource can have multiple labels, up to a maximum of 64.
+     * * Each label must be a key-value pair.
+     * * Keys have a minimum length of 1 character and a maximum length of 63
+     *   characters and cannot be empty. Values can be empty and have a maximum
+     *   length of 63 characters.
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     *   underscores, and dashes. All characters must use UTF-8 encoding, and
+     *   international characters are allowed.
+     * * The key portion of a label must be unique. However, you can use the same
+     *   key with multiple resources.
+     * * Keys must start with a lowercase letter or international character.
+     *
+     * See [Google Cloud
+     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * for more details.
+     * 
+ * + * map<string, string> user_labels = 22; + */ + public Builder putAllUserLabels( + java.util.Map values) { + internalGetMutableUserLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00100000; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java new file mode 100644 index 000000000000..403c4cbd87ab --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java @@ -0,0 +1,834 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface SearchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Search serving config, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+   * This field is used to identify the serving configuration name, set
+   * of models used to make the search.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The servingConfig. + */ + java.lang.String getServingConfig(); + /** + *
+   * Required. The resource name of the Search serving config, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
+   * This field is used to identify the serving configuration name, set
+   * of models used to make the search.
+   * 
+ * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for servingConfig. + */ + com.google.protobuf.ByteString + getServingConfigBytes(); + + /** + *
+   * The branch resource name, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+   *
+   * Use `default_branch` as the branch ID or leave this field empty, to search
+   * documents under the default branch.
+   * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return The branch. + */ + java.lang.String getBranch(); + /** + *
+   * The branch resource name, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
+   *
+   * Use `default_branch` as the branch ID or leave this field empty, to search
+   * documents under the default branch.
+   * 
+ * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for branch. + */ + com.google.protobuf.ByteString + getBranchBytes(); + + /** + *
+   * Raw search query.
+   * 
+ * + * string query = 3; + * @return The query. + */ + java.lang.String getQuery(); + /** + *
+   * Raw search query.
+   * 
+ * + * string query = 3; + * @return The bytes for query. + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + *
+   * Raw image query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * @return Whether the imageQuery field is set. + */ + boolean hasImageQuery(); + /** + *
+   * Raw image query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * @return The imageQuery. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getImageQuery(); + /** + *
+   * Raw image query.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder(); + + /** + *
+   * Maximum number of
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
+   * unspecified, defaults to a reasonable value. The maximum allowed value is
+   * 100. Values above 100 are coerced to 100.
+   *
+   * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * int32 page_size = 4; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token received from a previous
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * must match the call that provided the page token. Otherwise, an
+   *  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string page_token = 5; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A page token received from a previous
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * must match the call that provided the page token. Otherwise, an
+   *  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string page_token = 5; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * A 0-indexed integer that specifies the current offset (that is, starting
+   * result location, amongst the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
+   * API as relevant) in search results. This field is only considered if
+   * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+   * is unset.
+   *
+   * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * int32 offset = 6; + * @return The offset. + */ + int getOffset(); + + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered. Filter
+   * expression is case-sensitive.
+   *
+   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * string filter = 7; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered. Filter
+   * expression is case-sensitive.
+   *
+   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
+   * 
+ * + * string filter = 7; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * The order in which documents are returned. Documents can be ordered by
+   * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * object. Leave it unset if ordered by relevance. `order_by` expression is
+   * case-sensitive.
+   *
+   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+   * 
+ * + * string order_by = 8; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * The order in which documents are returned. Documents can be ordered by
+   * a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
+   * object. Leave it unset if ordered by relevance. `order_by` expression is
+   * case-sensitive.
+   *
+   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
+   * 
+ * + * string order_by = 8; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); + + /** + *
+   * Information about the end user.
+   * Highly recommended for analytics.
+   * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * is used to deduce `device_type` for analytics.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + /** + *
+   * Information about the end user.
+   * Highly recommended for analytics.
+   * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * is used to deduce `device_type` for analytics.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + * @return The userInfo. + */ + com.google.cloud.discoveryengine.v1alpha.UserInfo getUserInfo(); + /** + *
+   * Information about the end user.
+   * Highly recommended for analytics.
+   * [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * is used to deduce `device_type` for analytics.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; + */ + com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrBuilder(); + + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + java.util.List + getFacetSpecsList(); + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec getFacetSpecs(int index); + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + int getFacetSpecsCount(); + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + java.util.List + getFacetSpecsOrBuilderList(); + /** + *
+   * Facet specifications for faceted search. If empty, no facets are returned.
+   *
+   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
+   * error is returned.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec facet_specs = 9; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( + int index); + + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * @return The boostSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getBoostSpec(); + /** + *
+   * Boost specification to boost certain documents.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); + + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + int getParamsCount(); + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + boolean containsParams( + java.lang.String key); + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParams(); + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + java.util.Map + getParamsMap(); + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + /* nullable */ +com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ +com.google.protobuf.Value defaultValue); + /** + *
+   * Additional search parameters.
+   *
+   * For public website search only, supported values are:
+   *
+   * * `user_country_code`: string. Default empty. If set to non-empty, results
+   *    are restricted or boosted based on the location provided.
+   * * `search_type`: double. Default empty. Enables non-webpage searching
+   *   depending on the value. The only valid non-default value is 1,
+   *   which enables image searching.
+   * 
+ * + * map<string, .google.protobuf.Value> params = 11; + */ + com.google.protobuf.Value getParamsOrThrow( + java.lang.String key); + + /** + *
+   * The query expansion specification that specifies the conditions under which
+   * query expansion occurs.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * @return Whether the queryExpansionSpec field is set. + */ + boolean hasQueryExpansionSpec(); + /** + *
+   * The query expansion specification that specifies the conditions under which
+   * query expansion occurs.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * @return The queryExpansionSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec getQueryExpansionSpec(); + /** + *
+   * The query expansion specification that specifies the conditions under which
+   * query expansion occurs.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder(); + + /** + *
+   * The spell correction specification that specifies the mode under
+   * which spell correction takes effect.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * @return Whether the spellCorrectionSpec field is set. + */ + boolean hasSpellCorrectionSpec(); + /** + *
+   * The spell correction specification that specifies the mode under
+   * which spell correction takes effect.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * @return The spellCorrectionSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec(); + /** + *
+   * The spell correction specification that specifies the mode under
+   * which spell correction takes effect.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder(); + + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string user_pseudo_id = 15; + * @return The userPseudoId. + */ + java.lang.String getUserPseudoId(); + /** + *
+   * A unique identifier for tracking visitors. For example, this could be
+   * implemented with an HTTP cookie, which should be able to uniquely identify
+   * a visitor on a single device. This unique identifier should not change if
+   * the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * and
+   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id]
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
+   * 
+ * + * string user_pseudo_id = 15; + * @return The bytes for userPseudoId. + */ + com.google.protobuf.ByteString + getUserPseudoIdBytes(); + + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + * @return Whether the contentSearchSpec field is set. + */ + boolean hasContentSearchSpec(); + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + * @return The contentSearchSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getContentSearchSpec(); + /** + *
+   * A specification for configuring the behavior of content search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 24; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder(); + + /** + *
+   * Uses the provided embedding to do additional semantic document retrieval.
+   * The retrieval is based on the dot product of
+   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+   * embedding that is provided in
+   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+   *
+   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+   * provided, it will use [ServingConfig.embedding_config.field_paths][].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + * @return Whether the embeddingSpec field is set. + */ + boolean hasEmbeddingSpec(); + /** + *
+   * Uses the provided embedding to do additional semantic document retrieval.
+   * The retrieval is based on the dot product of
+   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+   * embedding that is provided in
+   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+   *
+   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+   * provided, it will use [ServingConfig.embedding_config.field_paths][].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + * @return The embeddingSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getEmbeddingSpec(); + /** + *
+   * Uses the provided embedding to do additional semantic document retrieval.
+   * The retrieval is based on the dot product of
+   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
+   * embedding that is provided in
+   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
+   *
+   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
+   * provided, it will use [ServingConfig.embedding_config.field_paths][].
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpecOrBuilder getEmbeddingSpecOrBuilder(); + + /** + *
+   * The ranking expression controls the customized ranking on retrieval
+   * documents. This overrides
+   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+   * The ranking expression is a single function or multiple functions that are
+   * joint by "+".
+   *   * ranking_expression = function, { " + ", function };
+   * Supported functions:
+   *   * double * relevance_score
+   *   * double * dotProduct(embedding_field_path)
+   * Function variables:
+   *   `relevance_score`: pre-defined keywords, used for measure relevance
+   *   between query and document.
+   *   `embedding_field_path`: the document embedding field
+   *   used with query embedding vector.
+   *   `dotProduct`: embedding function between embedding_field_path and query
+   *   embedding vector.
+   *
+   *  Example ranking expression:
+   *    If document has an embedding field doc_embedding, the ranking expression
+   *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+   * 
+ * + * string ranking_expression = 26; + * @return The rankingExpression. + */ + java.lang.String getRankingExpression(); + /** + *
+   * The ranking expression controls the customized ranking on retrieval
+   * documents. This overrides
+   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression].
+   * The ranking expression is a single function or multiple functions that are
+   * joint by "+".
+   *   * ranking_expression = function, { " + ", function };
+   * Supported functions:
+   *   * double * relevance_score
+   *   * double * dotProduct(embedding_field_path)
+   * Function variables:
+   *   `relevance_score`: pre-defined keywords, used for measure relevance
+   *   between query and document.
+   *   `embedding_field_path`: the document embedding field
+   *   used with query embedding vector.
+   *   `dotProduct`: embedding function between embedding_field_path and query
+   *   embedding vector.
+   *
+   *  Example ranking expression:
+   *    If document has an embedding field doc_embedding, the ranking expression
+   *    could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
+   * 
+ * + * string ranking_expression = 26; + * @return The bytes for rankingExpression. + */ + com.google.protobuf.ByteString + getRankingExpressionBytes(); + + /** + *
+   * Whether to turn on safe search. This is only supported for
+   * website search.
+   * 
+ * + * bool safe_search = 20; + * @return The safeSearch. + */ + boolean getSafeSearch(); + + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + int getUserLabelsCount(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + boolean containsUserLabels( + java.lang.String key); + /** + * Use {@link #getUserLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUserLabels(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + java.util.Map + getUserLabelsMap(); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + /* nullable */ +java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * The user labels applied to a resource must meet the following requirements:
+   *
+   * * Each resource can have multiple labels, up to a maximum of 64.
+   * * Each label must be a key-value pair.
+   * * Keys have a minimum length of 1 character and a maximum length of 63
+   *   characters and cannot be empty. Values can be empty and have a maximum
+   *   length of 63 characters.
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   *   underscores, and dashes. All characters must use UTF-8 encoding, and
+   *   international characters are allowed.
+   * * The key portion of a label must be unique. However, you can use the same
+   *   key with multiple resources.
+   * * Keys must start with a lowercase letter or international character.
+   *
+   * See [Google Cloud
+   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * for more details.
+   * 
+ * + * map<string, string> user_labels = 22; + */ + java.lang.String getUserLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java new file mode 100644 index 000000000000..915be0fafb71 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java @@ -0,0 +1,12868 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Response message for
+ * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse} + */ +public final class SearchResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse) + SearchResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchResponse.newBuilder() to construct. + private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchResponse() { + results_ = java.util.Collections.emptyList(); + facets_ = java.util.Collections.emptyList(); + attributionToken_ = ""; + redirectUri_ = ""; + nextPageToken_ = ""; + correctedQuery_ = ""; + appliedControls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + geoSearchDebugInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Builder.class); + } + + public interface SearchResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+     * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ * + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+     * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * The document data snippet in the search response. Only fields that are
+     * marked as retrievable are populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return Whether the document field is set. + */ + boolean hasDocument(); + /** + *
+     * The document data snippet in the search response. Only fields that are
+     * marked as retrievable are populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return The document. + */ + com.google.cloud.discoveryengine.v1alpha.Document getDocument(); + /** + *
+     * The document data snippet in the search response. Only fields that are
+     * marked as retrievable are populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder(); + + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + int getModelScoresCount(); + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + boolean containsModelScores( + java.lang.String key); + /** + * Use {@link #getModelScoresMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getModelScores(); + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + java.util.Map + getModelScoresMap(); + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.DoubleList defaultValue); + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrThrow( + java.lang.String key); + } + /** + *
+   * Represents the search results.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult} + */ + public static final class SearchResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult) + SearchResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchResult.newBuilder() to construct. + private SearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SearchResult() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetModelScores(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+     * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ * + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + *
+     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+     * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.Document document_; + /** + *
+     * The document data snippet in the search response. Only fields that are
+     * marked as retrievable are populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return document_ != null; + } + /** + *
+     * The document data snippet in the search response. Only fields that are
+     * marked as retrievable are populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return The document. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + /** + *
+     * The document data snippet in the search response. Only fields that are
+     * marked as retrievable are populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + + public static final int MODEL_SCORES_FIELD_NUMBER = 4; + private static final class ModelScoresDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1alpha.DoubleList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1alpha.DoubleList.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1alpha.DoubleList> modelScores_; + private com.google.protobuf.MapField + internalGetModelScores() { + if (modelScores_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelScoresDefaultEntryHolder.defaultEntry); + } + return modelScores_; + } + public int getModelScoresCount() { + return internalGetModelScores().getMap().size(); + } + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public boolean containsModelScores( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetModelScores().getMap().containsKey(key); + } + /** + * Use {@link #getModelScoresMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelScores() { + return getModelScoresMap(); + } + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public java.util.Map getModelScoresMap() { + return internalGetModelScores().getMap(); + } + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public /* nullable */ +com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.DoubleList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetModelScores().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Google provided available scores.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetModelScores().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (document_ != null) { + output.writeMessage(2, getDocument()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModelScores(), + ModelScoresDefaultEntryHolder.defaultEntry, + 4); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (document_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); + } + for (java.util.Map.Entry entry + : internalGetModelScores().getMap().entrySet()) { + com.google.protobuf.MapEntry + modelScores__ = ModelScoresDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, modelScores__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (!internalGetModelScores().equals( + other.internalGetModelScores())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (!internalGetModelScores().getMap().isEmpty()) { + hash = (37 * hash) + MODEL_SCORES_FIELD_NUMBER; + hash = (53 * hash) + internalGetModelScores().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult 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.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult 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.discoveryengine.v1alpha.SearchResponse.SearchResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult 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.discoveryengine.v1alpha.SearchResponse.SearchResult 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; + } + /** + *
+     * Represents the search results.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetModelScores(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableModelScores(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + internalGetMutableModelScores().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelScores_ = internalGetModelScores(); + result.modelScores_.makeImmutable(); + } + } + + @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.discoveryengine.v1alpha.SearchResponse.SearchResult) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + internalGetMutableModelScores().mergeFrom( + other.internalGetModelScores()); + bitField0_ |= 0x00000004; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + com.google.protobuf.MapEntry + modelScores__ = input.readMessage( + ModelScoresDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModelScores().getMutableMap().put( + modelScores__.getKey(), modelScores__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+       * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+       * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+       * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+       * 
+ * + * string id = 1; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+       * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+       * 
+ * + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+       * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+       * 
+ * + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the
+       * searched [Document][google.cloud.discoveryengine.v1alpha.Document].
+       * 
+ * + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Document document_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> documentBuilder_; + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + * @return The document. + */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } else { + return documentBuilder_.getMessage(); + } + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000002); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocumentFieldBuilder().getBuilder(); + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null ? + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + } + /** + *
+       * The document data snippet in the search response. Only fields that are
+       * marked as retrievable are populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> + getDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); + document_ = null; + } + return documentBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1alpha.DoubleList> modelScores_; + private com.google.protobuf.MapField + internalGetModelScores() { + if (modelScores_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelScoresDefaultEntryHolder.defaultEntry); + } + return modelScores_; + } + private com.google.protobuf.MapField + internalGetMutableModelScores() { + if (modelScores_ == null) { + modelScores_ = com.google.protobuf.MapField.newMapField( + ModelScoresDefaultEntryHolder.defaultEntry); + } + if (!modelScores_.isMutable()) { + modelScores_ = modelScores_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return modelScores_; + } + public int getModelScoresCount() { + return internalGetModelScores().getMap().size(); + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public boolean containsModelScores( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetModelScores().getMap().containsKey(key); + } + /** + * Use {@link #getModelScoresMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelScores() { + return getModelScoresMap(); + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public java.util.Map getModelScoresMap() { + return internalGetModelScores().getMap(); + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public /* nullable */ +com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.DoubleList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetModelScores().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetModelScores().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearModelScores() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableModelScores().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + public Builder removeModelScores( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableModelScores().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableModelScores() { + bitField0_ |= 0x00000004; + return internalGetMutableModelScores().getMutableMap(); + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + public Builder putModelScores( + java.lang.String key, + com.google.cloud.discoveryengine.v1alpha.DoubleList value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableModelScores().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Google provided available scores.
+       * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.DoubleList> model_scores = 4; + */ + public Builder putAllModelScores( + java.util.Map values) { + internalGetMutableModelScores().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000004; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FacetOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The key for this facet. E.g., "colors" or "price". It matches
+     * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+     * 
+ * + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + *
+     * The key for this facet. E.g., "colors" or "price". It matches
+     * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+     * 
+ * + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + java.util.List + getValuesList(); + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue getValues(int index); + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + int getValuesCount(); + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + java.util.List + getValuesOrBuilderList(); + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index); + + /** + *
+     * Whether the facet is dynamically generated.
+     * 
+ * + * bool dynamic_facet = 3; + * @return The dynamicFacet. + */ + boolean getDynamicFacet(); + } + /** + *
+   * A facet result.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Facet} + */ + public static final class Facet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet) + FacetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Facet.newBuilder() to construct. + private Facet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Facet() { + key_ = ""; + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Facet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder.class); + } + + public interface FacetValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Text value of a facet, such as "Black" for facet "colors".
+       * 
+ * + * string value = 1; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + *
+       * Text value of a facet, such as "Black" for facet "colors".
+       * 
+ * + * string value = 1; + * @return The value. + */ + java.lang.String getValue(); + /** + *
+       * Text value of a facet, such as "Black" for facet "colors".
+       * 
+ * + * string value = 1; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+       * Interval value for a facet, such as [10, 20) for facet "price". It
+       * matches
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + * @return Whether the interval field is set. + */ + boolean hasInterval(); + /** + *
+       * Interval value for a facet, such as [10, 20) for facet "price". It
+       * matches
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + * @return The interval. + */ + com.google.cloud.discoveryengine.v1alpha.Interval getInterval(); + /** + *
+       * Interval value for a facet, such as [10, 20) for facet "price". It
+       * matches
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder getIntervalOrBuilder(); + + /** + *
+       * Number of items that have this facet value.
+       * 
+ * + * int64 count = 3; + * @return The count. + */ + long getCount(); + + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase(); + } + /** + *
+     * A facet value which contains value names and their count.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue} + */ + public static final class FacetValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) + FacetValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetValue.newBuilder() to construct. + private FacetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FacetValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FacetValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder.class); + } + + private int facetValueCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object facetValue_; + public enum FacetValueCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE(1), + INTERVAL(2), + FACETVALUE_NOT_SET(0); + private final int value; + private FacetValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FacetValueCase valueOf(int value) { + return forNumber(value); + } + + public static FacetValueCase forNumber(int value) { + switch (value) { + case 1: return VALUE; + case 2: return INTERVAL; + case 0: return FACETVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public FacetValueCase + getFacetValueCase() { + return FacetValueCase.forNumber( + facetValueCase_); + } + + public static final int VALUE_FIELD_NUMBER = 1; + /** + *
+       * Text value of a facet, such as "Black" for facet "colors".
+       * 
+ * + * string value = 1; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return facetValueCase_ == 1; + } + /** + *
+       * Text value of a facet, such as "Black" for facet "colors".
+       * 
+ * + * string value = 1; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = ""; + if (facetValueCase_ == 1) { + ref = facetValue_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (facetValueCase_ == 1) { + facetValue_ = s; + } + return s; + } + } + /** + *
+       * Text value of a facet, such as "Black" for facet "colors".
+       * 
+ * + * string value = 1; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = ""; + if (facetValueCase_ == 1) { + ref = facetValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (facetValueCase_ == 1) { + facetValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERVAL_FIELD_NUMBER = 2; + /** + *
+       * Interval value for a facet, such as [10, 20) for facet "price". It
+       * matches
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return facetValueCase_ == 2; + } + /** + *
+       * Interval value for a facet, such as [10, 20) for facet "price". It
+       * matches
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + * @return The interval. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval getInterval() { + if (facetValueCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_; + } + return com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } + /** + *
+       * Interval value for a facet, such as [10, 20) for facet "price". It
+       * matches
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder getIntervalOrBuilder() { + if (facetValueCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_; + } + return com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } + + public static final int COUNT_FIELD_NUMBER = 3; + private long count_ = 0L; + /** + *
+       * Number of items that have this facet value.
+       * 
+ * + * int64 count = 3; + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + 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 (facetValueCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, facetValue_); + } + if (facetValueCase_ == 2) { + output.writeMessage(2, (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_); + } + if (count_ != 0L) { + output.writeInt64(3, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (facetValueCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, facetValue_); + } + if (facetValueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, count_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) obj; + + if (getCount() + != other.getCount()) return false; + if (!getFacetValueCase().equals(other.getFacetValueCase())) return false; + switch (facetValueCase_) { + case 1: + if (!getValue() + .equals(other.getValue())) return false; + break; + case 2: + if (!getInterval() + .equals(other.getInterval())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + switch (facetValueCase_) { + case 1: + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + break; + case 2: + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue 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.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue 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.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue 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.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * A facet value which contains value names and their count.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (intervalBuilder_ != null) { + intervalBuilder_.clear(); + } + count_ = 0L; + facetValueCase_ = 0; + facetValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.count_ = count_; + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue result) { + result.facetValueCase_ = facetValueCase_; + result.facetValue_ = this.facetValue_; + if (facetValueCase_ == 2 && + intervalBuilder_ != null) { + result.facetValue_ = intervalBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.getDefaultInstance()) return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + switch (other.getFacetValueCase()) { + case VALUE: { + facetValueCase_ = 1; + facetValue_ = other.facetValue_; + onChanged(); + break; + } + case INTERVAL: { + mergeInterval(other.getInterval()); + break; + } + case FACETVALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + facetValueCase_ = 1; + facetValue_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getIntervalFieldBuilder().getBuilder(), + extensionRegistry); + facetValueCase_ = 2; + break; + } // case 18 + case 24: { + count_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int facetValueCase_ = 0; + private java.lang.Object facetValue_; + public FacetValueCase + getFacetValueCase() { + return FacetValueCase.forNumber( + facetValueCase_); + } + + public Builder clearFacetValue() { + facetValueCase_ = 0; + facetValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+         * Text value of a facet, such as "Black" for facet "colors".
+         * 
+ * + * string value = 1; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return facetValueCase_ == 1; + } + /** + *
+         * Text value of a facet, such as "Black" for facet "colors".
+         * 
+ * + * string value = 1; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = ""; + if (facetValueCase_ == 1) { + ref = facetValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (facetValueCase_ == 1) { + facetValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Text value of a facet, such as "Black" for facet "colors".
+         * 
+ * + * string value = 1; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = ""; + if (facetValueCase_ == 1) { + ref = facetValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (facetValueCase_ == 1) { + facetValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Text value of a facet, such as "Black" for facet "colors".
+         * 
+ * + * string value = 1; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + facetValueCase_ = 1; + facetValue_ = value; + onChanged(); + return this; + } + /** + *
+         * Text value of a facet, such as "Black" for facet "colors".
+         * 
+ * + * string value = 1; + * @return This builder for chaining. + */ + public Builder clearValue() { + if (facetValueCase_ == 1) { + facetValueCase_ = 0; + facetValue_ = null; + onChanged(); + } + return this; + } + /** + *
+         * Text value of a facet, such as "Black" for facet "colors".
+         * 
+ * + * string value = 1; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + facetValueCase_ = 1; + facetValue_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Interval, com.google.cloud.discoveryengine.v1alpha.Interval.Builder, com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder> intervalBuilder_; + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return facetValueCase_ == 2; + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + * @return The interval. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Interval getInterval() { + if (intervalBuilder_ == null) { + if (facetValueCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_; + } + return com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } else { + if (facetValueCase_ == 2) { + return intervalBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + public Builder setInterval(com.google.cloud.discoveryengine.v1alpha.Interval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + facetValue_ = value; + onChanged(); + } else { + intervalBuilder_.setMessage(value); + } + facetValueCase_ = 2; + return this; + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + public Builder setInterval( + com.google.cloud.discoveryengine.v1alpha.Interval.Builder builderForValue) { + if (intervalBuilder_ == null) { + facetValue_ = builderForValue.build(); + onChanged(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + facetValueCase_ = 2; + return this; + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + public Builder mergeInterval(com.google.cloud.discoveryengine.v1alpha.Interval value) { + if (intervalBuilder_ == null) { + if (facetValueCase_ == 2 && + facetValue_ != com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance()) { + facetValue_ = com.google.cloud.discoveryengine.v1alpha.Interval.newBuilder((com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_) + .mergeFrom(value).buildPartial(); + } else { + facetValue_ = value; + } + onChanged(); + } else { + if (facetValueCase_ == 2) { + intervalBuilder_.mergeFrom(value); + } else { + intervalBuilder_.setMessage(value); + } + } + facetValueCase_ = 2; + return this; + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + public Builder clearInterval() { + if (intervalBuilder_ == null) { + if (facetValueCase_ == 2) { + facetValueCase_ = 0; + facetValue_ = null; + onChanged(); + } + } else { + if (facetValueCase_ == 2) { + facetValueCase_ = 0; + facetValue_ = null; + } + intervalBuilder_.clear(); + } + return this; + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.Interval.Builder getIntervalBuilder() { + return getIntervalFieldBuilder().getBuilder(); + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder getIntervalOrBuilder() { + if ((facetValueCase_ == 2) && (intervalBuilder_ != null)) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + if (facetValueCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_; + } + return com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } + } + /** + *
+         * Interval value for a facet, such as [10, 20) for facet "price". It
+         * matches
+         * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals].
+         * 
+ * + * .google.cloud.discoveryengine.v1alpha.Interval interval = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Interval, com.google.cloud.discoveryengine.v1alpha.Interval.Builder, com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder> + getIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + if (!(facetValueCase_ == 2)) { + facetValue_ = com.google.cloud.discoveryengine.v1alpha.Interval.getDefaultInstance(); + } + intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Interval, com.google.cloud.discoveryengine.v1alpha.Interval.Builder, com.google.cloud.discoveryengine.v1alpha.IntervalOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.Interval) facetValue_, + getParentForChildren(), + isClean()); + facetValue_ = null; + } + facetValueCase_ = 2; + onChanged(); + return intervalBuilder_; + } + + private long count_ ; + /** + *
+         * Number of items that have this facet value.
+         * 
+ * + * int64 count = 3; + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + /** + *
+         * Number of items that have this facet value.
+         * 
+ * + * int64 count = 3; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Number of items that have this facet value.
+         * 
+ * + * int64 count = 3; + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000004); + count_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+     * The key for this facet. E.g., "colors" or "price". It matches
+     * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+     * 
+ * + * string key = 1; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + *
+     * The key for this facet. E.g., "colors" or "price". It matches
+     * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+     * 
+ * + * string key = 1; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List values_; + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue getValues(int index) { + return values_.get(index); + } + /** + *
+     * The facet values for this field.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index) { + return values_.get(index); + } + + public static final int DYNAMIC_FACET_FIELD_NUMBER = 3; + private boolean dynamicFacet_ = false; + /** + *
+     * Whether the facet is dynamically generated.
+     * 
+ * + * bool dynamic_facet = 3; + * @return The dynamicFacet. + */ + @java.lang.Override + public boolean getDynamicFacet() { + return dynamicFacet_; + } + + 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(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(2, values_.get(i)); + } + if (dynamicFacet_ != false) { + output.writeBool(3, dynamicFacet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, values_.get(i)); + } + if (dynamicFacet_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, dynamicFacet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (getDynamicFacet() + != other.getDynamicFacet()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + DYNAMIC_FACET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDynamicFacet()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet 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.discoveryengine.v1alpha.SearchResponse.Facet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet 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.discoveryengine.v1alpha.SearchResponse.Facet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet 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.discoveryengine.v1alpha.SearchResponse.Facet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A facet result.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Facet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + dynamicFacet_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet result) { + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dynamicFacet_ = dynamicFacet_; + } + } + + @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.discoveryengine.v1alpha.SearchResponse.Facet) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000002); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + if (other.getDynamicFacet() != false) { + setDynamicFacet(other.getDynamicFacet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + dynamicFacet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + *
+       * The key for this facet. E.g., "colors" or "price". It matches
+       * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+       * 
+ * + * string key = 1; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The key for this facet. E.g., "colors" or "price". It matches
+       * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+       * 
+ * + * string key = 1; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The key for this facet. E.g., "colors" or "price". It matches
+       * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+       * 
+ * + * string key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The key for this facet. E.g., "colors" or "price". It matches
+       * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+       * 
+ * + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The key for this facet. E.g., "colors" or "price". It matches
+       * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
+       * 
+ * + * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder> valuesBuilder_; + + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder setValues( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder setValues( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder addValues(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder addValues( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder addValues( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder addValues( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.getDefaultInstance()); + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.getDefaultInstance()); + } + /** + *
+       * The facet values for this field.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue values = 2; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValueOrBuilder>( + values_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + + private boolean dynamicFacet_ ; + /** + *
+       * Whether the facet is dynamically generated.
+       * 
+ * + * bool dynamic_facet = 3; + * @return The dynamicFacet. + */ + @java.lang.Override + public boolean getDynamicFacet() { + return dynamicFacet_; + } + /** + *
+       * Whether the facet is dynamically generated.
+       * 
+ * + * bool dynamic_facet = 3; + * @param value The dynamicFacet to set. + * @return This builder for chaining. + */ + public Builder setDynamicFacet(boolean value) { + + dynamicFacet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Whether the facet is dynamically generated.
+       * 
+ * + * bool dynamic_facet = 3; + * @return This builder for chaining. + */ + public Builder clearDynamicFacet() { + bitField0_ = (bitField0_ & ~0x00000004); + dynamicFacet_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Facet) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Facet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GuidedSearchResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + java.util.List + getRefinementAttributesList(); + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index); + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + int getRefinementAttributesCount(); + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + java.util.List + getRefinementAttributesOrBuilderList(); + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder( + int index); + + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @return A list containing the followUpQuestions. + */ + java.util.List + getFollowUpQuestionsList(); + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @return The count of followUpQuestions. + */ + int getFollowUpQuestionsCount(); + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index of the element to return. + * @return The followUpQuestions at the given index. + */ + java.lang.String getFollowUpQuestions(int index); + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index of the value to return. + * @return The bytes of the followUpQuestions at the given index. + */ + com.google.protobuf.ByteString + getFollowUpQuestionsBytes(int index); + } + /** + *
+   * Guided search result. The guided search helps user to refine the search
+   * results and narrow down to the real needs from a broaded search results.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult} + */ + public static final class GuidedSearchResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) + GuidedSearchResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use GuidedSearchResult.newBuilder() to construct. + private GuidedSearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GuidedSearchResult() { + refinementAttributes_ = java.util.Collections.emptyList(); + followUpQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GuidedSearchResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder.class); + } + + public interface RefinementAttributeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Attribute key used to refine the results e.g. 'movie_type'.
+       * 
+ * + * string attribute_key = 1; + * @return The attributeKey. + */ + java.lang.String getAttributeKey(); + /** + *
+       * Attribute key used to refine the results e.g. 'movie_type'.
+       * 
+ * + * string attribute_key = 1; + * @return The bytes for attributeKey. + */ + com.google.protobuf.ByteString + getAttributeKeyBytes(); + + /** + *
+       * Attribute value used to refine the results e.g. 'drama'.
+       * 
+ * + * string attribute_value = 2; + * @return The attributeValue. + */ + java.lang.String getAttributeValue(); + /** + *
+       * Attribute value used to refine the results e.g. 'drama'.
+       * 
+ * + * string attribute_value = 2; + * @return The bytes for attributeValue. + */ + com.google.protobuf.ByteString + getAttributeValueBytes(); + } + /** + *
+     * Useful attribute for search result refinements.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute} + */ + public static final class RefinementAttribute extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) + RefinementAttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use RefinementAttribute.newBuilder() to construct. + private RefinementAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RefinementAttribute() { + attributeKey_ = ""; + attributeValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RefinementAttribute(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder.class); + } + + public static final int ATTRIBUTE_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object attributeKey_ = ""; + /** + *
+       * Attribute key used to refine the results e.g. 'movie_type'.
+       * 
+ * + * string attribute_key = 1; + * @return The attributeKey. + */ + @java.lang.Override + public java.lang.String getAttributeKey() { + java.lang.Object ref = attributeKey_; + 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(); + attributeKey_ = s; + return s; + } + } + /** + *
+       * Attribute key used to refine the results e.g. 'movie_type'.
+       * 
+ * + * string attribute_key = 1; + * @return The bytes for attributeKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributeKeyBytes() { + java.lang.Object ref = attributeKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributeKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object attributeValue_ = ""; + /** + *
+       * Attribute value used to refine the results e.g. 'drama'.
+       * 
+ * + * string attribute_value = 2; + * @return The attributeValue. + */ + @java.lang.Override + public java.lang.String getAttributeValue() { + java.lang.Object ref = attributeValue_; + 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(); + attributeValue_ = s; + return s; + } + } + /** + *
+       * Attribute value used to refine the results e.g. 'drama'.
+       * 
+ * + * string attribute_value = 2; + * @return The bytes for attributeValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributeValueBytes() { + java.lang.Object ref = attributeValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attributeValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attributeKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attributeValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) obj; + + if (!getAttributeKey() + .equals(other.getAttributeKey())) return false; + if (!getAttributeValue() + .equals(other.getAttributeValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTE_KEY_FIELD_NUMBER; + hash = (53 * hash) + getAttributeKey().hashCode(); + hash = (37 * hash) + ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getAttributeValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute 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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute 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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute 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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute 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; + } + /** + *
+       * Useful attribute for search result refinements.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeKey_ = ""; + attributeValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributeKey_ = attributeKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributeValue_ = attributeValue_; + } + } + + @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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance()) return this; + if (!other.getAttributeKey().isEmpty()) { + attributeKey_ = other.attributeKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAttributeValue().isEmpty()) { + attributeValue_ = other.attributeValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + attributeKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + attributeValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object attributeKey_ = ""; + /** + *
+         * Attribute key used to refine the results e.g. 'movie_type'.
+         * 
+ * + * string attribute_key = 1; + * @return The attributeKey. + */ + public java.lang.String getAttributeKey() { + java.lang.Object ref = attributeKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Attribute key used to refine the results e.g. 'movie_type'.
+         * 
+ * + * string attribute_key = 1; + * @return The bytes for attributeKey. + */ + public com.google.protobuf.ByteString + getAttributeKeyBytes() { + java.lang.Object ref = attributeKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributeKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Attribute key used to refine the results e.g. 'movie_type'.
+         * 
+ * + * string attribute_key = 1; + * @param value The attributeKey to set. + * @return This builder for chaining. + */ + public Builder setAttributeKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + attributeKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Attribute key used to refine the results e.g. 'movie_type'.
+         * 
+ * + * string attribute_key = 1; + * @return This builder for chaining. + */ + public Builder clearAttributeKey() { + attributeKey_ = getDefaultInstance().getAttributeKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * Attribute key used to refine the results e.g. 'movie_type'.
+         * 
+ * + * string attribute_key = 1; + * @param value The bytes for attributeKey to set. + * @return This builder for chaining. + */ + public Builder setAttributeKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + attributeKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object attributeValue_ = ""; + /** + *
+         * Attribute value used to refine the results e.g. 'drama'.
+         * 
+ * + * string attribute_value = 2; + * @return The attributeValue. + */ + public java.lang.String getAttributeValue() { + java.lang.Object ref = attributeValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Attribute value used to refine the results e.g. 'drama'.
+         * 
+ * + * string attribute_value = 2; + * @return The bytes for attributeValue. + */ + public com.google.protobuf.ByteString + getAttributeValueBytes() { + java.lang.Object ref = attributeValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Attribute value used to refine the results e.g. 'drama'.
+         * 
+ * + * string attribute_value = 2; + * @param value The attributeValue to set. + * @return This builder for chaining. + */ + public Builder setAttributeValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + attributeValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Attribute value used to refine the results e.g. 'drama'.
+         * 
+ * + * string attribute_value = 2; + * @return This builder for chaining. + */ + public Builder clearAttributeValue() { + attributeValue_ = getDefaultInstance().getAttributeValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * Attribute value used to refine the results e.g. 'drama'.
+         * 
+ * + * string attribute_value = 2; + * @param value The bytes for attributeValue to set. + * @return This builder for chaining. + */ + public Builder setAttributeValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + attributeValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefinementAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int REFINEMENT_ATTRIBUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List refinementAttributes_; + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + @java.lang.Override + public java.util.List getRefinementAttributesList() { + return refinementAttributes_; + } + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + @java.lang.Override + public java.util.List + getRefinementAttributesOrBuilderList() { + return refinementAttributes_; + } + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + @java.lang.Override + public int getRefinementAttributesCount() { + return refinementAttributes_.size(); + } + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index) { + return refinementAttributes_.get(index); + } + /** + *
+     * A list of ranked refinement attributes.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder( + int index) { + return refinementAttributes_.get(index); + } + + public static final int FOLLOW_UP_QUESTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList followUpQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @return A list containing the followUpQuestions. + */ + public com.google.protobuf.ProtocolStringList + getFollowUpQuestionsList() { + return followUpQuestions_; + } + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @return The count of followUpQuestions. + */ + public int getFollowUpQuestionsCount() { + return followUpQuestions_.size(); + } + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index of the element to return. + * @return The followUpQuestions at the given index. + */ + public java.lang.String getFollowUpQuestions(int index) { + return followUpQuestions_.get(index); + } + /** + *
+     * Suggested follow-up questions.
+     * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index of the value to return. + * @return The bytes of the followUpQuestions at the given index. + */ + public com.google.protobuf.ByteString + getFollowUpQuestionsBytes(int index) { + return followUpQuestions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < refinementAttributes_.size(); i++) { + output.writeMessage(1, refinementAttributes_.get(i)); + } + for (int i = 0; i < followUpQuestions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, followUpQuestions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < refinementAttributes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, refinementAttributes_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < followUpQuestions_.size(); i++) { + dataSize += computeStringSizeNoTag(followUpQuestions_.getRaw(i)); + } + size += dataSize; + size += 1 * getFollowUpQuestionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) obj; + + if (!getRefinementAttributesList() + .equals(other.getRefinementAttributesList())) return false; + if (!getFollowUpQuestionsList() + .equals(other.getFollowUpQuestionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRefinementAttributesCount() > 0) { + hash = (37 * hash) + REFINEMENT_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getRefinementAttributesList().hashCode(); + } + if (getFollowUpQuestionsCount() > 0) { + hash = (37 * hash) + FOLLOW_UP_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getFollowUpQuestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult 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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult 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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult 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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult 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; + } + /** + *
+     * Guided search result. The guided search helps user to refine the search
+     * results and narrow down to the real needs from a broaded search results.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (refinementAttributesBuilder_ == null) { + refinementAttributes_ = java.util.Collections.emptyList(); + } else { + refinementAttributes_ = null; + refinementAttributesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + followUpQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult result) { + if (refinementAttributesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + refinementAttributes_ = java.util.Collections.unmodifiableList(refinementAttributes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.refinementAttributes_ = refinementAttributes_; + } else { + result.refinementAttributes_ = refinementAttributesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + followUpQuestions_.makeImmutable(); + result.followUpQuestions_ = followUpQuestions_; + } + } + + @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.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance()) return this; + if (refinementAttributesBuilder_ == null) { + if (!other.refinementAttributes_.isEmpty()) { + if (refinementAttributes_.isEmpty()) { + refinementAttributes_ = other.refinementAttributes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRefinementAttributesIsMutable(); + refinementAttributes_.addAll(other.refinementAttributes_); + } + onChanged(); + } + } else { + if (!other.refinementAttributes_.isEmpty()) { + if (refinementAttributesBuilder_.isEmpty()) { + refinementAttributesBuilder_.dispose(); + refinementAttributesBuilder_ = null; + refinementAttributes_ = other.refinementAttributes_; + bitField0_ = (bitField0_ & ~0x00000001); + refinementAttributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRefinementAttributesFieldBuilder() : null; + } else { + refinementAttributesBuilder_.addAllMessages(other.refinementAttributes_); + } + } + } + if (!other.followUpQuestions_.isEmpty()) { + if (followUpQuestions_.isEmpty()) { + followUpQuestions_ = other.followUpQuestions_; + bitField0_ |= 0x00000002; + } else { + ensureFollowUpQuestionsIsMutable(); + followUpQuestions_.addAll(other.followUpQuestions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.parser(), + extensionRegistry); + if (refinementAttributesBuilder_ == null) { + ensureRefinementAttributesIsMutable(); + refinementAttributes_.add(m); + } else { + refinementAttributesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFollowUpQuestionsIsMutable(); + followUpQuestions_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List refinementAttributes_ = + java.util.Collections.emptyList(); + private void ensureRefinementAttributesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + refinementAttributes_ = new java.util.ArrayList(refinementAttributes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> refinementAttributesBuilder_; + + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public java.util.List getRefinementAttributesList() { + if (refinementAttributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(refinementAttributes_); + } else { + return refinementAttributesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public int getRefinementAttributesCount() { + if (refinementAttributesBuilder_ == null) { + return refinementAttributes_.size(); + } else { + return refinementAttributesBuilder_.getCount(); + } + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index) { + if (refinementAttributesBuilder_ == null) { + return refinementAttributes_.get(index); + } else { + return refinementAttributesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder setRefinementAttributes( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute value) { + if (refinementAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinementAttributesIsMutable(); + refinementAttributes_.set(index, value); + onChanged(); + } else { + refinementAttributesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder setRefinementAttributes( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) { + if (refinementAttributesBuilder_ == null) { + ensureRefinementAttributesIsMutable(); + refinementAttributes_.set(index, builderForValue.build()); + onChanged(); + } else { + refinementAttributesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder addRefinementAttributes(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute value) { + if (refinementAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinementAttributesIsMutable(); + refinementAttributes_.add(value); + onChanged(); + } else { + refinementAttributesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder addRefinementAttributes( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute value) { + if (refinementAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinementAttributesIsMutable(); + refinementAttributes_.add(index, value); + onChanged(); + } else { + refinementAttributesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder addRefinementAttributes( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) { + if (refinementAttributesBuilder_ == null) { + ensureRefinementAttributesIsMutable(); + refinementAttributes_.add(builderForValue.build()); + onChanged(); + } else { + refinementAttributesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder addRefinementAttributes( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) { + if (refinementAttributesBuilder_ == null) { + ensureRefinementAttributesIsMutable(); + refinementAttributes_.add(index, builderForValue.build()); + onChanged(); + } else { + refinementAttributesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder addAllRefinementAttributes( + java.lang.Iterable values) { + if (refinementAttributesBuilder_ == null) { + ensureRefinementAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refinementAttributes_); + onChanged(); + } else { + refinementAttributesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder clearRefinementAttributes() { + if (refinementAttributesBuilder_ == null) { + refinementAttributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + refinementAttributesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public Builder removeRefinementAttributes(int index) { + if (refinementAttributesBuilder_ == null) { + ensureRefinementAttributesIsMutable(); + refinementAttributes_.remove(index); + onChanged(); + } else { + refinementAttributesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder getRefinementAttributesBuilder( + int index) { + return getRefinementAttributesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder( + int index) { + if (refinementAttributesBuilder_ == null) { + return refinementAttributes_.get(index); } else { + return refinementAttributesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public java.util.List + getRefinementAttributesOrBuilderList() { + if (refinementAttributesBuilder_ != null) { + return refinementAttributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refinementAttributes_); + } + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder addRefinementAttributesBuilder() { + return getRefinementAttributesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance()); + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder addRefinementAttributesBuilder( + int index) { + return getRefinementAttributesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance()); + } + /** + *
+       * A list of ranked refinement attributes.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; + */ + public java.util.List + getRefinementAttributesBuilderList() { + return getRefinementAttributesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> + getRefinementAttributesFieldBuilder() { + if (refinementAttributesBuilder_ == null) { + refinementAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder>( + refinementAttributes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + refinementAttributes_ = null; + } + return refinementAttributesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList followUpQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFollowUpQuestionsIsMutable() { + if (!followUpQuestions_.isModifiable()) { + followUpQuestions_ = new com.google.protobuf.LazyStringArrayList(followUpQuestions_); + } + bitField0_ |= 0x00000002; + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @return A list containing the followUpQuestions. + */ + public com.google.protobuf.ProtocolStringList + getFollowUpQuestionsList() { + followUpQuestions_.makeImmutable(); + return followUpQuestions_; + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @return The count of followUpQuestions. + */ + public int getFollowUpQuestionsCount() { + return followUpQuestions_.size(); + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index of the element to return. + * @return The followUpQuestions at the given index. + */ + public java.lang.String getFollowUpQuestions(int index) { + return followUpQuestions_.get(index); + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index of the value to return. + * @return The bytes of the followUpQuestions at the given index. + */ + public com.google.protobuf.ByteString + getFollowUpQuestionsBytes(int index) { + return followUpQuestions_.getByteString(index); + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @param index The index to set the value at. + * @param value The followUpQuestions to set. + * @return This builder for chaining. + */ + public Builder setFollowUpQuestions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFollowUpQuestionsIsMutable(); + followUpQuestions_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @param value The followUpQuestions to add. + * @return This builder for chaining. + */ + public Builder addFollowUpQuestions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFollowUpQuestionsIsMutable(); + followUpQuestions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @param values The followUpQuestions to add. + * @return This builder for chaining. + */ + public Builder addAllFollowUpQuestions( + java.lang.Iterable values) { + ensureFollowUpQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, followUpQuestions_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @return This builder for chaining. + */ + public Builder clearFollowUpQuestions() { + followUpQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+       * Suggested follow-up questions.
+       * 
+ * + * repeated string follow_up_questions = 2; + * @param value The bytes of the followUpQuestions to add. + * @return This builder for chaining. + */ + public Builder addFollowUpQuestionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureFollowUpQuestionsIsMutable(); + followUpQuestions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuidedSearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SummaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The summary content.
+     * 
+ * + * string summary_text = 1; + * @return The summaryText. + */ + java.lang.String getSummaryText(); + /** + *
+     * The summary content.
+     * 
+ * + * string summary_text = 1; + * @return The bytes for summaryText. + */ + com.google.protobuf.ByteString + getSummaryTextBytes(); + + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return A list containing the summarySkippedReasons. + */ + java.util.List getSummarySkippedReasonsList(); + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return The count of summarySkippedReasons. + */ + int getSummarySkippedReasonsCount(); + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index of the element to return. + * @return The summarySkippedReasons at the given index. + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index); + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return A list containing the enum numeric values on the wire for summarySkippedReasons. + */ + java.util.List + getSummarySkippedReasonsValueList(); + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of summarySkippedReasons at the given index. + */ + int getSummarySkippedReasonsValue(int index); + + /** + *
+     * A collection of Safety Attribute categories and their associated
+     * confidence scores.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + * @return Whether the safetyAttributes field is set. + */ + boolean hasSafetyAttributes(); + /** + *
+     * A collection of Safety Attribute categories and their associated
+     * confidence scores.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + * @return The safetyAttributes. + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes getSafetyAttributes(); + /** + *
+     * A collection of Safety Attribute categories and their associated
+     * confidence scores.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder(); + } + /** + *
+   * Summary of the top N search result specified by the summary spec.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Summary} + */ + public static final class Summary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary) + SummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Summary.newBuilder() to construct. + private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Summary() { + summaryText_ = ""; + summarySkippedReasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Summary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder.class); + } + + /** + *
+     * An Enum for summary-skipped reasons.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason} + */ + public enum SummarySkippedReason + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value. The summary skipped reason is not specified.
+       * 
+ * + * SUMMARY_SKIPPED_REASON_UNSPECIFIED = 0; + */ + SUMMARY_SKIPPED_REASON_UNSPECIFIED(0), + /** + *
+       * The adversarial query ignored case.
+       *
+       * Only populated when
+       * [SummarySpec.ignore_adversarial_query][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.ignore_adversarial_query]
+       * is set to `true`.
+       * 
+ * + * ADVERSARIAL_QUERY_IGNORED = 1; + */ + ADVERSARIAL_QUERY_IGNORED(1), + /** + *
+       * The non-summary seeking query ignored case.
+       *
+       * Only populated when
+       * [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query]
+       * is set to `true`.
+       * 
+ * + * NON_SUMMARY_SEEKING_QUERY_IGNORED = 2; + */ + NON_SUMMARY_SEEKING_QUERY_IGNORED(2), + /** + *
+       * The out-of-domain query ignored case.
+       *
+       * Google skips the summary if there are no high-relevance search results.
+       * For example, the data store contains facts about company A but the
+       * user query is asking questions about company B.
+       * 
+ * + * OUT_OF_DOMAIN_QUERY_IGNORED = 3; + */ + OUT_OF_DOMAIN_QUERY_IGNORED(3), + /** + *
+       * The potential policy violation case.
+       *
+       * Google skips the summary if there is a potential policy violation
+       * detected. This includes content that may be violent or toxic.
+       * 
+ * + * POTENTIAL_POLICY_VIOLATION = 4; + */ + POTENTIAL_POLICY_VIOLATION(4), + /** + *
+       * The LLM addon not enabled case.
+       *
+       * Google skips the summary if the LLM addon is not enabled.
+       * 
+ * + * LLM_ADDON_NOT_ENABLED = 5; + */ + LLM_ADDON_NOT_ENABLED(5), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value. The summary skipped reason is not specified.
+       * 
+ * + * SUMMARY_SKIPPED_REASON_UNSPECIFIED = 0; + */ + public static final int SUMMARY_SKIPPED_REASON_UNSPECIFIED_VALUE = 0; + /** + *
+       * The adversarial query ignored case.
+       *
+       * Only populated when
+       * [SummarySpec.ignore_adversarial_query][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.ignore_adversarial_query]
+       * is set to `true`.
+       * 
+ * + * ADVERSARIAL_QUERY_IGNORED = 1; + */ + public static final int ADVERSARIAL_QUERY_IGNORED_VALUE = 1; + /** + *
+       * The non-summary seeking query ignored case.
+       *
+       * Only populated when
+       * [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query]
+       * is set to `true`.
+       * 
+ * + * NON_SUMMARY_SEEKING_QUERY_IGNORED = 2; + */ + public static final int NON_SUMMARY_SEEKING_QUERY_IGNORED_VALUE = 2; + /** + *
+       * The out-of-domain query ignored case.
+       *
+       * Google skips the summary if there are no high-relevance search results.
+       * For example, the data store contains facts about company A but the
+       * user query is asking questions about company B.
+       * 
+ * + * OUT_OF_DOMAIN_QUERY_IGNORED = 3; + */ + public static final int OUT_OF_DOMAIN_QUERY_IGNORED_VALUE = 3; + /** + *
+       * The potential policy violation case.
+       *
+       * Google skips the summary if there is a potential policy violation
+       * detected. This includes content that may be violent or toxic.
+       * 
+ * + * POTENTIAL_POLICY_VIOLATION = 4; + */ + public static final int POTENTIAL_POLICY_VIOLATION_VALUE = 4; + /** + *
+       * The LLM addon not enabled case.
+       *
+       * Google skips the summary if the LLM addon is not enabled.
+       * 
+ * + * LLM_ADDON_NOT_ENABLED = 5; + */ + public static final int LLM_ADDON_NOT_ENABLED_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SummarySkippedReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SummarySkippedReason forNumber(int value) { + switch (value) { + case 0: return SUMMARY_SKIPPED_REASON_UNSPECIFIED; + case 1: return ADVERSARIAL_QUERY_IGNORED; + case 2: return NON_SUMMARY_SEEKING_QUERY_IGNORED; + case 3: return OUT_OF_DOMAIN_QUERY_IGNORED; + case 4: return POTENTIAL_POLICY_VIOLATION; + case 5: return LLM_ADDON_NOT_ENABLED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SummarySkippedReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SummarySkippedReason findValueByNumber(int number) { + return SummarySkippedReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDescriptor().getEnumTypes().get(0); + } + + private static final SummarySkippedReason[] VALUES = values(); + + public static SummarySkippedReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SummarySkippedReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason) + } + + public interface SafetyAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @return A list containing the categories. + */ + java.util.List + getCategoriesList(); + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @return The count of categories. + */ + int getCategoriesCount(); + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @param index The index of the element to return. + * @return The categories at the given index. + */ + java.lang.String getCategories(int index); + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @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); + + /** + *
+       * The confidence scores of the each category, higher
+       * value means higher confidence. Order matches the Categories.
+       * 
+ * + * repeated float scores = 2; + * @return A list containing the scores. + */ + java.util.List getScoresList(); + /** + *
+       * The confidence scores of the each category, higher
+       * value means higher confidence. Order matches the Categories.
+       * 
+ * + * repeated float scores = 2; + * @return The count of scores. + */ + int getScoresCount(); + /** + *
+       * The confidence scores of the each category, higher
+       * value means higher confidence. Order matches the Categories.
+       * 
+ * + * repeated float scores = 2; + * @param index The index of the element to return. + * @return The scores at the given index. + */ + float getScores(int index); + } + /** + *
+     * Safety Attribute categories and their associated confidence scores.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes} + */ + public static final class SafetyAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) + SafetyAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SafetyAttributes.newBuilder() to construct. + private SafetyAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SafetyAttributes() { + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + scores_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SafetyAttributes(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder.class); + } + + public static final int CATEGORIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @return A list containing the categories. + */ + public com.google.protobuf.ProtocolStringList + getCategoriesList() { + return categories_; + } + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @return The count of categories. + */ + public int getCategoriesCount() { + return categories_.size(); + } + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @param index The index of the element to return. + * @return The categories at the given index. + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + /** + *
+       * The display names of Safety Attribute categories associated with the
+       * generated content. Order matches the Scores.
+       * 
+ * + * repeated string categories = 1; + * @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) { + return categories_.getByteString(index); + } + + public static final int SCORES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList scores_; + /** + *
+       * The confidence scores of the each category, higher
+       * value means higher confidence. Order matches the Categories.
+       * 
+ * + * repeated float scores = 2; + * @return A list containing the scores. + */ + @java.lang.Override + public java.util.List + getScoresList() { + return scores_; + } + /** + *
+       * The confidence scores of the each category, higher
+       * value means higher confidence. Order matches the Categories.
+       * 
+ * + * repeated float scores = 2; + * @return The count of scores. + */ + public int getScoresCount() { + return scores_.size(); + } + /** + *
+       * The confidence scores of the each category, higher
+       * value means higher confidence. Order matches the Categories.
+       * 
+ * + * repeated float scores = 2; + * @param index The index of the element to return. + * @return The scores at the given index. + */ + public float getScores(int index) { + return scores_.getFloat(index); + } + private int scoresMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + for (int i = 0; i < categories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categories_.getRaw(i)); + } + if (getScoresList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(scoresMemoizedSerializedSize); + } + for (int i = 0; i < scores_.size(); i++) { + output.writeFloatNoTag(scores_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < categories_.size(); i++) { + dataSize += computeStringSizeNoTag(categories_.getRaw(i)); + } + size += dataSize; + size += 1 * getCategoriesList().size(); + } + { + int dataSize = 0; + dataSize = 4 * getScoresList().size(); + size += dataSize; + if (!getScoresList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + scoresMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) obj; + + if (!getCategoriesList() + .equals(other.getCategoriesList())) return false; + if (!getScoresList() + .equals(other.getScoresList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCategoriesCount() > 0) { + hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getCategoriesList().hashCode(); + } + if (getScoresCount() > 0) { + hash = (37 * hash) + SCORES_FIELD_NUMBER; + hash = (53 * hash) + getScoresList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes 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; + } + /** + *
+       * Safety Attribute categories and their associated confidence scores.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + scores_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes result) { + if (((bitField0_ & 0x00000002) != 0)) { + scores_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.scores_ = scores_; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + categories_.makeImmutable(); + result.categories_ = categories_; + } + } + + @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.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance()) return this; + if (!other.categories_.isEmpty()) { + if (categories_.isEmpty()) { + categories_ = other.categories_; + bitField0_ |= 0x00000001; + } else { + ensureCategoriesIsMutable(); + categories_.addAll(other.categories_); + } + onChanged(); + } + if (!other.scores_.isEmpty()) { + if (scores_.isEmpty()) { + scores_ = other.scores_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureScoresIsMutable(); + scores_.addAll(other.scores_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCategoriesIsMutable(); + categories_.add(s); + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureScoresIsMutable(); + scores_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureScoresIsMutable(); + while (input.getBytesUntilLimit() > 0) { + scores_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCategoriesIsMutable() { + if (!categories_.isModifiable()) { + categories_ = new com.google.protobuf.LazyStringArrayList(categories_); + } + bitField0_ |= 0x00000001; + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @return A list containing the categories. + */ + public com.google.protobuf.ProtocolStringList + getCategoriesList() { + categories_.makeImmutable(); + return categories_; + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @return The count of categories. + */ + public int getCategoriesCount() { + return categories_.size(); + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @param index The index of the element to return. + * @return The categories at the given index. + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @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) { + return categories_.getByteString(index); + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @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) { + if (value == null) { throw new NullPointerException(); } + ensureCategoriesIsMutable(); + categories_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @param value The categories to add. + * @return This builder for chaining. + */ + public Builder addCategories( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCategoriesIsMutable(); + categories_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @param values The categories to add. + * @return This builder for chaining. + */ + public Builder addAllCategories( + java.lang.Iterable values) { + ensureCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categories_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @return This builder for chaining. + */ + public Builder clearCategories() { + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+         * The display names of Safety Attribute categories associated with the
+         * generated content. Order matches the Scores.
+         * 
+ * + * repeated string categories = 1; + * @param value The bytes of the categories to add. + * @return This builder for chaining. + */ + public Builder addCategoriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureCategoriesIsMutable(); + categories_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList scores_ = emptyFloatList(); + private void ensureScoresIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + scores_ = mutableCopy(scores_); + bitField0_ |= 0x00000002; + } + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @return A list containing the scores. + */ + public java.util.List + getScoresList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(scores_) : scores_; + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @return The count of scores. + */ + public int getScoresCount() { + return scores_.size(); + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @param index The index of the element to return. + * @return The scores at the given index. + */ + public float getScores(int index) { + return scores_.getFloat(index); + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @param index The index to set the value at. + * @param value The scores to set. + * @return This builder for chaining. + */ + public Builder setScores( + int index, float value) { + + ensureScoresIsMutable(); + scores_.setFloat(index, value); + onChanged(); + return this; + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @param value The scores to add. + * @return This builder for chaining. + */ + public Builder addScores(float value) { + + ensureScoresIsMutable(); + scores_.addFloat(value); + onChanged(); + return this; + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @param values The scores to add. + * @return This builder for chaining. + */ + public Builder addAllScores( + java.lang.Iterable values) { + ensureScoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scores_); + onChanged(); + return this; + } + /** + *
+         * The confidence scores of the each category, higher
+         * value means higher confidence. Order matches the Categories.
+         * 
+ * + * repeated float scores = 2; + * @return This builder for chaining. + */ + public Builder clearScores() { + scores_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int SUMMARY_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object summaryText_ = ""; + /** + *
+     * The summary content.
+     * 
+ * + * string summary_text = 1; + * @return The summaryText. + */ + @java.lang.Override + public java.lang.String getSummaryText() { + java.lang.Object ref = summaryText_; + 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(); + summaryText_ = s; + return s; + } + } + /** + *
+     * The summary content.
+     * 
+ * + * string summary_text = 1; + * @return The bytes for summaryText. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryTextBytes() { + java.lang.Object ref = summaryText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summaryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_SKIPPED_REASONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List summarySkippedReasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason> summarySkippedReasons_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason>() { + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason convert(java.lang.Integer from) { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason result = com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason.forNumber(from); + return result == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason.UNRECOGNIZED : result; + } + }; + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return A list containing the summarySkippedReasons. + */ + @java.lang.Override + public java.util.List getSummarySkippedReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason>(summarySkippedReasons_, summarySkippedReasons_converter_); + } + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return The count of summarySkippedReasons. + */ + @java.lang.Override + public int getSummarySkippedReasonsCount() { + return summarySkippedReasons_.size(); + } + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index of the element to return. + * @return The summarySkippedReasons at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index) { + return summarySkippedReasons_converter_.convert(summarySkippedReasons_.get(index)); + } + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return A list containing the enum numeric values on the wire for summarySkippedReasons. + */ + @java.lang.Override + public java.util.List + getSummarySkippedReasonsValueList() { + return summarySkippedReasons_; + } + /** + *
+     * Additional summary-skipped reasons. This provides the reason for ignored
+     * cases. If nothing is skipped, this field is not set.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of summarySkippedReasons at the given index. + */ + @java.lang.Override + public int getSummarySkippedReasonsValue(int index) { + return summarySkippedReasons_.get(index); + } + private int summarySkippedReasonsMemoizedSerializedSize; + + public static final int SAFETY_ATTRIBUTES_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safetyAttributes_; + /** + *
+     * A collection of Safety Attribute categories and their associated
+     * confidence scores.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + * @return Whether the safetyAttributes field is set. + */ + @java.lang.Override + public boolean hasSafetyAttributes() { + return safetyAttributes_ != null; + } + /** + *
+     * A collection of Safety Attribute categories and their associated
+     * confidence scores.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + * @return The safetyAttributes. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes getSafetyAttributes() { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; + } + /** + *
+     * A collection of Safety Attribute categories and their associated
+     * confidence scores.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder() { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summaryText_); + } + if (getSummarySkippedReasonsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(summarySkippedReasonsMemoizedSerializedSize); + } + for (int i = 0; i < summarySkippedReasons_.size(); i++) { + output.writeEnumNoTag(summarySkippedReasons_.get(i)); + } + if (safetyAttributes_ != null) { + output.writeMessage(3, getSafetyAttributes()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, summaryText_); + } + { + int dataSize = 0; + for (int i = 0; i < summarySkippedReasons_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(summarySkippedReasons_.get(i)); + } + size += dataSize; + if (!getSummarySkippedReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }summarySkippedReasonsMemoizedSerializedSize = dataSize; + } + if (safetyAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSafetyAttributes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary) obj; + + if (!getSummaryText() + .equals(other.getSummaryText())) return false; + if (!summarySkippedReasons_.equals(other.summarySkippedReasons_)) return false; + if (hasSafetyAttributes() != other.hasSafetyAttributes()) return false; + if (hasSafetyAttributes()) { + if (!getSafetyAttributes() + .equals(other.getSafetyAttributes())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUMMARY_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getSummaryText().hashCode(); + if (getSummarySkippedReasonsCount() > 0) { + hash = (37 * hash) + SUMMARY_SKIPPED_REASONS_FIELD_NUMBER; + hash = (53 * hash) + summarySkippedReasons_.hashCode(); + } + if (hasSafetyAttributes()) { + hash = (37 * hash) + SAFETY_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getSafetyAttributes().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary 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.discoveryengine.v1alpha.SearchResponse.Summary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary 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.discoveryengine.v1alpha.SearchResponse.Summary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary 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.discoveryengine.v1alpha.SearchResponse.Summary 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; + } + /** + *
+     * Summary of the top N search result specified by the summary spec.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.Summary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + summaryText_ = ""; + summarySkippedReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + safetyAttributes_ = null; + if (safetyAttributesBuilder_ != null) { + safetyAttributesBuilder_.dispose(); + safetyAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary result) { + if (((bitField0_ & 0x00000002) != 0)) { + summarySkippedReasons_ = java.util.Collections.unmodifiableList(summarySkippedReasons_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.summarySkippedReasons_ = summarySkippedReasons_; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.summaryText_ = summaryText_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.safetyAttributes_ = safetyAttributesBuilder_ == null + ? safetyAttributes_ + : safetyAttributesBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance()) return this; + if (!other.getSummaryText().isEmpty()) { + summaryText_ = other.summaryText_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.summarySkippedReasons_.isEmpty()) { + if (summarySkippedReasons_.isEmpty()) { + summarySkippedReasons_ = other.summarySkippedReasons_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.addAll(other.summarySkippedReasons_); + } + onChanged(); + } + if (other.hasSafetyAttributes()) { + mergeSafetyAttributes(other.getSafetyAttributes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + summaryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + input.readMessage( + getSafetyAttributesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object summaryText_ = ""; + /** + *
+       * The summary content.
+       * 
+ * + * string summary_text = 1; + * @return The summaryText. + */ + public java.lang.String getSummaryText() { + java.lang.Object ref = summaryText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summaryText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The summary content.
+       * 
+ * + * string summary_text = 1; + * @return The bytes for summaryText. + */ + public com.google.protobuf.ByteString + getSummaryTextBytes() { + java.lang.Object ref = summaryText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summaryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The summary content.
+       * 
+ * + * string summary_text = 1; + * @param value The summaryText to set. + * @return This builder for chaining. + */ + public Builder setSummaryText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + summaryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The summary content.
+       * 
+ * + * string summary_text = 1; + * @return This builder for chaining. + */ + public Builder clearSummaryText() { + summaryText_ = getDefaultInstance().getSummaryText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The summary content.
+       * 
+ * + * string summary_text = 1; + * @param value The bytes for summaryText to set. + * @return This builder for chaining. + */ + public Builder setSummaryTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + summaryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List summarySkippedReasons_ = + java.util.Collections.emptyList(); + private void ensureSummarySkippedReasonsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + summarySkippedReasons_ = new java.util.ArrayList(summarySkippedReasons_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return A list containing the summarySkippedReasons. + */ + public java.util.List getSummarySkippedReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason>(summarySkippedReasons_, summarySkippedReasons_converter_); + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return The count of summarySkippedReasons. + */ + public int getSummarySkippedReasonsCount() { + return summarySkippedReasons_.size(); + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index of the element to return. + * @return The summarySkippedReasons at the given index. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index) { + return summarySkippedReasons_converter_.convert(summarySkippedReasons_.get(index)); + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index to set the value at. + * @param value The summarySkippedReasons to set. + * @return This builder for chaining. + */ + public Builder setSummarySkippedReasons( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param value The summarySkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addSummarySkippedReasons(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param values The summarySkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addAllSummarySkippedReasons( + java.lang.Iterable values) { + ensureSummarySkippedReasonsIsMutable(); + for (com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason value : values) { + summarySkippedReasons_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return This builder for chaining. + */ + public Builder clearSummarySkippedReasons() { + summarySkippedReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @return A list containing the enum numeric values on the wire for summarySkippedReasons. + */ + public java.util.List + getSummarySkippedReasonsValueList() { + return java.util.Collections.unmodifiableList(summarySkippedReasons_); + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of summarySkippedReasons at the given index. + */ + public int getSummarySkippedReasonsValue(int index) { + return summarySkippedReasons_.get(index); + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for summarySkippedReasons to set. + * @return This builder for chaining. + */ + public Builder setSummarySkippedReasonsValue( + int index, int value) { + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param value The enum numeric value on the wire for summarySkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addSummarySkippedReasonsValue(int value) { + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.add(value); + onChanged(); + return this; + } + /** + *
+       * Additional summary-skipped reasons. This provides the reason for ignored
+       * cases. If nothing is skipped, this field is not set.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; + * @param values The enum numeric values on the wire for summarySkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addAllSummarySkippedReasonsValue( + java.lang.Iterable values) { + ensureSummarySkippedReasonsIsMutable(); + for (int value : values) { + summarySkippedReasons_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safetyAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder> safetyAttributesBuilder_; + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + * @return Whether the safetyAttributes field is set. + */ + public boolean hasSafetyAttributes() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + * @return The safetyAttributes. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes getSafetyAttributes() { + if (safetyAttributesBuilder_ == null) { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; + } else { + return safetyAttributesBuilder_.getMessage(); + } + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + public Builder setSafetyAttributes(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes value) { + if (safetyAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + safetyAttributes_ = value; + } else { + safetyAttributesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + public Builder setSafetyAttributes( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder builderForValue) { + if (safetyAttributesBuilder_ == null) { + safetyAttributes_ = builderForValue.build(); + } else { + safetyAttributesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + public Builder mergeSafetyAttributes(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes value) { + if (safetyAttributesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + safetyAttributes_ != null && + safetyAttributes_ != com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance()) { + getSafetyAttributesBuilder().mergeFrom(value); + } else { + safetyAttributes_ = value; + } + } else { + safetyAttributesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + public Builder clearSafetyAttributes() { + bitField0_ = (bitField0_ & ~0x00000004); + safetyAttributes_ = null; + if (safetyAttributesBuilder_ != null) { + safetyAttributesBuilder_.dispose(); + safetyAttributesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder getSafetyAttributesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSafetyAttributesFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder() { + if (safetyAttributesBuilder_ != null) { + return safetyAttributesBuilder_.getMessageOrBuilder(); + } else { + return safetyAttributes_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; + } + } + /** + *
+       * A collection of Safety Attribute categories and their associated
+       * confidence scores.
+       * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder> + getSafetyAttributesFieldBuilder() { + if (safetyAttributesBuilder_ == null) { + safetyAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SafetyAttributesOrBuilder>( + getSafetyAttributes(), + getParentForChildren(), + isClean()); + safetyAttributes_ = null; + } + return safetyAttributesBuilder_; + } + @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.discoveryengine.v1alpha.SearchResponse.Summary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.Summary) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Summary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GeoSearchDebugInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The address from which forward geocoding ingestion produced issues.
+     * 
+ * + * string original_address_query = 1; + * @return The originalAddressQuery. + */ + java.lang.String getOriginalAddressQuery(); + /** + *
+     * The address from which forward geocoding ingestion produced issues.
+     * 
+ * + * string original_address_query = 1; + * @return The bytes for originalAddressQuery. + */ + com.google.protobuf.ByteString + getOriginalAddressQueryBytes(); + + /** + *
+     * The error produced.
+     * 
+ * + * string error_message = 2; + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + *
+     * The error produced.
+     * 
+ * + * string error_message = 2; + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + } + /** + *
+   * Debug information specifically related to forward geocoding issues arising
+   * from Geolocation Search.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo} + */ + public static final class GeoSearchDebugInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) + GeoSearchDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoSearchDebugInfo.newBuilder() to construct. + private GeoSearchDebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GeoSearchDebugInfo() { + originalAddressQuery_ = ""; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoSearchDebugInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder.class); + } + + public static final int ORIGINAL_ADDRESS_QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object originalAddressQuery_ = ""; + /** + *
+     * The address from which forward geocoding ingestion produced issues.
+     * 
+ * + * string original_address_query = 1; + * @return The originalAddressQuery. + */ + @java.lang.Override + public java.lang.String getOriginalAddressQuery() { + java.lang.Object ref = originalAddressQuery_; + 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(); + originalAddressQuery_ = s; + return s; + } + } + /** + *
+     * The address from which forward geocoding ingestion produced issues.
+     * 
+ * + * string original_address_query = 1; + * @return The bytes for originalAddressQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOriginalAddressQueryBytes() { + java.lang.Object ref = originalAddressQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originalAddressQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + *
+     * The error produced.
+     * 
+ * + * string error_message = 2; + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + *
+     * The error produced.
+     * 
+ * + * string error_message = 2; + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalAddressQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, originalAddressQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalAddressQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, originalAddressQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) obj; + + if (!getOriginalAddressQuery() + .equals(other.getOriginalAddressQuery())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ORIGINAL_ADDRESS_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getOriginalAddressQuery().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo 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.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo 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.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo 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.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo 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; + } + /** + *
+     * Debug information specifically related to forward geocoding issues arising
+     * from Geolocation Search.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originalAddressQuery_ = ""; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalAddressQuery_ = originalAddressQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @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.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.getDefaultInstance()) return this; + if (!other.getOriginalAddressQuery().isEmpty()) { + originalAddressQuery_ = other.originalAddressQuery_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + originalAddressQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object originalAddressQuery_ = ""; + /** + *
+       * The address from which forward geocoding ingestion produced issues.
+       * 
+ * + * string original_address_query = 1; + * @return The originalAddressQuery. + */ + public java.lang.String getOriginalAddressQuery() { + java.lang.Object ref = originalAddressQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalAddressQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The address from which forward geocoding ingestion produced issues.
+       * 
+ * + * string original_address_query = 1; + * @return The bytes for originalAddressQuery. + */ + public com.google.protobuf.ByteString + getOriginalAddressQueryBytes() { + java.lang.Object ref = originalAddressQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + originalAddressQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The address from which forward geocoding ingestion produced issues.
+       * 
+ * + * string original_address_query = 1; + * @param value The originalAddressQuery to set. + * @return This builder for chaining. + */ + public Builder setOriginalAddressQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + originalAddressQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The address from which forward geocoding ingestion produced issues.
+       * 
+ * + * string original_address_query = 1; + * @return This builder for chaining. + */ + public Builder clearOriginalAddressQuery() { + originalAddressQuery_ = getDefaultInstance().getOriginalAddressQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The address from which forward geocoding ingestion produced issues.
+       * 
+ * + * string original_address_query = 1; + * @param value The bytes for originalAddressQuery to set. + * @return This builder for chaining. + */ + public Builder setOriginalAddressQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + originalAddressQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + *
+       * The error produced.
+       * 
+ * + * string error_message = 2; + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The error produced.
+       * 
+ * + * string error_message = 2; + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The error produced.
+       * 
+ * + * string error_message = 2; + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The error produced.
+       * 
+ * + * string error_message = 2; + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The error produced.
+       * 
+ * + * string error_message = 2; + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoSearchDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryExpansionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Bool describing whether query expansion has occurred.
+     * 
+ * + * bool expanded_query = 1; + * @return The expandedQuery. + */ + boolean getExpandedQuery(); + + /** + *
+     * Number of pinned results. This field will only be set when expansion
+     * happens and
+     * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
+     * is set to true.
+     * 
+ * + * int64 pinned_result_count = 2; + * @return The pinnedResultCount. + */ + long getPinnedResultCount(); + } + /** + *
+   * Information describing query expansion including whether expansion has
+   * occurred.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo} + */ + public static final class QueryExpansionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) + QueryExpansionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryExpansionInfo.newBuilder() to construct. + private QueryExpansionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryExpansionInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryExpansionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder.class); + } + + public static final int EXPANDED_QUERY_FIELD_NUMBER = 1; + private boolean expandedQuery_ = false; + /** + *
+     * Bool describing whether query expansion has occurred.
+     * 
+ * + * bool expanded_query = 1; + * @return The expandedQuery. + */ + @java.lang.Override + public boolean getExpandedQuery() { + return expandedQuery_; + } + + public static final int PINNED_RESULT_COUNT_FIELD_NUMBER = 2; + private long pinnedResultCount_ = 0L; + /** + *
+     * Number of pinned results. This field will only be set when expansion
+     * happens and
+     * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
+     * is set to true.
+     * 
+ * + * int64 pinned_result_count = 2; + * @return The pinnedResultCount. + */ + @java.lang.Override + public long getPinnedResultCount() { + return pinnedResultCount_; + } + + 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 (expandedQuery_ != false) { + output.writeBool(1, expandedQuery_); + } + if (pinnedResultCount_ != 0L) { + output.writeInt64(2, pinnedResultCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (expandedQuery_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, expandedQuery_); + } + if (pinnedResultCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, pinnedResultCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) obj; + + if (getExpandedQuery() + != other.getExpandedQuery()) return false; + if (getPinnedResultCount() + != other.getPinnedResultCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXPANDED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpandedQuery()); + hash = (37 * hash) + PINNED_RESULT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPinnedResultCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo 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; + } + /** + *
+     * Information describing query expansion including whether expansion has
+     * occurred.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expandedQuery_ = false; + pinnedResultCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expandedQuery_ = expandedQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pinnedResultCount_ = pinnedResultCount_; + } + } + + @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.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance()) return this; + if (other.getExpandedQuery() != false) { + setExpandedQuery(other.getExpandedQuery()); + } + if (other.getPinnedResultCount() != 0L) { + setPinnedResultCount(other.getPinnedResultCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + expandedQuery_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + pinnedResultCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean expandedQuery_ ; + /** + *
+       * Bool describing whether query expansion has occurred.
+       * 
+ * + * bool expanded_query = 1; + * @return The expandedQuery. + */ + @java.lang.Override + public boolean getExpandedQuery() { + return expandedQuery_; + } + /** + *
+       * Bool describing whether query expansion has occurred.
+       * 
+ * + * bool expanded_query = 1; + * @param value The expandedQuery to set. + * @return This builder for chaining. + */ + public Builder setExpandedQuery(boolean value) { + + expandedQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Bool describing whether query expansion has occurred.
+       * 
+ * + * bool expanded_query = 1; + * @return This builder for chaining. + */ + public Builder clearExpandedQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + expandedQuery_ = false; + onChanged(); + return this; + } + + private long pinnedResultCount_ ; + /** + *
+       * Number of pinned results. This field will only be set when expansion
+       * happens and
+       * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
+       * is set to true.
+       * 
+ * + * int64 pinned_result_count = 2; + * @return The pinnedResultCount. + */ + @java.lang.Override + public long getPinnedResultCount() { + return pinnedResultCount_; + } + /** + *
+       * Number of pinned results. This field will only be set when expansion
+       * happens and
+       * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
+       * is set to true.
+       * 
+ * + * int64 pinned_result_count = 2; + * @param value The pinnedResultCount to set. + * @return This builder for chaining. + */ + public Builder setPinnedResultCount(long value) { + + pinnedResultCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Number of pinned results. This field will only be set when expansion
+       * happens and
+       * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results]
+       * is set to true.
+       * 
+ * + * int64 pinned_result_count = 2; + * @return This builder for chaining. + */ + public Builder clearPinnedResultCount() { + bitField0_ = (bitField0_ & ~0x00000002); + pinnedResultCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExpansionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int RESULTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List results_; + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + @java.lang.Override + public java.util.List getResultsList() { + return results_; + } + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + @java.lang.Override + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getResults(int index) { + return results_.get(index); + } + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + public static final int FACETS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List facets_; + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + @java.lang.Override + public java.util.List getFacetsList() { + return facets_; + } + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + @java.lang.Override + public java.util.List + getFacetsOrBuilderList() { + return facets_; + } + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + @java.lang.Override + public int getFacetsCount() { + return facets_.size(); + } + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet getFacets(int index) { + return facets_.get(index); + } + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder getFacetsOrBuilder( + int index) { + return facets_.get(index); + } + + public static final int GUIDED_SEARCH_RESULT_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guidedSearchResult_; + /** + *
+   * Guided search result.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + * @return Whether the guidedSearchResult field is set. + */ + @java.lang.Override + public boolean hasGuidedSearchResult() { + return guidedSearchResult_ != null; + } + /** + *
+   * Guided search result.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + * @return The guidedSearchResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult getGuidedSearchResult() { + return guidedSearchResult_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; + } + /** + *
+   * Guided search result.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder() { + return guidedSearchResult_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + /** + *
+   * The estimated total count of matched items irrespective of pagination. The
+   * count of
+   * [results][google.cloud.discoveryengine.v1alpha.SearchResponse.results]
+   * returned by pagination may be less than the
+   * [total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+   * that matches.
+   * 
+ * + * int32 total_size = 3; + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object attributionToken_ = ""; + /** + *
+   * A unique search token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this search, which enables accurate attribution of search model
+   * performance.
+   * 
+ * + * string attribution_token = 4; + * @return The attributionToken. + */ + @java.lang.Override + public java.lang.String getAttributionToken() { + java.lang.Object ref = attributionToken_; + 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(); + attributionToken_ = s; + return s; + } + } + /** + *
+   * A unique search token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this search, which enables accurate attribution of search model
+   * performance.
+   * 
+ * + * string attribution_token = 4; + * @return The bytes for attributionToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributionTokenBytes() { + java.lang.Object ref = attributionToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIRECT_URI_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object redirectUri_ = ""; + /** + *
+   * The URI of a customer-defined redirect page. If redirect action is
+   * triggered, no search is performed, and only
+   * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+   * and
+   * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+   * are set in the response.
+   * 
+ * + * string redirect_uri = 12; + * @return The redirectUri. + */ + @java.lang.Override + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + 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(); + redirectUri_ = s; + return s; + } + } + /** + *
+   * The URI of a customer-defined redirect page. If redirect action is
+   * triggered, no search is performed, and only
+   * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+   * and
+   * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+   * are set in the response.
+   * 
+ * + * string redirect_uri = 12; + * @return The bytes for redirectUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * A token that can be sent as
+   * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 5; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token that can be sent as
+   * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 5; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CORRECTED_QUERY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object correctedQuery_ = ""; + /** + *
+   * Contains the spell corrected query, if found. If the spell correction type
+   * is AUTOMATIC, then the search results are based on corrected_query.
+   * Otherwise the original query is used for search.
+   * 
+ * + * string corrected_query = 7; + * @return The correctedQuery. + */ + @java.lang.Override + public java.lang.String getCorrectedQuery() { + java.lang.Object ref = correctedQuery_; + 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(); + correctedQuery_ = s; + return s; + } + } + /** + *
+   * Contains the spell corrected query, if found. If the spell correction type
+   * is AUTOMATIC, then the search results are based on corrected_query.
+   * Otherwise the original query is used for search.
+   * 
+ * + * string corrected_query = 7; + * @return The bytes for correctedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCorrectedQueryBytes() { + java.lang.Object ref = correctedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + correctedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_FIELD_NUMBER = 9; + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary_; + /** + *
+   * A summary as part of the search results.
+   * This field is only returned if
+   * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+   * is set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + * @return Whether the summary field is set. + */ + @java.lang.Override + public boolean hasSummary() { + return summary_ != null; + } + /** + *
+   * A summary as part of the search results.
+   * This field is only returned if
+   * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+   * is set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + * @return The summary. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getSummary() { + return summary_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } + /** + *
+   * A summary as part of the search results.
+   * This field is only returned if
+   * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+   * is set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { + return summary_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } + + public static final int APPLIED_CONTROLS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList appliedControls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @return A list containing the appliedControls. + */ + public com.google.protobuf.ProtocolStringList + getAppliedControlsList() { + return appliedControls_; + } + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @return The count of appliedControls. + */ + public int getAppliedControlsCount() { + return appliedControls_.size(); + } + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @param index The index of the element to return. + * @return The appliedControls at the given index. + */ + public java.lang.String getAppliedControls(int index) { + return appliedControls_.get(index); + } + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @param index The index of the value to return. + * @return The bytes of the appliedControls at the given index. + */ + public com.google.protobuf.ByteString + getAppliedControlsBytes(int index) { + return appliedControls_.getByteString(index); + } + + public static final int GEO_SEARCH_DEBUG_INFO_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private java.util.List geoSearchDebugInfo_; + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + @java.lang.Override + public java.util.List getGeoSearchDebugInfoList() { + return geoSearchDebugInfo_; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + @java.lang.Override + public java.util.List + getGeoSearchDebugInfoOrBuilderList() { + return geoSearchDebugInfo_; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + @java.lang.Override + public int getGeoSearchDebugInfoCount() { + return geoSearchDebugInfo_.size(); + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo getGeoSearchDebugInfo(int index) { + return geoSearchDebugInfo_.get(index); + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder getGeoSearchDebugInfoOrBuilder( + int index) { + return geoSearchDebugInfo_.get(index); + } + + public static final int QUERY_EXPANSION_INFO_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo queryExpansionInfo_; + /** + *
+   * Query expansion information for the returned results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + * @return Whether the queryExpansionInfo field is set. + */ + @java.lang.Override + public boolean hasQueryExpansionInfo() { + return queryExpansionInfo_ != null; + } + /** + *
+   * Query expansion information for the returned results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + * @return The queryExpansionInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo getQueryExpansionInfo() { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; + } + /** + *
+   * Query expansion information for the returned results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder() { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + for (int i = 0; i < facets_.size(); i++) { + output.writeMessage(2, facets_.get(i)); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, attributionToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nextPageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(correctedQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, correctedQuery_); + } + if (guidedSearchResult_ != null) { + output.writeMessage(8, getGuidedSearchResult()); + } + if (summary_ != null) { + output.writeMessage(9, getSummary()); + } + for (int i = 0; i < appliedControls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, appliedControls_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, redirectUri_); + } + if (queryExpansionInfo_ != null) { + output.writeMessage(14, getQueryExpansionInfo()); + } + for (int i = 0; i < geoSearchDebugInfo_.size(); i++) { + output.writeMessage(16, geoSearchDebugInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); + } + for (int i = 0; i < facets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, facets_.get(i)); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attributionToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nextPageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(correctedQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, correctedQuery_); + } + if (guidedSearchResult_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getGuidedSearchResult()); + } + if (summary_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSummary()); + } + { + int dataSize = 0; + for (int i = 0; i < appliedControls_.size(); i++) { + dataSize += computeStringSizeNoTag(appliedControls_.getRaw(i)); + } + size += dataSize; + size += 1 * getAppliedControlsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, redirectUri_); + } + if (queryExpansionInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getQueryExpansionInfo()); + } + for (int i = 0; i < geoSearchDebugInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, geoSearchDebugInfo_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchResponse other = (com.google.cloud.discoveryengine.v1alpha.SearchResponse) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getFacetsList() + .equals(other.getFacetsList())) return false; + if (hasGuidedSearchResult() != other.hasGuidedSearchResult()) return false; + if (hasGuidedSearchResult()) { + if (!getGuidedSearchResult() + .equals(other.getGuidedSearchResult())) return false; + } + if (getTotalSize() + != other.getTotalSize()) return false; + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getRedirectUri() + .equals(other.getRedirectUri())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getCorrectedQuery() + .equals(other.getCorrectedQuery())) return false; + if (hasSummary() != other.hasSummary()) return false; + if (hasSummary()) { + if (!getSummary() + .equals(other.getSummary())) return false; + } + if (!getAppliedControlsList() + .equals(other.getAppliedControlsList())) return false; + if (!getGeoSearchDebugInfoList() + .equals(other.getGeoSearchDebugInfoList())) return false; + if (hasQueryExpansionInfo() != other.hasQueryExpansionInfo()) return false; + if (hasQueryExpansionInfo()) { + if (!getQueryExpansionInfo() + .equals(other.getQueryExpansionInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + if (getFacetsCount() > 0) { + hash = (37 * hash) + FACETS_FIELD_NUMBER; + hash = (53 * hash) + getFacetsList().hashCode(); + } + if (hasGuidedSearchResult()) { + hash = (37 * hash) + GUIDED_SEARCH_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getGuidedSearchResult().hashCode(); + } + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (37 * hash) + ATTRIBUTION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAttributionToken().hashCode(); + hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUri().hashCode(); + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + CORRECTED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedQuery().hashCode(); + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + if (getAppliedControlsCount() > 0) { + hash = (37 * hash) + APPLIED_CONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getAppliedControlsList().hashCode(); + } + if (getGeoSearchDebugInfoCount() > 0) { + hash = (37 * hash) + GEO_SEARCH_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getGeoSearchDebugInfoList().hashCode(); + } + if (hasQueryExpansionInfo()) { + hash = (37 * hash) + QUERY_EXPANSION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryExpansionInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse 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.discoveryengine.v1alpha.SearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse 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.discoveryengine.v1alpha.SearchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse 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.discoveryengine.v1alpha.SearchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchResponse) + com.google.cloud.discoveryengine.v1alpha.SearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.class, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SearchResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (facetsBuilder_ == null) { + facets_ = java.util.Collections.emptyList(); + } else { + facets_ = null; + facetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + guidedSearchResult_ = null; + if (guidedSearchResultBuilder_ != null) { + guidedSearchResultBuilder_.dispose(); + guidedSearchResultBuilder_ = null; + } + totalSize_ = 0; + attributionToken_ = ""; + redirectUri_ = ""; + nextPageToken_ = ""; + correctedQuery_ = ""; + summary_ = null; + if (summaryBuilder_ != null) { + summaryBuilder_.dispose(); + summaryBuilder_ = null; + } + appliedControls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (geoSearchDebugInfoBuilder_ == null) { + geoSearchDebugInfo_ = java.util.Collections.emptyList(); + } else { + geoSearchDebugInfo_ = null; + geoSearchDebugInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + queryExpansionInfo_ = null; + if (queryExpansionInfoBuilder_ != null) { + queryExpansionInfoBuilder_.dispose(); + queryExpansionInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse build() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchResponse result = new com.google.cloud.discoveryengine.v1alpha.SearchResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.SearchResponse result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + if (facetsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + facets_ = java.util.Collections.unmodifiableList(facets_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.facets_ = facets_; + } else { + result.facets_ = facetsBuilder_.build(); + } + if (geoSearchDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + geoSearchDebugInfo_ = java.util.Collections.unmodifiableList(geoSearchDebugInfo_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.geoSearchDebugInfo_ = geoSearchDebugInfo_; + } else { + result.geoSearchDebugInfo_ = geoSearchDebugInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.guidedSearchResult_ = guidedSearchResultBuilder_ == null + ? guidedSearchResult_ + : guidedSearchResultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalSize_ = totalSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.attributionToken_ = attributionToken_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.redirectUri_ = redirectUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.correctedQuery_ = correctedQuery_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.summary_ = summaryBuilder_ == null + ? summary_ + : summaryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + appliedControls_.makeImmutable(); + result.appliedControls_ = appliedControls_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.queryExpansionInfo_ = queryExpansionInfoBuilder_ == null + ? queryExpansionInfo_ + : queryExpansionInfoBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.SearchResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SearchResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.SearchResponse.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (facetsBuilder_ == null) { + if (!other.facets_.isEmpty()) { + if (facets_.isEmpty()) { + facets_ = other.facets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFacetsIsMutable(); + facets_.addAll(other.facets_); + } + onChanged(); + } + } else { + if (!other.facets_.isEmpty()) { + if (facetsBuilder_.isEmpty()) { + facetsBuilder_.dispose(); + facetsBuilder_ = null; + facets_ = other.facets_; + bitField0_ = (bitField0_ & ~0x00000002); + facetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFacetsFieldBuilder() : null; + } else { + facetsBuilder_.addAllMessages(other.facets_); + } + } + } + if (other.hasGuidedSearchResult()) { + mergeGuidedSearchResult(other.getGuidedSearchResult()); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + if (!other.getAttributionToken().isEmpty()) { + attributionToken_ = other.attributionToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRedirectUri().isEmpty()) { + redirectUri_ = other.redirectUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getCorrectedQuery().isEmpty()) { + correctedQuery_ = other.correctedQuery_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasSummary()) { + mergeSummary(other.getSummary()); + } + if (!other.appliedControls_.isEmpty()) { + if (appliedControls_.isEmpty()) { + appliedControls_ = other.appliedControls_; + bitField0_ |= 0x00000200; + } else { + ensureAppliedControlsIsMutable(); + appliedControls_.addAll(other.appliedControls_); + } + onChanged(); + } + if (geoSearchDebugInfoBuilder_ == null) { + if (!other.geoSearchDebugInfo_.isEmpty()) { + if (geoSearchDebugInfo_.isEmpty()) { + geoSearchDebugInfo_ = other.geoSearchDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.addAll(other.geoSearchDebugInfo_); + } + onChanged(); + } + } else { + if (!other.geoSearchDebugInfo_.isEmpty()) { + if (geoSearchDebugInfoBuilder_.isEmpty()) { + geoSearchDebugInfoBuilder_.dispose(); + geoSearchDebugInfoBuilder_ = null; + geoSearchDebugInfo_ = other.geoSearchDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000400); + geoSearchDebugInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGeoSearchDebugInfoFieldBuilder() : null; + } else { + geoSearchDebugInfoBuilder_.addAllMessages(other.geoSearchDebugInfo_); + } + } + } + if (other.hasQueryExpansionInfo()) { + mergeQueryExpansionInfo(other.getQueryExpansionInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.parser(), + extensionRegistry); + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.add(m); + } else { + facetsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + attributionToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 58: { + correctedQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getGuidedSearchResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 66 + case 74: { + input.readMessage( + getSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAppliedControlsIsMutable(); + appliedControls_.add(s); + break; + } // case 82 + case 98: { + redirectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 98 + case 114: { + input.readMessage( + getQueryExpansionInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 130: { + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.parser(), + extensionRegistry); + if (geoSearchDebugInfoBuilder_ == null) { + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.add(m); + } else { + geoSearchDebugInfoBuilder_.addMessage(m); + } + break; + } // case 130 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder> resultsBuilder_; + + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder setResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder setResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder addResults(com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder addResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder addResults( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder addResults( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.getDefaultInstance()); + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.getDefaultInstance()); + } + /** + *
+     * A list of matched documents. The order represents the ranking.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.util.List facets_ = + java.util.Collections.emptyList(); + private void ensureFacetsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + facets_ = new java.util.ArrayList(facets_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder> facetsBuilder_; + + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public java.util.List getFacetsList() { + if (facetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facets_); + } else { + return facetsBuilder_.getMessageList(); + } + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public int getFacetsCount() { + if (facetsBuilder_ == null) { + return facets_.size(); + } else { + return facetsBuilder_.getCount(); + } + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet getFacets(int index) { + if (facetsBuilder_ == null) { + return facets_.get(index); + } else { + return facetsBuilder_.getMessage(index); + } + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder setFacets( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet value) { + if (facetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetsIsMutable(); + facets_.set(index, value); + onChanged(); + } else { + facetsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder setFacets( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder builderForValue) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.set(index, builderForValue.build()); + onChanged(); + } else { + facetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder addFacets(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet value) { + if (facetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetsIsMutable(); + facets_.add(value); + onChanged(); + } else { + facetsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder addFacets( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet value) { + if (facetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetsIsMutable(); + facets_.add(index, value); + onChanged(); + } else { + facetsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder addFacets( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder builderForValue) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.add(builderForValue.build()); + onChanged(); + } else { + facetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder addFacets( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder builderForValue) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.add(index, builderForValue.build()); + onChanged(); + } else { + facetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder addAllFacets( + java.lang.Iterable values) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facets_); + onChanged(); + } else { + facetsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder clearFacets() { + if (facetsBuilder_ == null) { + facets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + facetsBuilder_.clear(); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public Builder removeFacets(int index) { + if (facetsBuilder_ == null) { + ensureFacetsIsMutable(); + facets_.remove(index); + onChanged(); + } else { + facetsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder getFacetsBuilder( + int index) { + return getFacetsFieldBuilder().getBuilder(index); + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder getFacetsOrBuilder( + int index) { + if (facetsBuilder_ == null) { + return facets_.get(index); } else { + return facetsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public java.util.List + getFacetsOrBuilderList() { + if (facetsBuilder_ != null) { + return facetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facets_); + } + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder addFacetsBuilder() { + return getFacetsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.getDefaultInstance()); + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder addFacetsBuilder( + int index) { + return getFacetsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.getDefaultInstance()); + } + /** + *
+     * Results of facets requested by user.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + public java.util.List + getFacetsBuilderList() { + return getFacetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder> + getFacetsFieldBuilder() { + if (facetsBuilder_ == null) { + facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder>( + facets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + facets_ = null; + } + return facetsBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guidedSearchResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder> guidedSearchResultBuilder_; + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + * @return Whether the guidedSearchResult field is set. + */ + public boolean hasGuidedSearchResult() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + * @return The guidedSearchResult. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult getGuidedSearchResult() { + if (guidedSearchResultBuilder_ == null) { + return guidedSearchResult_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; + } else { + return guidedSearchResultBuilder_.getMessage(); + } + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + public Builder setGuidedSearchResult(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult value) { + if (guidedSearchResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guidedSearchResult_ = value; + } else { + guidedSearchResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + public Builder setGuidedSearchResult( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder builderForValue) { + if (guidedSearchResultBuilder_ == null) { + guidedSearchResult_ = builderForValue.build(); + } else { + guidedSearchResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + public Builder mergeGuidedSearchResult(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult value) { + if (guidedSearchResultBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + guidedSearchResult_ != null && + guidedSearchResult_ != com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance()) { + getGuidedSearchResultBuilder().mergeFrom(value); + } else { + guidedSearchResult_ = value; + } + } else { + guidedSearchResultBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + public Builder clearGuidedSearchResult() { + bitField0_ = (bitField0_ & ~0x00000004); + guidedSearchResult_ = null; + if (guidedSearchResultBuilder_ != null) { + guidedSearchResultBuilder_.dispose(); + guidedSearchResultBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder getGuidedSearchResultBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGuidedSearchResultFieldBuilder().getBuilder(); + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder() { + if (guidedSearchResultBuilder_ != null) { + return guidedSearchResultBuilder_.getMessageOrBuilder(); + } else { + return guidedSearchResult_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; + } + } + /** + *
+     * Guided search result.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder> + getGuidedSearchResultFieldBuilder() { + if (guidedSearchResultBuilder_ == null) { + guidedSearchResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder>( + getGuidedSearchResult(), + getParentForChildren(), + isClean()); + guidedSearchResult_ = null; + } + return guidedSearchResultBuilder_; + } + + private int totalSize_ ; + /** + *
+     * The estimated total count of matched items irrespective of pagination. The
+     * count of
+     * [results][google.cloud.discoveryengine.v1alpha.SearchResponse.results]
+     * returned by pagination may be less than the
+     * [total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+     * that matches.
+     * 
+ * + * int32 total_size = 3; + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + /** + *
+     * The estimated total count of matched items irrespective of pagination. The
+     * count of
+     * [results][google.cloud.discoveryengine.v1alpha.SearchResponse.results]
+     * returned by pagination may be less than the
+     * [total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+     * that matches.
+     * 
+ * + * int32 total_size = 3; + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The estimated total count of matched items irrespective of pagination. The
+     * count of
+     * [results][google.cloud.discoveryengine.v1alpha.SearchResponse.results]
+     * returned by pagination may be less than the
+     * [total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+     * that matches.
+     * 
+ * + * int32 total_size = 3; + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000008); + totalSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object attributionToken_ = ""; + /** + *
+     * A unique search token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this search, which enables accurate attribution of search model
+     * performance.
+     * 
+ * + * string attribution_token = 4; + * @return The attributionToken. + */ + public java.lang.String getAttributionToken() { + java.lang.Object ref = attributionToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributionToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique search token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this search, which enables accurate attribution of search model
+     * performance.
+     * 
+ * + * string attribution_token = 4; + * @return The bytes for attributionToken. + */ + public com.google.protobuf.ByteString + getAttributionTokenBytes() { + java.lang.Object ref = attributionToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique search token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this search, which enables accurate attribution of search model
+     * performance.
+     * 
+ * + * string attribution_token = 4; + * @param value The attributionToken to set. + * @return This builder for chaining. + */ + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + attributionToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * A unique search token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this search, which enables accurate attribution of search model
+     * performance.
+     * 
+ * + * string attribution_token = 4; + * @return This builder for chaining. + */ + public Builder clearAttributionToken() { + attributionToken_ = getDefaultInstance().getAttributionToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * A unique search token. This should be included in the
+     * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+     * from this search, which enables accurate attribution of search model
+     * performance.
+     * 
+ * + * string attribution_token = 4; + * @param value The bytes for attributionToken to set. + * @return This builder for chaining. + */ + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + attributionToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object redirectUri_ = ""; + /** + *
+     * The URI of a customer-defined redirect page. If redirect action is
+     * triggered, no search is performed, and only
+     * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+     * and
+     * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+     * are set in the response.
+     * 
+ * + * string redirect_uri = 12; + * @return The redirectUri. + */ + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI of a customer-defined redirect page. If redirect action is
+     * triggered, no search is performed, and only
+     * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+     * and
+     * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+     * are set in the response.
+     * 
+ * + * string redirect_uri = 12; + * @return The bytes for redirectUri. + */ + public com.google.protobuf.ByteString + getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI of a customer-defined redirect page. If redirect action is
+     * triggered, no search is performed, and only
+     * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+     * and
+     * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+     * are set in the response.
+     * 
+ * + * string redirect_uri = 12; + * @param value The redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + redirectUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The URI of a customer-defined redirect page. If redirect action is
+     * triggered, no search is performed, and only
+     * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+     * and
+     * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+     * are set in the response.
+     * 
+ * + * string redirect_uri = 12; + * @return This builder for chaining. + */ + public Builder clearRedirectUri() { + redirectUri_ = getDefaultInstance().getRedirectUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The URI of a customer-defined redirect page. If redirect action is
+     * triggered, no search is performed, and only
+     * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+     * and
+     * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+     * are set in the response.
+     * 
+ * + * string redirect_uri = 12; + * @param value The bytes for redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + redirectUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token that can be sent as
+     * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 5; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token that can be sent as
+     * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 5; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token that can be sent as
+     * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 5; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * A token that can be sent as
+     * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 5; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * A token that can be sent as
+     * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 5; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object correctedQuery_ = ""; + /** + *
+     * Contains the spell corrected query, if found. If the spell correction type
+     * is AUTOMATIC, then the search results are based on corrected_query.
+     * Otherwise the original query is used for search.
+     * 
+ * + * string corrected_query = 7; + * @return The correctedQuery. + */ + public java.lang.String getCorrectedQuery() { + java.lang.Object ref = correctedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Contains the spell corrected query, if found. If the spell correction type
+     * is AUTOMATIC, then the search results are based on corrected_query.
+     * Otherwise the original query is used for search.
+     * 
+ * + * string corrected_query = 7; + * @return The bytes for correctedQuery. + */ + public com.google.protobuf.ByteString + getCorrectedQueryBytes() { + java.lang.Object ref = correctedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + correctedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Contains the spell corrected query, if found. If the spell correction type
+     * is AUTOMATIC, then the search results are based on corrected_query.
+     * Otherwise the original query is used for search.
+     * 
+ * + * string corrected_query = 7; + * @param value The correctedQuery to set. + * @return This builder for chaining. + */ + public Builder setCorrectedQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + correctedQuery_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Contains the spell corrected query, if found. If the spell correction type
+     * is AUTOMATIC, then the search results are based on corrected_query.
+     * Otherwise the original query is used for search.
+     * 
+ * + * string corrected_query = 7; + * @return This builder for chaining. + */ + public Builder clearCorrectedQuery() { + correctedQuery_ = getDefaultInstance().getCorrectedQuery(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Contains the spell corrected query, if found. If the spell correction type
+     * is AUTOMATIC, then the search results are based on corrected_query.
+     * Otherwise the original query is used for search.
+     * 
+ * + * string corrected_query = 7; + * @param value The bytes for correctedQuery to set. + * @return This builder for chaining. + */ + public Builder setCorrectedQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + correctedQuery_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder> summaryBuilder_; + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + * @return Whether the summary field is set. + */ + public boolean hasSummary() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + * @return The summary. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getSummary() { + if (summaryBuilder_ == null) { + return summary_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } else { + return summaryBuilder_.getMessage(); + } + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + public Builder setSummary(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary value) { + if (summaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + } else { + summaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + public Builder setSummary( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder builderForValue) { + if (summaryBuilder_ == null) { + summary_ = builderForValue.build(); + } else { + summaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + public Builder mergeSummary(com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary value) { + if (summaryBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + summary_ != null && + summary_ != com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance()) { + getSummaryBuilder().mergeFrom(value); + } else { + summary_ = value; + } + } else { + summaryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + public Builder clearSummary() { + bitField0_ = (bitField0_ & ~0x00000100); + summary_ = null; + if (summaryBuilder_ != null) { + summaryBuilder_.dispose(); + summaryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder getSummaryBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getSummaryFieldBuilder().getBuilder(); + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { + if (summaryBuilder_ != null) { + return summaryBuilder_.getMessageOrBuilder(); + } else { + return summary_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.getDefaultInstance() : summary_; + } + } + /** + *
+     * A summary as part of the search results.
+     * This field is only returned if
+     * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+     * is set.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder> + getSummaryFieldBuilder() { + if (summaryBuilder_ == null) { + summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary, com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder>( + getSummary(), + getParentForChildren(), + isClean()); + summary_ = null; + } + return summaryBuilder_; + } + + private com.google.protobuf.LazyStringArrayList appliedControls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAppliedControlsIsMutable() { + if (!appliedControls_.isModifiable()) { + appliedControls_ = new com.google.protobuf.LazyStringArrayList(appliedControls_); + } + bitField0_ |= 0x00000200; + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @return A list containing the appliedControls. + */ + public com.google.protobuf.ProtocolStringList + getAppliedControlsList() { + appliedControls_.makeImmutable(); + return appliedControls_; + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @return The count of appliedControls. + */ + public int getAppliedControlsCount() { + return appliedControls_.size(); + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @param index The index of the element to return. + * @return The appliedControls at the given index. + */ + public java.lang.String getAppliedControls(int index) { + return appliedControls_.get(index); + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @param index The index of the value to return. + * @return The bytes of the appliedControls at the given index. + */ + public com.google.protobuf.ByteString + getAppliedControlsBytes(int index) { + return appliedControls_.getByteString(index); + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @param index The index to set the value at. + * @param value The appliedControls to set. + * @return This builder for chaining. + */ + public Builder setAppliedControls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAppliedControlsIsMutable(); + appliedControls_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @param value The appliedControls to add. + * @return This builder for chaining. + */ + public Builder addAppliedControls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAppliedControlsIsMutable(); + appliedControls_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @param values The appliedControls to add. + * @return This builder for chaining. + */ + public Builder addAllAppliedControls( + java.lang.Iterable values) { + ensureAppliedControlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appliedControls_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @return This builder for chaining. + */ + public Builder clearAppliedControls() { + appliedControls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; + onChanged(); + return this; + } + /** + *
+     * Controls applied as part of the Control service.
+     * 
+ * + * repeated string applied_controls = 10; + * @param value The bytes of the appliedControls to add. + * @return This builder for chaining. + */ + public Builder addAppliedControlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAppliedControlsIsMutable(); + appliedControls_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.util.List geoSearchDebugInfo_ = + java.util.Collections.emptyList(); + private void ensureGeoSearchDebugInfoIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + geoSearchDebugInfo_ = new java.util.ArrayList(geoSearchDebugInfo_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder> geoSearchDebugInfoBuilder_; + + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public java.util.List getGeoSearchDebugInfoList() { + if (geoSearchDebugInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(geoSearchDebugInfo_); + } else { + return geoSearchDebugInfoBuilder_.getMessageList(); + } + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public int getGeoSearchDebugInfoCount() { + if (geoSearchDebugInfoBuilder_ == null) { + return geoSearchDebugInfo_.size(); + } else { + return geoSearchDebugInfoBuilder_.getCount(); + } + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo getGeoSearchDebugInfo(int index) { + if (geoSearchDebugInfoBuilder_ == null) { + return geoSearchDebugInfo_.get(index); + } else { + return geoSearchDebugInfoBuilder_.getMessage(index); + } + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder setGeoSearchDebugInfo( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo value) { + if (geoSearchDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.set(index, value); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder setGeoSearchDebugInfo( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder builderForValue) { + if (geoSearchDebugInfoBuilder_ == null) { + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder addGeoSearchDebugInfo(com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo value) { + if (geoSearchDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.add(value); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder addGeoSearchDebugInfo( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo value) { + if (geoSearchDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.add(index, value); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder addGeoSearchDebugInfo( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder builderForValue) { + if (geoSearchDebugInfoBuilder_ == null) { + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.add(builderForValue.build()); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder addGeoSearchDebugInfo( + int index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder builderForValue) { + if (geoSearchDebugInfoBuilder_ == null) { + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder addAllGeoSearchDebugInfo( + java.lang.Iterable values) { + if (geoSearchDebugInfoBuilder_ == null) { + ensureGeoSearchDebugInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, geoSearchDebugInfo_); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder clearGeoSearchDebugInfo() { + if (geoSearchDebugInfoBuilder_ == null) { + geoSearchDebugInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public Builder removeGeoSearchDebugInfo(int index) { + if (geoSearchDebugInfoBuilder_ == null) { + ensureGeoSearchDebugInfoIsMutable(); + geoSearchDebugInfo_.remove(index); + onChanged(); + } else { + geoSearchDebugInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder getGeoSearchDebugInfoBuilder( + int index) { + return getGeoSearchDebugInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder getGeoSearchDebugInfoOrBuilder( + int index) { + if (geoSearchDebugInfoBuilder_ == null) { + return geoSearchDebugInfo_.get(index); } else { + return geoSearchDebugInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public java.util.List + getGeoSearchDebugInfoOrBuilderList() { + if (geoSearchDebugInfoBuilder_ != null) { + return geoSearchDebugInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(geoSearchDebugInfo_); + } + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder addGeoSearchDebugInfoBuilder() { + return getGeoSearchDebugInfoFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.getDefaultInstance()); + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder addGeoSearchDebugInfoBuilder( + int index) { + return getGeoSearchDebugInfoFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.getDefaultInstance()); + } + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + public java.util.List + getGeoSearchDebugInfoBuilderList() { + return getGeoSearchDebugInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder> + getGeoSearchDebugInfoFieldBuilder() { + if (geoSearchDebugInfoBuilder_ == null) { + geoSearchDebugInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder>( + geoSearchDebugInfo_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + geoSearchDebugInfo_ = null; + } + return geoSearchDebugInfoBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo queryExpansionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder> queryExpansionInfoBuilder_; + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + * @return Whether the queryExpansionInfo field is set. + */ + public boolean hasQueryExpansionInfo() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + * @return The queryExpansionInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo getQueryExpansionInfo() { + if (queryExpansionInfoBuilder_ == null) { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; + } else { + return queryExpansionInfoBuilder_.getMessage(); + } + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + public Builder setQueryExpansionInfo(com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo value) { + if (queryExpansionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryExpansionInfo_ = value; + } else { + queryExpansionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + public Builder setQueryExpansionInfo( + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder builderForValue) { + if (queryExpansionInfoBuilder_ == null) { + queryExpansionInfo_ = builderForValue.build(); + } else { + queryExpansionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + public Builder mergeQueryExpansionInfo(com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo value) { + if (queryExpansionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + queryExpansionInfo_ != null && + queryExpansionInfo_ != com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance()) { + getQueryExpansionInfoBuilder().mergeFrom(value); + } else { + queryExpansionInfo_ = value; + } + } else { + queryExpansionInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + public Builder clearQueryExpansionInfo() { + bitField0_ = (bitField0_ & ~0x00000800); + queryExpansionInfo_ = null; + if (queryExpansionInfoBuilder_ != null) { + queryExpansionInfoBuilder_.dispose(); + queryExpansionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder getQueryExpansionInfoBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getQueryExpansionInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder() { + if (queryExpansionInfoBuilder_ != null) { + return queryExpansionInfoBuilder_.getMessageOrBuilder(); + } else { + return queryExpansionInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; + } + } + /** + *
+     * Query expansion information for the returned results.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder> + getQueryExpansionInfoFieldBuilder() { + if (queryExpansionInfoBuilder_ == null) { + queryExpansionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder>( + getQueryExpansionInfo(), + getParentForChildren(), + isClean()); + queryExpansionInfo_ = null; + } + return queryExpansionInfoBuilder_; + } + @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.discoveryengine.v1alpha.SearchResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchResponse) + private static final com.google.cloud.discoveryengine.v1alpha.SearchResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponseOrBuilder.java new file mode 100644 index 000000000000..bf7a6fe7e5f7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponseOrBuilder.java @@ -0,0 +1,373 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface SearchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + java.util.List + getResultsList(); + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult getResults(int index); + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + int getResultsCount(); + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+   * A list of matched documents. The order represents the ranking.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult results = 1; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index); + + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + java.util.List + getFacetsList(); + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Facet getFacets(int index); + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + int getFacetsCount(); + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + java.util.List + getFacetsOrBuilderList(); + /** + *
+   * Results of facets requested by user.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Facet facets = 2; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.FacetOrBuilder getFacetsOrBuilder( + int index); + + /** + *
+   * Guided search result.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + * @return Whether the guidedSearchResult field is set. + */ + boolean hasGuidedSearchResult(); + /** + *
+   * Guided search result.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + * @return The guidedSearchResult. + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult getGuidedSearchResult(); + /** + *
+   * Guided search result.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult guided_search_result = 8; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder(); + + /** + *
+   * The estimated total count of matched items irrespective of pagination. The
+   * count of
+   * [results][google.cloud.discoveryengine.v1alpha.SearchResponse.results]
+   * returned by pagination may be less than the
+   * [total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size]
+   * that matches.
+   * 
+ * + * int32 total_size = 3; + * @return The totalSize. + */ + int getTotalSize(); + + /** + *
+   * A unique search token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this search, which enables accurate attribution of search model
+   * performance.
+   * 
+ * + * string attribution_token = 4; + * @return The attributionToken. + */ + java.lang.String getAttributionToken(); + /** + *
+   * A unique search token. This should be included in the
+   * [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting
+   * from this search, which enables accurate attribution of search model
+   * performance.
+   * 
+ * + * string attribution_token = 4; + * @return The bytes for attributionToken. + */ + com.google.protobuf.ByteString + getAttributionTokenBytes(); + + /** + *
+   * The URI of a customer-defined redirect page. If redirect action is
+   * triggered, no search is performed, and only
+   * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+   * and
+   * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+   * are set in the response.
+   * 
+ * + * string redirect_uri = 12; + * @return The redirectUri. + */ + java.lang.String getRedirectUri(); + /** + *
+   * The URI of a customer-defined redirect page. If redirect action is
+   * triggered, no search is performed, and only
+   * [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri]
+   * and
+   * [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token]
+   * are set in the response.
+   * 
+ * + * string redirect_uri = 12; + * @return The bytes for redirectUri. + */ + com.google.protobuf.ByteString + getRedirectUriBytes(); + + /** + *
+   * A token that can be sent as
+   * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 5; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token that can be sent as
+   * [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 5; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Contains the spell corrected query, if found. If the spell correction type
+   * is AUTOMATIC, then the search results are based on corrected_query.
+   * Otherwise the original query is used for search.
+   * 
+ * + * string corrected_query = 7; + * @return The correctedQuery. + */ + java.lang.String getCorrectedQuery(); + /** + *
+   * Contains the spell corrected query, if found. If the spell correction type
+   * is AUTOMATIC, then the search results are based on corrected_query.
+   * Otherwise the original query is used for search.
+   * 
+ * + * string corrected_query = 7; + * @return The bytes for correctedQuery. + */ + com.google.protobuf.ByteString + getCorrectedQueryBytes(); + + /** + *
+   * A summary as part of the search results.
+   * This field is only returned if
+   * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+   * is set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + * @return Whether the summary field is set. + */ + boolean hasSummary(); + /** + *
+   * A summary as part of the search results.
+   * This field is only returned if
+   * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+   * is set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + * @return The summary. + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary getSummary(); + /** + *
+   * A summary as part of the search results.
+   * This field is only returned if
+   * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec]
+   * is set.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 9; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.SummaryOrBuilder getSummaryOrBuilder(); + + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @return A list containing the appliedControls. + */ + java.util.List + getAppliedControlsList(); + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @return The count of appliedControls. + */ + int getAppliedControlsCount(); + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @param index The index of the element to return. + * @return The appliedControls at the given index. + */ + java.lang.String getAppliedControls(int index); + /** + *
+   * Controls applied as part of the Control service.
+   * 
+ * + * repeated string applied_controls = 10; + * @param index The index of the value to return. + * @return The bytes of the appliedControls at the given index. + */ + com.google.protobuf.ByteString + getAppliedControlsBytes(int index); + + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + java.util.List + getGeoSearchDebugInfoList(); + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo getGeoSearchDebugInfo(int index); + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + int getGeoSearchDebugInfoCount(); + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + java.util.List + getGeoSearchDebugInfoOrBuilderList(); + /** + * repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.GeoSearchDebugInfoOrBuilder getGeoSearchDebugInfoOrBuilder( + int index); + + /** + *
+   * Query expansion information for the returned results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + * @return Whether the queryExpansionInfo field is set. + */ + boolean hasQueryExpansionInfo(); + /** + *
+   * Query expansion information for the returned results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + * @return The queryExpansionInfo. + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo getQueryExpansionInfo(); + /** + *
+   * Query expansion information for the returned results.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 14; + */ + com.google.cloud.discoveryengine.v1alpha.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java new file mode 100644 index 000000000000..cf043bc29e5c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java @@ -0,0 +1,524 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class SearchServiceProto { + private SearchServiceProto() {} + 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_discoveryengine_v1alpha_SearchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/discoveryengine/v1alpha/s" + + "earch_service.proto\022$google.cloud.discov" + + "eryengine.v1alpha\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0321google/cloud/discoveryengi" + + "ne/v1alpha/common.proto\0323google/cloud/di" + + "scoveryengine/v1alpha/document.proto\032\034go" + + "ogle/protobuf/struct.proto\"\254\032\n\rSearchReq" + + "uest\022M\n\016serving_config\030\001 \001(\tB5\342A\001\002\372A.\n,d" + + "iscoveryengine.googleapis.com/ServingCon" + + "fig\022:\n\006branch\030\002 \001(\tB*\372A\'\n%discoveryengin" + + "e.googleapis.com/Branch\022\r\n\005query\030\003 \001(\t\022S" + + "\n\013image_query\030\023 \001(\0132>.google.cloud.disco" + + "veryengine.v1alpha.SearchRequest.ImageQu" + + "ery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001" + + "(\t\022\016\n\006offset\030\006 \001(\005\022\016\n\006filter\030\007 \001(\t\022\020\n\010or" + + "der_by\030\010 \001(\t\022A\n\tuser_info\030\025 \001(\0132..google" + + ".cloud.discoveryengine.v1alpha.UserInfo\022" + + "R\n\013facet_specs\030\t \003(\0132=.google.cloud.disc" + + "overyengine.v1alpha.SearchRequest.FacetS" + + "pec\022Q\n\nboost_spec\030\n \001(\0132=.google.cloud.d" + + "iscoveryengine.v1alpha.SearchRequest.Boo" + + "stSpec\022O\n\006params\030\013 \003(\0132?.google.cloud.di" + + "scoveryengine.v1alpha.SearchRequest.Para" + + "msEntry\022d\n\024query_expansion_spec\030\r \001(\0132F." + + "google.cloud.discoveryengine.v1alpha.Sea" + + "rchRequest.QueryExpansionSpec\022f\n\025spell_c" + + "orrection_spec\030\016 \001(\0132G.google.cloud.disc" + + "overyengine.v1alpha.SearchRequest.SpellC" + + "orrectionSpec\022\026\n\016user_pseudo_id\030\017 \001(\t\022b\n" + + "\023content_search_spec\030\030 \001(\0132E.google.clou" + + "d.discoveryengine.v1alpha.SearchRequest." + + "ContentSearchSpec\022Y\n\016embedding_spec\030\027 \001(" + + "\0132A.google.cloud.discoveryengine.v1alpha" + + ".SearchRequest.EmbeddingSpec\022\032\n\022ranking_" + + "expression\030\032 \001(\t\022\023\n\013safe_search\030\024 \001(\010\022X\n" + + "\013user_labels\030\026 \003(\0132C.google.cloud.discov" + + "eryengine.v1alpha.SearchRequest.UserLabe" + + "lsEntry\032,\n\nImageQuery\022\025\n\013image_bytes\030\001 \001" + + "(\tH\000B\007\n\005image\032\210\003\n\tFacetSpec\022_\n\tfacet_key" + + "\030\001 \001(\0132F.google.cloud.discoveryengine.v1" + + "alpha.SearchRequest.FacetSpec.FacetKeyB\004" + + "\342A\001\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024excluded_filter_k" + + "eys\030\003 \003(\t\022\037\n\027enable_dynamic_position\030\004 \001" + + "(\010\032\313\001\n\010FacetKey\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\022A\n\tin" + + "tervals\030\002 \003(\0132..google.cloud.discoveryen" + + "gine.v1alpha.Interval\022\031\n\021restricted_valu" + + "es\030\003 \003(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010contains\030\005" + + " \003(\t\022\030\n\020case_insensitive\030\006 \001(\010\022\020\n\010order_" + + "by\030\007 \001(\t\032\264\001\n\tBoostSpec\022o\n\025condition_boos" + + "t_specs\030\001 \003(\0132P.google.cloud.discoveryen" + + "gine.v1alpha.SearchRequest.BoostSpec.Con" + + "ditionBoostSpec\0326\n\022ConditionBoostSpec\022\021\n" + + "\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\032\331\001\n\022Quer" + + "yExpansionSpec\022c\n\tcondition\030\001 \001(\0162P.goog" + + "le.cloud.discoveryengine.v1alpha.SearchR" + + "equest.QueryExpansionSpec.Condition\022\036\n\026p" + + "in_unexpanded_results\030\002 \001(\010\">\n\tCondition" + + "\022\031\n\025CONDITION_UNSPECIFIED\020\000\022\014\n\010DISABLED\020" + + "\001\022\010\n\004AUTO\020\002\032\256\001\n\023SpellCorrectionSpec\022Z\n\004m" + + "ode\030\001 \001(\0162L.google.cloud.discoveryengine" + + ".v1alpha.SearchRequest.SpellCorrectionSp" + + "ec.Mode\";\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n" + + "\017SUGGESTION_ONLY\020\001\022\010\n\004AUTO\020\002\032\271\006\n\021Content" + + "SearchSpec\022g\n\014snippet_spec\030\001 \001(\0132Q.googl" + + "e.cloud.discoveryengine.v1alpha.SearchRe" + + "quest.ContentSearchSpec.SnippetSpec\022g\n\014s" + + "ummary_spec\030\002 \001(\0132Q.google.cloud.discove" + + "ryengine.v1alpha.SearchRequest.ContentSe" + + "archSpec.SummarySpec\022|\n\027extractive_conte" + + "nt_spec\030\003 \001(\0132[.google.cloud.discoveryen" + + "gine.v1alpha.SearchRequest.ContentSearch" + + "Spec.ExtractiveContentSpec\032`\n\013SnippetSpe" + + "c\022\035\n\021max_snippet_count\030\001 \001(\005B\002\030\001\022\032\n\016refe" + + "rence_only\030\002 \001(\010B\002\030\001\022\026\n\016return_snippet\030\003" + + " \001(\010\032\251\001\n\013SummarySpec\022\034\n\024summary_result_c" + + "ount\030\001 \001(\005\022\031\n\021include_citations\030\002 \001(\010\022 \n" + + "\030ignore_adversarial_query\030\003 \001(\010\022(\n ignor" + + "e_non_summary_seeking_query\030\004 \001(\010\022\025\n\rlan" + + "guage_code\030\006 \001(\t\032\305\001\n\025ExtractiveContentSp" + + "ec\022#\n\033max_extractive_answer_count\030\001 \001(\005\022" + + "$\n\034max_extractive_segment_count\030\002 \001(\005\022\'\n" + + "\037return_extractive_segment_score\030\003 \001(\010\022\035" + + "\n\025num_previous_segments\030\004 \001(\005\022\031\n\021num_nex" + + "t_segments\030\005 \001(\005\032\264\001\n\rEmbeddingSpec\022l\n\021em" + + "bedding_vectors\030\001 \003(\0132Q.google.cloud.dis" + + "coveryengine.v1alpha.SearchRequest.Embed" + + "dingSpec.EmbeddingVector\0325\n\017EmbeddingVec" + + "tor\022\022\n\nfield_path\030\001 \001(\t\022\016\n\006vector\030\002 \003(\002\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\0321\n\017UserLa" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\245\021\n\016SearchResponse\022R\n\007results\030\001 \003(\0132A." + + "google.cloud.discoveryengine.v1alpha.Sea" + + "rchResponse.SearchResult\022J\n\006facets\030\002 \003(\013" + + "2:.google.cloud.discoveryengine.v1alpha." + + "SearchResponse.Facet\022e\n\024guided_search_re" + + "sult\030\010 \001(\0132G.google.cloud.discoveryengin" + + "e.v1alpha.SearchResponse.GuidedSearchRes" + + "ult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021attribution_t" + + "oken\030\004 \001(\t\022\024\n\014redirect_uri\030\014 \001(\t\022\027\n\017next" + + "_page_token\030\005 \001(\t\022\027\n\017corrected_query\030\007 \001" + + "(\t\022M\n\007summary\030\t \001(\0132<.google.cloud.disco" + + "veryengine.v1alpha.SearchResponse.Summar" + + "y\022\030\n\020applied_controls\030\n \003(\t\022f\n\025geo_searc" + + "h_debug_info\030\020 \003(\0132G.google.cloud.discov" + + "eryengine.v1alpha.SearchResponse.GeoSear" + + "chDebugInfo\022e\n\024query_expansion_info\030\016 \001(" + + "\0132G.google.cloud.discoveryengine.v1alpha" + + ".SearchResponse.QueryExpansionInfo\032\254\002\n\014S" + + "earchResult\022\n\n\002id\030\001 \001(\t\022@\n\010document\030\002 \001(" + + "\0132..google.cloud.discoveryengine.v1alpha" + + ".Document\022h\n\014model_scores\030\004 \003(\0132R.google" + + ".cloud.discoveryengine.v1alpha.SearchRes" + + "ponse.SearchResult.ModelScoresEntry\032d\n\020M" + + "odelScoresEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 " + + "\001(\01320.google.cloud.discoveryengine.v1alp" + + "ha.DoubleList:\0028\001\032\203\002\n\005Facet\022\013\n\003key\030\001 \001(\t" + + "\022U\n\006values\030\002 \003(\0132E.google.cloud.discover" + + "yengine.v1alpha.SearchResponse.Facet.Fac" + + "etValue\022\025\n\rdynamic_facet\030\003 \001(\010\032\177\n\nFacetV" + + "alue\022\017\n\005value\030\001 \001(\tH\000\022B\n\010interval\030\002 \001(\0132" + + "..google.cloud.discoveryengine.v1alpha.I" + + "ntervalH\000\022\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032" + + "\364\001\n\022GuidedSearchResult\022z\n\025refinement_att" + + "ributes\030\001 \003(\0132[.google.cloud.discoveryen" + + "gine.v1alpha.SearchResponse.GuidedSearch" + + "Result.RefinementAttribute\022\033\n\023follow_up_" + + "questions\030\002 \003(\t\032E\n\023RefinementAttribute\022\025" + + "\n\rattribute_key\030\001 \001(\t\022\027\n\017attribute_value" + + "\030\002 \001(\t\032\230\004\n\007Summary\022\024\n\014summary_text\030\001 \001(\t" + + "\022r\n\027summary_skipped_reasons\030\002 \003(\0162Q.goog" + + "le.cloud.discoveryengine.v1alpha.SearchR" + + "esponse.Summary.SummarySkippedReason\022h\n\021" + + "safety_attributes\030\003 \001(\0132M.google.cloud.d" + + "iscoveryengine.v1alpha.SearchResponse.Su" + + "mmary.SafetyAttributes\0326\n\020SafetyAttribut" + + "es\022\022\n\ncategories\030\001 \003(\t\022\016\n\006scores\030\002 \003(\002\"\340" + + "\001\n\024SummarySkippedReason\022&\n\"SUMMARY_SKIPP" + + "ED_REASON_UNSPECIFIED\020\000\022\035\n\031ADVERSARIAL_Q" + + "UERY_IGNORED\020\001\022%\n!NON_SUMMARY_SEEKING_QU" + + "ERY_IGNORED\020\002\022\037\n\033OUT_OF_DOMAIN_QUERY_IGN" + + "ORED\020\003\022\036\n\032POTENTIAL_POLICY_VIOLATION\020\004\022\031" + + "\n\025LLM_ADDON_NOT_ENABLED\020\005\032K\n\022GeoSearchDe" + + "bugInfo\022\036\n\026original_address_query\030\001 \001(\t\022" + + "\025\n\rerror_message\030\002 \001(\t\032I\n\022QueryExpansion" + + "Info\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinned_r" + + "esult_count\030\002 \001(\0032\216\004\n\rSearchService\022\250\003\n\006" + + "Search\0223.google.cloud.discoveryengine.v1" + + "alpha.SearchRequest\0324.google.cloud.disco" + + "veryengine.v1alpha.SearchResponse\"\262\002\202\323\344\223" + + "\002\253\002\"U/v1alpha/{serving_config=projects/*" + + "/locations/*/dataStores/*/servingConfigs" + + "/*}:search:\001*Zh\"c/v1alpha/{serving_confi" + + "g=projects/*/locations/*/collections/*/d" + + "ataStores/*/servingConfigs/*}:search:\001*Z" + + "e\"`/v1alpha/{serving_config=projects/*/l" + + "ocations/*/collections/*/engines/*/servi" + + "ngConfigs/*}:search:\001*\032R\312A\036discoveryengi" + + "ne.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\236\002\n(com.googl" + + "e.cloud.discoveryengine.v1alphaB\022SearchS" + + "erviceProtoP\001ZRcloud.google.com/go/disco" + + "veryengine/apiv1alpha/discoveryenginepb;" + + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Go" + + "ogle.Cloud.DiscoveryEngine.V1Alpha\312\002$Goo" + + "gle\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Goog" + + "le::Cloud::DiscoveryEngine::V1alphab\006pro" + + "to3" + }; + 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.discoveryengine.v1alpha.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor, + new java.lang.String[] { "ServingConfig", "Branch", "Query", "ImageQuery", "PageSize", "PageToken", "Offset", "Filter", "OrderBy", "UserInfo", "FacetSpecs", "BoostSpec", "Params", "QueryExpansionSpec", "SpellCorrectionSpec", "UserPseudoId", "ContentSearchSpec", "EmbeddingSpec", "RankingExpression", "SafeSearch", "UserLabels", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor, + new java.lang.String[] { "ImageBytes", "Image", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor, + new java.lang.String[] { "FacetKey", "Limit", "ExcludedFilterKeys", "EnableDynamicPosition", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_FacetKey_descriptor, + new java.lang.String[] { "Key", "Intervals", "RestrictedValues", "Prefixes", "Contains", "CaseInsensitive", "OrderBy", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor, + new java.lang.String[] { "ConditionBoostSpecs", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor, + new java.lang.String[] { "Condition", "Boost", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor, + new java.lang.String[] { "Condition", "PinUnexpandedResults", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor, + new java.lang.String[] { "Mode", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor, + new java.lang.String[] { "SnippetSpec", "SummarySpec", "ExtractiveContentSpec", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor, + new java.lang.String[] { "MaxSnippetCount", "ReferenceOnly", "ReturnSnippet", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SummarySpec_descriptor, + new java.lang.String[] { "SummaryResultCount", "IncludeCitations", "IgnoreAdversarialQuery", "IgnoreNonSummarySeekingQuery", "LanguageCode", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor, + new java.lang.String[] { "MaxExtractiveAnswerCount", "MaxExtractiveSegmentCount", "ReturnExtractiveSegmentScore", "NumPreviousSegments", "NumNextSegments", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor, + new java.lang.String[] { "EmbeddingVectors", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor, + new java.lang.String[] { "FieldPath", "Vector", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor, + new java.lang.String[] { "Results", "Facets", "GuidedSearchResult", "TotalSize", "AttributionToken", "RedirectUri", "NextPageToken", "CorrectedQuery", "Summary", "AppliedControls", "GeoSearchDebugInfo", "QueryExpansionInfo", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor, + new java.lang.String[] { "Id", "Document", "ModelScores", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor, + new java.lang.String[] { "Key", "Values", "DynamicFacet", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Facet_FacetValue_descriptor, + new java.lang.String[] { "Value", "Interval", "Count", "FacetValue", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor, + new java.lang.String[] { "RefinementAttributes", "FollowUpQuestions", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor, + new java.lang.String[] { "AttributeKey", "AttributeValue", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor, + new java.lang.String[] { "SummaryText", "SummarySkippedReasons", "SafetyAttributes", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_Summary_SafetyAttributes_descriptor, + new java.lang.String[] { "Categories", "Scores", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_GeoSearchDebugInfo_descriptor, + new java.lang.String[] { "OriginalAddressQuery", "ErrorMessage", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_QueryExpansionInfo_descriptor, + new java.lang.String[] { "ExpandedQuery", "PinnedResultCount", }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java new file mode 100644 index 000000000000..b1188c1dc2c6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java @@ -0,0 +1,566 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ServingConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_SERVING_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_SERVING_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_ENGINE_SERVING_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String servingConfig; + private final String collection; + private final String engine; + + @Deprecated + protected ServingConfigName() { + project = null; + location = null; + dataStore = null; + servingConfig = null; + collection = null; + engine = null; + } + + private ServingConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + servingConfig = Preconditions.checkNotNull(builder.getServingConfig()); + collection = null; + engine = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_SERVING_CONFIG; + } + + private ServingConfigName(ProjectLocationCollectionDataStoreServingConfigBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + servingConfig = Preconditions.checkNotNull(builder.getServingConfig()); + engine = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_SERVING_CONFIG; + } + + private ServingConfigName(ProjectLocationCollectionEngineServingConfigBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + engine = Preconditions.checkNotNull(builder.getEngine()); + servingConfig = Preconditions.checkNotNull(builder.getServingConfig()); + dataStore = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE_SERVING_CONFIG; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getServingConfig() { + return servingConfig; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreServingConfigBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreServingConfigBuilder + newProjectLocationCollectionDataStoreServingConfigBuilder() { + return new ProjectLocationCollectionDataStoreServingConfigBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionEngineServingConfigBuilder + newProjectLocationCollectionEngineServingConfigBuilder() { + return new ProjectLocationCollectionEngineServingConfigBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ServingConfigName of( + String project, String location, String dataStore, String servingConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setServingConfig(servingConfig) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static ServingConfigName ofProjectLocationDataStoreServingConfigName( + String project, String location, String dataStore, String servingConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setServingConfig(servingConfig) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static ServingConfigName ofProjectLocationCollectionDataStoreServingConfigName( + String project, String location, String collection, String dataStore, String servingConfig) { + return newProjectLocationCollectionDataStoreServingConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setServingConfig(servingConfig) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static ServingConfigName ofProjectLocationCollectionEngineServingConfigName( + String project, String location, String collection, String engine, String servingConfig) { + return newProjectLocationCollectionEngineServingConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setServingConfig(servingConfig) + .build(); + } + + public static String format( + String project, String location, String dataStore, String servingConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setServingConfig(servingConfig) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreServingConfigName( + String project, String location, String dataStore, String servingConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setServingConfig(servingConfig) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreServingConfigName( + String project, String location, String collection, String dataStore, String servingConfig) { + return newProjectLocationCollectionDataStoreServingConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setServingConfig(servingConfig) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionEngineServingConfigName( + String project, String location, String collection, String engine, String servingConfig) { + return newProjectLocationCollectionEngineServingConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setServingConfig(servingConfig) + .build() + .toString(); + } + + public static ServingConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_SERVING_CONFIG.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_DATA_STORE_SERVING_CONFIG.match(formattedString); + return ofProjectLocationDataStoreServingConfigName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("serving_config")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_SERVING_CONFIG.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_SERVING_CONFIG.match(formattedString); + return ofProjectLocationCollectionDataStoreServingConfigName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("serving_config")); + } else if (PROJECT_LOCATION_COLLECTION_ENGINE_SERVING_CONFIG.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_ENGINE_SERVING_CONFIG.match(formattedString); + return ofProjectLocationCollectionEngineServingConfigName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("engine"), + matchMap.get("serving_config")); + } + throw new ValidationException("ServingConfigName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ServingConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_SERVING_CONFIG.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_SERVING_CONFIG.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_ENGINE_SERVING_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (servingConfig != null) { + fieldMapBuilder.put("serving_config", servingConfig); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + if (engine != null) { + fieldMapBuilder.put("engine", engine); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ServingConfigName that = ((ServingConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.servingConfig, that.servingConfig) + && Objects.equals(this.collection, that.collection) + && Objects.equals(this.engine, that.engine); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(servingConfig); + h *= 1000003; + h ^= Objects.hashCode(collection); + h *= 1000003; + h ^= Objects.hashCode(engine); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String servingConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getServingConfig() { + return servingConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setServingConfig(String servingConfig) { + this.servingConfig = servingConfig; + return this; + } + + private Builder(ServingConfigName servingConfigName) { + Preconditions.checkArgument( + Objects.equals( + servingConfigName.pathTemplate, PROJECT_LOCATION_DATA_STORE_SERVING_CONFIG), + "toBuilder is only supported when ServingConfigName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}"); + this.project = servingConfigName.project; + this.location = servingConfigName.location; + this.dataStore = servingConfigName.dataStore; + this.servingConfig = servingConfigName.servingConfig; + } + + public ServingConfigName build() { + return new ServingConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreServingConfigBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String servingConfig; + + protected ProjectLocationCollectionDataStoreServingConfigBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getServingConfig() { + return servingConfig; + } + + public ProjectLocationCollectionDataStoreServingConfigBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreServingConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreServingConfigBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreServingConfigBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreServingConfigBuilder setServingConfig( + String servingConfig) { + this.servingConfig = servingConfig; + return this; + } + + public ServingConfigName build() { + return new ServingConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionEngineServingConfigBuilder { + private String project; + private String location; + private String collection; + private String engine; + private String servingConfig; + + protected ProjectLocationCollectionEngineServingConfigBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public String getServingConfig() { + return servingConfig; + } + + public ProjectLocationCollectionEngineServingConfigBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionEngineServingConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionEngineServingConfigBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionEngineServingConfigBuilder setEngine(String engine) { + this.engine = engine; + return this; + } + + public ProjectLocationCollectionEngineServingConfigBuilder setServingConfig( + String servingConfig) { + this.servingConfig = servingConfig; + return this; + } + + public ServingConfigName build() { + return new ServingConfigName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java new file mode 100644 index 000000000000..e50ef4d6758b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java @@ -0,0 +1,374 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SiteSearchEngineName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String collection; + + @Deprecated + protected SiteSearchEngineName() { + project = null; + location = null; + dataStore = null; + collection = null; + } + + private SiteSearchEngineName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE; + } + + private SiteSearchEngineName(ProjectLocationCollectionDataStoreBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectLocationDataStoreBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectLocationCollectionDataStoreBuilder + newProjectLocationCollectionDataStoreBuilder() { + return new ProjectLocationCollectionDataStoreBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SiteSearchEngineName of(String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SiteSearchEngineName ofProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SiteSearchEngineName ofProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build(); + } + + public static String format(String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static SiteSearchEngineName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_STORE.match(formattedString); + return ofProjectLocationDataStoreName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("data_store")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_COLLECTION_DATA_STORE.match(formattedString); + return ofProjectLocationCollectionDataStoreName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store")); + } + throw new ValidationException( + "SiteSearchEngineName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SiteSearchEngineName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SiteSearchEngineName that = ((SiteSearchEngineName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + private Builder(SiteSearchEngineName siteSearchEngineName) { + Preconditions.checkArgument( + Objects.equals(siteSearchEngineName.pathTemplate, PROJECT_LOCATION_DATA_STORE), + "toBuilder is only supported when SiteSearchEngineName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine"); + this.project = siteSearchEngineName.project; + this.location = siteSearchEngineName.location; + this.dataStore = siteSearchEngineName.dataStore; + } + + public SiteSearchEngineName build() { + return new SiteSearchEngineName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectLocationCollectionDataStoreBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + + protected ProjectLocationCollectionDataStoreBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public ProjectLocationCollectionDataStoreBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public SiteSearchEngineName build() { + return new SiteSearchEngineName(this); + } + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceProto.java new file mode 100644 index 000000000000..efdb8dd2ce6c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceProto.java @@ -0,0 +1,163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class SiteSearchEngineServiceProto { + private SiteSearchEngineServiceProto() {} + 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_discoveryengine_v1alpha_RecrawlUrisRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nEgoogle/cloud/discoveryengine/v1alpha/s" + + "ite_search_engine_service.proto\022$google." + + "cloud.discoveryengine.v1alpha\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032#google/longrun" + + "ning/operations.proto\032\037google/protobuf/t" + + "imestamp.proto\"~\n\022RecrawlUrisRequest\022T\n\022" + + "site_search_engine\030\001 \001(\tB8\342A\001\002\372A1\n/disco" + + "veryengine.googleapis.com/SiteSearchEngi" + + "ne\022\022\n\004uris\030\002 \003(\tB\004\342A\001\002\"\367\003\n\023RecrawlUrisRe" + + "sponse\022^\n\017failure_samples\030\001 \003(\0132E.google" + + ".cloud.discoveryengine.v1alpha.RecrawlUr" + + "isResponse.FailureInfo\022\023\n\013failed_uris\030\002 " + + "\003(\t\032\352\002\n\013FailureInfo\022\013\n\003uri\030\001 \001(\t\022l\n\017fail" + + "ure_reasons\030\002 \003(\0132S.google.cloud.discove" + + "ryengine.v1alpha.RecrawlUrisResponse.Fai" + + "lureInfo.FailureReason\032\337\001\n\rFailureReason" + + "\022s\n\013corpus_type\030\001 \001(\0162^.google.cloud.dis" + + "coveryengine.v1alpha.RecrawlUrisResponse" + + ".FailureInfo.FailureReason.CorpusType\022\025\n" + + "\rerror_message\030\002 \001(\t\"B\n\nCorpusType\022\033\n\027CO" + + "RPUS_TYPE_UNSPECIFIED\020\000\022\013\n\007DESKTOP\020\001\022\n\n\006" + + "MOBILE\020\002\"\363\001\n\023RecrawlUrisMetadata\022/\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "p\022/\n\013update_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\024\n\014invalid_uris\030\003 \003(\t\022\030\n\020vali" + + "d_uris_count\030\004 \001(\005\022\025\n\rsuccess_count\030\005 \001(" + + "\005\022\025\n\rpending_count\030\006 \001(\005\022\034\n\024quota_exceed" + + "ed_count\030\007 \001(\0052\255\004\n\027SiteSearchEngineServi" + + "ce\022\275\003\n\013RecrawlUris\0228.google.cloud.discov" + + "eryengine.v1alpha.RecrawlUrisRequest\032\035.g" + + "oogle.longrunning.Operation\"\324\002\312At\n8googl" + + "e.cloud.discoveryengine.v1alpha.RecrawlU" + + "risResponse\0228google.cloud.discoveryengin" + + "e.v1alpha.RecrawlUrisMetadata\202\323\344\223\002\326\001\"^/v" + + "1alpha/{site_search_engine=projects/*/lo" + + "cations/*/dataStores/*/siteSearchEngine}" + + ":recrawlUris:\001*Zq\"l/v1alpha/{site_search" + + "_engine=projects/*/locations/*/collectio" + + "ns/*/dataStores/*/siteSearchEngine}:recr" + + "awlUris:\001*\032R\312A\036discoveryengine.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platformB\250\002\n(com.google.cloud.disc" + + "overyengine.v1alphaB\034SiteSearchEngineSer" + + "viceProtoP\001ZRcloud.google.com/go/discove" + + "ryengine/apiv1alpha/discoveryenginepb;di" + + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Goog" + + "le.Cloud.DiscoveryEngine.V1Alpha\312\002$Googl" + + "e\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Google" + + "::Cloud::DiscoveryEngine::V1alphab\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisRequest_descriptor, + new java.lang.String[] { "SiteSearchEngine", "Uris", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor, + new java.lang.String[] { "FailureSamples", "FailedUris", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor, + new java.lang.String[] { "Uri", "FailureReasons", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisResponse_FailureInfo_FailureReason_descriptor, + new java.lang.String[] { "CorpusType", "ErrorMessage", }); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_RecrawlUrisMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "InvalidUris", "ValidUrisCount", "SuccessCount", "PendingCount", "QuotaExceededCount", }); + 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.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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SolutionType.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SolutionType.java new file mode 100644 index 000000000000..238d8b08cb8e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SolutionType.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * The type of solution.
+ * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.SolutionType} + */ +public enum SolutionType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value.
+   * 
+ * + * SOLUTION_TYPE_UNSPECIFIED = 0; + */ + SOLUTION_TYPE_UNSPECIFIED(0), + /** + *
+   * Used for Recommendations AI.
+   * 
+ * + * SOLUTION_TYPE_RECOMMENDATION = 1; + */ + SOLUTION_TYPE_RECOMMENDATION(1), + /** + *
+   * Used for Discovery Search.
+   * 
+ * + * SOLUTION_TYPE_SEARCH = 2; + */ + SOLUTION_TYPE_SEARCH(2), + /** + *
+   * Used for use cases related to the Generative AI agent.
+   * 
+ * + * SOLUTION_TYPE_CHAT = 3; + */ + SOLUTION_TYPE_CHAT(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value.
+   * 
+ * + * SOLUTION_TYPE_UNSPECIFIED = 0; + */ + public static final int SOLUTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Used for Recommendations AI.
+   * 
+ * + * SOLUTION_TYPE_RECOMMENDATION = 1; + */ + public static final int SOLUTION_TYPE_RECOMMENDATION_VALUE = 1; + /** + *
+   * Used for Discovery Search.
+   * 
+ * + * SOLUTION_TYPE_SEARCH = 2; + */ + public static final int SOLUTION_TYPE_SEARCH_VALUE = 2; + /** + *
+   * Used for use cases related to the Generative AI agent.
+   * 
+ * + * SOLUTION_TYPE_CHAT = 3; + */ + public static final int SOLUTION_TYPE_CHAT_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SolutionType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SolutionType forNumber(int value) { + switch (value) { + case 0: return SOLUTION_TYPE_UNSPECIFIED; + case 1: return SOLUTION_TYPE_RECOMMENDATION; + case 2: return SOLUTION_TYPE_SEARCH; + case 3: return SOLUTION_TYPE_CHAT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SolutionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SolutionType findValueByNumber(int number) { + return SolutionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SolutionType[] VALUES = values(); + + public static SolutionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SolutionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.SolutionType) +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInput.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInput.java new file mode 100644 index 000000000000..21cbe21c2397 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInput.java @@ -0,0 +1,806 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Defines text input.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.TextInput} + */ +public final class TextInput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.TextInput) + TextInputOrBuilder { +private static final long serialVersionUID = 0L; + // Use TextInput.newBuilder() to construct. + private TextInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextInput() { + input_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TextInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_TextInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_TextInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.TextInput.class, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder.class); + } + + public static final int INPUT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object input_ = ""; + /** + *
+   * Text input.
+   * 
+ * + * string input = 1; + * @return The input. + */ + @java.lang.Override + public java.lang.String getInput() { + java.lang.Object ref = input_; + 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(); + input_ = s; + return s; + } + } + /** + *
+   * Text input.
+   * 
+ * + * string input = 1; + * @return The bytes for input. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.ConversationContext context_; + /** + *
+   * Conversation context of the input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + *
+   * Conversation context of the input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + * @return The context. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationContext getContext() { + return context_ == null ? com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance() : context_; + } + /** + *
+   * Conversation context of the input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder getContextOrBuilder() { + return context_ == null ? com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance() : context_; + } + + 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(input_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, input_); + } + if (context_ != null) { + output.writeMessage(2, getContext()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(input_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, input_); + } + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getContext()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.TextInput)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.TextInput other = (com.google.cloud.discoveryengine.v1alpha.TextInput) obj; + + if (!getInput() + .equals(other.getInput())) return false; + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput 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.discoveryengine.v1alpha.TextInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput 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.discoveryengine.v1alpha.TextInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.TextInput 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.discoveryengine.v1alpha.TextInput 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; + } + /** + *
+   * Defines text input.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.TextInput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.TextInput) + com.google.cloud.discoveryengine.v1alpha.TextInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_TextInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_TextInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.TextInput.class, com.google.cloud.discoveryengine.v1alpha.TextInput.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.TextInput.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + input_ = ""; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationProto.internal_static_google_cloud_discoveryengine_v1alpha_TextInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput build() { + com.google.cloud.discoveryengine.v1alpha.TextInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput buildPartial() { + com.google.cloud.discoveryengine.v1alpha.TextInput result = new com.google.cloud.discoveryengine.v1alpha.TextInput(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.TextInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.input_ = input_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.TextInput) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.TextInput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.TextInput other) { + if (other == com.google.cloud.discoveryengine.v1alpha.TextInput.getDefaultInstance()) return this; + if (!other.getInput().isEmpty()) { + input_ = other.input_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContext()) { + mergeContext(other.getContext()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object input_ = ""; + /** + *
+     * Text input.
+     * 
+ * + * string input = 1; + * @return The input. + */ + public java.lang.String getInput() { + java.lang.Object ref = input_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + input_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Text input.
+     * 
+ * + * string input = 1; + * @return The bytes for input. + */ + public com.google.protobuf.ByteString + getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Text input.
+     * 
+ * + * string input = 1; + * @param value The input to set. + * @return This builder for chaining. + */ + public Builder setInput( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + input_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Text input.
+     * 
+ * + * string input = 1; + * @return This builder for chaining. + */ + public Builder clearInput() { + input_ = getDefaultInstance().getInput(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Text input.
+     * 
+ * + * string input = 1; + * @param value The bytes for input to set. + * @return This builder for chaining. + */ + public Builder setInputBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + input_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.ConversationContext context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ConversationContext, com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder> contextBuilder_; + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + * @return The context. + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationContext getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + public Builder setContext(com.google.cloud.discoveryengine.v1alpha.ConversationContext value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + } else { + contextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + public Builder setContext( + com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + public Builder mergeContext(com.google.cloud.discoveryengine.v1alpha.ConversationContext value) { + if (contextBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + context_ != null && + context_ != com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); + } else { + context_ = value; + } + } else { + contextBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + public Builder clearContext() { + bitField0_ = (bitField0_ & ~0x00000002); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder getContextBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.cloud.discoveryengine.v1alpha.ConversationContext.getDefaultInstance() : context_; + } + } + /** + *
+     * Conversation context of the input.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ConversationContext, com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ConversationContext, com.google.cloud.discoveryengine.v1alpha.ConversationContext.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + @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.discoveryengine.v1alpha.TextInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.TextInput) + private static final com.google.cloud.discoveryengine.v1alpha.TextInput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.TextInput(); + } + + public static com.google.cloud.discoveryengine.v1alpha.TextInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TextInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInputOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInputOrBuilder.java new file mode 100644 index 000000000000..1938f8ca9edc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TextInputOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversation.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface TextInputOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.TextInput) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Text input.
+   * 
+ * + * string input = 1; + * @return The input. + */ + java.lang.String getInput(); + /** + *
+   * Text input.
+   * 
+ * + * string input = 1; + * @return The bytes for input. + */ + com.google.protobuf.ByteString + getInputBytes(); + + /** + *
+   * Conversation context of the input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + *
+   * Conversation context of the input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + * @return The context. + */ + com.google.cloud.discoveryengine.v1alpha.ConversationContext getContext(); + /** + *
+   * Conversation context of the input.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.ConversationContext context = 2; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationContextOrBuilder getContextOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfo.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfo.java new file mode 100644 index 000000000000..f07242e692ea --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfo.java @@ -0,0 +1,1374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * A transaction represents the entire purchase transaction.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.TransactionInfo} + */ +public final class TransactionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.TransactionInfo) + TransactionInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use TransactionInfo.newBuilder() to construct. + private TransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransactionInfo() { + currency_ = ""; + transactionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransactionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.TransactionInfo.class, com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder.class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private float value_ = 0F; + /** + *
+   * Required. Total non-zero value associated with the transaction. This value
+   * may include shipping, tax, or other adjustments to the total value that you
+   * want to include.
+   * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. Total non-zero value associated with the transaction. This value
+   * may include shipping, tax, or other adjustments to the total value that you
+   * want to include.
+   * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The value. + */ + @java.lang.Override + public float getValue() { + return value_; + } + + public static final int CURRENCY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object currency_ = ""; + /** + *
+   * Required. Currency code. Use three-character ISO-4217 code.
+   * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The currency. + */ + @java.lang.Override + public java.lang.String getCurrency() { + java.lang.Object ref = currency_; + 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(); + currency_ = s; + return s; + } + } + /** + *
+   * Required. Currency code. Use three-character ISO-4217 code.
+   * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for currency. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrencyBytes() { + java.lang.Object ref = currency_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSACTION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object transactionId_ = ""; + /** + *
+   * The transaction ID with a length limit of 128 characters.
+   * 
+ * + * string transaction_id = 3; + * @return The transactionId. + */ + @java.lang.Override + public java.lang.String getTransactionId() { + java.lang.Object ref = transactionId_; + 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(); + transactionId_ = s; + return s; + } + } + /** + *
+   * The transaction ID with a length limit of 128 characters.
+   * 
+ * + * string transaction_id = 3; + * @return The bytes for transactionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTransactionIdBytes() { + java.lang.Object ref = transactionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + transactionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAX_FIELD_NUMBER = 4; + private float tax_ = 0F; + /** + *
+   * All the taxes associated with the transaction.
+   * 
+ * + * optional float tax = 4; + * @return Whether the tax field is set. + */ + @java.lang.Override + public boolean hasTax() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * All the taxes associated with the transaction.
+   * 
+ * + * optional float tax = 4; + * @return The tax. + */ + @java.lang.Override + public float getTax() { + return tax_; + } + + public static final int COST_FIELD_NUMBER = 5; + private float cost_ = 0F; + /** + *
+   * All the costs associated with the products. These can be manufacturing
+   * costs, shipping expenses not borne by the end user, or any other costs,
+   * such that:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float cost = 5; + * @return Whether the cost field is set. + */ + @java.lang.Override + public boolean hasCost() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * All the costs associated with the products. These can be manufacturing
+   * costs, shipping expenses not borne by the end user, or any other costs,
+   * such that:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float cost = 5; + * @return The cost. + */ + @java.lang.Override + public float getCost() { + return cost_; + } + + public static final int DISCOUNT_VALUE_FIELD_NUMBER = 6; + private float discountValue_ = 0F; + /** + *
+   * The total discount(s) value applied to this transaction.
+   * This figure should be excluded from
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   *
+   * For example, if a user paid
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * amount, then nominal (pre-discount) value of the transaction is the sum of
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * and
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   *
+   * This means that profit is calculated the same way, regardless of the
+   * discount value, and that
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   * can be larger than
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float discount_value = 6; + * @return Whether the discountValue field is set. + */ + @java.lang.Override + public boolean hasDiscountValue() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * The total discount(s) value applied to this transaction.
+   * This figure should be excluded from
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   *
+   * For example, if a user paid
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * amount, then nominal (pre-discount) value of the transaction is the sum of
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * and
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   *
+   * This means that profit is calculated the same way, regardless of the
+   * discount value, and that
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   * can be larger than
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float discount_value = 6; + * @return The discountValue. + */ + @java.lang.Override + public float getDiscountValue() { + return discountValue_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, value_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(4, tax_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeFloat(5, cost_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeFloat(6, discountValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, value_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, tax_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, cost_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, discountValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.TransactionInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.TransactionInfo other = (com.google.cloud.discoveryengine.v1alpha.TransactionInfo) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (java.lang.Float.floatToIntBits(getValue()) + != java.lang.Float.floatToIntBits( + other.getValue())) return false; + } + if (!getCurrency() + .equals(other.getCurrency())) return false; + if (!getTransactionId() + .equals(other.getTransactionId())) return false; + if (hasTax() != other.hasTax()) return false; + if (hasTax()) { + if (java.lang.Float.floatToIntBits(getTax()) + != java.lang.Float.floatToIntBits( + other.getTax())) return false; + } + if (hasCost() != other.hasCost()) return false; + if (hasCost()) { + if (java.lang.Float.floatToIntBits(getCost()) + != java.lang.Float.floatToIntBits( + other.getCost())) return false; + } + if (hasDiscountValue() != other.hasDiscountValue()) return false; + if (hasDiscountValue()) { + if (java.lang.Float.floatToIntBits(getDiscountValue()) + != java.lang.Float.floatToIntBits( + other.getDiscountValue())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getValue()); + } + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency().hashCode(); + hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTransactionId().hashCode(); + if (hasTax()) { + hash = (37 * hash) + TAX_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTax()); + } + if (hasCost()) { + hash = (37 * hash) + COST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getCost()); + } + if (hasDiscountValue()) { + hash = (37 * hash) + DISCOUNT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDiscountValue()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo 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.discoveryengine.v1alpha.TransactionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo 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.discoveryengine.v1alpha.TransactionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo 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.discoveryengine.v1alpha.TransactionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A transaction represents the entire purchase transaction.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.TransactionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.TransactionInfo) + com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.TransactionInfo.class, com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.TransactionInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = 0F; + currency_ = ""; + transactionId_ = ""; + tax_ = 0F; + cost_ = 0F; + discountValue_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo build() { + com.google.cloud.discoveryengine.v1alpha.TransactionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.TransactionInfo result = new com.google.cloud.discoveryengine.v1alpha.TransactionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.TransactionInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.currency_ = currency_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.transactionId_ = transactionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tax_ = tax_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cost_ = cost_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.discountValue_ = discountValue_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.TransactionInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.TransactionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.TransactionInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance()) return this; + if (other.hasValue()) { + setValue(other.getValue()); + } + if (!other.getCurrency().isEmpty()) { + currency_ = other.currency_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTransactionId().isEmpty()) { + transactionId_ = other.transactionId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTax()) { + setTax(other.getTax()); + } + if (other.hasCost()) { + setCost(other.getCost()); + } + if (other.hasDiscountValue()) { + setDiscountValue(other.getDiscountValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + value_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + currency_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + tax_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 45: { + cost_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 45 + case 53: { + discountValue_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 53 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private float value_ ; + /** + *
+     * Required. Total non-zero value associated with the transaction. This value
+     * may include shipping, tax, or other adjustments to the total value that you
+     * want to include.
+     * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. Total non-zero value associated with the transaction. This value
+     * may include shipping, tax, or other adjustments to the total value that you
+     * want to include.
+     * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The value. + */ + @java.lang.Override + public float getValue() { + return value_; + } + /** + *
+     * Required. Total non-zero value associated with the transaction. This value
+     * may include shipping, tax, or other adjustments to the total value that you
+     * want to include.
+     * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(float value) { + + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Total non-zero value associated with the transaction. This value
+     * may include shipping, tax, or other adjustments to the total value that you
+     * want to include.
+     * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000001); + value_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object currency_ = ""; + /** + *
+     * Required. Currency code. Use three-character ISO-4217 code.
+     * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The currency. + */ + public java.lang.String getCurrency() { + java.lang.Object ref = currency_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currency_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Currency code. Use three-character ISO-4217 code.
+     * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for currency. + */ + public com.google.protobuf.ByteString + getCurrencyBytes() { + java.lang.Object ref = currency_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Currency code. Use three-character ISO-4217 code.
+     * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The currency to set. + * @return This builder for chaining. + */ + public Builder setCurrency( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + currency_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Currency code. Use three-character ISO-4217 code.
+     * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearCurrency() { + currency_ = getDefaultInstance().getCurrency(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. Currency code. Use three-character ISO-4217 code.
+     * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for currency to set. + * @return This builder for chaining. + */ + public Builder setCurrencyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currency_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object transactionId_ = ""; + /** + *
+     * The transaction ID with a length limit of 128 characters.
+     * 
+ * + * string transaction_id = 3; + * @return The transactionId. + */ + public java.lang.String getTransactionId() { + java.lang.Object ref = transactionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + transactionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The transaction ID with a length limit of 128 characters.
+     * 
+ * + * string transaction_id = 3; + * @return The bytes for transactionId. + */ + public com.google.protobuf.ByteString + getTransactionIdBytes() { + java.lang.Object ref = transactionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + transactionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The transaction ID with a length limit of 128 characters.
+     * 
+ * + * string transaction_id = 3; + * @param value The transactionId to set. + * @return This builder for chaining. + */ + public Builder setTransactionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + transactionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The transaction ID with a length limit of 128 characters.
+     * 
+ * + * string transaction_id = 3; + * @return This builder for chaining. + */ + public Builder clearTransactionId() { + transactionId_ = getDefaultInstance().getTransactionId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The transaction ID with a length limit of 128 characters.
+     * 
+ * + * string transaction_id = 3; + * @param value The bytes for transactionId to set. + * @return This builder for chaining. + */ + public Builder setTransactionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + transactionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private float tax_ ; + /** + *
+     * All the taxes associated with the transaction.
+     * 
+ * + * optional float tax = 4; + * @return Whether the tax field is set. + */ + @java.lang.Override + public boolean hasTax() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * All the taxes associated with the transaction.
+     * 
+ * + * optional float tax = 4; + * @return The tax. + */ + @java.lang.Override + public float getTax() { + return tax_; + } + /** + *
+     * All the taxes associated with the transaction.
+     * 
+ * + * optional float tax = 4; + * @param value The tax to set. + * @return This builder for chaining. + */ + public Builder setTax(float value) { + + tax_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * All the taxes associated with the transaction.
+     * 
+ * + * optional float tax = 4; + * @return This builder for chaining. + */ + public Builder clearTax() { + bitField0_ = (bitField0_ & ~0x00000008); + tax_ = 0F; + onChanged(); + return this; + } + + private float cost_ ; + /** + *
+     * All the costs associated with the products. These can be manufacturing
+     * costs, shipping expenses not borne by the end user, or any other costs,
+     * such that:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float cost = 5; + * @return Whether the cost field is set. + */ + @java.lang.Override + public boolean hasCost() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * All the costs associated with the products. These can be manufacturing
+     * costs, shipping expenses not borne by the end user, or any other costs,
+     * such that:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float cost = 5; + * @return The cost. + */ + @java.lang.Override + public float getCost() { + return cost_; + } + /** + *
+     * All the costs associated with the products. These can be manufacturing
+     * costs, shipping expenses not borne by the end user, or any other costs,
+     * such that:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float cost = 5; + * @param value The cost to set. + * @return This builder for chaining. + */ + public Builder setCost(float value) { + + cost_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * All the costs associated with the products. These can be manufacturing
+     * costs, shipping expenses not borne by the end user, or any other costs,
+     * such that:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float cost = 5; + * @return This builder for chaining. + */ + public Builder clearCost() { + bitField0_ = (bitField0_ & ~0x00000010); + cost_ = 0F; + onChanged(); + return this; + } + + private float discountValue_ ; + /** + *
+     * The total discount(s) value applied to this transaction.
+     * This figure should be excluded from
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     *
+     * For example, if a user paid
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * amount, then nominal (pre-discount) value of the transaction is the sum of
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * and
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     *
+     * This means that profit is calculated the same way, regardless of the
+     * discount value, and that
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     * can be larger than
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float discount_value = 6; + * @return Whether the discountValue field is set. + */ + @java.lang.Override + public boolean hasDiscountValue() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * The total discount(s) value applied to this transaction.
+     * This figure should be excluded from
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     *
+     * For example, if a user paid
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * amount, then nominal (pre-discount) value of the transaction is the sum of
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * and
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     *
+     * This means that profit is calculated the same way, regardless of the
+     * discount value, and that
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     * can be larger than
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float discount_value = 6; + * @return The discountValue. + */ + @java.lang.Override + public float getDiscountValue() { + return discountValue_; + } + /** + *
+     * The total discount(s) value applied to this transaction.
+     * This figure should be excluded from
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     *
+     * For example, if a user paid
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * amount, then nominal (pre-discount) value of the transaction is the sum of
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * and
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     *
+     * This means that profit is calculated the same way, regardless of the
+     * discount value, and that
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     * can be larger than
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float discount_value = 6; + * @param value The discountValue to set. + * @return This builder for chaining. + */ + public Builder setDiscountValue(float value) { + + discountValue_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The total discount(s) value applied to this transaction.
+     * This figure should be excluded from
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     *
+     * For example, if a user paid
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * amount, then nominal (pre-discount) value of the transaction is the sum of
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+     * and
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     *
+     * This means that profit is calculated the same way, regardless of the
+     * discount value, and that
+     * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+     * can be larger than
+     * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+     *
+     * * Profit =
+     * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+     * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+     * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+     * 
+ * + * optional float discount_value = 6; + * @return This builder for chaining. + */ + public Builder clearDiscountValue() { + bitField0_ = (bitField0_ & ~0x00000020); + discountValue_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.TransactionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.TransactionInfo) + private static final com.google.cloud.discoveryengine.v1alpha.TransactionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.TransactionInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.TransactionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfoOrBuilder.java new file mode 100644 index 000000000000..4f2e499204d1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TransactionInfoOrBuilder.java @@ -0,0 +1,183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface TransactionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.TransactionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Total non-zero value associated with the transaction. This value
+   * may include shipping, tax, or other adjustments to the total value that you
+   * want to include.
+   * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + *
+   * Required. Total non-zero value associated with the transaction. This value
+   * may include shipping, tax, or other adjustments to the total value that you
+   * want to include.
+   * 
+ * + * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The value. + */ + float getValue(); + + /** + *
+   * Required. Currency code. Use three-character ISO-4217 code.
+   * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The currency. + */ + java.lang.String getCurrency(); + /** + *
+   * Required. Currency code. Use three-character ISO-4217 code.
+   * 
+ * + * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for currency. + */ + com.google.protobuf.ByteString + getCurrencyBytes(); + + /** + *
+   * The transaction ID with a length limit of 128 characters.
+   * 
+ * + * string transaction_id = 3; + * @return The transactionId. + */ + java.lang.String getTransactionId(); + /** + *
+   * The transaction ID with a length limit of 128 characters.
+   * 
+ * + * string transaction_id = 3; + * @return The bytes for transactionId. + */ + com.google.protobuf.ByteString + getTransactionIdBytes(); + + /** + *
+   * All the taxes associated with the transaction.
+   * 
+ * + * optional float tax = 4; + * @return Whether the tax field is set. + */ + boolean hasTax(); + /** + *
+   * All the taxes associated with the transaction.
+   * 
+ * + * optional float tax = 4; + * @return The tax. + */ + float getTax(); + + /** + *
+   * All the costs associated with the products. These can be manufacturing
+   * costs, shipping expenses not borne by the end user, or any other costs,
+   * such that:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float cost = 5; + * @return Whether the cost field is set. + */ + boolean hasCost(); + /** + *
+   * All the costs associated with the products. These can be manufacturing
+   * costs, shipping expenses not borne by the end user, or any other costs,
+   * such that:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float cost = 5; + * @return The cost. + */ + float getCost(); + + /** + *
+   * The total discount(s) value applied to this transaction.
+   * This figure should be excluded from
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   *
+   * For example, if a user paid
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * amount, then nominal (pre-discount) value of the transaction is the sum of
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * and
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   *
+   * This means that profit is calculated the same way, regardless of the
+   * discount value, and that
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   * can be larger than
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float discount_value = 6; + * @return Whether the discountValue field is set. + */ + boolean hasDiscountValue(); + /** + *
+   * The total discount(s) value applied to this transaction.
+   * This figure should be excluded from
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   *
+   * For example, if a user paid
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * amount, then nominal (pre-discount) value of the transaction is the sum of
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]
+   * and
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   *
+   * This means that profit is calculated the same way, regardless of the
+   * discount value, and that
+   * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value]
+   * can be larger than
+   * [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]:
+   *
+   * * Profit =
+   * [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] -
+   * [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] -
+   * [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost]
+   * 
+ * + * optional float discount_value = 6; + * @return The discountValue. + */ + float getDiscountValue(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java new file mode 100644 index 000000000000..725164dce2d2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java @@ -0,0 +1,943 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request for UpdateConversation method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateConversationRequest} + */ +public final class UpdateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) + UpdateConversationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateConversationRequest.newBuilder() to construct. + private UpdateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateConversationRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateConversationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.Builder.class); + } + + public static final int CONVERSATION_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + /** + *
+   * Required. The Conversation to update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + @java.lang.Override + public boolean hasConversation() { + return conversation_ != null; + } + /** + *
+   * Required. The Conversation to update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + /** + *
+   * Required. The Conversation to update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Indicates which fields in the provided
+   * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+   * update. The following are NOT supported:
+   *
+   * * [conversation.name][]
+   *
+   * If not set or empty, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Indicates which fields in the provided
+   * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+   * update. The following are NOT supported:
+   *
+   * * [conversation.name][]
+   *
+   * If not set or empty, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Indicates which fields in the provided
+   * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+   * update. The following are NOT supported:
+   *
+   * * [conversation.name][]
+   *
+   * If not set or empty, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (conversation_ != null) { + output.writeMessage(1, getConversation()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConversation()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest other = (com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) obj; + + if (hasConversation() != other.hasConversation()) return false; + if (hasConversation()) { + if (!getConversation() + .equals(other.getConversation())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConversation()) { + hash = (37 * hash) + CONVERSATION_FIELD_NUMBER; + hash = (53 * hash) + getConversation().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest 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.discoveryengine.v1alpha.UpdateConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest 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.discoveryengine.v1alpha.UpdateConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest 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.discoveryengine.v1alpha.UpdateConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for UpdateConversation method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateConversationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.class, com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest result = new com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest.getDefaultInstance()) return this; + if (other.hasConversation()) { + mergeConversation(other.getConversation()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.Conversation conversation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> conversationBuilder_; + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + public boolean hasConversation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation getConversation() { + if (conversationBuilder_ == null) { + return conversation_ == null ? com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } else { + return conversationBuilder_.getMessage(); + } + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversation_ = value; + } else { + conversationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setConversation( + com.google.cloud.discoveryengine.v1alpha.Conversation.Builder builderForValue) { + if (conversationBuilder_ == null) { + conversation_ = builderForValue.build(); + } else { + conversationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeConversation(com.google.cloud.discoveryengine.v1alpha.Conversation value) { + if (conversationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance()) { + getConversationBuilder().mergeFrom(value); + } else { + conversation_ = value; + } + } else { + conversationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearConversation() { + bitField0_ = (bitField0_ & ~0x00000001); + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder getConversationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConversationFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder() { + if (conversationBuilder_ != null) { + return conversationBuilder_.getMessageOrBuilder(); + } else { + return conversation_ == null ? + com.google.cloud.discoveryengine.v1alpha.Conversation.getDefaultInstance() : conversation_; + } + } + /** + *
+     * Required. The Conversation to update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder> + getConversationFieldBuilder() { + if (conversationBuilder_ == null) { + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Conversation, com.google.cloud.discoveryengine.v1alpha.Conversation.Builder, com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); + conversation_ = null; + } + return conversationBuilder_; + } + + 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_; + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Indicates which fields in the provided
+     * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+     * update. The following are NOT supported:
+     *
+     * * [conversation.name][]
+     *
+     * If not set or empty, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java new file mode 100644 index 000000000000..bf1bfb657dcd --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Conversation to update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + *
+   * Required. The Conversation to update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + com.google.cloud.discoveryengine.v1alpha.Conversation getConversation(); + /** + *
+   * Required. The Conversation to update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConversationOrBuilder(); + + /** + *
+   * Indicates which fields in the provided
+   * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+   * update. The following are NOT supported:
+   *
+   * * [conversation.name][]
+   *
+   * If not set or empty, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Indicates which fields in the provided
+   * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+   * update. The following are NOT supported:
+   *
+   * * [conversation.name][]
+   *
+   * If not set or empty, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Indicates which fields in the provided
+   * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to
+   * update. The following are NOT supported:
+   *
+   * * [conversation.name][]
+   *
+   * If not set or empty, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java new file mode 100644 index 000000000000..dfc4af9c626b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java @@ -0,0 +1,849 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.UpdateDocument]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest} + */ +public final class UpdateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) + UpdateDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateDocumentRequest.newBuilder() to construct. + private UpdateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateDocumentRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateDocumentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.Builder.class); + } + + public static final int DOCUMENT_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.Document document_; + /** + *
+   * Required. The document to update/create.
+   *
+   * If the caller does not have permission to update the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+   * does not exist and
+   * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+   * is not set, a `NOT_FOUND` error is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return document_ != null; + } + /** + *
+   * Required. The document to update/create.
+   *
+   * If the caller does not have permission to update the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+   * does not exist and
+   * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+   * is not set, a `NOT_FOUND` error is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + /** + *
+   * Required. The document to update/create.
+   *
+   * If the caller does not have permission to update the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+   * does not exist and
+   * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+   * is not set, a `NOT_FOUND` error is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 2; + private boolean allowMissing_ = false; + /** + *
+   * If set to true, and the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a
+   * new [Document][google.cloud.discoveryengine.v1alpha.Document] will be
+   * created.
+   * 
+ * + * bool allow_missing = 2; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (document_ != null) { + output.writeMessage(1, getDocument()); + } + if (allowMissing_ != false) { + output.writeBool(2, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (document_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocument()); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowMissing_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest other = (com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) obj; + + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument() + .equals(other.getDocument())) return false; + } + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest 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.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest 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.discoveryengine.v1alpha.UpdateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest 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.discoveryengine.v1alpha.UpdateDocumentRequest 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
+   * [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.UpdateDocument]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.class, com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + allowMissing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest result = new com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.getDefaultInstance()) return this; + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.Document document_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> documentBuilder_; + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + public com.google.cloud.discoveryengine.v1alpha.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null ? com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } else { + return documentBuilder_.getMessage(); + } + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1alpha.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1alpha.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000001); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDocumentFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null ? + com.google.cloud.discoveryengine.v1alpha.Document.getDefaultInstance() : document_; + } + } + /** + *
+     * Required. The document to update/create.
+     *
+     * If the caller does not have permission to update the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+     * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+     * does not exist and
+     * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+     * is not set, a `NOT_FOUND` error is returned.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder> + getDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document, com.google.cloud.discoveryengine.v1alpha.Document.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); + document_ = null; + } + return documentBuilder_; + } + + private boolean allowMissing_ ; + /** + *
+     * If set to true, and the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a
+     * new [Document][google.cloud.discoveryengine.v1alpha.Document] will be
+     * created.
+     * 
+ * + * bool allow_missing = 2; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + *
+     * If set to true, and the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a
+     * new [Document][google.cloud.discoveryengine.v1alpha.Document] will be
+     * created.
+     * 
+ * + * bool allow_missing = 2; + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set to true, and the
+     * [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a
+     * new [Document][google.cloud.discoveryengine.v1alpha.Document] will be
+     * created.
+     * 
+ * + * bool allow_missing = 2; + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000002); + allowMissing_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java new file mode 100644 index 000000000000..b4a19c29b915 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/document_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The document to update/create.
+   *
+   * If the caller does not have permission to update the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+   * does not exist and
+   * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+   * is not set, a `NOT_FOUND` error is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + boolean hasDocument(); + /** + *
+   * Required. The document to update/create.
+   *
+   * If the caller does not have permission to update the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+   * does not exist and
+   * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+   * is not set, a `NOT_FOUND` error is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + com.google.cloud.discoveryengine.v1alpha.Document getDocument(); + /** + *
+   * Required. The document to update/create.
+   *
+   * If the caller does not have permission to update the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
+   * whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update
+   * does not exist and
+   * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing]
+   * is not set, a `NOT_FOUND` error is returned.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder(); + + /** + *
+   * If set to true, and the
+   * [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a
+   * new [Document][google.cloud.discoveryengine.v1alpha.Document] will be
+   * created.
+   * 
+ * + * bool allow_missing = 2; + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadata.java new file mode 100644 index 000000000000..3881ddc53929 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadata.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Metadata for UpdateSchema LRO.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata} + */ +public final class UpdateSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) + UpdateSchemaMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateSchemaMetadata.newBuilder() to construct. + private UpdateSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateSchemaMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateSchemaMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.class, com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + 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 = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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 = 2; + * @return The updateTime. + */ + @java.lang.Override + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata other = (com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata 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.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata 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.discoveryengine.v1alpha.UpdateSchemaMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata 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.discoveryengine.v1alpha.UpdateSchemaMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Metadata for UpdateSchema LRO.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.class, com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata build() { + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata result = new com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata other) { + if (other == com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSchemaMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadataOrBuilder.java new file mode 100644 index 000000000000..1a6a34a616d1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaMetadataOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateSchemaMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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 = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequest.java new file mode 100644 index 000000000000..d4183c7ab398 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequest.java @@ -0,0 +1,753 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for
+ * [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1alpha.SchemaService.UpdateSchema]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest} + */ +public final class UpdateSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) + UpdateSchemaRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateSchemaRequest.newBuilder() to construct. + private UpdateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateSchemaRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.Schema schema_; + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schema_ != null; + } + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema getSchema() { + return schema_ == null ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemaOrBuilder() { + return schema_ == null ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_ = false; + /** + *
+   * If set to true, and the
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In
+   * this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schema_ != null) { + output.writeMessage(1, getSchema()); + } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schema_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchema()); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowMissing_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest other = (com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) obj; + + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema() + .equals(other.getSchema())) return false; + } + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest 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.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest 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.discoveryengine.v1alpha.UpdateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest 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.discoveryengine.v1alpha.UpdateSchemaRequest 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
+   * [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1alpha.SchemaService.UpdateSchema]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.class, com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + allowMissing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_UpdateSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest result = new com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schema_ = schemaBuilder_ == null + ? schema_ + : schemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest.getDefaultInstance()) return this; + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.discoveryengine.v1alpha.Schema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> schemaBuilder_; + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The schema. + */ + public com.google.cloud.discoveryengine.v1alpha.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema( + com.google.cloud.discoveryengine.v1alpha.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSchema(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + schema_ != null && + schema_ != com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000001); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema.Builder getSchemaBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? + com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() : schema_; + } + } + /** + *
+     * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+     * update.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, com.google.cloud.discoveryengine.v1alpha.Schema.Builder, com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private boolean allowMissing_ ; + /** + *
+     * If set to true, and the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In
+     * this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + *
+     * If set to true, and the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In
+     * this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set to true, and the
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new
+     * [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In
+     * this situation, `update_mask` is ignored.
+     * 
+ * + * bool allow_missing = 3; + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000002); + allowMissing_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..c007f9f83b51 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateSchemaRequestOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/schema_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The schema. + */ + com.google.cloud.discoveryengine.v1alpha.Schema getSchema(); + /** + *
+   * Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to
+   * update.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getSchemaOrBuilder(); + + /** + *
+   * If set to true, and the
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new
+   * [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In
+   * this situation, `update_mask` is ignored.
+   * 
+ * + * bool allow_missing = 3; + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java new file mode 100644 index 000000000000..79454a66e593 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java @@ -0,0 +1,5826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * UserEvent captures all metadata information Discovery Engine API needs to
+ * know about how end users interact with customers' website.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UserEvent} + */ +public final class UserEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UserEvent) + UserEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserEvent.newBuilder() to construct. + private UserEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserEvent() { + eventType_ = ""; + userPseudoId_ = ""; + sessionId_ = ""; + attributionToken_ = ""; + filter_ = ""; + documents_ = java.util.Collections.emptyList(); + tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 17: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UserEvent.class, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object eventType_ = ""; + /** + *
+   * Required. User event type. Allowed values are:
+   *
+   * Generic values:
+   *
+   * * `search`: Search for Documents.
+   * * `view-item`: Detailed page view of a Document.
+   * * `view-item-list`: View of a panel or ordered list of Documents.
+   * * `view-home-page`: View of the home page.
+   * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+   *
+   * Retail-related values:
+   *
+   * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+   * * `purchase`: Purchase an item(s)
+   *
+   * Media-related values:
+   *
+   * * `media-play`: Start/resume watching a video, playing a song, etc.
+   * * `media-complete`: Finished or stopped midway through a video, song, etc.
+   * 
+ * + * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The eventType. + */ + @java.lang.Override + public java.lang.String getEventType() { + java.lang.Object ref = eventType_; + 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(); + eventType_ = s; + return s; + } + } + /** + *
+   * Required. User event type. Allowed values are:
+   *
+   * Generic values:
+   *
+   * * `search`: Search for Documents.
+   * * `view-item`: Detailed page view of a Document.
+   * * `view-item-list`: View of a panel or ordered list of Documents.
+   * * `view-home-page`: View of the home page.
+   * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+   *
+   * Retail-related values:
+   *
+   * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+   * * `purchase`: Purchase an item(s)
+   *
+   * Media-related values:
+   *
+   * * `media-play`: Start/resume watching a video, playing a song, etc.
+   * * `media-complete`: Finished or stopped midway through a video, song, etc.
+   * 
+ * + * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for eventType. + */ + @java.lang.Override + 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); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + /** + *
+   * Required. A unique identifier for tracking visitors.
+   *
+   * For example, this could be implemented with an HTTP cookie, which should be
+   * able to uniquely identify a visitor on a single device. This unique
+   * identifier should not change if the visitor log in/out of the website.
+   *
+   * Do not set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded model
+   * quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * The field should not contain PII or user-data. We recommend to use Google
+   * Analytics [Client
+   * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+   * for this field.
+   * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + 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(); + userPseudoId_ = s; + return s; + } + } + /** + *
+   * Required. A unique identifier for tracking visitors.
+   *
+   * For example, this could be implemented with an HTTP cookie, which should be
+   * able to uniquely identify a visitor on a single device. This unique
+   * identifier should not change if the visitor log in/out of the website.
+   *
+   * Do not set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded model
+   * quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * The field should not contain PII or user-data. We recommend to use Google
+   * Analytics [Client
+   * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+   * for this field.
+   * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + /** + *
+   * Only required for
+   * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+   * method. Timestamp of when the user event happened.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3; + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return eventTime_ != null; + } + /** + *
+   * Only required for
+   * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+   * method. Timestamp of when the user event happened.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3; + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + /** + *
+   * Only required for
+   * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+   * method. Timestamp of when the user event happened.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int USER_INFO_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1alpha.UserInfo userInfo_; + /** + *
+   * Information about the end user.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return userInfo_ != null; + } + /** + *
+   * Information about the end user.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfo getUserInfo() { + return userInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } + /** + *
+   * Information about the end user.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } + + public static final int DIRECT_USER_REQUEST_FIELD_NUMBER = 5; + private boolean directUserRequest_ = false; + /** + *
+   * Should set to true if the request is made directly from the end user, in
+   * which case the
+   * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * can be populated from the HTTP request.
+   *
+   * This flag should be set only if the API request is made directly from the
+   * end user such as a mobile app (and not if a gateway or a server is
+   * processing and pushing the user events).
+   *
+   * This should not be set when using the JavaScript tag in
+   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent].
+   * 
+ * + * bool direct_user_request = 5; + * @return The directUserRequest. + */ + @java.lang.Override + public boolean getDirectUserRequest() { + return directUserRequest_; + } + + public static final int SESSION_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + /** + *
+   * A unique identifier for tracking a visitor session with a length limit of
+   * 128 bytes. A session is an aggregation of an end user behavior in a time
+   * span.
+   *
+   * A general guideline to populate the session_id:
+   *
+   * 1. If user has no activity for 30 min, a new session_id should be assigned.
+   * 2. The session_id should be unique across users, suggest use uuid or add
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * as prefix.
+   * 
+ * + * string session_id = 6; + * @return The sessionId. + */ + @java.lang.Override + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + 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(); + sessionId_ = s; + return s; + } + } + /** + *
+   * A unique identifier for tracking a visitor session with a length limit of
+   * 128 bytes. A session is an aggregation of an end user behavior in a time
+   * span.
+   *
+   * A general guideline to populate the session_id:
+   *
+   * 1. If user has no activity for 30 min, a new session_id should be assigned.
+   * 2. The session_id should be unique across users, suggest use uuid or add
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * as prefix.
+   * 
+ * + * string session_id = 6; + * @return The bytes for sessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_INFO_FIELD_NUMBER = 7; + private com.google.cloud.discoveryengine.v1alpha.PageInfo pageInfo_; + /** + *
+   * Page metadata such as categories and other critical information for certain
+   * event types such as `view-category-page`.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + * @return Whether the pageInfo field is set. + */ + @java.lang.Override + public boolean hasPageInfo() { + return pageInfo_ != null; + } + /** + *
+   * Page metadata such as categories and other critical information for certain
+   * event types such as `view-category-page`.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + * @return The pageInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PageInfo getPageInfo() { + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance() : pageInfo_; + } + /** + *
+   * Page metadata such as categories and other critical information for certain
+   * event types such as `view-category-page`.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder getPageInfoOrBuilder() { + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance() : pageInfo_; + } + + public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object attributionToken_ = ""; + /** + *
+   * Token to attribute an API response to user action(s) to trigger the event.
+   *
+   * Highly recommended for user events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * This field enables accurate attribution of recommendation model
+   * performance.
+   *
+   * The value must be one of:
+   *
+   * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * This token enables us to accurately attribute page view or conversion
+   * completion back to the event and the particular predict response containing
+   * this clicked/purchased product. If user clicks on product K in the
+   * recommendation results, pass
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * as a URL parameter to product K's page. When recording events on product
+   * K's page, log the
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * to this field.
+   * 
+ * + * string attribution_token = 8; + * @return The attributionToken. + */ + @java.lang.Override + public java.lang.String getAttributionToken() { + java.lang.Object ref = attributionToken_; + 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(); + attributionToken_ = s; + return s; + } + } + /** + *
+   * Token to attribute an API response to user action(s) to trigger the event.
+   *
+   * Highly recommended for user events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * This field enables accurate attribution of recommendation model
+   * performance.
+   *
+   * The value must be one of:
+   *
+   * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * This token enables us to accurately attribute page view or conversion
+   * completion back to the event and the particular predict response containing
+   * this clicked/purchased product. If user clicks on product K in the
+   * recommendation results, pass
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * as a URL parameter to product K's page. When recording events on product
+   * K's page, log the
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * to this field.
+   * 
+ * + * string attribution_token = 8; + * @return The bytes for attributionToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributionTokenBytes() { + java.lang.Object ref = attributionToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered.
+   *
+   * One example is for `search` events, the associated
+   * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+   * contain a filter expression in
+   * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+   * conforming to https://google.aip.dev/160#filtering.
+   *
+   * Similarly, for `view-item-list` events that are generated from a
+   * [RecommendationService.RecommendRequest][], this field may be populated
+   * directly from [RecommendationService.RecommendRequest.filter][] conforming
+   * to https://google.aip.dev/160#filtering.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string filter = 9; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered.
+   *
+   * One example is for `search` events, the associated
+   * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+   * contain a filter expression in
+   * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+   * conforming to https://google.aip.dev/160#filtering.
+   *
+   * Similarly, for `view-item-list` events that are generated from a
+   * [RecommendationService.RecommendRequest][], this field may be populated
+   * directly from [RecommendationService.RecommendRequest.filter][] conforming
+   * to https://google.aip.dev/160#filtering.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string filter = 9; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENTS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private java.util.List documents_; + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + @java.lang.Override + public java.util.List getDocumentsList() { + return documents_; + } + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + @java.lang.Override + public java.util.List + getDocumentsOrBuilderList() { + return documents_; + } + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + @java.lang.Override + public int getDocumentsCount() { + return documents_.size(); + } + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo getDocuments(int index) { + return documents_.get(index); + } + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder getDocumentsOrBuilder( + int index) { + return documents_.get(index); + } + + public static final int PANEL_FIELD_NUMBER = 11; + private com.google.cloud.discoveryengine.v1alpha.PanelInfo panel_; + /** + *
+   * Panel metadata associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + * @return Whether the panel field is set. + */ + @java.lang.Override + public boolean hasPanel() { + return panel_ != null; + } + /** + *
+   * Panel metadata associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + * @return The panel. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PanelInfo getPanel() { + return panel_ == null ? com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance() : panel_; + } + /** + *
+   * Panel metadata associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder getPanelOrBuilder() { + return panel_ == null ? com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance() : panel_; + } + + public static final int SEARCH_INFO_FIELD_NUMBER = 12; + private com.google.cloud.discoveryengine.v1alpha.SearchInfo searchInfo_; + /** + *
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * details related to the event.
+   *
+   * This field should be set for `search` event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + * @return Whether the searchInfo field is set. + */ + @java.lang.Override + public boolean hasSearchInfo() { + return searchInfo_ != null; + } + /** + *
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * details related to the event.
+   *
+   * This field should be set for `search` event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + * @return The searchInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchInfo getSearchInfo() { + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance() : searchInfo_; + } + /** + *
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * details related to the event.
+   *
+   * This field should be set for `search` event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder getSearchInfoOrBuilder() { + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance() : searchInfo_; + } + + public static final int COMPLETION_INFO_FIELD_NUMBER = 13; + private com.google.cloud.discoveryengine.v1alpha.CompletionInfo completionInfo_; + /** + *
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * details related to the event.
+   *
+   * This field should be set for `search` event when autocomplete function is
+   * enabled and the user clicks a suggestion for search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + * @return Whether the completionInfo field is set. + */ + @java.lang.Override + public boolean hasCompletionInfo() { + return completionInfo_ != null; + } + /** + *
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * details related to the event.
+   *
+   * This field should be set for `search` event when autocomplete function is
+   * enabled and the user clicks a suggestion for search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + * @return The completionInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo getCompletionInfo() { + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance() : completionInfo_; + } + /** + *
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * details related to the event.
+   *
+   * This field should be set for `search` event when autocomplete function is
+   * enabled and the user clicks a suggestion for search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder getCompletionInfoOrBuilder() { + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance() : completionInfo_; + } + + public static final int TRANSACTION_INFO_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1alpha.TransactionInfo transactionInfo_; + /** + *
+   * The transaction metadata (if any) associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + * @return Whether the transactionInfo field is set. + */ + @java.lang.Override + public boolean hasTransactionInfo() { + return transactionInfo_ != null; + } + /** + *
+   * The transaction metadata (if any) associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + * @return The transactionInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo getTransactionInfo() { + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance() : transactionInfo_; + } + /** + *
+   * The transaction metadata (if any) associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder getTransactionInfoOrBuilder() { + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance() : transactionInfo_; + } + + public static final int TAG_IDS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @return A list containing the tagIds. + */ + public com.google.protobuf.ProtocolStringList + getTagIdsList() { + return tagIds_; + } + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @return The count of tagIds. + */ + public int getTagIdsCount() { + return tagIds_.size(); + } + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @param index The index of the element to return. + * @return The tagIds at the given index. + */ + public java.lang.String getTagIds(int index) { + return tagIds_.get(index); + } + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @param index The index of the value to return. + * @return The bytes of the tagIds at the given index. + */ + public com.google.protobuf.ByteString + getTagIdsBytes(int index) { + return tagIds_.getByteString(index); + } + + public static final int PROMOTION_IDS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @return A list containing the promotionIds. + */ + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { + return promotionIds_; + } + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @return The count of promotionIds. + */ + public int getPromotionIdsCount() { + return promotionIds_.size(); + } + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @param index The index of the element to return. + * @return The promotionIds at the given index. + */ + public java.lang.String getPromotionIds(int index) { + return promotionIds_.get(index); + } + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @param index The index of the value to return. + * @return The bytes of the promotionIds at the given index. + */ + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { + return promotionIds_.getByteString(index); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 17; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1alpha.CustomAttribute> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1alpha.CustomAttribute.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public /* nullable */ +com.google.cloud.discoveryengine.v1alpha.CustomAttribute getAttributesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.CustomAttribute defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomAttribute getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MEDIA_INFO_FIELD_NUMBER = 18; + private com.google.cloud.discoveryengine.v1alpha.MediaInfo mediaInfo_; + /** + *
+   * Media-specific info.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + * @return Whether the mediaInfo field is set. + */ + @java.lang.Override + public boolean hasMediaInfo() { + return mediaInfo_ != null; + } + /** + *
+   * Media-specific info.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + * @return The mediaInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.MediaInfo getMediaInfo() { + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance() : mediaInfo_; + } + /** + *
+   * Media-specific info.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder getMediaInfoOrBuilder() { + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance() : mediaInfo_; + } + + 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(eventType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userPseudoId_); + } + if (eventTime_ != null) { + output.writeMessage(3, getEventTime()); + } + if (userInfo_ != null) { + output.writeMessage(4, getUserInfo()); + } + if (directUserRequest_ != false) { + output.writeBool(5, directUserRequest_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sessionId_); + } + if (pageInfo_ != null) { + output.writeMessage(7, getPageInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, attributionToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, filter_); + } + for (int i = 0; i < documents_.size(); i++) { + output.writeMessage(10, documents_.get(i)); + } + if (panel_ != null) { + output.writeMessage(11, getPanel()); + } + if (searchInfo_ != null) { + output.writeMessage(12, getSearchInfo()); + } + if (completionInfo_ != null) { + output.writeMessage(13, getCompletionInfo()); + } + if (transactionInfo_ != null) { + output.writeMessage(14, getTransactionInfo()); + } + for (int i = 0; i < tagIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, tagIds_.getRaw(i)); + } + for (int i = 0; i < promotionIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, promotionIds_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 17); + if (mediaInfo_ != null) { + output.writeMessage(18, getMediaInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userPseudoId_); + } + if (eventTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEventTime()); + } + if (userInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUserInfo()); + } + if (directUserRequest_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, directUserRequest_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sessionId_); + } + if (pageInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPageInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, attributionToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, filter_); + } + for (int i = 0; i < documents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, documents_.get(i)); + } + if (panel_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getPanel()); + } + if (searchInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSearchInfo()); + } + if (completionInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCompletionInfo()); + } + if (transactionInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getTransactionInfo()); + } + { + int dataSize = 0; + for (int i = 0; i < tagIds_.size(); i++) { + dataSize += computeStringSizeNoTag(tagIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < promotionIds_.size(); i++) { + dataSize += computeStringSizeNoTag(promotionIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getPromotionIdsList().size(); + } + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, attributes__); + } + if (mediaInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getMediaInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UserEvent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UserEvent other = (com.google.cloud.discoveryengine.v1alpha.UserEvent) obj; + + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime() + .equals(other.getEventTime())) return false; + } + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo() + .equals(other.getUserInfo())) return false; + } + if (getDirectUserRequest() + != other.getDirectUserRequest()) return false; + if (!getSessionId() + .equals(other.getSessionId())) return false; + if (hasPageInfo() != other.hasPageInfo()) return false; + if (hasPageInfo()) { + if (!getPageInfo() + .equals(other.getPageInfo())) return false; + } + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (hasPanel() != other.hasPanel()) return false; + if (hasPanel()) { + if (!getPanel() + .equals(other.getPanel())) return false; + } + if (hasSearchInfo() != other.hasSearchInfo()) return false; + if (hasSearchInfo()) { + if (!getSearchInfo() + .equals(other.getSearchInfo())) return false; + } + if (hasCompletionInfo() != other.hasCompletionInfo()) return false; + if (hasCompletionInfo()) { + if (!getCompletionInfo() + .equals(other.getCompletionInfo())) return false; + } + if (hasTransactionInfo() != other.hasTransactionInfo()) return false; + if (hasTransactionInfo()) { + if (!getTransactionInfo() + .equals(other.getTransactionInfo())) return false; + } + if (!getTagIdsList() + .equals(other.getTagIdsList())) return false; + if (!getPromotionIdsList() + .equals(other.getPromotionIdsList())) return false; + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; + if (hasMediaInfo() != other.hasMediaInfo()) return false; + if (hasMediaInfo()) { + if (!getMediaInfo() + .equals(other.getMediaInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + hash = (37 * hash) + DIRECT_USER_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirectUserRequest()); + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + if (hasPageInfo()) { + hash = (37 * hash) + PAGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPageInfo().hashCode(); + } + hash = (37 * hash) + ATTRIBUTION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAttributionToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + if (hasPanel()) { + hash = (37 * hash) + PANEL_FIELD_NUMBER; + hash = (53 * hash) + getPanel().hashCode(); + } + if (hasSearchInfo()) { + hash = (37 * hash) + SEARCH_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSearchInfo().hashCode(); + } + if (hasCompletionInfo()) { + hash = (37 * hash) + COMPLETION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCompletionInfo().hashCode(); + } + if (hasTransactionInfo()) { + hash = (37 * hash) + TRANSACTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTransactionInfo().hashCode(); + } + if (getTagIdsCount() > 0) { + hash = (37 * hash) + TAG_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTagIdsList().hashCode(); + } + if (getPromotionIdsCount() > 0) { + hash = (37 * hash) + PROMOTION_IDS_FIELD_NUMBER; + hash = (53 * hash) + getPromotionIdsList().hashCode(); + } + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + if (hasMediaInfo()) { + hash = (37 * hash) + MEDIA_INFO_FIELD_NUMBER; + hash = (53 * hash) + getMediaInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UserEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UserEvent 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.discoveryengine.v1alpha.UserEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.UserEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UserEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UserEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UserEvent 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.discoveryengine.v1alpha.UserEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UserEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UserEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.UserEvent 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; + } + /** + *
+   * UserEvent captures all metadata information Discovery Engine API needs to
+   * know about how end users interact with customers' website.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UserEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UserEvent) + com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 17: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 17: + return internalGetMutableAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UserEvent.class, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UserEvent.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventType_ = ""; + userPseudoId_ = ""; + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + directUserRequest_ = false; + sessionId_ = ""; + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); + pageInfoBuilder_ = null; + } + attributionToken_ = ""; + filter_ = ""; + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + } else { + documents_ = null; + documentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + panel_ = null; + if (panelBuilder_ != null) { + panelBuilder_.dispose(); + panelBuilder_ = null; + } + searchInfo_ = null; + if (searchInfoBuilder_ != null) { + searchInfoBuilder_.dispose(); + searchInfoBuilder_ = null; + } + completionInfo_ = null; + if (completionInfoBuilder_ != null) { + completionInfoBuilder_.dispose(); + completionInfoBuilder_ = null; + } + transactionInfo_ = null; + if (transactionInfoBuilder_ != null) { + transactionInfoBuilder_.dispose(); + transactionInfoBuilder_ = null; + } + tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutableAttributes().clear(); + mediaInfo_ = null; + if (mediaInfoBuilder_ != null) { + mediaInfoBuilder_.dispose(); + mediaInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventProto.internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent build() { + com.google.cloud.discoveryengine.v1alpha.UserEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UserEvent result = new com.google.cloud.discoveryengine.v1alpha.UserEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1alpha.UserEvent result) { + if (documentsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + documents_ = java.util.Collections.unmodifiableList(documents_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.documents_ = documents_; + } else { + result.documents_ = documentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.UserEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventType_ = eventType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null + ? eventTime_ + : eventTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userInfo_ = userInfoBuilder_ == null + ? userInfo_ + : userInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.directUserRequest_ = directUserRequest_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sessionId_ = sessionId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null + ? pageInfo_ + : pageInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.attributionToken_ = attributionToken_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.panel_ = panelBuilder_ == null + ? panel_ + : panelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.searchInfo_ = searchInfoBuilder_ == null + ? searchInfo_ + : searchInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.completionInfo_ = completionInfoBuilder_ == null + ? completionInfo_ + : completionInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.transactionInfo_ = transactionInfoBuilder_ == null + ? transactionInfo_ + : transactionInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + tagIds_.makeImmutable(); + result.tagIds_ = tagIds_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + promotionIds_.makeImmutable(); + result.promotionIds_ = promotionIds_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.mediaInfo_ = mediaInfoBuilder_ == null + ? mediaInfo_ + : mediaInfoBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.UserEvent) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UserEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UserEvent other) { + if (other == com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance()) return this; + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (other.getDirectUserRequest() != false) { + setDirectUserRequest(other.getDirectUserRequest()); + } + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasPageInfo()) { + mergePageInfo(other.getPageInfo()); + } + if (!other.getAttributionToken().isEmpty()) { + attributionToken_ = other.attributionToken_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (documentsBuilder_ == null) { + if (!other.documents_.isEmpty()) { + if (documents_.isEmpty()) { + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureDocumentsIsMutable(); + documents_.addAll(other.documents_); + } + onChanged(); + } + } else { + if (!other.documents_.isEmpty()) { + if (documentsBuilder_.isEmpty()) { + documentsBuilder_.dispose(); + documentsBuilder_ = null; + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000200); + documentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentsFieldBuilder() : null; + } else { + documentsBuilder_.addAllMessages(other.documents_); + } + } + } + if (other.hasPanel()) { + mergePanel(other.getPanel()); + } + if (other.hasSearchInfo()) { + mergeSearchInfo(other.getSearchInfo()); + } + if (other.hasCompletionInfo()) { + mergeCompletionInfo(other.getCompletionInfo()); + } + if (other.hasTransactionInfo()) { + mergeTransactionInfo(other.getTransactionInfo()); + } + if (!other.tagIds_.isEmpty()) { + if (tagIds_.isEmpty()) { + tagIds_ = other.tagIds_; + bitField0_ |= 0x00004000; + } else { + ensureTagIdsIsMutable(); + tagIds_.addAll(other.tagIds_); + } + onChanged(); + } + if (!other.promotionIds_.isEmpty()) { + if (promotionIds_.isEmpty()) { + promotionIds_ = other.promotionIds_; + bitField0_ |= 0x00008000; + } else { + ensurePromotionIdsIsMutable(); + promotionIds_.addAll(other.promotionIds_); + } + onChanged(); + } + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + bitField0_ |= 0x00010000; + if (other.hasMediaInfo()) { + mergeMediaInfo(other.getMediaInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getUserInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + directUserRequest_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getPageInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + attributionToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + com.google.cloud.discoveryengine.v1alpha.DocumentInfo m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.DocumentInfo.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + input.readMessage( + getPanelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getSearchInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + input.readMessage( + getCompletionInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + getTransactionInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagIdsIsMutable(); + tagIds_.add(s); + break; + } // case 122 + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePromotionIdsIsMutable(); + promotionIds_.add(s); + break; + } // case 130 + case 138: { + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAttributes().getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: { + input.readMessage( + getMediaInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object eventType_ = ""; + /** + *
+     * Required. User event type. Allowed values are:
+     *
+     * Generic values:
+     *
+     * * `search`: Search for Documents.
+     * * `view-item`: Detailed page view of a Document.
+     * * `view-item-list`: View of a panel or ordered list of Documents.
+     * * `view-home-page`: View of the home page.
+     * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+     *
+     * Retail-related values:
+     *
+     * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+     * * `purchase`: Purchase an item(s)
+     *
+     * Media-related values:
+     *
+     * * `media-play`: Start/resume watching a video, playing a song, etc.
+     * * `media-complete`: Finished or stopped midway through a video, song, etc.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. User event type. Allowed values are:
+     *
+     * Generic values:
+     *
+     * * `search`: Search for Documents.
+     * * `view-item`: Detailed page view of a Document.
+     * * `view-item-list`: View of a panel or ordered list of Documents.
+     * * `view-home-page`: View of the home page.
+     * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+     *
+     * Retail-related values:
+     *
+     * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+     * * `purchase`: Purchase an item(s)
+     *
+     * Media-related values:
+     *
+     * * `media-play`: Start/resume watching a video, playing a song, etc.
+     * * `media-complete`: Finished or stopped midway through a video, song, etc.
+     * 
+ * + * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for eventType. + */ + 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); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. User event type. Allowed values are:
+     *
+     * Generic values:
+     *
+     * * `search`: Search for Documents.
+     * * `view-item`: Detailed page view of a Document.
+     * * `view-item-list`: View of a panel or ordered list of Documents.
+     * * `view-home-page`: View of the home page.
+     * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+     *
+     * Retail-related values:
+     *
+     * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+     * * `purchase`: Purchase an item(s)
+     *
+     * Media-related values:
+     *
+     * * `media-play`: Start/resume watching a video, playing a song, etc.
+     * * `media-complete`: Finished or stopped midway through a video, song, etc.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. User event type. Allowed values are:
+     *
+     * Generic values:
+     *
+     * * `search`: Search for Documents.
+     * * `view-item`: Detailed page view of a Document.
+     * * `view-item-list`: View of a panel or ordered list of Documents.
+     * * `view-home-page`: View of the home page.
+     * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+     *
+     * Retail-related values:
+     *
+     * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+     * * `purchase`: Purchase an item(s)
+     *
+     * Media-related values:
+     *
+     * * `media-play`: Start/resume watching a video, playing a song, etc.
+     * * `media-complete`: Finished or stopped midway through a video, song, etc.
+     * 
+ * + * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. User event type. Allowed values are:
+     *
+     * Generic values:
+     *
+     * * `search`: Search for Documents.
+     * * `view-item`: Detailed page view of a Document.
+     * * `view-item-list`: View of a panel or ordered list of Documents.
+     * * `view-home-page`: View of the home page.
+     * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+     *
+     * Retail-related values:
+     *
+     * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+     * * `purchase`: Purchase an item(s)
+     *
+     * Media-related values:
+     *
+     * * `media-play`: Start/resume watching a video, playing a song, etc.
+     * * `media-complete`: Finished or stopped midway through a video, song, etc.
+     * 
+ * + * 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) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userPseudoId_ = ""; + /** + *
+     * Required. A unique identifier for tracking visitors.
+     *
+     * For example, this could be implemented with an HTTP cookie, which should be
+     * able to uniquely identify a visitor on a single device. This unique
+     * identifier should not change if the visitor log in/out of the website.
+     *
+     * Do not set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded model
+     * quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * The field should not contain PII or user-data. We recommend to use Google
+     * Analytics [Client
+     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+     * for this field.
+     * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. A unique identifier for tracking visitors.
+     *
+     * For example, this could be implemented with an HTTP cookie, which should be
+     * able to uniquely identify a visitor on a single device. This unique
+     * identifier should not change if the visitor log in/out of the website.
+     *
+     * Do not set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded model
+     * quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * The field should not contain PII or user-data. We recommend to use Google
+     * Analytics [Client
+     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+     * for this field.
+     * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. A unique identifier for tracking visitors.
+     *
+     * For example, this could be implemented with an HTTP cookie, which should be
+     * able to uniquely identify a visitor on a single device. This unique
+     * identifier should not change if the visitor log in/out of the website.
+     *
+     * Do not set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded model
+     * quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * The field should not contain PII or user-data. We recommend to use Google
+     * Analytics [Client
+     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+     * for this field.
+     * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userPseudoId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. A unique identifier for tracking visitors.
+     *
+     * For example, this could be implemented with an HTTP cookie, which should be
+     * able to uniquely identify a visitor on a single device. This unique
+     * identifier should not change if the visitor log in/out of the website.
+     *
+     * Do not set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded model
+     * quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * The field should not contain PII or user-data. We recommend to use Google
+     * Analytics [Client
+     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+     * for this field.
+     * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. A unique identifier for tracking visitors.
+     *
+     * For example, this could be implemented with an HTTP cookie, which should be
+     * able to uniquely identify a visitor on a single device. This unique
+     * identifier should not change if the visitor log in/out of the website.
+     *
+     * Do not set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded model
+     * quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * The field should not contain PII or user-data. We recommend to use Google
+     * Analytics [Client
+     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+     * for this field.
+     * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder setEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + eventTime_ != null && + eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEventTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + /** + *
+     * Only required for
+     * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+     * method. Timestamp of when the user event happened.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserInfo, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder, com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder> userInfoBuilder_; + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + * @return The userInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + public Builder setUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + public Builder setUserInfo( + com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + userInfo_ != null && + userInfo_ != com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + public com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance() : userInfo_; + } + } + /** + *
+     * Information about the end user.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserInfo, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder, com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserInfo, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder, com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + + private boolean directUserRequest_ ; + /** + *
+     * Should set to true if the request is made directly from the end user, in
+     * which case the
+     * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * can be populated from the HTTP request.
+     *
+     * This flag should be set only if the API request is made directly from the
+     * end user such as a mobile app (and not if a gateway or a server is
+     * processing and pushing the user events).
+     *
+     * This should not be set when using the JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent].
+     * 
+ * + * bool direct_user_request = 5; + * @return The directUserRequest. + */ + @java.lang.Override + public boolean getDirectUserRequest() { + return directUserRequest_; + } + /** + *
+     * Should set to true if the request is made directly from the end user, in
+     * which case the
+     * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * can be populated from the HTTP request.
+     *
+     * This flag should be set only if the API request is made directly from the
+     * end user such as a mobile app (and not if a gateway or a server is
+     * processing and pushing the user events).
+     *
+     * This should not be set when using the JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent].
+     * 
+ * + * bool direct_user_request = 5; + * @param value The directUserRequest to set. + * @return This builder for chaining. + */ + public Builder setDirectUserRequest(boolean value) { + + directUserRequest_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Should set to true if the request is made directly from the end user, in
+     * which case the
+     * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+     * can be populated from the HTTP request.
+     *
+     * This flag should be set only if the API request is made directly from the
+     * end user such as a mobile app (and not if a gateway or a server is
+     * processing and pushing the user events).
+     *
+     * This should not be set when using the JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent].
+     * 
+ * + * bool direct_user_request = 5; + * @return This builder for chaining. + */ + public Builder clearDirectUserRequest() { + bitField0_ = (bitField0_ & ~0x00000010); + directUserRequest_ = false; + onChanged(); + return this; + } + + private java.lang.Object sessionId_ = ""; + /** + *
+     * A unique identifier for tracking a visitor session with a length limit of
+     * 128 bytes. A session is an aggregation of an end user behavior in a time
+     * span.
+     *
+     * A general guideline to populate the session_id:
+     *
+     * 1. If user has no activity for 30 min, a new session_id should be assigned.
+     * 2. The session_id should be unique across users, suggest use uuid or add
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * as prefix.
+     * 
+ * + * string session_id = 6; + * @return The sessionId. + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique identifier for tracking a visitor session with a length limit of
+     * 128 bytes. A session is an aggregation of an end user behavior in a time
+     * span.
+     *
+     * A general guideline to populate the session_id:
+     *
+     * 1. If user has no activity for 30 min, a new session_id should be assigned.
+     * 2. The session_id should be unique across users, suggest use uuid or add
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * as prefix.
+     * 
+ * + * string session_id = 6; + * @return The bytes for sessionId. + */ + public com.google.protobuf.ByteString + getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique identifier for tracking a visitor session with a length limit of
+     * 128 bytes. A session is an aggregation of an end user behavior in a time
+     * span.
+     *
+     * A general guideline to populate the session_id:
+     *
+     * 1. If user has no activity for 30 min, a new session_id should be assigned.
+     * 2. The session_id should be unique across users, suggest use uuid or add
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * as prefix.
+     * 
+ * + * string session_id = 6; + * @param value The sessionId to set. + * @return This builder for chaining. + */ + public Builder setSessionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sessionId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking a visitor session with a length limit of
+     * 128 bytes. A session is an aggregation of an end user behavior in a time
+     * span.
+     *
+     * A general guideline to populate the session_id:
+     *
+     * 1. If user has no activity for 30 min, a new session_id should be assigned.
+     * 2. The session_id should be unique across users, suggest use uuid or add
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * as prefix.
+     * 
+ * + * string session_id = 6; + * @return This builder for chaining. + */ + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * A unique identifier for tracking a visitor session with a length limit of
+     * 128 bytes. A session is an aggregation of an end user behavior in a time
+     * span.
+     *
+     * A general guideline to populate the session_id:
+     *
+     * 1. If user has no activity for 30 min, a new session_id should be assigned.
+     * 2. The session_id should be unique across users, suggest use uuid or add
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+     * as prefix.
+     * 
+ * + * string session_id = 6; + * @param value The bytes for sessionId to set. + * @return This builder for chaining. + */ + public Builder setSessionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sessionId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.PageInfo pageInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PageInfo, com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder, com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder> pageInfoBuilder_; + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + * @return Whether the pageInfo field is set. + */ + public boolean hasPageInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + * @return The pageInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.PageInfo getPageInfo() { + if (pageInfoBuilder_ == null) { + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance() : pageInfo_; + } else { + return pageInfoBuilder_.getMessage(); + } + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + public Builder setPageInfo(com.google.cloud.discoveryengine.v1alpha.PageInfo value) { + if (pageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageInfo_ = value; + } else { + pageInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + public Builder setPageInfo( + com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder builderForValue) { + if (pageInfoBuilder_ == null) { + pageInfo_ = builderForValue.build(); + } else { + pageInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + public Builder mergePageInfo(com.google.cloud.discoveryengine.v1alpha.PageInfo value) { + if (pageInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + pageInfo_ != null && + pageInfo_ != com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); + } else { + pageInfo_ = value; + } + } else { + pageInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + public Builder clearPageInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); + pageInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + public com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder getPageInfoBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getPageInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + public com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder getPageInfoOrBuilder() { + if (pageInfoBuilder_ != null) { + return pageInfoBuilder_.getMessageOrBuilder(); + } else { + return pageInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.PageInfo.getDefaultInstance() : pageInfo_; + } + } + /** + *
+     * Page metadata such as categories and other critical information for certain
+     * event types such as `view-category-page`.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PageInfo, com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder, com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder> + getPageInfoFieldBuilder() { + if (pageInfoBuilder_ == null) { + pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PageInfo, com.google.cloud.discoveryengine.v1alpha.PageInfo.Builder, com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder>( + getPageInfo(), + getParentForChildren(), + isClean()); + pageInfo_ = null; + } + return pageInfoBuilder_; + } + + private java.lang.Object attributionToken_ = ""; + /** + *
+     * Token to attribute an API response to user action(s) to trigger the event.
+     *
+     * Highly recommended for user events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * This field enables accurate attribution of recommendation model
+     * performance.
+     *
+     * The value must be one of:
+     *
+     * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * This token enables us to accurately attribute page view or conversion
+     * completion back to the event and the particular predict response containing
+     * this clicked/purchased product. If user clicks on product K in the
+     * recommendation results, pass
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * as a URL parameter to product K's page. When recording events on product
+     * K's page, log the
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * to this field.
+     * 
+ * + * string attribution_token = 8; + * @return The attributionToken. + */ + public java.lang.String getAttributionToken() { + java.lang.Object ref = attributionToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributionToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to attribute an API response to user action(s) to trigger the event.
+     *
+     * Highly recommended for user events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * This field enables accurate attribution of recommendation model
+     * performance.
+     *
+     * The value must be one of:
+     *
+     * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * This token enables us to accurately attribute page view or conversion
+     * completion back to the event and the particular predict response containing
+     * this clicked/purchased product. If user clicks on product K in the
+     * recommendation results, pass
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * as a URL parameter to product K's page. When recording events on product
+     * K's page, log the
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * to this field.
+     * 
+ * + * string attribution_token = 8; + * @return The bytes for attributionToken. + */ + public com.google.protobuf.ByteString + getAttributionTokenBytes() { + java.lang.Object ref = attributionToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attributionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to attribute an API response to user action(s) to trigger the event.
+     *
+     * Highly recommended for user events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * This field enables accurate attribution of recommendation model
+     * performance.
+     *
+     * The value must be one of:
+     *
+     * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * This token enables us to accurately attribute page view or conversion
+     * completion back to the event and the particular predict response containing
+     * this clicked/purchased product. If user clicks on product K in the
+     * recommendation results, pass
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * as a URL parameter to product K's page. When recording events on product
+     * K's page, log the
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * to this field.
+     * 
+ * + * string attribution_token = 8; + * @param value The attributionToken to set. + * @return This builder for chaining. + */ + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + attributionToken_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Token to attribute an API response to user action(s) to trigger the event.
+     *
+     * Highly recommended for user events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * This field enables accurate attribution of recommendation model
+     * performance.
+     *
+     * The value must be one of:
+     *
+     * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * This token enables us to accurately attribute page view or conversion
+     * completion back to the event and the particular predict response containing
+     * this clicked/purchased product. If user clicks on product K in the
+     * recommendation results, pass
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * as a URL parameter to product K's page. When recording events on product
+     * K's page, log the
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * to this field.
+     * 
+ * + * string attribution_token = 8; + * @return This builder for chaining. + */ + public Builder clearAttributionToken() { + attributionToken_ = getDefaultInstance().getAttributionToken(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Token to attribute an API response to user action(s) to trigger the event.
+     *
+     * Highly recommended for user events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * This field enables accurate attribution of recommendation model
+     * performance.
+     *
+     * The value must be one of:
+     *
+     * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+     * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+     * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+     *
+     * This token enables us to accurately attribute page view or conversion
+     * completion back to the event and the particular predict response containing
+     * this clicked/purchased product. If user clicks on product K in the
+     * recommendation results, pass
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * as a URL parameter to product K's page. When recording events on product
+     * K's page, log the
+     * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+     * to this field.
+     * 
+ * + * string attribution_token = 8; + * @param value The bytes for attributionToken to set. + * @return This builder for chaining. + */ + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + attributionToken_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered.
+     *
+     * One example is for `search` events, the associated
+     * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+     * contain a filter expression in
+     * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+     * conforming to https://google.aip.dev/160#filtering.
+     *
+     * Similarly, for `view-item-list` events that are generated from a
+     * [RecommendationService.RecommendRequest][], this field may be populated
+     * directly from [RecommendationService.RecommendRequest.filter][] conforming
+     * to https://google.aip.dev/160#filtering.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string filter = 9; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered.
+     *
+     * One example is for `search` events, the associated
+     * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+     * contain a filter expression in
+     * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+     * conforming to https://google.aip.dev/160#filtering.
+     *
+     * Similarly, for `view-item-list` events that are generated from a
+     * [RecommendationService.RecommendRequest][], this field may be populated
+     * directly from [RecommendationService.RecommendRequest.filter][] conforming
+     * to https://google.aip.dev/160#filtering.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string filter = 9; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered.
+     *
+     * One example is for `search` events, the associated
+     * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+     * contain a filter expression in
+     * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+     * conforming to https://google.aip.dev/160#filtering.
+     *
+     * Similarly, for `view-item-list` events that are generated from a
+     * [RecommendationService.RecommendRequest][], this field may be populated
+     * directly from [RecommendationService.RecommendRequest.filter][] conforming
+     * to https://google.aip.dev/160#filtering.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string filter = 9; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filter_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered.
+     *
+     * One example is for `search` events, the associated
+     * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+     * contain a filter expression in
+     * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+     * conforming to https://google.aip.dev/160#filtering.
+     *
+     * Similarly, for `view-item-list` events that are generated from a
+     * [RecommendationService.RecommendRequest][], this field may be populated
+     * directly from [RecommendationService.RecommendRequest.filter][] conforming
+     * to https://google.aip.dev/160#filtering.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string filter = 9; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * The filter syntax consists of an expression language for constructing a
+     * predicate from one or more fields of the documents being filtered.
+     *
+     * One example is for `search` events, the associated
+     * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+     * contain a filter expression in
+     * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+     * conforming to https://google.aip.dev/160#filtering.
+     *
+     * Similarly, for `view-item-list` events that are generated from a
+     * [RecommendationService.RecommendRequest][], this field may be populated
+     * directly from [RecommendationService.RecommendRequest.filter][] conforming
+     * to https://google.aip.dev/160#filtering.
+     *
+     * The value must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string filter = 9; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List documents_ = + java.util.Collections.emptyList(); + private void ensureDocumentsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + documents_ = new java.util.ArrayList(documents_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentInfo, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder> documentsBuilder_; + + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public java.util.List getDocumentsList() { + if (documentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(documents_); + } else { + return documentsBuilder_.getMessageList(); + } + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public int getDocumentsCount() { + if (documentsBuilder_ == null) { + return documents_.size(); + } else { + return documentsBuilder_.getCount(); + } + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo getDocuments(int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessage(index); + } + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.DocumentInfo value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.set(index, value); + onChanged(); + } else { + documentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.set(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder addDocuments(com.google.cloud.discoveryengine.v1alpha.DocumentInfo value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(value); + onChanged(); + } else { + documentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.DocumentInfo value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(index, value); + onChanged(); + } else { + documentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder addDocuments( + com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder addAllDocuments( + java.lang.Iterable values) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); + onChanged(); + } else { + documentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder clearDocuments() { + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + documentsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public Builder removeDocuments(int index) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.remove(index); + onChanged(); + } else { + documentsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder getDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder getDocumentsOrBuilder( + int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); } else { + return documentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public java.util.List + getDocumentsOrBuilderList() { + if (documentsBuilder_ != null) { + return documentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(documents_); + } + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder addDocumentsBuilder() { + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1alpha.DocumentInfo.getDefaultInstance()); + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder addDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.getDefaultInstance()); + } + /** + *
+     * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+     * associated with this user event.
+     *
+     * This field is optional except for the following event types:
+     *
+     * * `view-item`
+     * * `add-to-cart`
+     * * `purchase`
+     * * `media-play`
+     * * `media-complete`
+     *
+     * In a `search` event, this field represents the documents returned to the
+     * end user on the current page (the end user may have not finished browsing
+     * the whole page yet). When a new page is returned to the end user, after
+     * pagination/filtering/ordering even for the same query, a new `search` event
+     * with different
+     * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+     * is desired.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + public java.util.List + getDocumentsBuilderList() { + return getDocumentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentInfo, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder> + getDocumentsFieldBuilder() { + if (documentsBuilder_ == null) { + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentInfo, com.google.cloud.discoveryengine.v1alpha.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder>( + documents_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + documents_ = null; + } + return documentsBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.PanelInfo panel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PanelInfo, com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder, com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder> panelBuilder_; + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + * @return Whether the panel field is set. + */ + public boolean hasPanel() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + * @return The panel. + */ + public com.google.cloud.discoveryengine.v1alpha.PanelInfo getPanel() { + if (panelBuilder_ == null) { + return panel_ == null ? com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance() : panel_; + } else { + return panelBuilder_.getMessage(); + } + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + public Builder setPanel(com.google.cloud.discoveryengine.v1alpha.PanelInfo value) { + if (panelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + panel_ = value; + } else { + panelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + public Builder setPanel( + com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder builderForValue) { + if (panelBuilder_ == null) { + panel_ = builderForValue.build(); + } else { + panelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + public Builder mergePanel(com.google.cloud.discoveryengine.v1alpha.PanelInfo value) { + if (panelBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + panel_ != null && + panel_ != com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance()) { + getPanelBuilder().mergeFrom(value); + } else { + panel_ = value; + } + } else { + panelBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + public Builder clearPanel() { + bitField0_ = (bitField0_ & ~0x00000400); + panel_ = null; + if (panelBuilder_ != null) { + panelBuilder_.dispose(); + panelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + public com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder getPanelBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getPanelFieldBuilder().getBuilder(); + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + public com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder getPanelOrBuilder() { + if (panelBuilder_ != null) { + return panelBuilder_.getMessageOrBuilder(); + } else { + return panel_ == null ? + com.google.cloud.discoveryengine.v1alpha.PanelInfo.getDefaultInstance() : panel_; + } + } + /** + *
+     * Panel metadata associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PanelInfo, com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder, com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder> + getPanelFieldBuilder() { + if (panelBuilder_ == null) { + panelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PanelInfo, com.google.cloud.discoveryengine.v1alpha.PanelInfo.Builder, com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder>( + getPanel(), + getParentForChildren(), + isClean()); + panel_ = null; + } + return panelBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchInfo searchInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchInfo, com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder> searchInfoBuilder_; + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + * @return Whether the searchInfo field is set. + */ + public boolean hasSearchInfo() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + * @return The searchInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchInfo getSearchInfo() { + if (searchInfoBuilder_ == null) { + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance() : searchInfo_; + } else { + return searchInfoBuilder_.getMessage(); + } + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + public Builder setSearchInfo(com.google.cloud.discoveryengine.v1alpha.SearchInfo value) { + if (searchInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchInfo_ = value; + } else { + searchInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + public Builder setSearchInfo( + com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder builderForValue) { + if (searchInfoBuilder_ == null) { + searchInfo_ = builderForValue.build(); + } else { + searchInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1alpha.SearchInfo value) { + if (searchInfoBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + searchInfo_ != null && + searchInfo_ != com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance()) { + getSearchInfoBuilder().mergeFrom(value); + } else { + searchInfo_ = value; + } + } else { + searchInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + public Builder clearSearchInfo() { + bitField0_ = (bitField0_ & ~0x00000800); + searchInfo_ = null; + if (searchInfoBuilder_ != null) { + searchInfoBuilder_.dispose(); + searchInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder getSearchInfoBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getSearchInfoFieldBuilder().getBuilder(); + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder getSearchInfoOrBuilder() { + if (searchInfoBuilder_ != null) { + return searchInfoBuilder_.getMessageOrBuilder(); + } else { + return searchInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.SearchInfo.getDefaultInstance() : searchInfo_; + } + } + /** + *
+     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+     * details related to the event.
+     *
+     * This field should be set for `search` event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchInfo, com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder> + getSearchInfoFieldBuilder() { + if (searchInfoBuilder_ == null) { + searchInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchInfo, com.google.cloud.discoveryengine.v1alpha.SearchInfo.Builder, com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder>( + getSearchInfo(), + getParentForChildren(), + isClean()); + searchInfo_ = null; + } + return searchInfoBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.CompletionInfo completionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CompletionInfo, com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder> completionInfoBuilder_; + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + * @return Whether the completionInfo field is set. + */ + public boolean hasCompletionInfo() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + * @return The completionInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo getCompletionInfo() { + if (completionInfoBuilder_ == null) { + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance() : completionInfo_; + } else { + return completionInfoBuilder_.getMessage(); + } + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + public Builder setCompletionInfo(com.google.cloud.discoveryengine.v1alpha.CompletionInfo value) { + if (completionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completionInfo_ = value; + } else { + completionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + public Builder setCompletionInfo( + com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder builderForValue) { + if (completionInfoBuilder_ == null) { + completionInfo_ = builderForValue.build(); + } else { + completionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + public Builder mergeCompletionInfo(com.google.cloud.discoveryengine.v1alpha.CompletionInfo value) { + if (completionInfoBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + completionInfo_ != null && + completionInfo_ != com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance()) { + getCompletionInfoBuilder().mergeFrom(value); + } else { + completionInfo_ = value; + } + } else { + completionInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + public Builder clearCompletionInfo() { + bitField0_ = (bitField0_ & ~0x00001000); + completionInfo_ = null; + if (completionInfoBuilder_ != null) { + completionInfoBuilder_.dispose(); + completionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + public com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder getCompletionInfoBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getCompletionInfoFieldBuilder().getBuilder(); + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + public com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder getCompletionInfoOrBuilder() { + if (completionInfoBuilder_ != null) { + return completionInfoBuilder_.getMessageOrBuilder(); + } else { + return completionInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.CompletionInfo.getDefaultInstance() : completionInfo_; + } + } + /** + *
+     * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+     * details related to the event.
+     *
+     * This field should be set for `search` event when autocomplete function is
+     * enabled and the user clicks a suggestion for search.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CompletionInfo, com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder> + getCompletionInfoFieldBuilder() { + if (completionInfoBuilder_ == null) { + completionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CompletionInfo, com.google.cloud.discoveryengine.v1alpha.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder>( + getCompletionInfo(), + getParentForChildren(), + isClean()); + completionInfo_ = null; + } + return completionInfoBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.TransactionInfo transactionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TransactionInfo, com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder> transactionInfoBuilder_; + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + * @return Whether the transactionInfo field is set. + */ + public boolean hasTransactionInfo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + * @return The transactionInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo getTransactionInfo() { + if (transactionInfoBuilder_ == null) { + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance() : transactionInfo_; + } else { + return transactionInfoBuilder_.getMessage(); + } + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + public Builder setTransactionInfo(com.google.cloud.discoveryengine.v1alpha.TransactionInfo value) { + if (transactionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transactionInfo_ = value; + } else { + transactionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + public Builder setTransactionInfo( + com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder builderForValue) { + if (transactionInfoBuilder_ == null) { + transactionInfo_ = builderForValue.build(); + } else { + transactionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + public Builder mergeTransactionInfo(com.google.cloud.discoveryengine.v1alpha.TransactionInfo value) { + if (transactionInfoBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + transactionInfo_ != null && + transactionInfo_ != com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance()) { + getTransactionInfoBuilder().mergeFrom(value); + } else { + transactionInfo_ = value; + } + } else { + transactionInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + public Builder clearTransactionInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + transactionInfo_ = null; + if (transactionInfoBuilder_ != null) { + transactionInfoBuilder_.dispose(); + transactionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + public com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder getTransactionInfoBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getTransactionInfoFieldBuilder().getBuilder(); + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + public com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder getTransactionInfoOrBuilder() { + if (transactionInfoBuilder_ != null) { + return transactionInfoBuilder_.getMessageOrBuilder(); + } else { + return transactionInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.TransactionInfo.getDefaultInstance() : transactionInfo_; + } + } + /** + *
+     * The transaction metadata (if any) associated with this user event.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TransactionInfo, com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder> + getTransactionInfoFieldBuilder() { + if (transactionInfoBuilder_ == null) { + transactionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.TransactionInfo, com.google.cloud.discoveryengine.v1alpha.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder>( + getTransactionInfo(), + getParentForChildren(), + isClean()); + transactionInfo_ = null; + } + return transactionInfoBuilder_; + } + + private com.google.protobuf.LazyStringArrayList tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagIdsIsMutable() { + if (!tagIds_.isModifiable()) { + tagIds_ = new com.google.protobuf.LazyStringArrayList(tagIds_); + } + bitField0_ |= 0x00004000; + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @return A list containing the tagIds. + */ + public com.google.protobuf.ProtocolStringList + getTagIdsList() { + tagIds_.makeImmutable(); + return tagIds_; + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @return The count of tagIds. + */ + public int getTagIdsCount() { + return tagIds_.size(); + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @param index The index of the element to return. + * @return The tagIds at the given index. + */ + public java.lang.String getTagIds(int index) { + return tagIds_.get(index); + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @param index The index of the value to return. + * @return The bytes of the tagIds at the given index. + */ + public com.google.protobuf.ByteString + getTagIdsBytes(int index) { + return tagIds_.getByteString(index); + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @param index The index to set the value at. + * @param value The tagIds to set. + * @return This builder for chaining. + */ + public Builder setTagIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagIdsIsMutable(); + tagIds_.set(index, value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @param value The tagIds to add. + * @return This builder for chaining. + */ + public Builder addTagIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagIdsIsMutable(); + tagIds_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @param values The tagIds to add. + * @return This builder for chaining. + */ + public Builder addAllTagIds( + java.lang.Iterable values) { + ensureTagIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagIds_); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @return This builder for chaining. + */ + public Builder clearTagIds() { + tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000);; + onChanged(); + return this; + } + /** + *
+     * A list of identifiers for the independent experiment groups this user event
+     * belongs to. This is used to distinguish between user events associated with
+     * different experiment setups on the customer end.
+     * 
+ * + * repeated string tag_ids = 15; + * @param value The bytes of the tagIds to add. + * @return This builder for chaining. + */ + public Builder addTagIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagIdsIsMutable(); + tagIds_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePromotionIdsIsMutable() { + if (!promotionIds_.isModifiable()) { + promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); + } + bitField0_ |= 0x00008000; + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @return A list containing the promotionIds. + */ + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { + promotionIds_.makeImmutable(); + return promotionIds_; + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @return The count of promotionIds. + */ + public int getPromotionIdsCount() { + return promotionIds_.size(); + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @param index The index of the element to return. + * @return The promotionIds at the given index. + */ + public java.lang.String getPromotionIds(int index) { + return promotionIds_.get(index); + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @param index The index of the value to return. + * @return The bytes of the promotionIds at the given index. + */ + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { + return promotionIds_.getByteString(index); + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @param index The index to set the value at. + * @param value The promotionIds to set. + * @return This builder for chaining. + */ + public Builder setPromotionIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePromotionIdsIsMutable(); + promotionIds_.set(index, value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @param value The promotionIds to add. + * @return This builder for chaining. + */ + public Builder addPromotionIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePromotionIdsIsMutable(); + promotionIds_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @param values The promotionIds to add. + * @return This builder for chaining. + */ + public Builder addAllPromotionIds( + java.lang.Iterable values) { + ensurePromotionIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promotionIds_); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @return This builder for chaining. + */ + public Builder clearPromotionIds() { + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000);; + onChanged(); + return this; + } + /** + *
+     * The promotion IDs if this is an event associated with promotions.
+     * Currently, this field is restricted to at most one ID.
+     * 
+ * + * repeated string promotion_ids = 16; + * @param value The bytes of the promotionIds to add. + * @return This builder for chaining. + */ + public Builder addPromotionIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePromotionIdsIsMutable(); + promotionIds_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + bitField0_ |= 0x00010000; + onChanged(); + return attributes_; + } + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public /* nullable */ +com.google.cloud.discoveryengine.v1alpha.CustomAttribute getAttributesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.CustomAttribute defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomAttribute getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00010000); + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + bitField0_ |= 0x00010000; + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + public Builder putAttributes( + java.lang.String key, + com.google.cloud.discoveryengine.v1alpha.CustomAttribute value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + bitField0_ |= 0x00010000; + return this; + } + /** + *
+     * Extra user event features to include in the recommendation model.
+     * These attributes must NOT contain data that needs to be parsed or processed
+     * further, e.g. JSON or other encodings.
+     *
+     * If you provide custom attributes for ingested user events, also include
+     * them in the user events that you associate with prediction requests. Custom
+     * attribute formatting must be consistent between imported events and events
+     * provided with prediction requests. This lets the Discovery Engine API use
+     * those custom attributes when training models and serving predictions, which
+     * helps improve recommendation quality.
+     *
+     * This field needs to pass all below criteria, otherwise an
+     * `INVALID_ARGUMENT` error is returned:
+     *
+     * * The key must be a UTF-8 encoded string with a length limit of 5,000
+     *   characters.
+     * * For text attributes, at most 400 values are allowed. Empty values are not
+     *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+     *   256 characters.
+     * * For number attributes, at most 400 values are allowed.
+     *
+     * For product recommendations, an example of extra user information is
+     * `traffic_channel`, which is how a user arrives at the site. Users can
+     * arrive
+     * at the site by coming to the site directly, coming through Google
+     * search, or in other ways.
+     * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + bitField0_ |= 0x00010000; + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.MediaInfo mediaInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.MediaInfo, com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder, com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder> mediaInfoBuilder_; + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + * @return Whether the mediaInfo field is set. + */ + public boolean hasMediaInfo() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + * @return The mediaInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.MediaInfo getMediaInfo() { + if (mediaInfoBuilder_ == null) { + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance() : mediaInfo_; + } else { + return mediaInfoBuilder_.getMessage(); + } + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + public Builder setMediaInfo(com.google.cloud.discoveryengine.v1alpha.MediaInfo value) { + if (mediaInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediaInfo_ = value; + } else { + mediaInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + public Builder setMediaInfo( + com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder builderForValue) { + if (mediaInfoBuilder_ == null) { + mediaInfo_ = builderForValue.build(); + } else { + mediaInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1alpha.MediaInfo value) { + if (mediaInfoBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + mediaInfo_ != null && + mediaInfo_ != com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance()) { + getMediaInfoBuilder().mergeFrom(value); + } else { + mediaInfo_ = value; + } + } else { + mediaInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + public Builder clearMediaInfo() { + bitField0_ = (bitField0_ & ~0x00020000); + mediaInfo_ = null; + if (mediaInfoBuilder_ != null) { + mediaInfoBuilder_.dispose(); + mediaInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + public com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder getMediaInfoBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getMediaInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + public com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder getMediaInfoOrBuilder() { + if (mediaInfoBuilder_ != null) { + return mediaInfoBuilder_.getMessageOrBuilder(); + } else { + return mediaInfo_ == null ? + com.google.cloud.discoveryengine.v1alpha.MediaInfo.getDefaultInstance() : mediaInfo_; + } + } + /** + *
+     * Media-specific info.
+     * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.MediaInfo, com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder, com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder> + getMediaInfoFieldBuilder() { + if (mediaInfoBuilder_ == null) { + mediaInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.MediaInfo, com.google.cloud.discoveryengine.v1alpha.MediaInfo.Builder, com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder>( + getMediaInfo(), + getParentForChildren(), + isClean()); + mediaInfo_ = null; + } + return mediaInfoBuilder_; + } + @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.discoveryengine.v1alpha.UserEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UserEvent) + private static final com.google.cloud.discoveryengine.v1alpha.UserEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UserEvent(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UserEvent getDefaultInstance() { + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java new file mode 100644 index 000000000000..7e070db26431 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java @@ -0,0 +1,937 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface UserEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UserEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. User event type. Allowed values are:
+   *
+   * Generic values:
+   *
+   * * `search`: Search for Documents.
+   * * `view-item`: Detailed page view of a Document.
+   * * `view-item-list`: View of a panel or ordered list of Documents.
+   * * `view-home-page`: View of the home page.
+   * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+   *
+   * Retail-related values:
+   *
+   * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+   * * `purchase`: Purchase an item(s)
+   *
+   * Media-related values:
+   *
+   * * `media-play`: Start/resume watching a video, playing a song, etc.
+   * * `media-complete`: Finished or stopped midway through a video, song, etc.
+   * 
+ * + * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The eventType. + */ + java.lang.String getEventType(); + /** + *
+   * Required. User event type. Allowed values are:
+   *
+   * Generic values:
+   *
+   * * `search`: Search for Documents.
+   * * `view-item`: Detailed page view of a Document.
+   * * `view-item-list`: View of a panel or ordered list of Documents.
+   * * `view-home-page`: View of the home page.
+   * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans
+   *
+   * Retail-related values:
+   *
+   * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping
+   * * `purchase`: Purchase an item(s)
+   *
+   * Media-related values:
+   *
+   * * `media-play`: Start/resume watching a video, playing a song, etc.
+   * * `media-complete`: Finished or stopped midway through a video, song, etc.
+   * 
+ * + * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); + + /** + *
+   * Required. A unique identifier for tracking visitors.
+   *
+   * For example, this could be implemented with an HTTP cookie, which should be
+   * able to uniquely identify a visitor on a single device. This unique
+   * identifier should not change if the visitor log in/out of the website.
+   *
+   * Do not set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded model
+   * quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * The field should not contain PII or user-data. We recommend to use Google
+   * Analytics [Client
+   * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+   * for this field.
+   * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userPseudoId. + */ + java.lang.String getUserPseudoId(); + /** + *
+   * Required. A unique identifier for tracking visitors.
+   *
+   * For example, this could be implemented with an HTTP cookie, which should be
+   * able to uniquely identify a visitor on a single device. This unique
+   * identifier should not change if the visitor log in/out of the website.
+   *
+   * Do not set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded model
+   * quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * The field should not contain PII or user-data. We recommend to use Google
+   * Analytics [Client
+   * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
+   * for this field.
+   * 
+ * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for userPseudoId. + */ + com.google.protobuf.ByteString + getUserPseudoIdBytes(); + + /** + *
+   * Only required for
+   * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+   * method. Timestamp of when the user event happened.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3; + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + /** + *
+   * Only required for
+   * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+   * method. Timestamp of when the user event happened.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3; + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + /** + *
+   * Only required for
+   * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
+   * method. Timestamp of when the user event happened.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + *
+   * Information about the end user.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + /** + *
+   * Information about the end user.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + * @return The userInfo. + */ + com.google.cloud.discoveryengine.v1alpha.UserInfo getUserInfo(); + /** + *
+   * Information about the end user.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 4; + */ + com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrBuilder(); + + /** + *
+   * Should set to true if the request is made directly from the end user, in
+   * which case the
+   * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent]
+   * can be populated from the HTTP request.
+   *
+   * This flag should be set only if the API request is made directly from the
+   * end user such as a mobile app (and not if a gateway or a server is
+   * processing and pushing the user events).
+   *
+   * This should not be set when using the JavaScript tag in
+   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent].
+   * 
+ * + * bool direct_user_request = 5; + * @return The directUserRequest. + */ + boolean getDirectUserRequest(); + + /** + *
+   * A unique identifier for tracking a visitor session with a length limit of
+   * 128 bytes. A session is an aggregation of an end user behavior in a time
+   * span.
+   *
+   * A general guideline to populate the session_id:
+   *
+   * 1. If user has no activity for 30 min, a new session_id should be assigned.
+   * 2. The session_id should be unique across users, suggest use uuid or add
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * as prefix.
+   * 
+ * + * string session_id = 6; + * @return The sessionId. + */ + java.lang.String getSessionId(); + /** + *
+   * A unique identifier for tracking a visitor session with a length limit of
+   * 128 bytes. A session is an aggregation of an end user behavior in a time
+   * span.
+   *
+   * A general guideline to populate the session_id:
+   *
+   * 1. If user has no activity for 30 min, a new session_id should be assigned.
+   * 2. The session_id should be unique across users, suggest use uuid or add
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id]
+   * as prefix.
+   * 
+ * + * string session_id = 6; + * @return The bytes for sessionId. + */ + com.google.protobuf.ByteString + getSessionIdBytes(); + + /** + *
+   * Page metadata such as categories and other critical information for certain
+   * event types such as `view-category-page`.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + * @return Whether the pageInfo field is set. + */ + boolean hasPageInfo(); + /** + *
+   * Page metadata such as categories and other critical information for certain
+   * event types such as `view-category-page`.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + * @return The pageInfo. + */ + com.google.cloud.discoveryengine.v1alpha.PageInfo getPageInfo(); + /** + *
+   * Page metadata such as categories and other critical information for certain
+   * event types such as `view-category-page`.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PageInfo page_info = 7; + */ + com.google.cloud.discoveryengine.v1alpha.PageInfoOrBuilder getPageInfoOrBuilder(); + + /** + *
+   * Token to attribute an API response to user action(s) to trigger the event.
+   *
+   * Highly recommended for user events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * This field enables accurate attribution of recommendation model
+   * performance.
+   *
+   * The value must be one of:
+   *
+   * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * This token enables us to accurately attribute page view or conversion
+   * completion back to the event and the particular predict response containing
+   * this clicked/purchased product. If user clicks on product K in the
+   * recommendation results, pass
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * as a URL parameter to product K's page. When recording events on product
+   * K's page, log the
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * to this field.
+   * 
+ * + * string attribution_token = 8; + * @return The attributionToken. + */ + java.lang.String getAttributionToken(); + /** + *
+   * Token to attribute an API response to user action(s) to trigger the event.
+   *
+   * Highly recommended for user events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * This field enables accurate attribution of recommendation model
+   * performance.
+   *
+   * The value must be one of:
+   *
+   * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of
+   * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend].
+   * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search].
+   *
+   * This token enables us to accurately attribute page view or conversion
+   * completion back to the event and the particular predict response containing
+   * this clicked/purchased product. If user clicks on product K in the
+   * recommendation results, pass
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * as a URL parameter to product K's page. When recording events on product
+   * K's page, log the
+   * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token]
+   * to this field.
+   * 
+ * + * string attribution_token = 8; + * @return The bytes for attributionToken. + */ + com.google.protobuf.ByteString + getAttributionTokenBytes(); + + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered.
+   *
+   * One example is for `search` events, the associated
+   * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+   * contain a filter expression in
+   * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+   * conforming to https://google.aip.dev/160#filtering.
+   *
+   * Similarly, for `view-item-list` events that are generated from a
+   * [RecommendationService.RecommendRequest][], this field may be populated
+   * directly from [RecommendationService.RecommendRequest.filter][] conforming
+   * to https://google.aip.dev/160#filtering.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string filter = 9; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * The filter syntax consists of an expression language for constructing a
+   * predicate from one or more fields of the documents being filtered.
+   *
+   * One example is for `search` events, the associated
+   * [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may
+   * contain a filter expression in
+   * [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter]
+   * conforming to https://google.aip.dev/160#filtering.
+   *
+   * Similarly, for `view-item-list` events that are generated from a
+   * [RecommendationService.RecommendRequest][], this field may be populated
+   * directly from [RecommendationService.RecommendRequest.filter][] conforming
+   * to https://google.aip.dev/160#filtering.
+   *
+   * The value must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string filter = 9; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + java.util.List + getDocumentsList(); + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentInfo getDocuments(int index); + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + int getDocumentsCount(); + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + java.util.List + getDocumentsOrBuilderList(); + /** + *
+   * List of [Document][google.cloud.discoveryengine.v1alpha.Document]s
+   * associated with this user event.
+   *
+   * This field is optional except for the following event types:
+   *
+   * * `view-item`
+   * * `add-to-cart`
+   * * `purchase`
+   * * `media-play`
+   * * `media-complete`
+   *
+   * In a `search` event, this field represents the documents returned to the
+   * end user on the current page (the end user may have not finished browsing
+   * the whole page yet). When a new page is returned to the end user, after
+   * pagination/filtering/ordering even for the same query, a new `search` event
+   * with different
+   * [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents]
+   * is desired.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1alpha.DocumentInfo documents = 10; + */ + com.google.cloud.discoveryengine.v1alpha.DocumentInfoOrBuilder getDocumentsOrBuilder( + int index); + + /** + *
+   * Panel metadata associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + * @return Whether the panel field is set. + */ + boolean hasPanel(); + /** + *
+   * Panel metadata associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + * @return The panel. + */ + com.google.cloud.discoveryengine.v1alpha.PanelInfo getPanel(); + /** + *
+   * Panel metadata associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.PanelInfo panel = 11; + */ + com.google.cloud.discoveryengine.v1alpha.PanelInfoOrBuilder getPanelOrBuilder(); + + /** + *
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * details related to the event.
+   *
+   * This field should be set for `search` event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + * @return Whether the searchInfo field is set. + */ + boolean hasSearchInfo(); + /** + *
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * details related to the event.
+   *
+   * This field should be set for `search` event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + * @return The searchInfo. + */ + com.google.cloud.discoveryengine.v1alpha.SearchInfo getSearchInfo(); + /** + *
+   * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
+   * details related to the event.
+   *
+   * This field should be set for `search` event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.SearchInfo search_info = 12; + */ + com.google.cloud.discoveryengine.v1alpha.SearchInfoOrBuilder getSearchInfoOrBuilder(); + + /** + *
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * details related to the event.
+   *
+   * This field should be set for `search` event when autocomplete function is
+   * enabled and the user clicks a suggestion for search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + * @return Whether the completionInfo field is set. + */ + boolean hasCompletionInfo(); + /** + *
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * details related to the event.
+   *
+   * This field should be set for `search` event when autocomplete function is
+   * enabled and the user clicks a suggestion for search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + * @return The completionInfo. + */ + com.google.cloud.discoveryengine.v1alpha.CompletionInfo getCompletionInfo(); + /** + *
+   * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]
+   * details related to the event.
+   *
+   * This field should be set for `search` event when autocomplete function is
+   * enabled and the user clicks a suggestion for search.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.CompletionInfo completion_info = 13; + */ + com.google.cloud.discoveryengine.v1alpha.CompletionInfoOrBuilder getCompletionInfoOrBuilder(); + + /** + *
+   * The transaction metadata (if any) associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + * @return Whether the transactionInfo field is set. + */ + boolean hasTransactionInfo(); + /** + *
+   * The transaction metadata (if any) associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + * @return The transactionInfo. + */ + com.google.cloud.discoveryengine.v1alpha.TransactionInfo getTransactionInfo(); + /** + *
+   * The transaction metadata (if any) associated with this user event.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.TransactionInfo transaction_info = 14; + */ + com.google.cloud.discoveryengine.v1alpha.TransactionInfoOrBuilder getTransactionInfoOrBuilder(); + + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @return A list containing the tagIds. + */ + java.util.List + getTagIdsList(); + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @return The count of tagIds. + */ + int getTagIdsCount(); + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @param index The index of the element to return. + * @return The tagIds at the given index. + */ + java.lang.String getTagIds(int index); + /** + *
+   * A list of identifiers for the independent experiment groups this user event
+   * belongs to. This is used to distinguish between user events associated with
+   * different experiment setups on the customer end.
+   * 
+ * + * repeated string tag_ids = 15; + * @param index The index of the value to return. + * @return The bytes of the tagIds at the given index. + */ + com.google.protobuf.ByteString + getTagIdsBytes(int index); + + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @return A list containing the promotionIds. + */ + java.util.List + getPromotionIdsList(); + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @return The count of promotionIds. + */ + int getPromotionIdsCount(); + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @param index The index of the element to return. + * @return The promotionIds at the given index. + */ + java.lang.String getPromotionIds(int index); + /** + *
+   * The promotion IDs if this is an event associated with promotions.
+   * Currently, this field is restricted to at most one ID.
+   * 
+ * + * repeated string promotion_ids = 16; + * @param index The index of the value to return. + * @return The bytes of the promotionIds at the given index. + */ + com.google.protobuf.ByteString + getPromotionIdsBytes(int index); + + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + int getAttributesCount(); + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + java.util.Map + getAttributesMap(); + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.CustomAttribute getAttributesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1alpha.CustomAttribute defaultValue); + /** + *
+   * Extra user event features to include in the recommendation model.
+   * These attributes must NOT contain data that needs to be parsed or processed
+   * further, e.g. JSON or other encodings.
+   *
+   * If you provide custom attributes for ingested user events, also include
+   * them in the user events that you associate with prediction requests. Custom
+   * attribute formatting must be consistent between imported events and events
+   * provided with prediction requests. This lets the Discovery Engine API use
+   * those custom attributes when training models and serving predictions, which
+   * helps improve recommendation quality.
+   *
+   * This field needs to pass all below criteria, otherwise an
+   * `INVALID_ARGUMENT` error is returned:
+   *
+   * * The key must be a UTF-8 encoded string with a length limit of 5,000
+   *   characters.
+   * * For text attributes, at most 400 values are allowed. Empty values are not
+   *   allowed. Each value must be a UTF-8 encoded string with a length limit of
+   *   256 characters.
+   * * For number attributes, at most 400 values are allowed.
+   *
+   * For product recommendations, an example of extra user information is
+   * `traffic_channel`, which is how a user arrives at the site. Users can
+   * arrive
+   * at the site by coming to the site directly, coming through Google
+   * search, or in other ways.
+   * 
+ * + * map<string, .google.cloud.discoveryengine.v1alpha.CustomAttribute> attributes = 17; + */ + com.google.cloud.discoveryengine.v1alpha.CustomAttribute getAttributesOrThrow( + java.lang.String key); + + /** + *
+   * Media-specific info.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + * @return Whether the mediaInfo field is set. + */ + boolean hasMediaInfo(); + /** + *
+   * Media-specific info.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + * @return The mediaInfo. + */ + com.google.cloud.discoveryengine.v1alpha.MediaInfo getMediaInfo(); + /** + *
+   * Media-specific info.
+   * 
+ * + * .google.cloud.discoveryengine.v1alpha.MediaInfo media_info = 18; + */ + com.google.cloud.discoveryengine.v1alpha.MediaInfoOrBuilder getMediaInfoOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventProto.java new file mode 100644 index 000000000000..8db641a889d9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventProto.java @@ -0,0 +1,212 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class UserEventProto { + private UserEventProto() {} + 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_discoveryengine_v1alpha_UserEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/discoveryengine/v1alpha/u" + + "ser_event.proto\022$google.cloud.discoverye" + + "ngine.v1alpha\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\0321googl" + + "e/cloud/discoveryengine/v1alpha/common.p" + + "roto\032\036google/protobuf/duration.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\357\007\n\tUserEv" + + "ent\022\030\n\nevent_type\030\001 \001(\tB\004\342A\001\002\022\034\n\016user_ps" + + "eudo_id\030\002 \001(\tB\004\342A\001\002\022.\n\nevent_time\030\003 \001(\0132" + + "\032.google.protobuf.Timestamp\022A\n\tuser_info" + + "\030\004 \001(\0132..google.cloud.discoveryengine.v1" + + "alpha.UserInfo\022\033\n\023direct_user_request\030\005 " + + "\001(\010\022\022\n\nsession_id\030\006 \001(\t\022A\n\tpage_info\030\007 \001" + + "(\0132..google.cloud.discoveryengine.v1alph" + + "a.PageInfo\022\031\n\021attribution_token\030\010 \001(\t\022\016\n" + + "\006filter\030\t \001(\t\022E\n\tdocuments\030\n \003(\01322.googl" + + "e.cloud.discoveryengine.v1alpha.Document" + + "Info\022>\n\005panel\030\013 \001(\0132/.google.cloud.disco" + + "veryengine.v1alpha.PanelInfo\022E\n\013search_i" + + "nfo\030\014 \001(\01320.google.cloud.discoveryengine" + + ".v1alpha.SearchInfo\022M\n\017completion_info\030\r" + + " \001(\01324.google.cloud.discoveryengine.v1al" + + "pha.CompletionInfo\022O\n\020transaction_info\030\016" + + " \001(\01325.google.cloud.discoveryengine.v1al" + + "pha.TransactionInfo\022\017\n\007tag_ids\030\017 \003(\t\022\025\n\r" + + "promotion_ids\030\020 \003(\t\022S\n\nattributes\030\021 \003(\0132" + + "?.google.cloud.discoveryengine.v1alpha.U" + + "serEvent.AttributesEntry\022C\n\nmedia_info\030\022" + + " \001(\0132/.google.cloud.discoveryengine.v1al" + + "pha.MediaInfo\032h\n\017AttributesEntry\022\013\n\003key\030" + + "\001 \001(\t\022D\n\005value\030\002 \001(\01325.google.cloud.disc" + + "overyengine.v1alpha.CustomAttribute:\0028\001\"" + + "Y\n\010PageInfo\022\023\n\013pageview_id\030\001 \001(\t\022\025\n\rpage" + + "_category\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022\024\n\014referrer" + + "_uri\030\004 \001(\t\"T\n\nSearchInfo\022\024\n\014search_query" + + "\030\001 \001(\t\022\020\n\010order_by\030\002 \001(\t\022\023\n\006offset\030\003 \001(\005" + + "H\000\210\001\001B\t\n\007_offset\"H\n\016CompletionInfo\022\033\n\023se" + + "lected_suggestion\030\001 \001(\t\022\031\n\021selected_posi" + + "tion\030\002 \001(\005\"\313\001\n\017TransactionInfo\022\030\n\005value\030" + + "\001 \001(\002B\004\342A\001\002H\000\210\001\001\022\026\n\010currency\030\002 \001(\tB\004\342A\001\002" + + "\022\026\n\016transaction_id\030\003 \001(\t\022\020\n\003tax\030\004 \001(\002H\001\210" + + "\001\001\022\021\n\004cost\030\005 \001(\002H\002\210\001\001\022\033\n\016discount_value\030" + + "\006 \001(\002H\003\210\001\001B\010\n\006_valueB\006\n\004_taxB\007\n\005_costB\021\n" + + "\017_discount_value\"\273\001\n\014DocumentInfo\022\014\n\002id\030" + + "\001 \001(\tH\000\022<\n\004name\030\002 \001(\tB,\372A)\n\'discoveryeng" + + "ine.googleapis.com/DocumentH\000\022\r\n\003uri\030\006 \001" + + "(\tH\000\022\025\n\010quantity\030\003 \001(\005H\001\210\001\001\022\025\n\rpromotion" + + "_ids\030\004 \003(\tB\025\n\023document_descriptorB\013\n\t_qu" + + "antity\"\225\001\n\tPanelInfo\022\026\n\010panel_id\030\002 \001(\tB\004" + + "\342A\001\002\022\024\n\014display_name\030\003 \001(\t\022\033\n\016panel_posi" + + "tion\030\004 \001(\005H\000\210\001\001\022\031\n\014total_panels\030\005 \001(\005H\001\210" + + "\001\001B\021\n\017_panel_positionB\017\n\r_total_panels\"\215" + + "\001\n\tMediaInfo\022:\n\027media_progress_duration\030" + + "\001 \001(\0132\031.google.protobuf.Duration\022&\n\031medi" + + "a_progress_percentage\030\002 \001(\002H\000\210\001\001B\034\n\032_med" + + "ia_progress_percentageB\232\002\n(com.google.cl" + + "oud.discoveryengine.v1alphaB\016UserEventPr" + + "otoP\001ZRcloud.google.com/go/discoveryengi" + + "ne/apiv1alpha/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002$Google.Clo" + + "ud.DiscoveryEngine.V1Alpha\312\002$Google\\Clou" + + "d\\DiscoveryEngine\\V1alpha\352\002\'Google::Clou" + + "d::DiscoveryEngine::V1alphab\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.discoveryengine.v1alpha.CommonProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_descriptor, + new java.lang.String[] { "EventType", "UserPseudoId", "EventTime", "UserInfo", "DirectUserRequest", "SessionId", "PageInfo", "AttributionToken", "Filter", "Documents", "Panel", "SearchInfo", "CompletionInfo", "TransactionInfo", "TagIds", "PromotionIds", "Attributes", "MediaInfo", }); + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_AttributesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UserEvent_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PageInfo_descriptor, + new java.lang.String[] { "PageviewId", "PageCategory", "Uri", "ReferrerUri", }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchInfo_descriptor, + new java.lang.String[] { "SearchQuery", "OrderBy", "Offset", "Offset", }); + internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CompletionInfo_descriptor, + new java.lang.String[] { "SelectedSuggestion", "SelectedPosition", }); + internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_TransactionInfo_descriptor, + new java.lang.String[] { "Value", "Currency", "TransactionId", "Tax", "Cost", "DiscountValue", "Value", "Tax", "Cost", "DiscountValue", }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentInfo_descriptor, + new java.lang.String[] { "Id", "Name", "Uri", "Quantity", "PromotionIds", "DocumentDescriptor", "Quantity", }); + internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PanelInfo_descriptor, + new java.lang.String[] { "PanelId", "DisplayName", "PanelPosition", "TotalPanels", "PanelPosition", "TotalPanels", }); + internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_MediaInfo_descriptor, + new java.lang.String[] { "MediaProgressDuration", "MediaProgressPercentage", "MediaProgressPercentage", }); + 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.discoveryengine.v1alpha.CommonProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceProto.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceProto.java new file mode 100644 index 000000000000..a9a0db523368 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceProto.java @@ -0,0 +1,151 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public final class UserEventServiceProto { + private UserEventServiceProto() {} + 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_discoveryengine_v1alpha_WriteUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_WriteUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CollectUserEventRequest_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/discoveryengine/v1alpha/u" + + "ser_event_service.proto\022$google.cloud.di" + + "scoveryengine.v1alpha\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/httpbody.proto\032\031google/api/resource.pr" + + "oto\0328google/cloud/discoveryengine/v1alph" + + "a/import_config.proto\0327google/cloud/disc" + + "overyengine/v1alpha/purge_config.proto\0325" + + "google/cloud/discoveryengine/v1alpha/use" + + "r_event.proto\032#google/longrunning/operat" + + "ions.proto\"\271\001\n\025WriteUserEventRequest\022A\n\006" + + "parent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.g" + + "oogleapis.com/DataStore\022N\n\nuser_event\030\002 " + + "\001(\0132/.google.cloud.discoveryengine.v1alp" + + "ha.UserEventB\004\342A\001\002H\000\210\001\001B\r\n\013_user_event\"\252" + + "\001\n\027CollectUserEventRequest\022A\n\006parent\030\001 \001" + + "(\tB1\342A\001\002\372A*\n(discoveryengine.googleapis." + + "com/DataStore\022\030\n\nuser_event\030\002 \001(\tB\004\342A\001\002\022" + + "\020\n\003uri\030\003 \001(\tH\000\210\001\001\022\020\n\003ets\030\004 \001(\003H\001\210\001\001B\006\n\004_" + + "uriB\006\n\004_ets2\207\014\n\020UserEventService\022\300\002\n\016Wri" + + "teUserEvent\022;.google.cloud.discoveryengi" + + "ne.v1alpha.WriteUserEventRequest\032/.googl" + + "e.cloud.discoveryengine.v1alpha.UserEven" + + "t\"\277\001\202\323\344\223\002\270\001\"F/v1alpha/{parent=projects/*" + + "/locations/*/dataStores/*}/userEvents:wr" + + "ite:\nuser_eventZb\"T/v1alpha/{parent=proj" + + "ects/*/locations/*/collections/*/dataSto" + + "res/*}/userEvents:write:\nuser_event\022\225\002\n\020" + + "CollectUserEvent\022=.google.cloud.discover" + + "yengine.v1alpha.CollectUserEventRequest\032" + + "\024.google.api.HttpBody\"\253\001\202\323\344\223\002\244\001\022H/v1alph" + + "a/{parent=projects/*/locations/*/dataSto" + + "res/*}/userEvents:collectZX\022V/v1alpha/{p" + + "arent=projects/*/locations/*/collections" + + "/*/dataStores/*}/userEvents:collect\022\235\003\n\017" + + "PurgeUserEvents\022<.google.cloud.discovery" + + "engine.v1alpha.PurgeUserEventsRequest\032\035." + + "google.longrunning.Operation\"\254\002\312A|\n + * Information of an end user. + * + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UserInfo} + */ +public final class UserInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UserInfo) + UserInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserInfo.newBuilder() to construct. + private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserInfo() { + userId_ = ""; + userAgent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UserInfo.class, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + *
+   * Highly recommended for logged-in users. Unique identifier for logged-in
+   * user, such as a user name. Don't set for anonymous users.
+   *
+   * Always use a hashed value for this ID.
+   *
+   * Don't set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded
+   * model quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_id = 1; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + /** + *
+   * Highly recommended for logged-in users. Unique identifier for logged-in
+   * user, such as a user name. Don't set for anonymous users.
+   *
+   * Always use a hashed value for this ID.
+   *
+   * Don't set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded
+   * model quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_id = 1; + * @return The bytes for userId. + */ + @java.lang.Override + 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); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_AGENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object userAgent_ = ""; + /** + *
+   * User agent as included in the HTTP header.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This should not be set when using the client side event reporting with
+   * GTM or JavaScript tag in
+   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+   * or if
+   * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+   * is set.
+   * 
+ * + * string user_agent = 2; + * @return The userAgent. + */ + @java.lang.Override + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + 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(); + userAgent_ = s; + return s; + } + } + /** + *
+   * User agent as included in the HTTP header.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This should not be set when using the client side event reporting with
+   * GTM or JavaScript tag in
+   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+   * or if
+   * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+   * is set.
+   * 
+ * + * string user_agent = 2; + * @return The bytes for userAgent. + */ + @java.lang.Override + 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); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userAgent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userAgent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.UserInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UserInfo other = (com.google.cloud.discoveryengine.v1alpha.UserInfo) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUserAgent() + .equals(other.getUserAgent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getUserAgent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UserInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UserInfo 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.discoveryengine.v1alpha.UserInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.UserInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.UserInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.UserInfo 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.discoveryengine.v1alpha.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UserInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.UserInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.UserInfo 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; + } + /** + *
+   * Information of an end user.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UserInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UserInfo) + com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UserInfo.class, com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UserInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + userAgent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto.internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfo build() { + com.google.cloud.discoveryengine.v1alpha.UserInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UserInfo result = new com.google.cloud.discoveryengine.v1alpha.UserInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.UserInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userAgent_ = userAgent_; + } + } + + @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.discoveryengine.v1alpha.UserInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UserInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UserInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserAgent().isEmpty()) { + userAgent_ = other.userAgent_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + *
+     * Highly recommended for logged-in users. Unique identifier for logged-in
+     * user, such as a user name. Don't set for anonymous users.
+     *
+     * Always use a hashed value for this ID.
+     *
+     * Don't set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded
+     * model quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_id = 1; + * @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; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Highly recommended for logged-in users. Unique identifier for logged-in
+     * user, such as a user name. Don't set for anonymous users.
+     *
+     * Always use a hashed value for this ID.
+     *
+     * Don't set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded
+     * model quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_id = 1; + * @return The bytes for userId. + */ + 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); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Highly recommended for logged-in users. Unique identifier for logged-in
+     * user, such as a user name. Don't set for anonymous users.
+     *
+     * Always use a hashed value for this ID.
+     *
+     * Don't set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded
+     * model quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Highly recommended for logged-in users. Unique identifier for logged-in
+     * user, such as a user name. Don't set for anonymous users.
+     *
+     * Always use a hashed value for this ID.
+     *
+     * Don't set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded
+     * model quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_id = 1; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Highly recommended for logged-in users. Unique identifier for logged-in
+     * user, such as a user name. Don't set for anonymous users.
+     *
+     * Always use a hashed value for this ID.
+     *
+     * Don't set the field to the same fixed ID for different users. This mixes
+     * the event history of those users together, which results in degraded
+     * model quality.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string user_id = 1; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userAgent_ = ""; + /** + *
+     * User agent as included in the HTTP header.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This should not be set when using the client side event reporting with
+     * GTM or JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+     * or if
+     * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+     * is set.
+     * 
+ * + * string user_agent = 2; + * @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; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * User agent as included in the HTTP header.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This should not be set when using the client side event reporting with
+     * GTM or JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+     * or if
+     * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+     * is set.
+     * 
+ * + * string user_agent = 2; + * @return The bytes for userAgent. + */ + 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); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * User agent as included in the HTTP header.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This should not be set when using the client side event reporting with
+     * GTM or JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+     * or if
+     * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+     * is set.
+     * 
+ * + * string user_agent = 2; + * @param value The userAgent to set. + * @return This builder for chaining. + */ + public Builder setUserAgent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userAgent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * User agent as included in the HTTP header.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This should not be set when using the client side event reporting with
+     * GTM or JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+     * or if
+     * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+     * is set.
+     * 
+ * + * string user_agent = 2; + * @return This builder for chaining. + */ + public Builder clearUserAgent() { + userAgent_ = getDefaultInstance().getUserAgent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * User agent as included in the HTTP header.
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     *
+     * This should not be set when using the client side event reporting with
+     * GTM or JavaScript tag in
+     * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+     * or if
+     * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+     * is set.
+     * 
+ * + * string user_agent = 2; + * @param value The bytes for userAgent to set. + * @return This builder for chaining. + */ + public Builder setUserAgentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userAgent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1alpha.UserInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UserInfo) + private static final com.google.cloud.discoveryengine.v1alpha.UserInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UserInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UserInfo getDefaultInstance() { + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserInfoOrBuilder.java new file mode 100644 index 000000000000..0113bf879c52 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserInfoOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/common.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface UserInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UserInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Highly recommended for logged-in users. Unique identifier for logged-in
+   * user, such as a user name. Don't set for anonymous users.
+   *
+   * Always use a hashed value for this ID.
+   *
+   * Don't set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded
+   * model quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_id = 1; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+   * Highly recommended for logged-in users. Unique identifier for logged-in
+   * user, such as a user name. Don't set for anonymous users.
+   *
+   * Always use a hashed value for this ID.
+   *
+   * Don't set the field to the same fixed ID for different users. This mixes
+   * the event history of those users together, which results in degraded
+   * model quality.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string user_id = 1; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + *
+   * User agent as included in the HTTP header.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This should not be set when using the client side event reporting with
+   * GTM or JavaScript tag in
+   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+   * or if
+   * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+   * is set.
+   * 
+ * + * string user_agent = 2; + * @return The userAgent. + */ + java.lang.String getUserAgent(); + /** + *
+   * User agent as included in the HTTP header.
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   *
+   * This should not be set when using the client side event reporting with
+   * GTM or JavaScript tag in
+   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
+   * or if
+   * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
+   * is set.
+   * 
+ * + * string user_agent = 2; + * @return The bytes for userAgent. + */ + com.google.protobuf.ByteString + getUserAgentBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequest.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequest.java new file mode 100644 index 000000000000..888cd6e062f4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequest.java @@ -0,0 +1,823 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +/** + *
+ * Request message for WriteUserEvent method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.WriteUserEventRequest} + */ +public final class WriteUserEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) + WriteUserEventRequestOrBuilder { +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) { + return new WriteUserEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_WriteUserEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_WriteUserEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.class, com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 USER_EVENT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.UserEvent userEvent_; + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + @java.lang.Override + public boolean hasUserEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvent() { + return userEvent_ == null ? com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventOrBuilder() { + return userEvent_ == null ? com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUserEvent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUserEvent()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest other = (com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasUserEvent() != other.hasUserEvent()) return false; + if (hasUserEvent()) { + if (!getUserEvent() + .equals(other.getUserEvent())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasUserEvent()) { + hash = (37 * hash) + USER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getUserEvent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest 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.discoveryengine.v1alpha.WriteUserEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.WriteUserEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest 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.discoveryengine.v1alpha.WriteUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.WriteUserEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.discoveryengine.v1alpha.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest 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 WriteUserEvent method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.WriteUserEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_WriteUserEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_WriteUserEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.class, com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUserEventFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + userEvent_ = null; + if (userEventBuilder_ != null) { + userEventBuilder_.dispose(); + userEventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1alpha_WriteUserEventRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest build() { + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest result = new com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userEvent_ = userEventBuilder_ == null + ? userEvent_ + : userEventBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasUserEvent()) { + mergeUserEvent(other.getUserEvent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUserEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent DataStore resource name, such as
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.UserEvent userEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder> userEventBuilder_; + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + public boolean hasUserEvent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvent() { + if (userEventBuilder_ == null) { + return userEvent_ == null ? com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } else { + return userEventBuilder_.getMessage(); + } + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUserEvent(com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userEvent_ = value; + } else { + userEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUserEvent( + com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder builderForValue) { + if (userEventBuilder_ == null) { + userEvent_ = builderForValue.build(); + } else { + userEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1alpha.UserEvent value) { + if (userEventBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + userEvent_ != null && + userEvent_ != com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance()) { + getUserEventBuilder().mergeFrom(value); + } else { + userEvent_ = value; + } + } else { + userEventBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUserEvent() { + bitField0_ = (bitField0_ & ~0x00000002); + userEvent_ = null; + if (userEventBuilder_ != null) { + userEventBuilder_.dispose(); + userEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder getUserEventBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUserEventFieldBuilder().getBuilder(); + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventOrBuilder() { + if (userEventBuilder_ != null) { + return userEventBuilder_.getMessageOrBuilder(); + } else { + return userEvent_ == null ? + com.google.cloud.discoveryengine.v1alpha.UserEvent.getDefaultInstance() : userEvent_; + } + } + /** + *
+     * Required. User event to write.
+     * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder> + getUserEventFieldBuilder() { + if (userEventBuilder_ == null) { + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.UserEvent, com.google.cloud.discoveryengine.v1alpha.UserEvent.Builder, com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder>( + getUserEvent(), + getParentForChildren(), + isClean()); + userEvent_ = null; + } + return userEventBuilder_; + } + @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.discoveryengine.v1alpha.WriteUserEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) + private static final com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.WriteUserEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequestOrBuilder.java new file mode 100644 index 000000000000..3f1a5b5c2b8f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/WriteUserEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1alpha/user_event_service.proto + +package com.google.cloud.discoveryengine.v1alpha; + +public interface WriteUserEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.WriteUserEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + boolean hasUserEvent(); + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + com.google.cloud.discoveryengine.v1alpha.UserEvent getUserEvent(); + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1alpha.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1alpha.UserEventOrBuilder getUserEventOrBuilder(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto new file mode 100644 index 000000000000..927770088343 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto @@ -0,0 +1,155 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/Branch" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}" +}; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/DataStore" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}" +}; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/ServingConfig" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}" +}; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/SiteSearchEngine", + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine" +}; + +// The type of solution. +enum SolutionType { + // Default value. + SOLUTION_TYPE_UNSPECIFIED = 0; + + // Used for Recommendations AI. + SOLUTION_TYPE_RECOMMENDATION = 1; + + // Used for Discovery Search. + SOLUTION_TYPE_SEARCH = 2; + + // Used for use cases related to the Generative AI agent. + SOLUTION_TYPE_CHAT = 3; +} + +// A floating point interval. +message Interval { + // The lower bound of the interval. If neither of the min fields are + // set, then the lower bound is negative infinity. + // + // This field must be not larger than max. + // Otherwise, an `INVALID_ARGUMENT` error is returned. + oneof min { + // Inclusive lower bound. + double minimum = 1; + + // Exclusive lower bound. + double exclusive_minimum = 2; + } + + // The upper bound of the interval. If neither of the max fields are + // set, then the upper bound is positive infinity. + // + // This field must be not smaller than min. + // Otherwise, an `INVALID_ARGUMENT` error is returned. + oneof max { + // Inclusive upper bound. + double maximum = 3; + + // Exclusive upper bound. + double exclusive_maximum = 4; + } +} + +// A custom attribute that is not explicitly modeled in a resource, e.g. +// [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent]. +message CustomAttribute { + // The textual values of this custom attribute. For example, `["yellow", + // "green"]` when the key is "color". + // + // Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is + // returned. + // + // Exactly one of + // [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text] + // or + // [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers] + // should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. + repeated string text = 1; + + // The numerical values of this custom attribute. For example, `[2.3, 15.4]` + // when the key is "lengths_cm". + // + // Exactly one of + // [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text] + // or + // [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers] + // should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. + repeated double numbers = 2; +} + +// Information of an end user. +message UserInfo { + // Highly recommended for logged-in users. Unique identifier for logged-in + // user, such as a user name. Don't set for anonymous users. + // + // Always use a hashed value for this ID. + // + // Don't set the field to the same fixed ID for different users. This mixes + // the event history of those users together, which results in degraded + // model quality. + // + // The field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + string user_id = 1; + + // User agent as included in the HTTP header. + // + // The field must be a UTF-8 encoded string with a length limit of 1,000 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + // + // This should not be set when using the client side event reporting with + // GTM or JavaScript tag in + // [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent] + // or if + // [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request] + // is set. + string user_agent = 2; +} + +// Double list. +message DoubleList { + // Double values. + repeated double values = 1; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto new file mode 100644 index 000000000000..d035688e3bc6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto @@ -0,0 +1,134 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "CompletionServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for Auto-Completion. +service CompletionService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Completes the specified user input with keyword suggestions. + rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { + option (google.api.http) = { + get: "/v1alpha/{data_store=projects/*/locations/*/dataStores/*}:completeQuery" + additional_bindings { + get: "/v1alpha/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery" + } + }; + } +} + +// Request message for +// [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery] +// method. +message CompleteQueryRequest { + // Required. The parent data store resource name for which the completion is + // performed, such as + // `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. + string data_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. The typeahead input used to fetch suggestions. Maximum length is + // 128 characters. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Selects data model of query suggestions for serving. Currently supported + // values: + // + // * `document` - Using suggestions generated from user-imported documents. + // * `search-history` - Using suggestions generated from the past history of + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search] + // API calls. Do not use it when there is no traffic for Search API. + // * `user-event` - Using suggestions generated from user-imported search + // events. + // * `document-completable` - Using suggestions taken directly from + // user-imported document fields marked as completable. + // + // Default values: + // + // * `document` is the default model for regular dataStores. + // * `search-history` is the default model for site search dataStores. + string query_model = 3; + + // A unique identifier for tracking visitors. For example, this could be + // implemented with an HTTP cookie, which should be able to uniquely identify + // a visitor on a single device. This unique identifier should not change if + // the visitor logs in or out of the website. + // + // This field should NOT have a fixed value such as `unknown_visitor`. + // + // This should be the same identifier as + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id] + // and + // [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.SearchRequest.user_pseudo_id]. + // + // The field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + string user_pseudo_id = 4; + + // Indicates if tail suggestions should be returned if there are no + // suggestions that match the full query. Even if set to true, if there are + // suggestions that match the full query, those are returned and no + // tail suggestions are returned. + bool include_tail_suggestions = 5; +} + +// Response message for +// [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery] +// method. +message CompleteQueryResponse { + // Suggestions as search queries. + message QuerySuggestion { + // The suggestion for the query. + string suggestion = 1; + + // The unique document field paths that serve as the source of this + // suggestion if it was generated from completable fields. + // + // This field is only populated for the document-completable model. + repeated string completable_field_paths = 2; + } + + // Results of the matched query suggestions. The result list is ordered and + // the first result is a top suggestion. + repeated QuerySuggestion query_suggestions = 1; + + // True if the returned suggestions are all tail suggestions. + // + // For tail matching to be triggered, include_tail_suggestions in the request + // must be true and there must be no suggestions that match the full query. + bool tail_match_triggered = 2; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversation.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversation.proto new file mode 100644 index 000000000000..8da3bdeb4efa --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversation.proto @@ -0,0 +1,138 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/search_service.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ConversationProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// External conversation proto definition. +message Conversation { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Conversation" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}" + }; + + // Enumeration of the state of the conversation. + enum State { + // Unknown. + STATE_UNSPECIFIED = 0; + + // Conversation is currently open. + IN_PROGRESS = 1; + + // Conversation has been completed. + COMPLETED = 2; + } + + // Immutable. Fully qualified name + // `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The state of the Conversation. + State state = 2; + + // A unique identifier for tracking users. + string user_pseudo_id = 3; + + // Conversation messages. + repeated ConversationMessage messages = 4; + + // Output only. The time the conversation started. + google.protobuf.Timestamp start_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the conversation finished. + google.protobuf.Timestamp end_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Defines a reply message to user. +message Reply { + // Defines reference in reply. + message Reference { + option deprecated = true; + + // URI link reference. + string uri = 1; + + // Anchor text. + string anchor_text = 2; + + // Anchor text start index. + int32 start = 3; + + // Anchor text end index. + int32 end = 4; + } + + // DEPRECATED: use `summary` instead. + // Text reply. + string reply = 1 [deprecated = true]; + + // References in the reply. + repeated Reference references = 2 [deprecated = true]; + + // Summary based on search results. + SearchResponse.Summary summary = 3; +} + +// Defines context of the conversation +message ConversationContext { + // The current list of documents the user is seeing. + // It contains the document resource references. + repeated string context_documents = 1; + + // The current active document the user opened. + // It contains the document resource reference. + string active_document = 2; +} + +// Defines text input. +message TextInput { + // Text input. + string input = 1; + + // Conversation context of the input. + ConversationContext context = 2; +} + +// Defines a conversation message. +message ConversationMessage { + oneof message { + // User text input. + TextInput user_input = 1; + + // Search reply. + Reply reply = 2; + } + + // Output only. Message creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto new file mode 100644 index 000000000000..ffa61ad43edc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto @@ -0,0 +1,306 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/conversation.proto"; +import "google/cloud/discoveryengine/v1alpha/search_service.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ConversationalSearchServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for conversational search. +service ConversationalSearchService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Converses a conversation. + rpc ConverseConversation(ConverseConversationRequest) + returns (ConverseConversationResponse) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse" + body: "*" + additional_bindings { + post: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse" + body: "*" + } + }; + option (google.api.method_signature) = "name,query"; + } + + // Creates a Conversation. + // + // If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to + // create already exists, an ALREADY_EXISTS error is returned. + rpc CreateConversation(CreateConversationRequest) returns (Conversation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/conversations" + body: "conversation" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations" + body: "conversation" + } + }; + option (google.api.method_signature) = "parent,conversation"; + } + + // Deletes a Conversation. + // + // If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to + // delete does not exist, a NOT_FOUND error is returned. + rpc DeleteConversation(DeleteConversationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/dataStores/*/conversations/*}" + additional_bindings { + delete: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a Conversation. + // + // [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action + // type cannot be changed. If the + // [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update + // does not exist, a NOT_FOUND error is returned. + rpc UpdateConversation(UpdateConversationRequest) returns (Conversation) { + option (google.api.http) = { + patch: "/v1alpha/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}" + body: "conversation" + additional_bindings { + patch: "/v1alpha/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}" + body: "conversation" + } + }; + option (google.api.method_signature) = "conversation,update_mask"; + } + + // Gets a Conversation. + rpc GetConversation(GetConversationRequest) returns (Conversation) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/dataStores/*/conversations/*}" + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists all Conversations by their parent + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. + rpc ListConversations(ListConversationsRequest) + returns (ListConversationsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/conversations" + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for +// [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation] +// method. +message ConverseConversationRequest { + // Required. The resource name of the Conversation to get. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. + // Use + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` + // to activate auto session mode, which automatically creates a new + // conversation inside a ConverseConversation session. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Conversation" + } + ]; + + // Required. Current user input. + TextInput query = 2 [(google.api.field_behavior) = REQUIRED]; + + // The resource name of the Serving Config to use. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` + // If this is not set, the default serving config will be used. + string serving_config = 3 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + }]; + + // The conversation to be used by auto session only. The name field will be + // ignored as we automatically assign new name for the conversation in auto + // session. + Conversation conversation = 5; + + // Whether to turn on safe search. + bool safe_search = 6; + + // The user labels applied to a resource must meet the following requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Google Cloud + // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 7; + + // A specification for configuring the summary returned in the response. + SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; +} + +// Response message for +// [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation] +// method. +message ConverseConversationResponse { + // Answer to the current query. + Reply reply = 1; + + // Updated conversation including the answer. + Conversation conversation = 2; + + // Suggested related questions. + repeated string related_questions = 6; + + // Search Results. + repeated SearchResponse.SearchResult search_results = 3; +} + +// Request for CreateConversation method. +message CreateConversationRequest { + // Required. Full resource name of parent data store. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. The conversation to create. + Conversation conversation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for UpdateConversation method. +message UpdateConversationRequest { + // Required. The Conversation to update. + Conversation conversation = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to + // update. The following are NOT supported: + // + // * [conversation.name][] + // + // If not set or empty, all supported fields are updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for DeleteConversation method. +message DeleteConversationRequest { + // Required. The resource name of the Conversation to delete. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Conversation" + } + ]; +} + +// Request for GetConversation method. +message GetConversationRequest { + // Required. The resource name of the Conversation to get. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Conversation" + } + ]; +} + +// Request for ListConversations method. +message ListConversationsRequest { + // Required. The data store resource name. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Maximum number of results to return. If unspecified, defaults + // to 50. Max allowed value is 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListConversations` call. + // Provide this to retrieve the subsequent page. + string page_token = 3; + + // A filter to apply on the list results. The supported features are: + // user_pseudo_id, state. + // + // Example: + // "user_pseudo_id = some_id" + string filter = 4; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // * `update_time` + // * `create_time` + // * `conversation_name` + // + // Example: + // "update_time desc" + // "create_time" + string order_by = 5; +} + +// Response for ListConversations method. +message ListConversationsResponse { + // All the Conversations for a given data store. + repeated Conversation conversations = 1; + + // Pagination token, if not returned indicates the last page. + string next_page_token = 2; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto new file mode 100644 index 000000000000..eb93e786f3fb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto @@ -0,0 +1,121 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "DocumentProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Document captures all raw metadata information of items to be recommended or +// searched. +message Document { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Document" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}" + }; + + // Unstructured data linked to this document. + message Content { + oneof content { + // The content represented as a stream of bytes. The maximum length is + // 1,000,000 bytes (1 MB / ~0.95 MiB). + // + // Note: As with all `bytes` fields, this field is represented as pure + // binary in Protocol Buffers and base64-encoded string in JSON. For + // example, `abc123!?$*&()'-=@~` should be represented as + // `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See + // https://developers.google.com/protocol-buffers/docs/proto3#json. + bytes raw_bytes = 2; + + // The URI of the content. Only Cloud Storage URIs (e.g. + // `gs://bucket-name/path/to/file`) are supported. The maximum file size + // is 100 MB. + string uri = 3; + } + + // The MIME type of the content. Supported types: + // + // * `application/pdf` (PDF, only native PDFs are supported for now) + // * `text/html` (HTML) + // * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) + // * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) + // * `text/plain` (TXT) + // + // See https://www.iana.org/assignments/media-types/media-types.xhtml. + string mime_type = 1; + } + + // Data representation. One of + // [struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data] or + // [json_data][google.cloud.discoveryengine.v1alpha.Document.json_data] should + // be provided otherwise an `INVALID_ARGUMENT` error is thrown. + oneof data { + // The structured JSON data for the document. It should conform to the + // registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an + // `INVALID_ARGUMENT` error is thrown. + google.protobuf.Struct struct_data = 4; + + // The JSON string representation of the document. It should conform to the + // registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an + // `INVALID_ARGUMENT` error is thrown. + string json_data = 5; + } + + // Immutable. The full resource name of the document. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The identifier of the document. + // + // Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. + string id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // The identifier of the schema located in the same data store. + string schema_id = 3; + + // The unstructured data linked to this document. Content must be set if this + // document is under a + // `CONTENT_REQUIRED` data store. + Content content = 10; + + // The identifier of the parent document. Currently supports at most two level + // document hierarchy. + // + // Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. + string parent_document_id = 7; + + // Output only. This field is OUTPUT_ONLY. + // It contains derived data that are not in the original input document. + google.protobuf.Struct derived_struct_data = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto new file mode 100644 index 000000000000..84dfae08727d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto @@ -0,0 +1,318 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/document.proto"; +import "google/cloud/discoveryengine/v1alpha/import_config.proto"; +import "google/cloud/discoveryengine/v1alpha/purge_config.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "DocumentServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for ingesting +// [Document][google.cloud.discoveryengine.v1alpha.Document] information of the +// customer's website. +service DocumentService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + rpc GetDocument(GetDocumentRequest) returns (Document) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}" + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s. + rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents" + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + rpc CreateDocument(CreateDocumentRequest) returns (Document) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents" + body: "document" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents" + body: "document" + } + }; + option (google.api.method_signature) = "parent,document,document_id"; + } + + // Updates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + rpc UpdateDocument(UpdateDocumentRequest) returns (Document) { + option (google.api.http) = { + patch: "/v1alpha/{document.name=projects/*/locations/*/dataStores/*/branches/*/documents/*}" + body: "document" + additional_bindings { + patch: "/v1alpha/{document.name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}" + body: "document" + } + }; + } + + // Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document]. + rpc DeleteDocument(DeleteDocumentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}" + additional_bindings { + delete: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Bulk import of multiple + // [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request + // processing may be synchronous. Non-existing items will be created. + // + // Note: It is possible for a subset of the + // [Document][google.cloud.discoveryengine.v1alpha.Document]s to be + // successfully updated. + rpc ImportDocuments(ImportDocumentsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:import" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:import" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata" + }; + } + + // Permanently deletes all selected + // [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch. + // + // This process is asynchronous. Depending on the number of + // [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, + // this operation can take hours to complete. Before the delete operation + // completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s + // might still be returned by + // [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] + // or + // [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. + // + // To get a list of the + // [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, + // set + // [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force] + // to false. + rpc PurgeDocuments(PurgeDocumentsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:purge" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:purge" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata" + }; + } +} + +// Request message for +// [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] +// method. +message GetDocumentRequest { + // Required. Full resource name of + // [Document][google.cloud.discoveryengine.v1alpha.Document], such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + // + // If the caller does not have permission to access the + // [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of + // whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the requested [Document][google.cloud.discoveryengine.v1alpha.Document] + // does not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + } + ]; +} + +// Request message for +// [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] +// method. +message ListDocumentsRequest { + // Required. The parent branch resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + // Use `default_branch` as the branch ID, to list documents under the default + // branch. + // + // If the caller does not have permission to list + // [Document][google.cloud.discoveryengine.v1alpha.Document]s under this + // branch, regardless of whether or not this branch exists, a + // `PERMISSION_DENIED` error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Branch" + } + ]; + + // Maximum number of + // [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If + // unspecified, defaults to 100. The maximum allowed value is 1000. Values + // above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token], + // received from a previous + // [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] +// method. +message ListDocumentsResponse { + // The [Document][google.cloud.discoveryengine.v1alpha.Document]s. + repeated Document documents = 1; + + // A token that can be sent as + // [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [DocumentService.CreateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument] +// method. +message CreateDocumentRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Branch" + } + ]; + + // Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to + // create. + Document document = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [Document][google.cloud.discoveryengine.v1alpha.Document], which will + // become the final component of the + // [Document.name][google.cloud.discoveryengine.v1alpha.Document.name]. + // + // If the caller does not have permission to create the + // [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of + // whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // This field must be unique among all + // [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same + // [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent]. + // Otherwise, an `ALREADY_EXISTS` error is returned. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // standard with a length limit of 63 characters. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string document_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.UpdateDocument] +// method. +message UpdateDocumentRequest { + // Required. The document to update/create. + // + // If the caller does not have permission to update the + // [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of + // whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update + // does not exist and + // [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing] + // is not set, a `NOT_FOUND` error is returned. + Document document = 1 [(google.api.field_behavior) = REQUIRED]; + + // If set to true, and the + // [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a + // new [Document][google.cloud.discoveryengine.v1alpha.Document] will be + // created. + bool allow_missing = 2; +} + +// Request message for +// [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1alpha.DocumentService.DeleteDocument] +// method. +message DeleteDocumentRequest { + // Required. Full resource name of + // [Document][google.cloud.discoveryengine.v1alpha.Document], such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + // + // If the caller does not have permission to delete the + // [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of + // whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete + // does not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + } + ]; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto new file mode 100644 index 000000000000..8902565bad38 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto @@ -0,0 +1,343 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/document.proto"; +import "google/cloud/discoveryengine/v1alpha/user_event.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/type/date.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ImportConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Cloud Storage location for input content. +message GcsSource { + // Required. Cloud Storage URIs to input files. URI can be up to + // 2000 characters long. URIs can match the full object path (for example, + // `gs://bucket/directory/object.json`) or a pattern matching one or more + // files, such as `gs://bucket/directory/*.json`. + // + // A request can contain at most 100 files (or 100,000 files if `data_schema` + // is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is + // `content`). + repeated string input_uris = 1 [(google.api.field_behavior) = REQUIRED]; + + // The schema to use when parsing the data from the source. + // + // Supported values for document imports: + // + // * `document` (default): One JSON + // [Document][google.cloud.discoveryengine.v1alpha.Document] per line. Each + // document must + // have a valid + // [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]. + // * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by + // `input_uris` becomes a document, with the ID set to the first 128 + // bits of SHA256(URI) encoded as a hex string. + // * `custom`: One custom data JSON per row in arbitrary format that conforms + // to the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of + // the data store. This can only be used by Gen App Builder. + // * `csv`: A CSV file with header conforming to the defined + // [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the + // data store. Each entry after the header is imported as a Document. + // This can only be used by Gen App Builder. + // + // Supported values for user even imports: + // + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line. + string data_schema = 2; +} + +// BigQuery source import data from. +message BigQuerySource { + // BigQuery table partition info. Leave this empty if the BigQuery table + // is not partitioned. + oneof partition { + // BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. + google.type.Date partition_date = 5; + } + + // The project ID (can be project # or ID) that the BigQuery source is in with + // a length limit of 128 characters. If not specified, inherits the project + // ID from the parent request. + string project_id = 1; + + // Required. The BigQuery data set to copy the data from with a length limit + // of 1,024 characters. + string dataset_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The BigQuery table to copy the data from with a length limit of + // 1,024 characters. + string table_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Intermediate Cloud Storage directory used for the import with a length + // limit of 2,000 characters. Can be specified if one wants to have the + // BigQuery export to a specific Cloud Storage directory. + string gcs_staging_dir = 4; + + // The schema to use when parsing the data from the source. + // + // Supported values for user event imports: + // + // * `user_event` (default): One + // [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per row. + // + // Supported values for document imports: + // + // * `document` (default): One + // [Document][google.cloud.discoveryengine.v1alpha.Document] format per + // row. Each document must have a valid + // [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] and one + // of + // [Document.json_data][google.cloud.discoveryengine.v1alpha.Document.json_data] + // or + // [Document.struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data]. + // * `custom`: One custom data per row in arbitrary format that conforms to + // the defined [Schema][google.cloud.discoveryengine.v1alpha.Schema] of the + // data store. This can only be used by Gen App Builder. + string data_schema = 6; +} + +// Configuration of destination for Import related errors. +message ImportErrorConfig { + // Required. Errors destination. + oneof destination { + // Cloud Storage prefix for import errors. This must be an empty, + // existing Cloud Storage directory. Import errors are written to + // sharded files in this directory, one per line, as a JSON-encoded + // `google.rpc.Status` message. + string gcs_prefix = 1; + } +} + +// Request message for the ImportUserEvents request. +message ImportUserEventsRequest { + // The inline source for the input config for ImportUserEvents method. + message InlineSource { + // Required. A list of user events to import. Recommended max of 10k items. + repeated UserEvent user_events = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Required - The desired input source of the user event data. + oneof source { + // The Inline source for the input content for UserEvents. + InlineSource inline_source = 2; + + // Cloud Storage location for the input content. + GcsSource gcs_source = 3; + + // BigQuery input source. + BigQuerySource bigquery_source = 4; + } + + // Required. Parent DataStore resource name, of the form + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // The desired location of errors incurred during the Import. Cannot be set + // for inline user event imports. + ImportErrorConfig error_config = 5; +} + +// Response of the ImportUserEventsRequest. If the long running +// operation was successful, then this message is returned by the +// google.longrunning.Operations.response field if the operation was successful. +message ImportUserEventsResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; + + // Echoes the destination for the complete errors if this field was set in + // the request. + ImportErrorConfig error_config = 2; + + // Count of user events imported with complete existing Documents. + int64 joined_events_count = 3; + + // Count of user events imported, but with Document information not found + // in the existing Branch. + int64 unjoined_events_count = 4; +} + +// Metadata related to the progress of the Import operation. This is +// returned by the google.longrunning.Operation.metadata field. +message ImportUserEventsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were processed successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} + +// Metadata related to the progress of the ImportDocuments operation. This is +// returned by the google.longrunning.Operation.metadata field. +message ImportDocumentsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were processed successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} + +// Request message for Import methods. +message ImportDocumentsRequest { + // The inline source for the input config for ImportDocuments method. + message InlineSource { + // Required. A list of documents to update/create. Each document must have a + // valid [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]. + // Recommended max of 100 items. + repeated Document documents = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Indicates how imported documents are reconciled with the existing documents + // created or imported before. + enum ReconciliationMode { + // Defaults to `INCREMENTAL`. + RECONCILIATION_MODE_UNSPECIFIED = 0; + + // Inserts new documents or updates existing documents. + INCREMENTAL = 1; + + // Calculates diff and replaces the entire document dataset. Existing + // documents may be deleted if they are not present in the source location. + FULL = 2; + } + + // Required. The source of the input. + oneof source { + // The Inline source for the input content for documents. + InlineSource inline_source = 2; + + // Cloud Storage location for the input content. + GcsSource gcs_source = 3; + + // BigQuery input source. + BigQuerySource bigquery_source = 4; + } + + // Required. The parent branch resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + // Requires create/update permission. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Branch" + } + ]; + + // The desired location of errors incurred during the Import. + ImportErrorConfig error_config = 5; + + // The mode of reconciliation between existing documents and the documents to + // be imported. Defaults to + // [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL]. + ReconciliationMode reconciliation_mode = 6; + + // Whether to automatically generate IDs for the documents if absent. + // + // If set to `true`, + // [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s are + // automatically generated based on the hash of the payload, where IDs may not + // be consistent during multiple imports. In which case + // [ReconciliationMode.FULL][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.FULL] + // is highly recommended to avoid duplicate contents. If unset or set to + // `false`, [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s + // have to be specified using + // [id_field][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field], + // otherwise, documents without IDs fail to be imported. + // + // Only set this field when using + // [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or + // [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and + // when + // [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema] + // or + // [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema] + // is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. + bool auto_generate_ids = 8; + + // The field in the Cloud Storage and BigQuery sources that indicates the + // unique IDs of the documents. + // + // For [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] it is the + // key of the JSON field. For instance, `my_id` for JSON `{"my_id": + // "some_uuid"}`. For + // [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource] it is + // the column name of the BigQuery table where the unique ids are stored. + // + // The values of the JSON field or the BigQuery column are used as the + // [Document.id][google.cloud.discoveryengine.v1alpha.Document.id]s. The JSON + // field or the BigQuery column must be of string type, and the values must be + // set as valid strings conform to + // [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters. + // Otherwise, documents without valid IDs fail to be imported. + // + // Only set this field when using + // [GcsSource][google.cloud.discoveryengine.v1alpha.GcsSource] or + // [BigQuerySource][google.cloud.discoveryengine.v1alpha.BigQuerySource], and + // when + // [GcsSource.data_schema][google.cloud.discoveryengine.v1alpha.GcsSource.data_schema] + // or + // [BigQuerySource.data_schema][google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema] + // is `custom`. And only set this field when + // [auto_generate_ids][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids] + // is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. + // + // If it is unset, a default value `_id` is used when importing from the + // allowed data sources. + string id_field = 9; +} + +// Response of the +// [ImportDocumentsRequest][google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest]. +// If the long running operation is done, then this message is returned by the +// google.longrunning.Operations.response field if the operation was successful. +message ImportDocumentsResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; + + // Echoes the destination for the complete errors in the request if set. + ImportErrorConfig error_config = 2; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto new file mode 100644 index 000000000000..ae6158bf2a7d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto @@ -0,0 +1,159 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "PurgeConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Request message for PurgeUserEvents method. +message PurgeUserEventsRequest { + // Required. The resource name of the catalog under which the events are + // created. The format is + // `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. The filter string to specify the events to be deleted with a + // length limit of 5,000 characters. The eligible fields for filtering are: + // + // * `eventType`: Double quoted + // [UserEvent.event_type][google.cloud.discoveryengine.v1alpha.UserEvent.event_type] + // string. + // * `eventTime`: in ISO 8601 "zulu" format. + // * `userPseudoId`: Double quoted string. Specifying this will delete all + // events associated with a visitor. + // * `userId`: Double quoted string. Specifying this will delete all events + // associated with a user. + // + // Examples: + // + // * Deleting all events in a time range: + // `eventTime > "2012-04-23T18:25:43.511Z" + // eventTime < "2012-04-23T18:30:43.511Z"` + // * Deleting specific eventType: + // `eventType = "search"` + // * Deleting all events for a specific visitor: + // `userPseudoId = "visitor1024"` + // * Deleting all events inside a DataStore: + // `*` + // + // The filtering fields are assumed to have an implicit AND. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // The `force` field is currently not supported. Purge user event requests + // will permanently delete all purgeable events. Once the development is + // complete: + // If `force` is set to false, the method will return the expected + // purge count without deleting any user events. This field will default to + // false if not included in the request. + bool force = 3; +} + +// Response of the PurgeUserEventsRequest. If the long running operation is +// successfully done, then this message is returned by the +// google.longrunning.Operations.response field. +message PurgeUserEventsResponse { + // The total count of events purged as a result of the operation. + int64 purge_count = 1; +} + +// Metadata related to the progress of the PurgeUserEvents operation. +// This will be returned by the google.longrunning.Operation.metadata field. +message PurgeUserEventsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were deleted successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} + +// Request message for +// [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments] +// method. +message PurgeDocumentsRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Branch" + } + ]; + + // Required. Filter matching documents to purge. Only currently supported + // value is + // `*` (all items). + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Actually performs the purge. If `force` is set to false, return the + // expected purge count without deleting any documents. + bool force = 3; +} + +// Response message for +// [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments] +// method. If the long running operation is successfully done, then this message +// is returned by the google.longrunning.Operations.response field. +message PurgeDocumentsResponse { + // The total count of documents purged as a result of the operation. + int64 purge_count = 1; + + // A sample of document names that will be deleted. Only populated if `force` + // is set to false. A max of 100 names will be returned and the names are + // chosen at random. + repeated string purge_sample = 2 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + }]; +} + +// Metadata related to the progress of the PurgeDocuments operation. +// This will be returned by the google.longrunning.Operation.metadata field. +message PurgeDocumentsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were deleted successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto new file mode 100644 index 000000000000..65206827606c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto @@ -0,0 +1,221 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/document.proto"; +import "google/cloud/discoveryengine/v1alpha/user_event.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "RecommendationServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for making recommendations. +service RecommendationService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Makes a recommendation, which requires a contextual user event. + rpc Recommend(RecommendRequest) returns (RecommendResponse) { + option (google.api.http) = { + post: "/v1alpha/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:recommend" + body: "*" + additional_bindings { + post: "/v1alpha/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:recommend" + body: "*" + } + additional_bindings { + post: "/v1alpha/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:recommend" + body: "*" + } + }; + } +} + +// Request message for Recommend method. +message RecommendRequest { + // Required. Full resource name of the format: + // `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*` + // + // Before you can request recommendations from your model, you must create at + // least one serving config for it. + string serving_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; + + // Required. Context about the user, what they are looking at and what action + // they took to trigger the Recommend request. Note that this user event + // detail won't be ingested to userEvent logs. Thus, a separate userEvent + // write request is required for event logging. + // + // Don't set + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id] + // or + // [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id] + // to the same fixed ID for different users. If you are trying to receive + // non-personalized recommendations (not recommended; this can negatively + // impact model performance), instead set + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id] + // to a random unique ID and leave + // [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1alpha.UserInfo.user_id] + // unset. + UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED]; + + // Maximum number of results to return. Set this property + // to the number of recommendation results needed. If zero, the service will + // choose a reasonable default. The maximum allowed value is 100. Values + // above 100 will be coerced to 100. + int32 page_size = 3; + + // Filter for restricting recommendation results with a length limit of 5,000 + // characters. Currently, only filter expressions on the `filter_tags` + // attribute is supported. + // + // + // Examples: + // + // * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` + // * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` + // + // If `attributeFilteringSyntax` is set to true under the `params` field, then + // attribute-based expressions are expected instead of the above described + // tag-based syntax. Examples: + // + // * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + // * (available: true) AND + // (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + // + // If your filter blocks all results, the API will return generic + // (unfiltered) popular Documents. If you only want results strictly matching + // the filters, set `strictFiltering` to True in + // [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params] + // to receive empty results instead. + // + // Note that the API will never return + // [Document][google.cloud.discoveryengine.v1alpha.Document]s with + // `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices. + string filter = 4; + + // Use validate only mode for this recommendation query. If set to true, a + // fake model will be used that returns arbitrary Document IDs. + // Note that the validate only mode should only be used for testing the API, + // or if the model is not ready. + bool validate_only = 5; + + // Additional domain specific parameters for the recommendations. + // + // Allowed values: + // + // * `returnDocument`: Boolean. If set to true, the associated Document + // object will be returned in + // [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document]. + // * `returnScore`: Boolean. If set to true, the recommendation 'score' + // corresponding to each returned Document will be set in + // [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata]. + // The given 'score' indicates the probability of a Document conversion + // given the user's context and history. + // * `strictFiltering`: Boolean. True by default. If set to false, the service + // will return generic (unfiltered) popular Documents instead of empty if + // your filter blocks all recommendation results. + // * `diversityLevel`: String. Default empty. If set to be non-empty, then + // it needs to be one of: + // * `no-diversity` + // * `low-diversity` + // * `medium-diversity` + // * `high-diversity` + // * `auto-diversity` + // This gives request-level control and adjusts recommendation results + // based on Document category. + // * `attributeFilteringSyntax`: Boolean. False by default. If set to true, + // the `filter` field is interpreted according to the new, + // attribute-based syntax. + map params = 6; + + // The user labels applied to a resource must meet the following requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Requirements for + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 8; +} + +// Response message for Recommend method. +message RecommendResponse { + // RecommendationResult represents a generic recommendation result with + // associated metadata. + message RecommendationResult { + // Resource ID of the recommended Document. + string id = 1; + + // Set if `returnDocument` is set to true in + // [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]. + Document document = 2; + + // Additional Document metadata / annotations. + // + // Possible values: + // + // * `score`: Recommendation score in double value. Is set if + // `returnScore` is set to true in + // [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]. + map metadata = 3; + } + + // A list of recommended Documents. The order represents the ranking (from the + // most relevant Document to the least). + repeated RecommendationResult results = 1; + + // A unique attribution token. This should be included in the + // [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting + // from this recommendation, which enables accurate attribution of + // recommendation model performance. + string attribution_token = 2; + + // IDs of documents in the request that were missing from the default Branch + // associated with the requested ServingConfig. + repeated string missing_ids = 3; + + // True if + // [RecommendRequest.validate_only][google.cloud.discoveryengine.v1alpha.RecommendRequest.validate_only] + // was set. + bool validate_only = 4; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto new file mode 100644 index 000000000000..1c073962aa4d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto @@ -0,0 +1,312 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SchemaProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Defines the structure and layout of a type of document data. +message Schema { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Schema" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}" + }; + + // Schema representation. One of + // [struct_schema][google.cloud.discoveryengine.v1alpha.Schema.struct_schema] + // or [json_schema][google.cloud.discoveryengine.v1alpha.Schema.json_schema] + // should be provided otherwise an `INVALID_ARGUMENT` error is thrown. + oneof schema { + // The structured representation of the schema. + google.protobuf.Struct struct_schema = 2; + + // The JSON representation of the schema. + string json_schema = 3; + } + + // Immutable. The full resource name of the schema, in the format of + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Configurations for fields of the schema. + repeated FieldConfig field_configs = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configurations for fields of a schema. For example, configuring a field is +// indexable, or searchable. +message FieldConfig { + // Field value type in the Schema. + enum FieldType { + // Field type is unspecified. + FIELD_TYPE_UNSPECIFIED = 0; + + // Field value type is Object. + OBJECT = 1; + + // Field value type is String. + STRING = 2; + + // Field value type is Number. + NUMBER = 3; + + // Field value type is Integer. + INTEGER = 4; + + // Field value type is Boolean. + BOOLEAN = 5; + + // Field value type is Geolocation. + GEOLOCATION = 6; + } + + // The setting of Indexable options in schema. + enum IndexableOption { + // Value used when unset. + INDEXABLE_OPTION_UNSPECIFIED = 0; + + // Indexable option enabled for a schema field. + INDEXABLE_ENABLED = 1; + + // Indexable option disabled for a schema field. + INDEXABLE_DISABLED = 2; + } + + // The status of the dynamic facetable option of a schema field. + enum DynamicFacetableOption { + // Value used when unset. + DYNAMIC_FACETABLE_OPTION_UNSPECIFIED = 0; + + // Dynamic facetable option enabled for a schema field. + DYNAMIC_FACETABLE_ENABLED = 1; + + // Dynamic facetable option disabled for a schema field. + DYNAMIC_FACETABLE_DISABLED = 2; + } + + // The setting of Searchable options in schema. + enum SearchableOption { + // Value used when unset. + SEARCHABLE_OPTION_UNSPECIFIED = 0; + + // Searchable option enabled for a schema field. + SEARCHABLE_ENABLED = 1; + + // Searchable option disabled for a schema field. + SEARCHABLE_DISABLED = 2; + } + + // The setting of Retrievable options in schema. + enum RetrievableOption { + // Value used when unset. + RETRIEVABLE_OPTION_UNSPECIFIED = 0; + + // Retrievable option enabled for a schema field. + RETRIEVABLE_ENABLED = 1; + + // Retrievable option disabled for a schema field. + RETRIEVABLE_DISABLED = 2; + } + + // The setting of Completable options in schema. + enum CompletableOption { + // Value used when unset. + COMPLETABLE_OPTION_UNSPECIFIED = 0; + + // Completable option enabled for a schema field. + COMPLETABLE_ENABLED = 1; + + // Completable option disabled for a schema field. + COMPLETABLE_DISABLED = 2; + } + + // Sets the filterable option for schema fields. + enum FilterableOption { + // Value used when unset. + FILTERABLE_OPTION_UNSPECIFIED = 0; + + // Filterable option enabled for a schema field. + FILTERABLE_ENABLED = 1; + + // Filterable option disabled for a schema field. + FILTERABLE_DISABLED = 2; + } + + // Required. Field path of the schema field. + // For example: `title`, `description`, `release_info.release_year`. + string field_path = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Raw type of the field. + FieldType field_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // If + // [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option] + // is + // [INDEXABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_ENABLED], + // field values are indexed so that it can be filtered or faceted in + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]. + // + // If + // [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option] + // is unset, the server behavior defaults to + // [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED] + // for fields that support setting indexable options. For those fields that do + // not support setting indexable options, such as `object` and `boolean` and + // key properties, the server will skip + // [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option] + // setting, and setting + // [indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option] + // for those fields will throw `INVALID_ARGUMENT` error. + IndexableOption indexable_option = 3; + + // If + // [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option] + // is + // [DYNAMIC_FACETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED], + // field values are available for dynamic facet. Could only be + // [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED] + // if + // [FieldConfig.indexable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.indexable_option] + // is + // [INDEXABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.IndexableOption.INDEXABLE_DISABLED]. + // Otherwise, an `INVALID_ARGUMENT` error will be returned. + // + // If + // [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option] + // is unset, the server behavior defaults to + // [DYNAMIC_FACETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.DynamicFacetableOption.DYNAMIC_FACETABLE_DISABLED] + // for fields that support setting dynamic facetable options. For those fields + // that do not support setting dynamic facetable options, such as `object` and + // `boolean`, the server will skip dynamic facetable option setting, and + // setting + // [dynamic_facetable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.dynamic_facetable_option] + // for those fields will throw `INVALID_ARGUMENT` error. + DynamicFacetableOption dynamic_facetable_option = 4; + + // If + // [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option] + // is + // [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED], + // field values are searchable by text queries in + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]. + // + // If + // [SEARCHABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_ENABLED] + // but field type is numerical, field values will not be searchable by text + // queries in + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search], + // as there are no text values associated to numerical fields. + // + // If + // [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option] + // is unset, the server behavior defaults to + // [SEARCHABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.SearchableOption.SEARCHABLE_DISABLED] + // for fields that support setting searchable options. Only `string` fields + // that have no key property mapping support setting + // [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option]. + // + // For those fields that do not support setting searchable options, the server + // will skip searchable option setting, and setting + // [searchable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.searchable_option] + // for those fields will throw `INVALID_ARGUMENT` error. + SearchableOption searchable_option = 5; + + // If + // [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option] + // is + // [RETRIEVABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_ENABLED], + // field values are included in the search results. + // + // If + // [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option] + // is unset, the server behavior defaults to + // [RETRIEVABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.RetrievableOption.RETRIEVABLE_DISABLED] + // for fields that support setting retrievable options. For those fields + // that do not support setting retrievable options, such as `object` and + // `boolean`, the server will skip retrievable option setting, and setting + // [retrievable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.retrievable_option] + // for those fields will throw `INVALID_ARGUMENT` error. + RetrievableOption retrievable_option = 6; + + // If + // [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option] + // is + // [COMPLETABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_ENABLED], + // field values are directly used and returned as suggestions for Autocomplete + // in + // [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery]. + // + // If + // [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option] + // is unset, the server behavior defaults to + // [COMPLETABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.CompletableOption.COMPLETABLE_DISABLED] + // for fields that support setting completable options, which are just + // `string` fields. For those fields that do not support setting completable + // options, the server will skip completable option setting, and setting + // [completable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.completable_option] + // for those fields will throw `INVALID_ARGUMENT` error. + CompletableOption completable_option = 8; + + // If + // [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option] + // is + // [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED], + // field values are filterable by filter expression in + // [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend]. + // + // If + // [FILTERABLE_ENABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_ENABLED] + // but the field type is numerical, field values are not filterable by text + // queries in + // [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend]. + // Only textual fields are supported. + // + // If + // [recs_filterable_option][google.cloud.discoveryengine.v1alpha.FieldConfig.recs_filterable_option] + // is unset, the default setting is + // [FILTERABLE_DISABLED][google.cloud.discoveryengine.v1alpha.FieldConfig.FilterableOption.FILTERABLE_DISABLED] + // for fields that support setting filterable options. + // + // When a field set to [FILTERABLE_DISABLED] is filtered, a warning is + // generated and an empty result is returned. + FilterableOption recs_filterable_option = 9; + + // Output only. Type of the key property that this field is mapped to. Empty + // string if this is not annotated as mapped to a key property. + // + // Example types are `title`, `description`. Full list is defined + // by `keyPropertyMapping` in the schema field annotation. + // + // If the schema field has a `KeyPropertyMapping` annotation, + // `indexable_option` and `searchable_option` of this field cannot be + // modified. + string key_property_type = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema_service.proto new file mode 100644 index 000000000000..9d5e4ee9936d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema_service.proto @@ -0,0 +1,260 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/schema.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SchemaServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. +service SchemaService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + rpc GetSchema(GetSchemaRequest) returns (Schema) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/dataStores/*/schemas/*}" + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + rpc ListSchemas(ListSchemasRequest) returns (ListSchemasResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/schemas" + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + rpc CreateSchema(CreateSchemaRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/schemas" + body: "schema" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas" + body: "schema" + } + }; + option (google.api.method_signature) = "parent,schema,schema_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.Schema" + metadata_type: "google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata" + }; + } + + // Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + rpc UpdateSchema(UpdateSchemaRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{schema.name=projects/*/locations/*/dataStores/*/schemas/*}" + body: "schema" + additional_bindings { + patch: "/v1alpha/{schema.name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}" + body: "schema" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.Schema" + metadata_type: "google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata" + }; + } + + // Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema]. + rpc DeleteSchema(DeleteSchemaRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/dataStores/*/schemas/*}" + additional_bindings { + delete: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata" + }; + } +} + +// Request message for +// [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema] +// method. +message GetSchemaRequest { + // Required. The full resource name of the schema, in the format of + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Schema" + } + ]; +} + +// Request message for +// [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas] +// method. +message ListSchemasRequest { + // Required. The parent data store resource name, in the format of + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // The maximum number of + // [Schema][google.cloud.discoveryengine.v1alpha.Schema]s to return. The + // service may return fewer than this value. + // + // If unspecified, at most 100 + // [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned. + // + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // A page token, received from a previous + // [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas] + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [SchemaService.ListSchemas][google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas] +// method. +message ListSchemasResponse { + // The [Schema][google.cloud.discoveryengine.v1alpha.Schema]s. + repeated Schema schemas = 1; + + // A token that can be sent as + // [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSchemasRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [SchemaService.CreateSchema][google.cloud.discoveryengine.v1alpha.SchemaService.CreateSchema] +// method. +message CreateSchemaRequest { + // Required. The parent data store resource name, in the format of + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to + // create. + Schema schema = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become + // the final component of the + // [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name]. + // + // This field should conform to + // [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length + // limit of 63 characters. + string schema_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1alpha.SchemaService.UpdateSchema] +// method. +message UpdateSchemaRequest { + // Required. The [Schema][google.cloud.discoveryengine.v1alpha.Schema] to + // update. + Schema schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // If set to true, and the + // [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new + // [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In + // this situation, `update_mask` is ignored. + bool allow_missing = 3; +} + +// Request message for +// [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1alpha.SchemaService.DeleteSchema] +// method. +message DeleteSchemaRequest { + // Required. The full resource name of the schema, in the format of + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Schema" + } + ]; +} + +// Metadata for Create Schema LRO. +message CreateSchemaMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} + +// Metadata for UpdateSchema LRO. +message UpdateSchemaMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} + +// Metadata for DeleteSchema LRO. +message DeleteSchemaMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto new file mode 100644 index 000000000000..4021b8484b49 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto @@ -0,0 +1,851 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/common.proto"; +import "google/cloud/discoveryengine/v1alpha/document.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SearchServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for search. +service SearchService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Performs a search. + rpc Search(SearchRequest) returns (SearchResponse) { + option (google.api.http) = { + post: "/v1alpha/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search" + body: "*" + additional_bindings { + post: "/v1alpha/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:search" + body: "*" + } + additional_bindings { + post: "/v1alpha/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:search" + body: "*" + } + }; + } +} + +// Request message for +// [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search] +// method. +message SearchRequest { + // Specifies the image query input. + message ImageQuery { + oneof image { + // Base64 encoded image bytes. Supported image formats: JPEG, PNG, and + // BMP. + string image_bytes = 1; + } + } + + // A facet specification to perform faceted search. + message FacetSpec { + // Specifies how a facet is computed. + message FacetKey { + // Required. Supported textual and numerical facet keys in + // [Document][google.cloud.discoveryengine.v1alpha.Document] object, over + // which the facet values are computed. Facet key is case-sensitive. + string key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Set only if values should be bucketed into intervals. Must be set + // for facets with numerical values. Must not be set for facet with text + // values. Maximum number of intervals is 30. + repeated Interval intervals = 2; + + // Only get facet for the given restricted values. Only supported on + // textual fields. For example, suppose "category" has three values + // "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set + // "restricted_values" to "Action > 2022", the "category" facet only + // contains "Action > 2022". Only supported on textual fields. Maximum + // is 10. + repeated string restricted_values = 3; + + // Only get facet values that start with the given string prefix. For + // example, suppose "category" has three values "Action > 2022", + // "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the + // "category" facet only contains "Action > 2022" and "Action > 2021". + // Only supported on textual fields. Maximum is 10. + repeated string prefixes = 4; + + // Only get facet values that contains the given strings. For example, + // suppose "category" has three values "Action > 2022", + // "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the + // "category" facet only contains "Action > 2022" and "Sci-Fi > 2022". + // Only supported on textual fields. Maximum is 10. + repeated string contains = 5; + + // True to make facet keys case insensitive when getting faceting + // values with prefixes or contains; false otherwise. + bool case_insensitive = 6; + + // The order in which documents are returned. + // + // Allowed values are: + // + // * "count desc", which means order by + // [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.count] + // descending. + // + // * "value desc", which means order by + // [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1alpha.SearchResponse.Facet.FacetValue.value] + // descending. + // Only applies to textual facets. + // + // If not set, textual values are sorted in [natural + // order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical + // intervals are sorted in the order given by + // [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals]. + string order_by = 7; + } + + // Required. The facet key specification. + FacetKey facet_key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Maximum of facet values that should be returned for this facet. If + // unspecified, defaults to 20. The maximum allowed value is 300. Values + // above 300 are coerced to 300. + // + // If this field is negative, an `INVALID_ARGUMENT` is returned. + int32 limit = 2; + + // List of keys to exclude when faceting. + // + // + // By default, + // [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key] + // is not excluded from the filter unless it is listed in this field. + // + // Listing a facet key in this field allows its values to appear as facet + // results, even when they are filtered out of search results. Using this + // field does not affect what search results are returned. + // + // For example, suppose there are 100 documents with the color facet "Red" + // and 200 documents with the color facet "Blue". A query containing the + // filter "color:ANY("Red")" and having "color" as + // [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key] + // would by default return only "Red" documents in the search results, and + // also return "Red" with count 100 as the only color facet. Although there + // are also blue documents available, "Blue" would not be shown as an + // available facet value. + // + // If "color" is listed in "excludedFilterKeys", then the query returns the + // facet values "Red" with count 100 and "Blue" with count 200, because the + // "color" key is now excluded from the filter. Because this field doesn't + // affect search results, the search results are still correctly filtered to + // return only "Red" documents. + // + // A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` + // error is returned. + repeated string excluded_filter_keys = 3; + + // Enables dynamic position for this facet. If set to true, the position of + // this facet among all facets in the response is determined automatically. + // If dynamic facets are enabled, it is ordered together. + // If set to false, the position of this facet in the + // response is the same as in the request, and it is ranked before + // the facets with dynamic position enable and all dynamic facets. + // + // For example, you may always want to have rating facet returned in + // the response, but it's not necessarily to always display the rating facet + // at the top. In that case, you can set enable_dynamic_position to true so + // that the position of rating facet in response is determined + // automatically. + // + // Another example, assuming you have the following facets in the request: + // + // * "rating", enable_dynamic_position = true + // + // * "price", enable_dynamic_position = false + // + // * "brands", enable_dynamic_position = false + // + // And also you have a dynamic facets enabled, which generates a facet + // `gender`. Then the final order of the facets in the response can be + // ("price", "brands", "rating", "gender") or ("price", "brands", "gender", + // "rating") depends on how API orders "gender" and "rating" facets. + // However, notice that "price" and "brands" are always + // ranked at first and second position because their enable_dynamic_position + // is false. + bool enable_dynamic_position = 4; + } + + // Boost specification to boost certain documents. + message BoostSpec { + // Boost applies to documents which match a condition. + message ConditionBoostSpec { + // An expression which specifies a boost condition. The syntax and + // supported fields are the same as a filter expression. See + // [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter] + // for detail syntax and limitations. + // + // Examples: + // + // * To boost documents with document ID "doc_1" or "doc_2", and + // color + // "Red" or "Blue": + // * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + string condition = 1; + + // Strength of the condition boost, which should be in [-1, 1]. Negative + // boost means demotion. Default is 0.0. + // + // Setting to 1.0 gives the document a big promotion. However, it does not + // necessarily mean that the boosted document will be the top result at + // all times, nor that other documents will be excluded. Results could + // still be shown even when none of them matches the condition. And + // results that are significantly more relevant to the search query can + // still trump your heavily favored but irrelevant documents. + // + // Setting to -1.0 gives the document a big demotion. However, results + // that are deeply relevant might still be shown. The document will have + // an upstream battle to get a fairly high ranking, but it is not blocked + // out completely. + // + // Setting to 0.0 means no boost applied. The boosting condition is + // ignored. + float boost = 2; + } + + // Condition boost specifications. If a document matches multiple conditions + // in the specifictions, boost scores from these specifications are all + // applied and combined in a non-linear way. Maximum number of + // specifications is 20. + repeated ConditionBoostSpec condition_boost_specs = 1; + } + + // Specification to determine under which conditions query expansion should + // occur. + message QueryExpansionSpec { + // Enum describing under which condition query expansion should occur. + enum Condition { + // Unspecified query expansion condition. In this case, server behavior + // defaults to + // [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. + CONDITION_UNSPECIFIED = 0; + + // Disabled query expansion. Only the exact search query is used, even if + // [SearchResponse.total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size] + // is zero. + DISABLED = 1; + + // Automatic query expansion built by the Search API. + AUTO = 2; + } + + // The condition under which query expansion should occur. Default to + // [Condition.DISABLED][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. + Condition condition = 1; + + // Whether to pin unexpanded results. If this field is set to true, + // unexpanded products are always at the top of the search results, followed + // by the expanded results. + bool pin_unexpanded_results = 2; + } + + // The specification for query spell correction. + message SpellCorrectionSpec { + // Enum describing under which mode spell correction should occur. + enum Mode { + // Unspecified spell correction mode. In this case, server behavior + // defaults to + // [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. + MODE_UNSPECIFIED = 0; + + // Search API will try to find a spell suggestion if there + // is any and put in the + // [SearchResponse.corrected_query][google.cloud.discoveryengine.v1alpha.SearchResponse.corrected_query]. + // The spell suggestion will not be used as the search query. + SUGGESTION_ONLY = 1; + + // Automatic spell correction built by the Search API. Search will + // be based on the corrected query if found. + AUTO = 2; + } + + // The mode under which spell correction should take effect to + // replace the original search query. Default to + // [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. + Mode mode = 1; + } + + // A specification for configuring the behavior of content search. + message ContentSearchSpec { + // A specification for configuring snippets in a search response. + message SnippetSpec { + // [DEPRECATED] This field is deprecated. To control snippet return, use + // `return_snippet` field. For backwards compatibility, we will return + // snippet if max_snippet_count > 0. + int32 max_snippet_count = 1 [deprecated = true]; + + // [DEPRECATED] This field is deprecated and will have no affect on the + // snippet. + bool reference_only = 2 [deprecated = true]; + + // If `true`, then return snippet. If no snippet can be generated, we + // return "No snippet is available for this page." A `snippet_status` with + // `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. + bool return_snippet = 3; + } + + // A specification for configuring a summary returned in a search + // response. + message SummarySpec { + // The number of top results to generate the summary from. If the number + // of results returned is less than `summaryResultCount`, the summary is + // generated from all of the results. + // + // At most five results can be used to generate a summary. + int32 summary_result_count = 1; + + // Specifies whether to include citations in the summary. The default + // value is `false`. + // + // When this field is set to `true`, summaries include in-line citation + // numbers. + // + // Example summary including citations: + // + // BigQuery is Google Cloud's fully managed and completely serverless + // enterprise data warehouse [1]. BigQuery supports all data types, works + // across clouds, and has built-in machine learning and business + // intelligence, all within a unified platform [2, 3]. + // + // The citation numbers refer to the returned search results and are + // 1-indexed. For example, [1] means that the sentence is attributed to + // the first search result. [2, 3] means that the sentence is attributed + // to both the second and third search results. + bool include_citations = 2; + + // Specifies whether to filter out adversarial queries. The default value + // is `false`. + // + // Google employs search-query classification to detect adversarial + // queries. No summary is returned if the search query is classified as an + // adversarial query. For example, a user might ask a question regarding + // negative comments about the company or submit a query designed to + // generate unsafe, policy-violating output. If this field is set to + // `true`, we skip generating summaries for adversarial queries and return + // fallback messages instead. + bool ignore_adversarial_query = 3; + + // Specifies whether to filter out queries that are not summary-seeking. + // The default value is `false`. + // + // Google employs search-query classification to detect summary-seeking + // queries. No summary is returned if the search query is classified as a + // non-summary seeking query. For example, `why is the sky blue` and `Who + // is the best soccer player in the world?` are summary-seeking queries, + // but `SFO airport` and `world cup 2026` are not. They are most likely + // navigational queries. If this field is set to `true`, we skip + // generating summaries for non-summary seeking queries and return + // fallback messages instead. + bool ignore_non_summary_seeking_query = 4; + + // Language code for Summary. Use language tags defined by + // [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). + // Note: This is an experimental feature. + string language_code = 6; + } + + // A specification for configuring the extractive content in a search + // response. + message ExtractiveContentSpec { + // The maximum number of extractive answers returned in each search + // result. + // + // An extractive answer is a verbatim answer extracted from the original + // document, which provides a precise and contextually relevant answer to + // the search query. + // + // If the number of matching answers is less than the + // `max_extractive_answer_count`, return all of the answers. Otherwise, + // return the `max_extractive_answer_count`. + // + // At most one answer is returned for each + // [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. + int32 max_extractive_answer_count = 1; + + // The max number of extractive segments returned in each search result. + // Only applied if the + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is set to + // [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig.CONTENT_REQUIRED] + // or + // [DataStore.solution_types][google.cloud.discoveryengine.v1alpha.DataStore.solution_types] + // is + // [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_CHAT]. + // + // An extractive segment is a text segment extracted from the original + // document that is relevant to the search query, and, in general, more + // verbose than an extractive answer. The segment could then be used as + // input for LLMs to generate summaries and answers. + // + // If the number of matching segments is less than + // `max_extractive_segment_count`, return all of the segments. Otherwise, + // return the `max_extractive_segment_count`. + int32 max_extractive_segment_count = 2; + + // Specifies whether to return the confidence score from the extractive + // segments in each search result. The default value is `false`. + // + // Note: this is a priavte preview feature and only works for allowlisted + // users, please reach out to Cloud Support team if you want to use it. + bool return_extractive_segment_score = 3; + + // Specifies whether to also include the adjacent from each selected + // segments. + // Return at most `num_previous_segments` segments before each selected + // segments. + int32 num_previous_segments = 4; + + // Return at most `num_next_segments` segments after each selected + // segments. + int32 num_next_segments = 5; + } + + // If `snippetSpec` is not specified, snippets are not included in the + // search response. + SnippetSpec snippet_spec = 1; + + // If `summarySpec` is not specified, summaries are not included in the + // search response. + SummarySpec summary_spec = 2; + + // If there is no extractive_content_spec provided, there will be no + // extractive answer in the search response. + ExtractiveContentSpec extractive_content_spec = 3; + } + + // The specification that uses customized query embedding vector to do + // semantic document retrieval. + message EmbeddingSpec { + // Embedding vector. + message EmbeddingVector { + // Embedding field path in schema. + string field_path = 1; + + // Query embedding vector. + repeated float vector = 2; + } + + // The embedding vector used for retrieval. Limit to 1. + repeated EmbeddingVector embedding_vectors = 1; + } + + // Required. The resource name of the Search serving config, such as + // `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. + // This field is used to identify the serving configuration name, set + // of models used to make the search. + string serving_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; + + // The branch resource name, such as + // `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. + // + // Use `default_branch` as the branch ID or leave this field empty, to search + // documents under the default branch. + string branch = 2 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Branch" + }]; + + // Raw search query. + string query = 3; + + // Raw image query. + ImageQuery image_query = 19; + + // Maximum number of + // [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If + // unspecified, defaults to a reasonable value. The maximum allowed value is + // 100. Values above 100 are coerced to 100. + // + // If this field is negative, an `INVALID_ARGUMENT` is returned. + int32 page_size = 4; + + // A page token received from a previous + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 5; + + // A 0-indexed integer that specifies the current offset (that is, starting + // result location, amongst the + // [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the + // API as relevant) in search results. This field is only considered if + // [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token] + // is unset. + // + // If this field is negative, an `INVALID_ARGUMENT` is returned. + int32 offset = 6; + + // The filter syntax consists of an expression language for constructing a + // predicate from one or more fields of the documents being filtered. Filter + // expression is case-sensitive. + // + // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. + string filter = 7; + + // The order in which documents are returned. Documents can be ordered by + // a field in an [Document][google.cloud.discoveryengine.v1alpha.Document] + // object. Leave it unset if ordered by relevance. `order_by` expression is + // case-sensitive. + // + // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. + string order_by = 8; + + // Information about the end user. + // Highly recommended for analytics. + // [UserInfo.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent] + // is used to deduce `device_type` for analytics. + UserInfo user_info = 21; + + // Facet specifications for faceted search. If empty, no facets are returned. + // + // A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` + // error is returned. + repeated FacetSpec facet_specs = 9; + + // Boost specification to boost certain documents. + BoostSpec boost_spec = 10; + + // Additional search parameters. + // + // For public website search only, supported values are: + // + // * `user_country_code`: string. Default empty. If set to non-empty, results + // are restricted or boosted based on the location provided. + // * `search_type`: double. Default empty. Enables non-webpage searching + // depending on the value. The only valid non-default value is 1, + // which enables image searching. + map params = 11; + + // The query expansion specification that specifies the conditions under which + // query expansion occurs. + QueryExpansionSpec query_expansion_spec = 13; + + // The spell correction specification that specifies the mode under + // which spell correction takes effect. + SpellCorrectionSpec spell_correction_spec = 14; + + // A unique identifier for tracking visitors. For example, this could be + // implemented with an HTTP cookie, which should be able to uniquely identify + // a visitor on a single device. This unique identifier should not change if + // the visitor logs in or out of the website. + // + // This field should NOT have a fixed value such as `unknown_visitor`. + // + // This should be the same identifier as + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id] + // and + // [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1alpha.CompleteQueryRequest.user_pseudo_id] + // + // The field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + string user_pseudo_id = 15; + + // A specification for configuring the behavior of content search. + ContentSearchSpec content_search_spec = 24; + + // Uses the provided embedding to do additional semantic document retrieval. + // The retrieval is based on the dot product of + // [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document + // embedding that is provided in + // [SearchRequest.embedding_spec.embedding_vectors.field_path][]. + // + // If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not + // provided, it will use [ServingConfig.embedding_config.field_paths][]. + EmbeddingSpec embedding_spec = 23; + + // The ranking expression controls the customized ranking on retrieval + // documents. This overrides + // [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1alpha.ServingConfig.ranking_expression]. + // The ranking expression is a single function or multiple functions that are + // joint by "+". + // * ranking_expression = function, { " + ", function }; + // Supported functions: + // * double * relevance_score + // * double * dotProduct(embedding_field_path) + // Function variables: + // `relevance_score`: pre-defined keywords, used for measure relevance + // between query and document. + // `embedding_field_path`: the document embedding field + // used with query embedding vector. + // `dotProduct`: embedding function between embedding_field_path and query + // embedding vector. + // + // Example ranking expression: + // If document has an embedding field doc_embedding, the ranking expression + // could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. + string ranking_expression = 26; + + // Whether to turn on safe search. This is only supported for + // website search. + bool safe_search = 20; + + // The user labels applied to a resource must meet the following requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Google Cloud + // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 22; +} + +// Response message for +// [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search] +// method. +message SearchResponse { + // Represents the search results. + message SearchResult { + // [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] of the + // searched [Document][google.cloud.discoveryengine.v1alpha.Document]. + string id = 1; + + // The document data snippet in the search response. Only fields that are + // marked as retrievable are populated. + Document document = 2; + + // Google provided available scores. + map model_scores = 4; + } + + // A facet result. + message Facet { + // A facet value which contains value names and their count. + message FacetValue { + // A facet value which contains values. + oneof facet_value { + // Text value of a facet, such as "Black" for facet "colors". + string value = 1; + + // Interval value for a facet, such as [10, 20) for facet "price". It + // matches + // [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.intervals]. + Interval interval = 2; + } + + // Number of items that have this facet value. + int64 count = 3; + } + + // The key for this facet. E.g., "colors" or "price". It matches + // [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]. + string key = 1; + + // The facet values for this field. + repeated FacetValue values = 2; + + // Whether the facet is dynamically generated. + bool dynamic_facet = 3; + } + + // Guided search result. The guided search helps user to refine the search + // results and narrow down to the real needs from a broaded search results. + message GuidedSearchResult { + // Useful attribute for search result refinements. + message RefinementAttribute { + // Attribute key used to refine the results e.g. 'movie_type'. + string attribute_key = 1; + + // Attribute value used to refine the results e.g. 'drama'. + string attribute_value = 2; + } + + // A list of ranked refinement attributes. + repeated RefinementAttribute refinement_attributes = 1; + + // Suggested follow-up questions. + repeated string follow_up_questions = 2; + } + + // Summary of the top N search result specified by the summary spec. + message Summary { + // Safety Attribute categories and their associated confidence scores. + message SafetyAttributes { + // The display names of Safety Attribute categories associated with the + // generated content. Order matches the Scores. + repeated string categories = 1; + + // The confidence scores of the each category, higher + // value means higher confidence. Order matches the Categories. + repeated float scores = 2; + } + + // An Enum for summary-skipped reasons. + enum SummarySkippedReason { + // Default value. The summary skipped reason is not specified. + SUMMARY_SKIPPED_REASON_UNSPECIFIED = 0; + + // The adversarial query ignored case. + // + // Only populated when + // [SummarySpec.ignore_adversarial_query][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.ignore_adversarial_query] + // is set to `true`. + ADVERSARIAL_QUERY_IGNORED = 1; + + // The non-summary seeking query ignored case. + // + // Only populated when + // [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query] + // is set to `true`. + NON_SUMMARY_SEEKING_QUERY_IGNORED = 2; + + // The out-of-domain query ignored case. + // + // Google skips the summary if there are no high-relevance search results. + // For example, the data store contains facts about company A but the + // user query is asking questions about company B. + OUT_OF_DOMAIN_QUERY_IGNORED = 3; + + // The potential policy violation case. + // + // Google skips the summary if there is a potential policy violation + // detected. This includes content that may be violent or toxic. + POTENTIAL_POLICY_VIOLATION = 4; + + // The LLM addon not enabled case. + // + // Google skips the summary if the LLM addon is not enabled. + LLM_ADDON_NOT_ENABLED = 5; + } + + // The summary content. + string summary_text = 1; + + // Additional summary-skipped reasons. This provides the reason for ignored + // cases. If nothing is skipped, this field is not set. + repeated SummarySkippedReason summary_skipped_reasons = 2; + + // A collection of Safety Attribute categories and their associated + // confidence scores. + SafetyAttributes safety_attributes = 3; + } + + // Debug information specifically related to forward geocoding issues arising + // from Geolocation Search. + message GeoSearchDebugInfo { + // The address from which forward geocoding ingestion produced issues. + string original_address_query = 1; + + // The error produced. + string error_message = 2; + } + + // Information describing query expansion including whether expansion has + // occurred. + message QueryExpansionInfo { + // Bool describing whether query expansion has occurred. + bool expanded_query = 1; + + // Number of pinned results. This field will only be set when expansion + // happens and + // [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.pin_unexpanded_results] + // is set to true. + int64 pinned_result_count = 2; + } + + // A list of matched documents. The order represents the ranking. + repeated SearchResult results = 1; + + // Results of facets requested by user. + repeated Facet facets = 2; + + // Guided search result. + GuidedSearchResult guided_search_result = 8; + + // The estimated total count of matched items irrespective of pagination. The + // count of + // [results][google.cloud.discoveryengine.v1alpha.SearchResponse.results] + // returned by pagination may be less than the + // [total_size][google.cloud.discoveryengine.v1alpha.SearchResponse.total_size] + // that matches. + int32 total_size = 3; + + // A unique search token. This should be included in the + // [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] logs resulting + // from this search, which enables accurate attribution of search model + // performance. + string attribution_token = 4; + + // The URI of a customer-defined redirect page. If redirect action is + // triggered, no search is performed, and only + // [redirect_uri][google.cloud.discoveryengine.v1alpha.SearchResponse.redirect_uri] + // and + // [attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] + // are set in the response. + string redirect_uri = 12; + + // A token that can be sent as + // [SearchRequest.page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 5; + + // Contains the spell corrected query, if found. If the spell correction type + // is AUTOMATIC, then the search results are based on corrected_query. + // Otherwise the original query is used for search. + string corrected_query = 7; + + // A summary as part of the search results. + // This field is only returned if + // [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.summary_spec] + // is set. + Summary summary = 9; + + // Controls applied as part of the Control service. + repeated string applied_controls = 10; + + repeated GeoSearchDebugInfo geo_search_debug_info = 16; + + // Query expansion information for the returned results. + QueryExpansionInfo query_expansion_info = 14; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto new file mode 100644 index 000000000000..c73ae34c1714 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto @@ -0,0 +1,152 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SiteSearchEngineServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing site search related resources. +service SiteSearchEngineService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Request on-demand recrawl for a list of URIs. + rpc RecrawlUris(RecrawlUrisRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{site_search_engine=projects/*/locations/*/dataStores/*/siteSearchEngine}:recrawlUris" + body: "*" + additional_bindings { + post: "/v1alpha/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:recrawlUris" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata" + }; + } +} + +// Request message for +// [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris] +// method. +message RecrawlUrisRequest { + // Required. Full resource name of the + // [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine], + // such as + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. + string site_search_engine = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/SiteSearchEngine" + } + ]; + + // Required. List of URIs to crawl. At most 10K URIs are supported, otherwise + // an INVALID_ARGUMENT error is thrown. Each URI should match at least one + // [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in + // `site_search_engine`. + repeated string uris = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris] +// method. +message RecrawlUrisResponse { + // Details about why a particular URI failed to be crawled. Each FailureInfo + // contains one FailureReason per CorpusType. + message FailureInfo { + // Details about why crawling failed for a particular CorpusType, e.g. + // DESKTOP and MOBILE crawling may fail for different reasons. + message FailureReason { + // CorpusType for the failed crawling operation. + enum CorpusType { + // Default value. + CORPUS_TYPE_UNSPECIFIED = 0; + + // Denotes a crawling attempt for the desktop version of a page. + DESKTOP = 1; + + // Denotes a crawling attempt for the mobile version of a page. + MOBILE = 2; + } + + // DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED. + CorpusType corpus_type = 1; + + // Reason why the URI was not crawled. + string error_message = 2; + } + + // URI that failed to be crawled. + string uri = 1; + + // List of failure reasons by corpus type (e.g. desktop, mobile). + repeated FailureReason failure_reasons = 2; + } + + // Details for a sample of up to 10 `failed_uris`. + repeated FailureInfo failure_samples = 1; + + // URIs that were not crawled before the LRO terminated. + repeated string failed_uris = 2; +} + +// Metadata related to the progress of the +// [SiteSearchEngineService.RecrawlUris][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris] +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message RecrawlUrisMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Unique URIs in the request that don't match any TargetSite in the + // DataStore, only match TargetSites that haven't been fully indexed, or match + // a TargetSite with type EXCLUDE. + repeated string invalid_uris = 3; + + // Total number of unique URIs in the request that are not in invalid_uris. + int32 valid_uris_count = 4; + + // Total number of URIs that have been crawled so far. + int32 success_count = 5; + + // Total number of URIs that have yet to be crawled. + int32 pending_count = 6; + + // Total number of URIs that were rejected due to insufficient indexing + // resources. + int32 quota_exceeded_count = 7; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto new file mode 100644 index 000000000000..7ba96f7e27d2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto @@ -0,0 +1,475 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/common.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserEventProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// UserEvent captures all metadata information Discovery Engine API needs to +// know about how end users interact with customers' website. +message UserEvent { + // Required. User event type. Allowed values are: + // + // Generic values: + // + // * `search`: Search for Documents. + // * `view-item`: Detailed page view of a Document. + // * `view-item-list`: View of a panel or ordered list of Documents. + // * `view-home-page`: View of the home page. + // * `view-category-page`: View of a category page, e.g. Home > Men > Jeans + // + // Retail-related values: + // + // * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping + // * `purchase`: Purchase an item(s) + // + // Media-related values: + // + // * `media-play`: Start/resume watching a video, playing a song, etc. + // * `media-complete`: Finished or stopped midway through a video, song, etc. + string event_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A unique identifier for tracking visitors. + // + // For example, this could be implemented with an HTTP cookie, which should be + // able to uniquely identify a visitor on a single device. This unique + // identifier should not change if the visitor log in/out of the website. + // + // Do not set the field to the same fixed ID for different users. This mixes + // the event history of those users together, which results in degraded model + // quality. + // + // The field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + // + // The field should not contain PII or user-data. We recommend to use Google + // Analytics [Client + // ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) + // for this field. + string user_pseudo_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Only required for + // [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents] + // method. Timestamp of when the user event happened. + google.protobuf.Timestamp event_time = 3; + + // Information about the end user. + UserInfo user_info = 4; + + // Should set to true if the request is made directly from the end user, in + // which case the + // [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1alpha.UserInfo.user_agent] + // can be populated from the HTTP request. + // + // This flag should be set only if the API request is made directly from the + // end user such as a mobile app (and not if a gateway or a server is + // processing and pushing the user events). + // + // This should not be set when using the JavaScript tag in + // [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]. + bool direct_user_request = 5; + + // A unique identifier for tracking a visitor session with a length limit of + // 128 bytes. A session is an aggregation of an end user behavior in a time + // span. + // + // A general guideline to populate the session_id: + // + // 1. If user has no activity for 30 min, a new session_id should be assigned. + // 2. The session_id should be unique across users, suggest use uuid or add + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1alpha.UserEvent.user_pseudo_id] + // as prefix. + string session_id = 6; + + // Page metadata such as categories and other critical information for certain + // event types such as `view-category-page`. + PageInfo page_info = 7; + + // Token to attribute an API response to user action(s) to trigger the event. + // + // Highly recommended for user events that are the result of + // [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend]. + // This field enables accurate attribution of recommendation model + // performance. + // + // The value must be one of: + // + // * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] for events that are the result of + // [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend]. + // * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1alpha.SearchResponse.attribution_token] for events that are the result of + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]. + // + // This token enables us to accurately attribute page view or conversion + // completion back to the event and the particular predict response containing + // this clicked/purchased product. If user clicks on product K in the + // recommendation results, pass + // [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] + // as a URL parameter to product K's page. When recording events on product + // K's page, log the + // [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1alpha.RecommendResponse.attribution_token] + // to this field. + string attribution_token = 8; + + // The filter syntax consists of an expression language for constructing a + // predicate from one or more fields of the documents being filtered. + // + // One example is for `search` events, the associated + // [SearchRequest][google.cloud.discoveryengine.v1alpha.SearchRequest] may + // contain a filter expression in + // [SearchRequest.filter][google.cloud.discoveryengine.v1alpha.SearchRequest.filter] + // conforming to https://google.aip.dev/160#filtering. + // + // Similarly, for `view-item-list` events that are generated from a + // [RecommendationService.RecommendRequest][], this field may be populated + // directly from [RecommendationService.RecommendRequest.filter][] conforming + // to https://google.aip.dev/160#filtering. + // + // The value must be a UTF-8 encoded string with a length limit of 1,000 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + string filter = 9; + + // List of [Document][google.cloud.discoveryengine.v1alpha.Document]s + // associated with this user event. + // + // This field is optional except for the following event types: + // + // * `view-item` + // * `add-to-cart` + // * `purchase` + // * `media-play` + // * `media-complete` + // + // In a `search` event, this field represents the documents returned to the + // end user on the current page (the end user may have not finished browsing + // the whole page yet). When a new page is returned to the end user, after + // pagination/filtering/ordering even for the same query, a new `search` event + // with different + // [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents] + // is desired. + repeated DocumentInfo documents = 10; + + // Panel metadata associated with this user event. + PanelInfo panel = 11; + + // [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search] + // details related to the event. + // + // This field should be set for `search` event. + SearchInfo search_info = 12; + + // [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery] + // details related to the event. + // + // This field should be set for `search` event when autocomplete function is + // enabled and the user clicks a suggestion for search. + CompletionInfo completion_info = 13; + + // The transaction metadata (if any) associated with this user event. + TransactionInfo transaction_info = 14; + + // A list of identifiers for the independent experiment groups this user event + // belongs to. This is used to distinguish between user events associated with + // different experiment setups on the customer end. + repeated string tag_ids = 15; + + // The promotion IDs if this is an event associated with promotions. + // Currently, this field is restricted to at most one ID. + repeated string promotion_ids = 16; + + // Extra user event features to include in the recommendation model. + // These attributes must NOT contain data that needs to be parsed or processed + // further, e.g. JSON or other encodings. + // + // If you provide custom attributes for ingested user events, also include + // them in the user events that you associate with prediction requests. Custom + // attribute formatting must be consistent between imported events and events + // provided with prediction requests. This lets the Discovery Engine API use + // those custom attributes when training models and serving predictions, which + // helps improve recommendation quality. + // + // This field needs to pass all below criteria, otherwise an + // `INVALID_ARGUMENT` error is returned: + // + // * The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. + // * For text attributes, at most 400 values are allowed. Empty values are not + // allowed. Each value must be a UTF-8 encoded string with a length limit of + // 256 characters. + // * For number attributes, at most 400 values are allowed. + // + // For product recommendations, an example of extra user information is + // `traffic_channel`, which is how a user arrives at the site. Users can + // arrive + // at the site by coming to the site directly, coming through Google + // search, or in other ways. + map attributes = 17; + + // Media-specific info. + MediaInfo media_info = 18; +} + +// Detailed page information. +message PageInfo { + // A unique ID of a web page view. + // + // This should be kept the same for all user events triggered from the same + // pageview. For example, an item detail page view could trigger multiple + // events as the user is browsing the page. The `pageview_id` property should + // be kept the same for all these events so that they can be grouped together + // properly. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. + string pageview_id = 1; + + // The most specific category associated with a category page. + // + // To represent full path of category, use '>' sign to separate different + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). + // + // Category pages include special pages such as sales or promotions. For + // instance, a special sale page may have the category hierarchy: + // `"pageCategory" : "Sales > 2017 Black Friday Deals"`. + // + // Required for `view-category-page` events. Other event types should not set + // this field. Otherwise, an `INVALID_ARGUMENT` error is returned. + string page_category = 2; + + // Complete URL (window.location.href) of the user's current page. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. Maximum length 5,000 + // characters. + string uri = 3; + + // The referrer URL of the current page. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. However, some browser + // privacy restrictions may cause this field to be empty. + string referrer_uri = 4; +} + +// Detailed search information. +message SearchInfo { + // The user's search query. + // + // See + // [SearchRequest.query][google.cloud.discoveryengine.v1alpha.SearchRequest.query] + // for definition. + // + // The value must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + // + // At least one of + // [search_query][google.cloud.discoveryengine.v1alpha.SearchInfo.search_query] + // or + // [PageInfo.page_category][google.cloud.discoveryengine.v1alpha.PageInfo.page_category] + // is required for `search` events. Other event types should not set this + // field. Otherwise, an `INVALID_ARGUMENT` error is returned. + string search_query = 1; + + // The order in which products are returned, if applicable. + // + // See + // [SearchRequest.order_by][google.cloud.discoveryengine.v1alpha.SearchRequest.order_by] + // for definition and syntax. + // + // The value must be a UTF-8 encoded string with a length limit of 1,000 + // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + // + // This can only be set for `search` events. Other event types should not set + // this field. Otherwise, an `INVALID_ARGUMENT` error is returned. + string order_by = 2; + + // An integer that specifies the current offset for pagination (the 0-indexed + // starting location, amongst the products deemed by the API as relevant). + // + // See + // [SearchRequest.offset][google.cloud.discoveryengine.v1alpha.SearchRequest.offset] + // for definition. + // + // If this field is negative, an `INVALID_ARGUMENT` is returned. + // + // This can only be set for `search` events. Other event types should not set + // this field. Otherwise, an `INVALID_ARGUMENT` error is returned. + optional int32 offset = 3; +} + +// Detailed completion information including completion attribution token and +// clicked completion info. +message CompletionInfo { + // End user selected + // [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion]. + string selected_suggestion = 1; + + // End user selected + // [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1alpha.CompleteQueryResponse.QuerySuggestion.suggestion] + // position, starting from 0. + int32 selected_position = 2; +} + +// A transaction represents the entire purchase transaction. +message TransactionInfo { + // Required. Total non-zero value associated with the transaction. This value + // may include shipping, tax, or other adjustments to the total value that you + // want to include. + optional float value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Currency code. Use three-character ISO-4217 code. + string currency = 2 [(google.api.field_behavior) = REQUIRED]; + + // The transaction ID with a length limit of 128 characters. + string transaction_id = 3; + + // All the taxes associated with the transaction. + optional float tax = 4; + + // All the costs associated with the products. These can be manufacturing + // costs, shipping expenses not borne by the end user, or any other costs, + // such that: + // + // * Profit = + // [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] - + // [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] - + // [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost] + optional float cost = 5; + + // The total discount(s) value applied to this transaction. + // This figure should be excluded from + // [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] + // + // For example, if a user paid + // [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] + // amount, then nominal (pre-discount) value of the transaction is the sum of + // [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] + // and + // [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value] + // + // This means that profit is calculated the same way, regardless of the + // discount value, and that + // [TransactionInfo.discount_value][google.cloud.discoveryengine.v1alpha.TransactionInfo.discount_value] + // can be larger than + // [TransactionInfo.value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value]: + // + // * Profit = + // [value][google.cloud.discoveryengine.v1alpha.TransactionInfo.value] - + // [tax][google.cloud.discoveryengine.v1alpha.TransactionInfo.tax] - + // [cost][google.cloud.discoveryengine.v1alpha.TransactionInfo.cost] + optional float discount_value = 6; +} + +// Detailed document information associated with a user event. +message DocumentInfo { + // A required descriptor of the associated + // [Document][google.cloud.discoveryengine.v1alpha.Document]. + // + // * If [id][google.cloud.discoveryengine.v1alpha.DocumentInfo.id] is + // specified, then the default values for + // `{location}`, `{collection_id}`, `{data_store_id}`, and `{branch_id}` are + // used when annotating with the stored Document. + // + // * If [name][google.cloud.discoveryengine.v1alpha.DocumentInfo.name] is + // specified, then the provided values (default values allowed) for + // `{location}`, `{collection_id}`, `{data_store_id}`, and + // `{branch_id}` are used when annotating with the stored Document. + oneof document_descriptor { + // The [Document][google.cloud.discoveryengine.v1alpha.Document] resource + // ID. + string id = 1; + + // The [Document][google.cloud.discoveryengine.v1alpha.Document] resource + // full name, of the form: + // `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}` + string name = 2 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + }]; + + // The [Document][google.cloud.discoveryengine.v1alpha.Document] URI - only + // allowed for website data stores. + string uri = 6; + } + + // Quantity of the Document associated with the user event. Defaults to 1. + // + // For example, this field will be 2 if two quantities of the same Document + // are involved in a `add-to-cart` event. + // + // Required for events of the following event types: + // + // * `add-to-cart` + // * `purchase` + optional int32 quantity = 3; + + // The promotion IDs associated with this Document. + // Currently, this field is restricted to at most one ID. + repeated string promotion_ids = 4; +} + +// Detailed panel information associated with a user event. +message PanelInfo { + // Required. The panel ID. + string panel_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // The display name of the panel. + string display_name = 3; + + // The ordered position of the panel, if shown to the user with other panels. + // If set, then + // [total_panels][google.cloud.discoveryengine.v1alpha.PanelInfo.total_panels] + // must also be set. + optional int32 panel_position = 4; + + // The total number of panels, including this one, shown to the user. + // Must be set if + // [panel_position][google.cloud.discoveryengine.v1alpha.PanelInfo.panel_position] + // is set. + optional int32 total_panels = 5; +} + +// Media-specific user event information. +message MediaInfo { + // The media progress time in seconds, if applicable. + // For example, if the end user has finished 90 seconds of a playback video, + // then + // [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds] + // should be set to 90. + google.protobuf.Duration media_progress_duration = 1; + + // Media progress should be computed using only the + // [media_progress_duration][google.cloud.discoveryengine.v1alpha.MediaInfo.media_progress_duration] + // relative to the media total length. + // + // This value must be between `[0, 1.0]` inclusive. + // + // If this is not a playback or the progress cannot be computed (e.g. ongoing + // livestream), this field should be unset. + optional float media_progress_percentage = 2; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event_service.proto b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event_service.proto new file mode 100644 index 000000000000..9919d67fcd89 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event_service.proto @@ -0,0 +1,154 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/httpbody.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/import_config.proto"; +import "google/cloud/discoveryengine/v1alpha/purge_config.proto"; +import "google/cloud/discoveryengine/v1alpha/user_event.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserEventServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for ingesting end user actions on a website to Discovery Engine API. +service UserEventService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Writes a single user event. + rpc WriteUserEvent(WriteUserEventRequest) returns (UserEvent) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:write" + body: "user_event" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write" + body: "user_event" + } + }; + } + + // Writes a single user event from the browser. This uses a GET request to + // due to browser restriction of POST-ing to a third-party domain. + // + // This method is used only by the Discovery Engine API JavaScript pixel and + // Google Tag Manager. Users should not call this method directly. + rpc CollectUserEvent(CollectUserEventRequest) returns (google.api.HttpBody) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:collect" + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect" + } + }; + } + + // 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. + rpc PurgeUserEvents(PurgeUserEventsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:purge" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:purge" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata" + }; + } + + // 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. + rpc ImportUserEvents(ImportUserEventsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:import" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata" + }; + } +} + +// Request message for WriteUserEvent method. +message WriteUserEventRequest { + // Required. The parent DataStore resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. User event to write. + optional UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for CollectUserEvent method. +message CollectUserEventRequest { + // Required. The parent DataStore resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. URL encoded UserEvent proto with a length limit of 2,000,000 + // characters. + string user_event = 2 [(google.api.field_behavior) = REQUIRED]; + + // The URL including cgi-parameters but excluding the hash fragment with a + // length limit of 5,000 characters. This is often more useful than the + // referer URL, because many browsers only send the domain for third-party + // requests. + optional string uri = 3; + + // The event timestamp in milliseconds. This prevents browser caching of + // otherwise identical get requests. The name is abbreviated to reduce the + // payload bytes. + optional int64 ets = 4; +} diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/AsyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/AsyncCompleteQuery.java new file mode 100644 index 000000000000..3837443d819b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/AsyncCompleteQuery.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_CompleteQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class AsyncCompleteQuery { + + public static void main(String[] args) throws Exception { + asyncCompleteQuery(); + } + + public static void asyncCompleteQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setIncludeTailSuggestions(true) + .build(); + ApiFuture future = + completionServiceClient.completeQueryCallable().futureCall(request); + // Do something. + CompleteQueryResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_CompleteQuery_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/SyncCompleteQuery.java new file mode 100644 index 000000000000..c3519d41329a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/completequery/SyncCompleteQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_CompleteQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; +import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + public static void syncCompleteQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setIncludeTailSuggestions(true) + .build(); + CompleteQueryResponse response = completionServiceClient.completeQuery(request); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_CompleteQuery_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8b5e5a772a70 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..6e7511b3d326 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newHttpJsonBuilder().build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..98bfd8788d39 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings completionServiceSettings = + CompletionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CompletionServiceClient completionServiceClient = + CompletionServiceClient.create(completionServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservicesettings/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservicesettings/completequery/SyncCompleteQuery.java new file mode 100644 index 000000000000..3344411c8e3f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservicesettings/completequery/SyncCompleteQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionServiceSettings_CompleteQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceSettings; +import java.time.Duration; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + public static void syncCompleteQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceSettings.Builder completionServiceSettingsBuilder = + CompletionServiceSettings.newBuilder(); + completionServiceSettingsBuilder + .completeQuerySettings() + .setRetrySettings( + completionServiceSettingsBuilder + .completeQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompletionServiceSettings completionServiceSettings = completionServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_CompletionServiceSettings_CompleteQuery_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java new file mode 100644 index 000000000000..c2adc928e7bc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java @@ -0,0 +1,68 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.TextInput; +import java.util.HashMap; + +public class AsyncConverseConversation { + + public static void main(String[] args) throws Exception { + asyncConverseConversation(); + } + + public static void asyncConverseConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConverseConversationRequest request = + ConverseConversationRequest.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setQuery(TextInput.newBuilder().build()) + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setConversation(Conversation.newBuilder().build()) + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) + .build(); + ApiFuture future = + conversationalSearchServiceClient.converseConversationCallable().futureCall(request); + // Do something. + ConverseConversationResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java new file mode 100644 index 000000000000..2e9d806d5a28 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.TextInput; +import java.util.HashMap; + +public class SyncConverseConversation { + + public static void main(String[] args) throws Exception { + syncConverseConversation(); + } + + public static void syncConverseConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConverseConversationRequest request = + ConverseConversationRequest.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .setQuery(TextInput.newBuilder().build()) + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setConversation(Conversation.newBuilder().build()) + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) + .build(); + ConverseConversationResponse response = + conversationalSearchServiceClient.converseConversation(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java new file mode 100644 index 000000000000..96704c26cf29 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_ConversationnameTextinput_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.TextInput; + +public class SyncConverseConversationConversationnameTextinput { + + public static void main(String[] args) throws Exception { + syncConverseConversationConversationnameTextinput(); + } + + public static void syncConverseConversationConversationnameTextinput() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + TextInput query = TextInput.newBuilder().build(); + ConverseConversationResponse response = + conversationalSearchServiceClient.converseConversation(name, query); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_ConversationnameTextinput_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java new file mode 100644 index 000000000000..e87efc311010 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_StringTextinput_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConverseConversationResponse; +import com.google.cloud.discoveryengine.v1alpha.TextInput; + +public class SyncConverseConversationStringTextinput { + + public static void main(String[] args) throws Exception { + syncConverseConversationStringTextinput(); + } + + public static void syncConverseConversationStringTextinput() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + String name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString(); + TextInput query = TextInput.newBuilder().build(); + ConverseConversationResponse response = + conversationalSearchServiceClient.converseConversation(name, query); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_StringTextinput_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e88a7fb25f50 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..7ee82e20ac0f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..75e9149de128 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/AsyncCreateConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/AsyncCreateConversation.java new file mode 100644 index 000000000000..9fec34923b81 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/AsyncCreateConversation.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class AsyncCreateConversation { + + public static void main(String[] args) throws Exception { + asyncCreateConversation(); + } + + public static void asyncCreateConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + CreateConversationRequest request = + CreateConversationRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setConversation(Conversation.newBuilder().build()) + .build(); + ApiFuture future = + conversationalSearchServiceClient.createConversationCallable().futureCall(request); + // Do something. + Conversation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversation.java new file mode 100644 index 000000000000..2aad833373fa --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversation.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.CreateConversationRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class SyncCreateConversation { + + public static void main(String[] args) throws Exception { + syncCreateConversation(); + } + + public static void syncCreateConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + CreateConversationRequest request = + CreateConversationRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setConversation(Conversation.newBuilder().build()) + .build(); + Conversation response = conversationalSearchServiceClient.createConversation(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java new file mode 100644 index 000000000000..2324afd451a4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_DatastorenameConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class SyncCreateConversationDatastorenameConversation { + + public static void main(String[] args) throws Exception { + syncCreateConversationDatastorenameConversation(); + } + + public static void syncCreateConversationDatastorenameConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Conversation conversation = Conversation.newBuilder().build(); + Conversation response = + conversationalSearchServiceClient.createConversation(parent, conversation); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_DatastorenameConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java new file mode 100644 index 000000000000..68142b7cac71 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_StringConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class SyncCreateConversationStringConversation { + + public static void main(String[] args) throws Exception { + syncCreateConversationStringConversation(); + } + + public static void syncCreateConversationStringConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + Conversation conversation = Conversation.newBuilder().build(); + Conversation response = + conversationalSearchServiceClient.createConversation(parent, conversation); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_StringConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java new file mode 100644 index 000000000000..ae388f9b18dc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteConversation { + + public static void main(String[] args) throws Exception { + asyncDeleteConversation(); + } + + public static void asyncDeleteConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .build(); + ApiFuture future = + conversationalSearchServiceClient.deleteConversationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java new file mode 100644 index 000000000000..a899030844f6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DeleteConversationRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteConversation { + + public static void main(String[] args) throws Exception { + syncDeleteConversation(); + } + + public static void syncDeleteConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .build(); + conversationalSearchServiceClient.deleteConversation(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java new file mode 100644 index 000000000000..4d5d2259ae5d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_Conversationname_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConversationConversationname { + + public static void main(String[] args) throws Exception { + syncDeleteConversationConversationname(); + } + + public static void syncDeleteConversationConversationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + conversationalSearchServiceClient.deleteConversation(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_Conversationname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java new file mode 100644 index 000000000000..f27b357ddbce --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_String_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConversationString { + + public static void main(String[] args) throws Exception { + syncDeleteConversationString(); + } + + public static void syncDeleteConversationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + String name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString(); + conversationalSearchServiceClient.deleteConversation(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/AsyncGetConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/AsyncGetConversation.java new file mode 100644 index 000000000000..db3b55f39318 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/AsyncGetConversation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetConversationRequest; + +public class AsyncGetConversation { + + public static void main(String[] args) throws Exception { + asyncGetConversation(); + } + + public static void asyncGetConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + GetConversationRequest request = + GetConversationRequest.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .build(); + ApiFuture future = + conversationalSearchServiceClient.getConversationCallable().futureCall(request); + // Do something. + Conversation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversation.java new file mode 100644 index 000000000000..fdebb54f2642 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetConversationRequest; + +public class SyncGetConversation { + + public static void main(String[] args) throws Exception { + syncGetConversation(); + } + + public static void syncGetConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + GetConversationRequest request = + GetConversationRequest.newBuilder() + .setName( + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString()) + .build(); + Conversation response = conversationalSearchServiceClient.getConversation(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java new file mode 100644 index 000000000000..14a424c59ea5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_Conversationname_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; + +public class SyncGetConversationConversationname { + + public static void main(String[] args) throws Exception { + syncGetConversationConversationname(); + } + + public static void syncGetConversationConversationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConversationName name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]"); + Conversation response = conversationalSearchServiceClient.getConversation(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_Conversationname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationString.java new file mode 100644 index 000000000000..ddce3e081527 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/getconversation/SyncGetConversationString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationName; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; + +public class SyncGetConversationString { + + public static void main(String[] args) throws Exception { + syncGetConversationString(); + } + + public static void syncGetConversationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + String name = + ConversationName.ofProjectLocationDataStoreConversationName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[CONVERSATION]") + .toString(); + Conversation response = conversationalSearchServiceClient.getConversation(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversations.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversations.java new file mode 100644 index 000000000000..c3d9e584dff7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversations.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; + +public class AsyncListConversations { + + public static void main(String[] args) throws Exception { + asyncListConversations(); + } + + public static void asyncListConversations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + conversationalSearchServiceClient.listConversationsPagedCallable().futureCall(request); + // Do something. + for (Conversation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java new file mode 100644 index 000000000000..83e1e79bec50 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse; +import com.google.common.base.Strings; + +public class AsyncListConversationsPaged { + + public static void main(String[] args) throws Exception { + asyncListConversationsPaged(); + } + + public static void asyncListConversationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListConversationsResponse response = + conversationalSearchServiceClient.listConversationsCallable().call(request); + for (Conversation element : response.getConversationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_Paged_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversations.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversations.java new file mode 100644 index 000000000000..97186512b46e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversations.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest; + +public class SyncListConversations { + + public static void main(String[] args) throws Exception { + syncListConversations(); + } + + public static void syncListConversations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Conversation element : + conversationalSearchServiceClient.listConversations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java new file mode 100644 index 000000000000..2d9de10e2d1e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_Datastorename_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class SyncListConversationsDatastorename { + + public static void main(String[] args) throws Exception { + syncListConversationsDatastorename(); + } + + public static void syncListConversationsDatastorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + for (Conversation element : + conversationalSearchServiceClient.listConversations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_Datastorename_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsString.java new file mode 100644 index 000000000000..ece22916b32b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/listconversations/SyncListConversationsString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; + +public class SyncListConversationsString { + + public static void main(String[] args) throws Exception { + syncListConversationsString(); + } + + public static void syncListConversationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + for (Conversation element : + conversationalSearchServiceClient.listConversations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java new file mode 100644 index 000000000000..31b35dad5416 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConversation { + + public static void main(String[] args) throws Exception { + asyncUpdateConversation(); + } + + public static void asyncUpdateConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + UpdateConversationRequest request = + UpdateConversationRequest.newBuilder() + .setConversation(Conversation.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + conversationalSearchServiceClient.updateConversationCallable().futureCall(request); + // Do something. + Conversation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversation.java new file mode 100644 index 000000000000..2c5563278ef5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversation.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConversation { + + public static void main(String[] args) throws Exception { + syncUpdateConversation(); + } + + public static void syncUpdateConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + UpdateConversationRequest request = + UpdateConversationRequest.newBuilder() + .setConversation(Conversation.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Conversation response = conversationalSearchServiceClient.updateConversation(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java new file mode 100644 index 000000000000..c3dd3c0ab884 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_ConversationFieldmask_sync] +import com.google.cloud.discoveryengine.v1alpha.Conversation; +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConversationConversationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateConversationConversationFieldmask(); + } + + public static void syncUpdateConversationConversationFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + Conversation conversation = Conversation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Conversation response = + conversationalSearchServiceClient.updateConversation(conversation, updateMask); + } + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_ConversationFieldmask_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java new file mode 100644 index 000000000000..3045524a6297 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchServiceSettings_ConverseConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceSettings; +import java.time.Duration; + +public class SyncConverseConversation { + + public static void main(String[] args) throws Exception { + syncConverseConversation(); + } + + public static void syncConverseConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings.Builder conversationalSearchServiceSettingsBuilder = + ConversationalSearchServiceSettings.newBuilder(); + conversationalSearchServiceSettingsBuilder + .converseConversationSettings() + .setRetrySettings( + conversationalSearchServiceSettingsBuilder + .converseConversationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + conversationalSearchServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchServiceSettings_ConverseConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8a44fcbfaa6a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..d12de59f3db5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..345ab0da0baf --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/AsyncCreateDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/AsyncCreateDocument.java new file mode 100644 index 000000000000..439a8eb77ff8 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/AsyncCreateDocument.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_CreateDocument_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class AsyncCreateDocument { + + public static void main(String[] args) throws Exception { + asyncCreateDocument(); + } + + public static void asyncCreateDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + CreateDocumentRequest request = + CreateDocumentRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setDocument(Document.newBuilder().build()) + .setDocumentId("documentId-814940266") + .build(); + ApiFuture future = + documentServiceClient.createDocumentCallable().futureCall(request); + // Do something. + Document response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_CreateDocument_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocument.java new file mode 100644 index 000000000000..24b4e82ec100 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocument.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_CreateDocument_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.CreateDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncCreateDocument { + + public static void main(String[] args) throws Exception { + syncCreateDocument(); + } + + public static void syncCreateDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + CreateDocumentRequest request = + CreateDocumentRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setDocument(Document.newBuilder().build()) + .setDocumentId("documentId-814940266") + .build(); + Document response = documentServiceClient.createDocument(request); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_CreateDocument_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java new file mode 100644 index 000000000000..419d7e3b07ff --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_CreateDocument_BranchnameDocumentString_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncCreateDocumentBranchnameDocumentString { + + public static void main(String[] args) throws Exception { + syncCreateDocumentBranchnameDocumentString(); + } + + public static void syncCreateDocumentBranchnameDocumentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + Document response = documentServiceClient.createDocument(parent, document, documentId); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_CreateDocument_BranchnameDocumentString_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java new file mode 100644 index 000000000000..b781437695bc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_CreateDocument_StringDocumentString_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncCreateDocumentStringDocumentString { + + public static void main(String[] args) throws Exception { + syncCreateDocumentStringDocumentString(); + } + + public static void syncCreateDocumentStringDocumentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + String parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString(); + Document document = Document.newBuilder().build(); + String documentId = "documentId-814940266"; + Document response = documentServiceClient.createDocument(parent, document, documentId); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_CreateDocument_StringDocumentString_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/AsyncDeleteDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/AsyncDeleteDocument.java new file mode 100644 index 000000000000..194fcd9821ea --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/AsyncDeleteDocument.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteDocument { + + public static void main(String[] args) throws Exception { + asyncDeleteDocument(); + } + + public static void asyncDeleteDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + DeleteDocumentRequest request = + DeleteDocumentRequest.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .build(); + ApiFuture future = documentServiceClient.deleteDocumentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocument.java new file mode 100644 index 000000000000..07eaf0238a75 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocument.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_sync] +import com.google.cloud.discoveryengine.v1alpha.DeleteDocumentRequest; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDocument { + + public static void main(String[] args) throws Exception { + syncDeleteDocument(); + } + + public static void syncDeleteDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + DeleteDocumentRequest request = + DeleteDocumentRequest.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .build(); + documentServiceClient.deleteDocument(request); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java new file mode 100644 index 000000000000..fcb006a6953e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_Documentname_sync] +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDocumentDocumentname { + + public static void main(String[] args) throws Exception { + syncDeleteDocumentDocumentname(); + } + + public static void syncDeleteDocumentDocumentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + documentServiceClient.deleteDocument(name); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_Documentname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentString.java new file mode 100644 index 000000000000..2321dd6f0465 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/deletedocument/SyncDeleteDocumentString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_String_sync] +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDocumentString { + + public static void main(String[] args) throws Exception { + syncDeleteDocumentString(); + } + + public static void syncDeleteDocumentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + String name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString(); + documentServiceClient.deleteDocument(name); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/AsyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/AsyncGetDocument.java new file mode 100644 index 000000000000..93bfc340d985 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/AsyncGetDocument.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_GetDocument_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest; + +public class AsyncGetDocument { + + public static void main(String[] args) throws Exception { + asyncGetDocument(); + } + + public static void asyncGetDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + GetDocumentRequest request = + GetDocumentRequest.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .build(); + ApiFuture future = documentServiceClient.getDocumentCallable().futureCall(request); + // Do something. + Document response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_GetDocument_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocument.java new file mode 100644 index 000000000000..061cecb502d5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocument.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_GetDocument_sync] +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest; + +public class SyncGetDocument { + + public static void main(String[] args) throws Exception { + syncGetDocument(); + } + + public static void syncGetDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + GetDocumentRequest request = + GetDocumentRequest.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .build(); + Document response = documentServiceClient.getDocument(request); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_GetDocument_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentDocumentname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentDocumentname.java new file mode 100644 index 000000000000..f34d7683c1ee --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentDocumentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_GetDocument_Documentname_sync] +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncGetDocumentDocumentname { + + public static void main(String[] args) throws Exception { + syncGetDocumentDocumentname(); + } + + public static void syncGetDocumentDocumentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + DocumentName name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + Document response = documentServiceClient.getDocument(name); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_GetDocument_Documentname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentString.java new file mode 100644 index 000000000000..fb89416e1bd7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/getdocument/SyncGetDocumentString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_GetDocument_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncGetDocumentString { + + public static void main(String[] args) throws Exception { + syncGetDocumentString(); + } + + public static void syncGetDocumentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + String name = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString(); + Document response = documentServiceClient.getDocument(name); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_GetDocument_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocuments.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocuments.java new file mode 100644 index 000000000000..eeaa4d9ab359 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocuments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.longrunning.Operation; + +public class AsyncImportDocuments { + + public static void main(String[] args) throws Exception { + asyncImportDocuments(); + } + + public static void asyncImportDocuments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + ApiFuture future = + documentServiceClient.importDocumentsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocumentsLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocumentsLRO.java new file mode 100644 index 000000000000..047583e8f2de --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/AsyncImportDocumentsLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; + +public class AsyncImportDocumentsLRO { + + public static void main(String[] args) throws Exception { + asyncImportDocumentsLRO(); + } + + public static void asyncImportDocumentsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + OperationFuture future = + documentServiceClient.importDocumentsOperationCallable().futureCall(request); + // Do something. + ImportDocumentsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/SyncImportDocuments.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/SyncImportDocuments.java new file mode 100644 index 000000000000..94d8ac163205 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/importdocuments/SyncImportDocuments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; + +public class SyncImportDocuments { + + public static void main(String[] args) throws Exception { + syncImportDocuments(); + } + + public static void syncImportDocuments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ImportDocumentsRequest request = + ImportDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setAutoGenerateIds(true) + .setIdField("idField1629396127") + .build(); + ImportDocumentsResponse response = documentServiceClient.importDocumentsAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocuments.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocuments.java new file mode 100644 index 000000000000..807a25d933eb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocuments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ListDocuments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; + +public class AsyncListDocuments { + + public static void main(String[] args) throws Exception { + asyncListDocuments(); + } + + public static void asyncListDocuments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ListDocumentsRequest request = + ListDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + documentServiceClient.listDocumentsPagedCallable().futureCall(request); + // Do something. + for (Document element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ListDocuments_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocumentsPaged.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocumentsPaged.java new file mode 100644 index 000000000000..dd7f3a4b2d6e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/AsyncListDocumentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ListDocuments_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse; +import com.google.common.base.Strings; + +public class AsyncListDocumentsPaged { + + public static void main(String[] args) throws Exception { + asyncListDocumentsPaged(); + } + + public static void asyncListDocumentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ListDocumentsRequest request = + ListDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDocumentsResponse response = + documentServiceClient.listDocumentsCallable().call(request); + for (Document element : response.getDocumentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ListDocuments_Paged_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocuments.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocuments.java new file mode 100644 index 000000000000..2f8fe8fab93c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocuments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ListDocuments_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest; + +public class SyncListDocuments { + + public static void main(String[] args) throws Exception { + syncListDocuments(); + } + + public static void syncListDocuments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ListDocumentsRequest request = + ListDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Document element : documentServiceClient.listDocuments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ListDocuments_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsBranchname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsBranchname.java new file mode 100644 index 000000000000..8471a43b21b7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsBranchname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ListDocuments_Branchname_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncListDocumentsBranchname { + + public static void main(String[] args) throws Exception { + syncListDocumentsBranchname(); + } + + public static void syncListDocumentsBranchname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + BranchName parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]"); + for (Document element : documentServiceClient.listDocuments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ListDocuments_Branchname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsString.java new file mode 100644 index 000000000000..46bb4aaa6ece --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/listdocuments/SyncListDocumentsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_ListDocuments_String_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; + +public class SyncListDocumentsString { + + public static void main(String[] args) throws Exception { + syncListDocumentsString(); + } + + public static void syncListDocumentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + String parent = + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString(); + for (Document element : documentServiceClient.listDocuments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_ListDocuments_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java new file mode 100644 index 000000000000..6eba64ef18eb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.longrunning.Operation; + +public class AsyncPurgeDocuments { + + public static void main(String[] args) throws Exception { + asyncPurgeDocuments(); + } + + public static void asyncPurgeDocuments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + documentServiceClient.purgeDocumentsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java new file mode 100644 index 000000000000..68b796095192 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; + +public class AsyncPurgeDocumentsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeDocumentsLRO(); + } + + public static void asyncPurgeDocumentsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + documentServiceClient.purgeDocumentsOperationCallable().futureCall(request); + // Do something. + PurgeDocumentsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java new file mode 100644 index 000000000000..2b51f48da3e7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; + +public class SyncPurgeDocuments { + + public static void main(String[] args) throws Exception { + syncPurgeDocuments(); + } + + public static void syncPurgeDocuments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + PurgeDocumentsRequest request = + PurgeDocumentsRequest.newBuilder() + .setParent( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + PurgeDocumentsResponse response = documentServiceClient.purgeDocumentsAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java new file mode 100644 index 000000000000..dd27b1a95d44 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; + +public class AsyncUpdateDocument { + + public static void main(String[] args) throws Exception { + asyncUpdateDocument(); + } + + public static void asyncUpdateDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder() + .setDocument(Document.newBuilder().build()) + .setAllowMissing(true) + .build(); + ApiFuture future = + documentServiceClient.updateDocumentCallable().futureCall(request); + // Do something. + Document response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java new file mode 100644 index 000000000000..36cf8c1ef25f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_sync] +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; + +public class SyncUpdateDocument { + + public static void main(String[] args) throws Exception { + syncUpdateDocument(); + } + + public static void syncUpdateDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder() + .setDocument(Document.newBuilder().build()) + .setAllowMissing(true) + .build(); + Document response = documentServiceClient.updateDocument(request); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservicesettings/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservicesettings/getdocument/SyncGetDocument.java new file mode 100644 index 000000000000..cc7401614792 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservicesettings/getdocument/SyncGetDocument.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentServiceSettings_GetDocument_sync] +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceSettings; +import java.time.Duration; + +public class SyncGetDocument { + + public static void main(String[] args) throws Exception { + syncGetDocument(); + } + + public static void syncGetDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings.Builder documentServiceSettingsBuilder = + DocumentServiceSettings.newBuilder(); + documentServiceSettingsBuilder + .getDocumentSettings() + .setRetrySettings( + documentServiceSettingsBuilder + .getDocumentSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DocumentServiceSettings documentServiceSettings = documentServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_DocumentServiceSettings_GetDocument_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..935f8b9e8e89 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings recommendationServiceSettings = + RecommendationServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create(recommendationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_RecommendationService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..73c159063179 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings recommendationServiceSettings = + RecommendationServiceSettings.newHttpJsonBuilder().build(); + RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create(recommendationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_RecommendationService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a294a77db518 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings recommendationServiceSettings = + RecommendationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create(recommendationServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_RecommendationService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/AsyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/AsyncRecommend.java new file mode 100644 index 000000000000..35b565d7c02c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/AsyncRecommend.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationService_Recommend_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.RecommendRequest; +import com.google.cloud.discoveryengine.v1alpha.RecommendResponse; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.protobuf.Value; +import java.util.HashMap; + +public class AsyncRecommend { + + public static void main(String[] args) throws Exception { + asyncRecommend(); + } + + public static void asyncRecommend() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create()) { + RecommendRequest request = + RecommendRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setFilter("filter-1274492040") + .setValidateOnly(true) + .putAllParams(new HashMap()) + .putAllUserLabels(new HashMap()) + .build(); + ApiFuture future = + recommendationServiceClient.recommendCallable().futureCall(request); + // Do something. + RecommendResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_RecommendationService_Recommend_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/SyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/SyncRecommend.java new file mode 100644 index 000000000000..ea81d3fc1d47 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservice/recommend/SyncRecommend.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationService_Recommend_sync] +import com.google.cloud.discoveryengine.v1alpha.RecommendRequest; +import com.google.cloud.discoveryengine.v1alpha.RecommendResponse; +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.protobuf.Value; +import java.util.HashMap; + +public class SyncRecommend { + + public static void main(String[] args) throws Exception { + syncRecommend(); + } + + public static void syncRecommend() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RecommendationServiceClient recommendationServiceClient = + RecommendationServiceClient.create()) { + RecommendRequest request = + RecommendRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setFilter("filter-1274492040") + .setValidateOnly(true) + .putAllParams(new HashMap()) + .putAllUserLabels(new HashMap()) + .build(); + RecommendResponse response = recommendationServiceClient.recommend(request); + } + } +} +// [END discoveryengine_v1alpha_generated_RecommendationService_Recommend_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservicesettings/recommend/SyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservicesettings/recommend/SyncRecommend.java new file mode 100644 index 000000000000..bedbe15386fb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/recommendationservicesettings/recommend/SyncRecommend.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationServiceSettings_Recommend_sync] +import com.google.cloud.discoveryengine.v1alpha.RecommendationServiceSettings; +import java.time.Duration; + +public class SyncRecommend { + + public static void main(String[] args) throws Exception { + syncRecommend(); + } + + public static void syncRecommend() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceSettings.Builder recommendationServiceSettingsBuilder = + RecommendationServiceSettings.newBuilder(); + recommendationServiceSettingsBuilder + .recommendSettings() + .setRetrySettings( + recommendationServiceSettingsBuilder + .recommendSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + RecommendationServiceSettings recommendationServiceSettings = + recommendationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_RecommendationServiceSettings_Recommend_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..bcdc742c5dc0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..b0152c1b3a8c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newHttpJsonBuilder().build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..29d97e81e45c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings schemaServiceSettings = + SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchema.java new file mode 100644 index 000000000000..7a96d2286e27 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchema.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_CreateSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateSchema { + + public static void main(String[] args) throws Exception { + asyncCreateSchema(); + } + + public static void asyncCreateSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setSchema(Schema.newBuilder().build()) + .setSchemaId("schemaId-697673060") + .build(); + ApiFuture future = schemaServiceClient.createSchemaCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_CreateSchema_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchemaLRO.java new file mode 100644 index 000000000000..6d9b2ad915b2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/AsyncCreateSchemaLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_CreateSchema_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class AsyncCreateSchemaLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSchemaLRO(); + } + + public static void asyncCreateSchemaLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setSchema(Schema.newBuilder().build()) + .setSchemaId("schemaId-697673060") + .build(); + OperationFuture future = + schemaServiceClient.createSchemaOperationCallable().futureCall(request); + // Do something. + Schema response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_CreateSchema_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchema.java new file mode 100644 index 000000000000..603d717b0eeb --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchema.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_CreateSchema_sync] +import com.google.cloud.discoveryengine.v1alpha.CreateSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncCreateSchema { + + public static void main(String[] args) throws Exception { + syncCreateSchema(); + } + + public static void syncCreateSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setSchema(Schema.newBuilder().build()) + .setSchemaId("schemaId-697673060") + .build(); + Schema response = schemaServiceClient.createSchemaAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_CreateSchema_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java new file mode 100644 index 000000000000..a8c6f3d88539 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_CreateSchema_DatastorenameSchemaString_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncCreateSchemaDatastorenameSchemaString { + + public static void main(String[] args) throws Exception { + syncCreateSchemaDatastorenameSchemaString(); + } + + public static void syncCreateSchemaDatastorenameSchemaString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + Schema response = schemaServiceClient.createSchemaAsync(parent, schema, schemaId).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_CreateSchema_DatastorenameSchemaString_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java new file mode 100644 index 000000000000..588919deceb5 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_CreateSchema_StringSchemaString_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncCreateSchemaStringSchemaString { + + public static void main(String[] args) throws Exception { + syncCreateSchemaStringSchemaString(); + } + + public static void syncCreateSchemaStringSchemaString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + Schema response = schemaServiceClient.createSchemaAsync(parent, schema, schemaId).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_CreateSchema_StringSchemaString_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchema.java new file mode 100644 index 000000000000..242940c87f9f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchema.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteSchema { + + public static void main(String[] args) throws Exception { + asyncDeleteSchema(); + } + + public static void asyncDeleteSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .build(); + ApiFuture future = schemaServiceClient.deleteSchemaCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java new file mode 100644 index 000000000000..a07296d72415 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteSchemaLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSchemaLRO(); + } + + public static void asyncDeleteSchemaLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .build(); + OperationFuture future = + schemaServiceClient.deleteSchemaOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchema.java new file mode 100644 index 000000000000..dcc27f913c7b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchema.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_sync] +import com.google.cloud.discoveryengine.v1alpha.DeleteSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSchema { + + public static void main(String[] args) throws Exception { + syncDeleteSchema(); + } + + public static void syncDeleteSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .build(); + schemaServiceClient.deleteSchemaAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java new file mode 100644 index 000000000000..5ff33a9dd6ac --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_Schemaname_sync] +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSchemaSchemaname { + + public static void main(String[] args) throws Exception { + syncDeleteSchemaSchemaname(); + } + + public static void syncDeleteSchemaSchemaname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + schemaServiceClient.deleteSchemaAsync(name).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_Schemaname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaString.java new file mode 100644 index 000000000000..f81eee36bf3f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/deleteschema/SyncDeleteSchemaString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_String_sync] +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteSchemaString { + + public static void main(String[] args) throws Exception { + syncDeleteSchemaString(); + } + + public static void syncDeleteSchemaString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString(); + schemaServiceClient.deleteSchemaAsync(name).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/AsyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/AsyncGetSchema.java new file mode 100644 index 000000000000..bacbb204686c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/AsyncGetSchema.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_GetSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class AsyncGetSchema { + + public static void main(String[] args) throws Exception { + asyncGetSchema(); + } + + public static void asyncGetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + GetSchemaRequest request = + GetSchemaRequest.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .build(); + ApiFuture future = schemaServiceClient.getSchemaCallable().futureCall(request); + // Do something. + Schema response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_GetSchema_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchema.java new file mode 100644 index 000000000000..b240bf3d81c0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchema.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_GetSchema_sync] +import com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncGetSchema { + + public static void main(String[] args) throws Exception { + syncGetSchema(); + } + + public static void syncGetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + GetSchemaRequest request = + GetSchemaRequest.newBuilder() + .setName( + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString()) + .build(); + Schema response = schemaServiceClient.getSchema(request); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_GetSchema_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaSchemaname.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaSchemaname.java new file mode 100644 index 000000000000..ebd415234769 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaSchemaname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_GetSchema_Schemaname_sync] +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncGetSchemaSchemaname { + + public static void main(String[] args) throws Exception { + syncGetSchemaSchemaname(); + } + + public static void syncGetSchemaSchemaname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + SchemaName name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]"); + Schema response = schemaServiceClient.getSchema(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_GetSchema_Schemaname_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaString.java new file mode 100644 index 000000000000..2bd7bc29acf4 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/getschema/SyncGetSchemaString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_GetSchema_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaName; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncGetSchemaString { + + public static void main(String[] args) throws Exception { + syncGetSchemaString(); + } + + public static void syncGetSchemaString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String name = + SchemaName.ofProjectLocationDataStoreSchemaName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SCHEMA]") + .toString(); + Schema response = schemaServiceClient.getSchema(name); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_GetSchema_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemas.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemas.java new file mode 100644 index 000000000000..c1a589deaf0c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemas.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_ListSchemas_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class AsyncListSchemas { + + public static void main(String[] args) throws Exception { + asyncListSchemas(); + } + + public static void asyncListSchemas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request); + // Do something. + for (Schema element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_ListSchemas_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemasPaged.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemasPaged.java new file mode 100644 index 000000000000..76c1217713cc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/AsyncListSchemasPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_ListSchemas_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.common.base.Strings; + +public class AsyncListSchemasPaged { + + public static void main(String[] args) throws Exception { + asyncListSchemasPaged(); + } + + public static void asyncListSchemasPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request); + for (Schema element : response.getSchemasList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_ListSchemas_Paged_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemas.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemas.java new file mode 100644 index 000000000000..47db3fbb789f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemas.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_ListSchemas_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncListSchemas { + + public static void main(String[] args) throws Exception { + syncListSchemas(); + } + + public static void syncListSchemas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Schema element : schemaServiceClient.listSchemas(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_ListSchemas_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasDatastorename.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasDatastorename.java new file mode 100644 index 000000000000..845a5a0b1526 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasDatastorename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_ListSchemas_Datastorename_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncListSchemasDatastorename { + + public static void main(String[] args) throws Exception { + syncListSchemasDatastorename(); + } + + public static void syncListSchemasDatastorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_ListSchemas_Datastorename_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasString.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasString.java new file mode 100644 index 000000000000..1e9b950ea255 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/listschemas/SyncListSchemasString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_ListSchemas_String_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; + +public class SyncListSchemasString { + + public static void main(String[] args) throws Exception { + syncListSchemasString(); + } + + public static void syncListSchemasString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_ListSchemas_String_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchema.java new file mode 100644 index 000000000000..184788033dbc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchema.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateSchema { + + public static void main(String[] args) throws Exception { + asyncUpdateSchema(); + } + + public static void asyncUpdateSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema(Schema.newBuilder().build()) + .setAllowMissing(true) + .build(); + ApiFuture future = schemaServiceClient.updateSchemaCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchemaLRO.java new file mode 100644 index 000000000000..c9d5e44e2f67 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/AsyncUpdateSchemaLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaMetadata; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; + +public class AsyncUpdateSchemaLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSchemaLRO(); + } + + public static void asyncUpdateSchemaLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema(Schema.newBuilder().build()) + .setAllowMissing(true) + .build(); + OperationFuture future = + schemaServiceClient.updateSchemaOperationCallable().futureCall(request); + // Do something. + Schema response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/SyncUpdateSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/SyncUpdateSchema.java new file mode 100644 index 000000000000..f2ebd0eccffc --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservice/updateschema/SyncUpdateSchema.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_sync] +import com.google.cloud.discoveryengine.v1alpha.Schema; +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest; + +public class SyncUpdateSchema { + + public static void main(String[] args) throws Exception { + syncUpdateSchema(); + } + + public static void syncUpdateSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + UpdateSchemaRequest request = + UpdateSchemaRequest.newBuilder() + .setSchema(Schema.newBuilder().build()) + .setAllowMissing(true) + .build(); + Schema response = schemaServiceClient.updateSchemaAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservicesettings/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservicesettings/getschema/SyncGetSchema.java new file mode 100644 index 000000000000..1864fe9de7bf --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/schemaservicesettings/getschema/SyncGetSchema.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SchemaServiceSettings_GetSchema_sync] +import com.google.cloud.discoveryengine.v1alpha.SchemaServiceSettings; +import java.time.Duration; + +public class SyncGetSchema { + + public static void main(String[] args) throws Exception { + syncGetSchema(); + } + + public static void syncGetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder(); + schemaServiceSettingsBuilder + .getSchemaSettings() + .setRetrySettings( + schemaServiceSettingsBuilder + .getSchemaSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SchemaServiceSettings_GetSchema_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..914e96be0169 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..5c3e2ef9de66 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newHttpJsonBuilder().build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..cc9e5fa53eea --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings searchServiceSettings = + SearchServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SearchServiceClient searchServiceClient = SearchServiceClient.create(searchServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java new file mode 100644 index 000000000000..5156745be826 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Search_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.UserInfo; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncSearch { + + public static void main(String[] args) throws Exception { + asyncSearch(); + } + + public static void asyncSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + ApiFuture future = + searchServiceClient.searchPagedCallable().futureCall(request); + // Do something. + for (SearchResponse.SearchResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Search_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java new file mode 100644 index 000000000000..5dab6d1236e6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Search_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.UserInfo; +import com.google.common.base.Strings; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncSearchPaged { + + public static void main(String[] args) throws Exception { + asyncSearchPaged(); + } + + public static void asyncSearchPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + while (true) { + SearchResponse response = searchServiceClient.searchCallable().call(request); + for (SearchResponse.SearchResult element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Search_Paged_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java new file mode 100644 index 000000000000..e23bc7a6f1b9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java @@ -0,0 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchService_Search_sync] +import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.SearchRequest; +import com.google.cloud.discoveryengine.v1alpha.SearchResponse; +import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.UserInfo; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.HashMap; + +public class SyncSearch { + + public static void main(String[] args) throws Exception { + syncSearch(); + } + + public static void syncSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SearchServiceClient searchServiceClient = SearchServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setBranch( + BranchName.ofProjectLocationDataStoreBranchName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") + .toString()) + .setQuery("query107944136") + .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOffset(-1019779949) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setUserInfo(UserInfo.newBuilder().build()) + .addAllFacetSpecs(new ArrayList()) + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) + .putAllParams(new HashMap()) + .setQueryExpansionSpec(SearchRequest.QueryExpansionSpec.newBuilder().build()) + .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) + .setUserPseudoId("userPseudoId-1155274652") + .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setEmbeddingSpec(SearchRequest.EmbeddingSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setSafeSearch(true) + .putAllUserLabels(new HashMap()) + .build(); + for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_SearchService_Search_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservicesettings/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservicesettings/search/SyncSearch.java new file mode 100644 index 000000000000..a66b7500ae93 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservicesettings/search/SyncSearch.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SearchServiceSettings_Search_sync] +import com.google.cloud.discoveryengine.v1alpha.SearchServiceSettings; +import java.time.Duration; + +public class SyncSearch { + + public static void main(String[] args) throws Exception { + syncSearch(); + } + + public static void syncSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceSettings.Builder searchServiceSettingsBuilder = SearchServiceSettings.newBuilder(); + searchServiceSettingsBuilder + .searchSettings() + .setRetrySettings( + searchServiceSettingsBuilder + .searchSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SearchServiceSettings searchServiceSettings = searchServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SearchServiceSettings_Search_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..2ed6bea9a17b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + SiteSearchEngineServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..d2a41ef3b6ae --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + SiteSearchEngineServiceSettings.newHttpJsonBuilder().build(); + SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..1df29eaf95e0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + SiteSearchEngineServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create(siteSearchEngineServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java new file mode 100644 index 000000000000..9cb0e34566f0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUris.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineName; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncRecrawlUris { + + public static void main(String[] args) throws Exception { + asyncRecrawlUris(); + } + + public static void asyncRecrawlUris() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create()) { + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + ApiFuture future = + siteSearchEngineServiceClient.recrawlUrisCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java new file mode 100644 index 000000000000..bac950d79bbf --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/AsyncRecrawlUrisLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineName; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import java.util.ArrayList; + +public class AsyncRecrawlUrisLRO { + + public static void main(String[] args) throws Exception { + asyncRecrawlUrisLRO(); + } + + public static void asyncRecrawlUrisLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create()) { + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + OperationFuture future = + siteSearchEngineServiceClient.recrawlUrisOperationCallable().futureCall(request); + // Do something. + RecrawlUrisResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/SyncRecrawlUris.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/SyncRecrawlUris.java new file mode 100644 index 000000000000..8eb02c376fa1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservice/recrawluris/SyncRecrawlUris.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_sync] +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest; +import com.google.cloud.discoveryengine.v1alpha.RecrawlUrisResponse; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineName; +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient; +import java.util.ArrayList; + +public class SyncRecrawlUris { + + public static void main(String[] args) throws Exception { + syncRecrawlUris(); + } + + public static void syncRecrawlUris() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SiteSearchEngineServiceClient siteSearchEngineServiceClient = + SiteSearchEngineServiceClient.create()) { + RecrawlUrisRequest request = + RecrawlUrisRequest.newBuilder() + .setSiteSearchEngine( + SiteSearchEngineName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .addAllUris(new ArrayList()) + .build(); + RecrawlUrisResponse response = siteSearchEngineServiceClient.recrawlUrisAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservicesettings/recrawluris/SyncRecrawlUris.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservicesettings/recrawluris/SyncRecrawlUris.java new file mode 100644 index 000000000000..63102988a039 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/sitesearchengineservicesettings/recrawluris/SyncRecrawlUris.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineServiceSettings_RecrawlUris_sync] +import com.google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceSettings; +import java.time.Duration; + +public class SyncRecrawlUris { + + public static void main(String[] args) throws Exception { + syncRecrawlUris(); + } + + public static void syncRecrawlUris() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceSettings.Builder siteSearchEngineServiceSettingsBuilder = + SiteSearchEngineServiceSettings.newBuilder(); + siteSearchEngineServiceSettingsBuilder + .recrawlUrisSettings() + .setRetrySettings( + siteSearchEngineServiceSettingsBuilder + .recrawlUrisSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SiteSearchEngineServiceSettings siteSearchEngineServiceSettings = + siteSearchEngineServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineServiceSettings_RecrawlUris_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java new file mode 100644 index 000000000000..d19923a4351d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_CompletionServiceStubSettings_CompleteQuery_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStubSettings; +import java.time.Duration; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + public static void syncCompleteQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CompletionServiceStubSettings.Builder completionServiceSettingsBuilder = + CompletionServiceStubSettings.newBuilder(); + completionServiceSettingsBuilder + .completeQuerySettings() + .setRetrySettings( + completionServiceSettingsBuilder + .completeQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompletionServiceStubSettings completionServiceSettings = + completionServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_CompletionServiceStubSettings_CompleteQuery_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java new file mode 100644 index 000000000000..94a5577b065d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_ConversationalSearchServiceStubSettings_ConverseConversation_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.ConversationalSearchServiceStubSettings; +import java.time.Duration; + +public class SyncConverseConversation { + + public static void main(String[] args) throws Exception { + syncConverseConversation(); + } + + public static void syncConverseConversation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceStubSettings.Builder conversationalSearchServiceSettingsBuilder = + ConversationalSearchServiceStubSettings.newBuilder(); + conversationalSearchServiceSettingsBuilder + .converseConversationSettings() + .setRetrySettings( + conversationalSearchServiceSettingsBuilder + .converseConversationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConversationalSearchServiceStubSettings conversationalSearchServiceSettings = + conversationalSearchServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_ConversationalSearchServiceStubSettings_ConverseConversation_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/documentservicestubsettings/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/documentservicestubsettings/getdocument/SyncGetDocument.java new file mode 100644 index 000000000000..105ca62e705b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/documentservicestubsettings/getdocument/SyncGetDocument.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_DocumentServiceStubSettings_GetDocument_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.DocumentServiceStubSettings; +import java.time.Duration; + +public class SyncGetDocument { + + public static void main(String[] args) throws Exception { + syncGetDocument(); + } + + public static void syncGetDocument() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceStubSettings.Builder documentServiceSettingsBuilder = + DocumentServiceStubSettings.newBuilder(); + documentServiceSettingsBuilder + .getDocumentSettings() + .setRetrySettings( + documentServiceSettingsBuilder + .getDocumentSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DocumentServiceStubSettings documentServiceSettings = documentServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_DocumentServiceStubSettings_GetDocument_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/recommendationservicestubsettings/recommend/SyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/recommendationservicestubsettings/recommend/SyncRecommend.java new file mode 100644 index 000000000000..ab94e4ededa3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/recommendationservicestubsettings/recommend/SyncRecommend.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_RecommendationServiceStubSettings_Recommend_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.RecommendationServiceStubSettings; +import java.time.Duration; + +public class SyncRecommend { + + public static void main(String[] args) throws Exception { + syncRecommend(); + } + + public static void syncRecommend() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RecommendationServiceStubSettings.Builder recommendationServiceSettingsBuilder = + RecommendationServiceStubSettings.newBuilder(); + recommendationServiceSettingsBuilder + .recommendSettings() + .setRetrySettings( + recommendationServiceSettingsBuilder + .recommendSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + RecommendationServiceStubSettings recommendationServiceSettings = + recommendationServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_RecommendationServiceStubSettings_Recommend_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/schemaservicestubsettings/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/schemaservicestubsettings/getschema/SyncGetSchema.java new file mode 100644 index 000000000000..a40e4c1396a0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/schemaservicestubsettings/getschema/SyncGetSchema.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_SchemaServiceStubSettings_GetSchema_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.SchemaServiceStubSettings; +import java.time.Duration; + +public class SyncGetSchema { + + public static void main(String[] args) throws Exception { + syncGetSchema(); + } + + public static void syncGetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder = + SchemaServiceStubSettings.newBuilder(); + schemaServiceSettingsBuilder + .getSchemaSettings() + .setRetrySettings( + schemaServiceSettingsBuilder + .getSchemaSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SchemaServiceStubSettings_GetSchema_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/searchservicestubsettings/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/searchservicestubsettings/search/SyncSearch.java new file mode 100644 index 000000000000..705f3f69dcc9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/searchservicestubsettings/search/SyncSearch.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_SearchServiceStubSettings_Search_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.SearchServiceStubSettings; +import java.time.Duration; + +public class SyncSearch { + + public static void main(String[] args) throws Exception { + syncSearch(); + } + + public static void syncSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SearchServiceStubSettings.Builder searchServiceSettingsBuilder = + SearchServiceStubSettings.newBuilder(); + searchServiceSettingsBuilder + .searchSettings() + .setRetrySettings( + searchServiceSettingsBuilder + .searchSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SearchServiceStubSettings searchServiceSettings = searchServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SearchServiceStubSettings_Search_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/sitesearchengineservicestubsettings/recrawluris/SyncRecrawlUris.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/sitesearchengineservicestubsettings/recrawluris/SyncRecrawlUris.java new file mode 100644 index 000000000000..58a92e336437 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/sitesearchengineservicestubsettings/recrawluris/SyncRecrawlUris.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_SiteSearchEngineServiceStubSettings_RecrawlUris_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.SiteSearchEngineServiceStubSettings; +import java.time.Duration; + +public class SyncRecrawlUris { + + public static void main(String[] args) throws Exception { + syncRecrawlUris(); + } + + public static void syncRecrawlUris() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SiteSearchEngineServiceStubSettings.Builder siteSearchEngineServiceSettingsBuilder = + SiteSearchEngineServiceStubSettings.newBuilder(); + siteSearchEngineServiceSettingsBuilder + .recrawlUrisSettings() + .setRetrySettings( + siteSearchEngineServiceSettingsBuilder + .recrawlUrisSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SiteSearchEngineServiceStubSettings siteSearchEngineServiceSettings = + siteSearchEngineServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_SiteSearchEngineServiceStubSettings_RecrawlUris_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java new file mode 100644 index 000000000000..81b2ff95b5b3 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_UserEventServiceStubSettings_WriteUserEvent_sync] +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceStubSettings.Builder userEventServiceSettingsBuilder = + UserEventServiceStubSettings.newBuilder(); + userEventServiceSettingsBuilder + .writeUserEventSettings() + .setRetrySettings( + userEventServiceSettingsBuilder + .writeUserEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + UserEventServiceStubSettings userEventServiceSettings = userEventServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_UserEventServiceStubSettings_WriteUserEvent_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/AsyncCollectUserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/AsyncCollectUserEvent.java new file mode 100644 index 000000000000..4e4c1f7269b6 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/AsyncCollectUserEvent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_CollectUserEvent_async] +import com.google.api.HttpBody; +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + ApiFuture future = + userEventServiceClient.collectUserEventCallable().futureCall(request); + // Do something. + HttpBody response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_CollectUserEvent_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/SyncCollectUserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/SyncCollectUserEvent.java new file mode 100644 index 000000000000..f9b11a7abc4e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/collectuserevent/SyncCollectUserEvent.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_CollectUserEvent_sync] +import com.google.api.HttpBody; +import com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + HttpBody response = userEventServiceClient.collectUserEvent(request); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_CollectUserEvent_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..41b0a03b5085 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..1388644c00a2 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newHttpJsonBuilder().build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..461bc05b8e6e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEvents.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEvents.java new file mode 100644 index 000000000000..57822f42121f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEvents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ApiFuture future = + userEventServiceClient.importUserEventsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEventsLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEventsLRO.java new file mode 100644 index 000000000000..f83503b75790 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/AsyncImportUserEventsLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + OperationFuture future = + userEventServiceClient.importUserEventsOperationCallable().futureCall(request); + // Do something. + ImportUserEventsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/SyncImportUserEvents.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/SyncImportUserEvents.java new file mode 100644 index 000000000000..aa08e1423f4b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/importuserevents/SyncImportUserEvents.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ImportUserEventsResponse response = + userEventServiceClient.importUserEventsAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java new file mode 100644 index 000000000000..12ac07358185 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEvents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + userEventServiceClient.purgeUserEventsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java new file mode 100644 index 000000000000..cce940c93a0e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/AsyncPurgeUserEventsLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + userEventServiceClient.purgeUserEventsOperationCallable().futureCall(request); + // Do something. + PurgeUserEventsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_LRO_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/SyncPurgeUserEvents.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/SyncPurgeUserEvents.java new file mode 100644 index 000000000000..2612cc84d480 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/purgeuserevents/SyncPurgeUserEvents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + PurgeUserEventsResponse response = userEventServiceClient.purgeUserEventsAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/AsyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/AsyncWriteUserEvent.java new file mode 100644 index 000000000000..605d9fb95535 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/AsyncWriteUserEvent.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_WriteUserEvent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + ApiFuture future = + userEventServiceClient.writeUserEventCallable().futureCall(request); + // Do something. + UserEvent response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_WriteUserEvent_async] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/SyncWriteUserEvent.java new file mode 100644 index 000000000000..c4566cd8db1b --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservice/writeuserevent/SyncWriteUserEvent.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventService_WriteUserEvent_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.UserEvent; +import com.google.cloud.discoveryengine.v1alpha.UserEventServiceClient; +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + UserEvent response = userEventServiceClient.writeUserEvent(request); + } + } +} +// [END discoveryengine_v1alpha_generated_UserEventService_WriteUserEvent_sync] diff --git a/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java new file mode 100644 index 000000000000..751c88433e00 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1alpha/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_UserEventServiceSettings_WriteUserEvent_sync] +import com.google.cloud.discoveryengine.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserEventServiceSettings.Builder userEventServiceSettingsBuilder = + UserEventServiceSettings.newBuilder(); + userEventServiceSettingsBuilder + .writeUserEventSettings() + .setRetrySettings( + userEventServiceSettingsBuilder + .writeUserEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + UserEventServiceSettings userEventServiceSettings = userEventServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_UserEventServiceSettings_WriteUserEvent_sync] diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java index d0311629e7b7..f042ad424d09 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java @@ -25,6 +25,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.CompletionServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java index aa84b4596926..069ae4c0934d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java @@ -28,6 +28,7 @@ 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.discoveryengine.v1beta.stub.ConversationalSearchServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java index 28ce4aa6ab75..1c265418dd96 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.DocumentServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java index 3c8effeb6f90..b4cc286cb545 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java @@ -25,6 +25,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.RecommendationServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java index 9915822d4cf1..eb24b9f3ac2a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.SchemaServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java index 703648372f55..9d17da7c1d2e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java @@ -28,6 +28,7 @@ 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.discoveryengine.v1beta.stub.SearchServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java index a8f8c998ff9c..1c42f89ced96 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java @@ -27,6 +27,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.UserEventServiceStubSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java index 5261180f88ee..c1ace6f4eb87 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java @@ -30,6 +30,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java index 31eb1c380e15..f6a78c08053d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java @@ -40,6 +40,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java index daca57572c35..1351d4032542 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDocumentServiceStub.java @@ -46,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java index 73dd08d0650f..78f3670ba940 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcRecommendationServiceStub.java @@ -30,6 +30,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.java index 547e55b417c9..75798a4c34cf 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSchemaServiceStub.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/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.java index e17e3f402128..64aaf6a0a3a8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchServiceStub.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/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java index 569db696cd47..c8d3a6dfae61 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserEventServiceStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java index 59c78211b674..d5d93a8cf126 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonRecommendationServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java index 030e6dc0ac6e..26838831e41e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceCallableFactory.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceCallableFactory.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceCallableFactory.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceCallableFactory.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java similarity index 99% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java index 88e88befde61..2d741bbec232 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockDocumentServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockRecommendationServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSchemaServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventService.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventService.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventService.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventService.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserEventServiceImpl.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java b/owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java similarity index 100% rename from java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java rename to owl-bot-staging/java-discoveryengine/v1beta/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java similarity index 53% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java index a72459291e47..11bb567b5141 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for Auto-Completion.
  * 
@@ -32,101 +15,85 @@ public final class CompletionServiceGrpc { private CompletionServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.CompletionService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.CompletionService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse> - getCompleteQueryMethod; + private static volatile io.grpc.MethodDescriptor getCompleteQueryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CompleteQuery", requestType = com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.class, responseType = com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse> - getCompleteQueryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse> - getCompleteQueryMethod; + public static io.grpc.MethodDescriptor getCompleteQueryMethod() { + io.grpc.MethodDescriptor getCompleteQueryMethod; if ((getCompleteQueryMethod = CompletionServiceGrpc.getCompleteQueryMethod) == null) { synchronized (CompletionServiceGrpc.class) { if ((getCompleteQueryMethod = CompletionServiceGrpc.getCompleteQueryMethod) == null) { - CompletionServiceGrpc.getCompleteQueryMethod = - getCompleteQueryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CompletionServiceMethodDescriptorSupplier("CompleteQuery")) - .build(); + CompletionServiceGrpc.getCompleteQueryMethod = getCompleteQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.getDefaultInstance())) + .setSchemaDescriptor(new CompletionServiceMethodDescriptorSupplier("CompleteQuery")) + .build(); } } } return getCompleteQueryMethod; } - /** 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 CompletionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CompletionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CompletionServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceStub(channel, callOptions); + } + }; return CompletionServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static CompletionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static CompletionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CompletionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CompletionServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceBlockingStub(channel, callOptions); + } + }; return CompletionServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CompletionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CompletionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CompletionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CompletionServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CompletionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionServiceFutureStub(channel, callOptions); + } + }; return CompletionServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for Auto-Completion.
    * 
@@ -134,47 +101,40 @@ public CompletionServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - default void completeQuery( - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteQueryMethod(), responseObserver); + default void completeQuery(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteQueryMethod(), responseObserver); } } /** * Base class for the server implementation of the service CompletionService. - * *
    * Service for Auto-Completion.
    * 
*/ - public abstract static class CompletionServiceImplBase + public static abstract class CompletionServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return CompletionServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service CompletionService. - * *
    * Service for Auto-Completion.
    * 
*/ public static final class CompletionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CompletionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CompletionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -185,26 +145,19 @@ protected CompletionServiceStub build( } /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - public void completeQuery( - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void completeQuery(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service CompletionService. - * *
    * Service for Auto-Completion.
    * 
@@ -223,14 +176,11 @@ protected CompletionServiceBlockingStub build( } /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse completeQuery( - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request) { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse completeQuery(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } @@ -238,14 +188,14 @@ public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse completeQue /** * A stub to allow clients to do ListenableFuture-style rpc calls to service CompletionService. - * *
    * Service for Auto-Completion.
    * 
*/ public static final class CompletionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private CompletionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CompletionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -256,15 +206,12 @@ protected CompletionServiceFutureStub build( } /** - * - * *
      * Completes the specified user input with keyword suggestions.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse> - completeQuery(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request) { + public com.google.common.util.concurrent.ListenableFuture completeQuery( + com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request); } @@ -272,11 +219,11 @@ protected CompletionServiceFutureStub build( private static final int METHODID_COMPLETE_QUERY = 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 AsyncService serviceImpl; private final int methodId; @@ -290,11 +237,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COMPLETE_QUERY: - serviceImpl.completeQuery( - (com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse>) - responseObserver); + serviceImpl.completeQuery((com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -315,18 +259,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCompleteQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse>( - service, METHODID_COMPLETE_QUERY))) + getCompleteQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest, + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse>( + service, METHODID_COMPLETE_QUERY))) .build(); } - private abstract static class CompletionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CompletionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CompletionServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -368,12 +311,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CompletionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) - .addMethod(getCompleteQueryMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) + .addMethod(getCompleteQueryMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java new file mode 100644 index 000000000000..604d5d1443d1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java @@ -0,0 +1,789 @@ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for conversational search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConversationalSearchServiceGrpc { + + private ConversationalSearchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.ConversationalSearchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getConverseConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConverseConversation", + requestType = com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getConverseConversationMethod() { + io.grpc.MethodDescriptor getConverseConversationMethod; + if ((getConverseConversationMethod = ConversationalSearchServiceGrpc.getConverseConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getConverseConversationMethod = ConversationalSearchServiceGrpc.getConverseConversationMethod) == null) { + ConversationalSearchServiceGrpc.getConverseConversationMethod = getConverseConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConverseConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("ConverseConversation")) + .build(); + } + } + } + return getConverseConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversation", + requestType = com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConversationMethod() { + io.grpc.MethodDescriptor getCreateConversationMethod; + if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getCreateConversationMethod = ConversationalSearchServiceGrpc.getCreateConversationMethod) == null) { + ConversationalSearchServiceGrpc.getCreateConversationMethod = getCreateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("CreateConversation")) + .build(); + } + } + } + return getCreateConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConversationMethod() { + io.grpc.MethodDescriptor getDeleteConversationMethod; + if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getDeleteConversationMethod = ConversationalSearchServiceGrpc.getDeleteConversationMethod) == null) { + ConversationalSearchServiceGrpc.getDeleteConversationMethod = getDeleteConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("DeleteConversation")) + .build(); + } + } + } + return getDeleteConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversation", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConversationMethod() { + io.grpc.MethodDescriptor getUpdateConversationMethod; + if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getUpdateConversationMethod = ConversationalSearchServiceGrpc.getUpdateConversationMethod) == null) { + ConversationalSearchServiceGrpc.getUpdateConversationMethod = getUpdateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("UpdateConversation")) + .build(); + } + } + } + return getUpdateConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversation", + requestType = com.google.cloud.discoveryengine.v1beta.GetConversationRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConversationMethod() { + io.grpc.MethodDescriptor getGetConversationMethod; + if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getGetConversationMethod = ConversationalSearchServiceGrpc.getGetConversationMethod) == null) { + ConversationalSearchServiceGrpc.getGetConversationMethod = getGetConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("GetConversation")) + .build(); + } + } + } + return getGetConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversations", + requestType = com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConversationsMethod() { + io.grpc.MethodDescriptor getListConversationsMethod; + if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getListConversationsMethod = ConversationalSearchServiceGrpc.getListConversationsMethod) == null) { + ConversationalSearchServiceGrpc.getListConversationsMethod = getListConversationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationalSearchServiceMethodDescriptorSupplier("ListConversations")) + .build(); + } + } + } + return getListConversationsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + }; + return ConversationalSearchServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConversationalSearchServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConversationalSearchServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + }; + return ConversationalSearchServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for conversational search.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Converses a conversation.
+     * 
+ */ + default void converseConversation(com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConverseConversationMethod(), responseObserver); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + default void createConversation(com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversationMethod(), responseObserver); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + default void deleteConversation(com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConversationMethod(), responseObserver); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + default void updateConversation(com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConversationMethod(), responseObserver); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + default void getConversation(com.google.cloud.discoveryengine.v1beta.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversationMethod(), responseObserver); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
+     * 
+ */ + default void listConversations(com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversationsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static abstract class ConversationalSearchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ConversationalSearchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConversationalSearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public void converseConversation(com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public void createConversation(com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public void deleteConversation(com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public void updateConversation(com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public void getConversation(com.google.cloud.discoveryengine.v1beta.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
+     * 
+ */ + public void listConversations(com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse converseConversation(com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getConverseConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Conversation createConversation(com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversation(com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Conversation updateConversation(com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Conversation getConversation(com.google.cloud.discoveryengine.v1beta.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse listConversations(com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversationsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ConversationalSearchService. + *
+   * Service for conversational search.
+   * 
+ */ + public static final class ConversationalSearchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConversationalSearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Converses a conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture converseConversation( + com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getConverseConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * create already exists, an ALREADY_EXISTS error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConversation( + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Conversation.
+     * If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to
+     * delete does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConversation( + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Conversation.
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action
+     * type cannot be changed. If the
+     * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConversation( + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConversation( + com.google.cloud.discoveryengine.v1beta.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all Conversations by their parent
+     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConversations( + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CONVERSE_CONVERSATION = 0; + private static final int METHODID_CREATE_CONVERSATION = 1; + private static final int METHODID_DELETE_CONVERSATION = 2; + private static final int METHODID_UPDATE_CONVERSATION = 3; + private static final int METHODID_GET_CONVERSATION = 4; + private static final int METHODID_LIST_CONVERSATIONS = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CONVERSE_CONVERSATION: + serviceImpl.converseConversation((com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONVERSATION: + serviceImpl.createConversation((com.google.cloud.discoveryengine.v1beta.CreateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONVERSATION: + serviceImpl.deleteConversation((com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONVERSATION: + serviceImpl.updateConversation((com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONVERSATION: + serviceImpl.getConversation((com.google.cloud.discoveryengine.v1beta.GetConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSATIONS: + serviceImpl.listConversations((com.google.cloud.discoveryengine.v1beta.ListConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getConverseConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest, + com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse>( + service, METHODID_CONVERSE_CONVERSATION))) + .addMethod( + getCreateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest, + com.google.cloud.discoveryengine.v1beta.Conversation>( + service, METHODID_CREATE_CONVERSATION))) + .addMethod( + getDeleteConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_CONVERSATION))) + .addMethod( + getUpdateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest, + com.google.cloud.discoveryengine.v1beta.Conversation>( + service, METHODID_UPDATE_CONVERSATION))) + .addMethod( + getGetConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetConversationRequest, + com.google.cloud.discoveryengine.v1beta.Conversation>( + service, METHODID_GET_CONVERSATION))) + .addMethod( + getListConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest, + com.google.cloud.discoveryengine.v1beta.ListConversationsResponse>( + service, METHODID_LIST_CONVERSATIONS))) + .build(); + } + + private static abstract class ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConversationalSearchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConversationalSearchService"); + } + } + + private static final class ConversationalSearchServiceFileDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier { + ConversationalSearchServiceFileDescriptorSupplier() {} + } + + private static final class ConversationalSearchServiceMethodDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ConversationalSearchServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) + .addMethod(getConverseConversationMethod()) + .addMethod(getCreateConversationMethod()) + .addMethod(getDeleteConversationMethod()) + .addMethod(getUpdateConversationMethod()) + .addMethod(getGetConversationMethod()) + .addMethod(getListConversationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java new file mode 100644 index 000000000000..bea07624b53e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceGrpc.java @@ -0,0 +1,927 @@ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for ingesting
+ * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
+ * customer's website.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/document_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentServiceGrpc { + + private DocumentServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.DocumentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocument", + requestType = com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDocumentMethod() { + io.grpc.MethodDescriptor getGetDocumentMethod; + if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getGetDocumentMethod = DocumentServiceGrpc.getGetDocumentMethod) == null) { + DocumentServiceGrpc.getGetDocumentMethod = getGetDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("GetDocument")) + .build(); + } + } + } + return getGetDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDocuments", + requestType = com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDocumentsMethod() { + io.grpc.MethodDescriptor getListDocumentsMethod; + if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getListDocumentsMethod = DocumentServiceGrpc.getListDocumentsMethod) == null) { + DocumentServiceGrpc.getListDocumentsMethod = getListDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("ListDocuments")) + .build(); + } + } + } + return getListDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDocument", + requestType = com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDocumentMethod() { + io.grpc.MethodDescriptor getCreateDocumentMethod; + if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getCreateDocumentMethod = DocumentServiceGrpc.getCreateDocumentMethod) == null) { + DocumentServiceGrpc.getCreateDocumentMethod = getCreateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("CreateDocument")) + .build(); + } + } + } + return getCreateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Document.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDocumentMethod() { + io.grpc.MethodDescriptor getUpdateDocumentMethod; + if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getUpdateDocumentMethod = DocumentServiceGrpc.getUpdateDocumentMethod) == null) { + DocumentServiceGrpc.getUpdateDocumentMethod = getUpdateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("UpdateDocument")) + .build(); + } + } + } + return getUpdateDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDocumentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDocumentMethod() { + io.grpc.MethodDescriptor getDeleteDocumentMethod; + if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getDeleteDocumentMethod = DocumentServiceGrpc.getDeleteDocumentMethod) == null) { + DocumentServiceGrpc.getDeleteDocumentMethod = getDeleteDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("DeleteDocument")) + .build(); + } + } + } + return getDeleteDocumentMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportDocuments", + requestType = com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportDocumentsMethod() { + io.grpc.MethodDescriptor getImportDocumentsMethod; + if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getImportDocumentsMethod = DocumentServiceGrpc.getImportDocumentsMethod) == null) { + DocumentServiceGrpc.getImportDocumentsMethod = getImportDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("ImportDocuments")) + .build(); + } + } + } + return getImportDocumentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getPurgeDocumentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeDocuments", + requestType = com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPurgeDocumentsMethod() { + io.grpc.MethodDescriptor getPurgeDocumentsMethod; + if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getPurgeDocumentsMethod = DocumentServiceGrpc.getPurgeDocumentsMethod) == null) { + DocumentServiceGrpc.getPurgeDocumentsMethod = getPurgeDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentServiceMethodDescriptorSupplier("PurgeDocuments")) + .build(); + } + } + } + return getPurgeDocumentsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DocumentServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + }; + return DocumentServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + }; + return DocumentServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DocumentServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + }; + return DocumentServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
+   * customer's website.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + default void getDocument(com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
+     * 
+ */ + default void listDocuments(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentsMethod(), responseObserver); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + default void createDocument(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + default void updateDocument(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + default void deleteDocument(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
+     * successfully updated.
+     * 
+ */ + default void importDocuments(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDocumentsMethod(), responseObserver); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + default void purgeDocuments(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeDocumentsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
+   * customer's website.
+   * 
+ */ + public static abstract class DocumentServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DocumentServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
+   * customer's website.
+   * 
+ */ + public static final class DocumentServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public void getDocument(com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
+     * 
+ */ + public void listDocuments(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public void createDocument(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public void updateDocument(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public void deleteDocument(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
+     * successfully updated.
+     * 
+ */ + public void importDocuments(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public void purgeDocuments(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
+   * customer's website.
+   * 
+ */ + public static final class DocumentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Document getDocument(com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse listDocuments(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Document createDocument(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Document updateDocument(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.protobuf.Empty deleteDocument(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
+     * successfully updated.
+     * 
+ */ + public com.google.longrunning.Operation importDocuments(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDocumentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.longrunning.Operation purgeDocuments(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeDocumentsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. + *
+   * Service for ingesting
+   * [Document][google.cloud.discoveryengine.v1beta.Document] information of the
+   * customer's website.
+   * 
+ */ + public static final class DocumentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Gets a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDocument( + com.google.cloud.discoveryengine.v1beta.GetDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDocuments( + com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDocument( + com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDocument( + com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDocument( + com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); + } + + /** + *
+     * Bulk import of multiple
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s. Request
+     * processing may be synchronous. Non-existing items will be created.
+     * Note: It is possible for a subset of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be
+     * successfully updated.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importDocuments( + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDocumentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Permanently deletes all selected
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
+     * This process is asynchronous. Depending on the number of
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * this operation can take hours to complete. Before the delete operation
+     * completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
+     * might still be returned by
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
+     * To get a list of the
+     * [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
+     * set
+     * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture purgeDocuments( + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeDocumentsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_DOCUMENT = 0; + private static final int METHODID_LIST_DOCUMENTS = 1; + private static final int METHODID_CREATE_DOCUMENT = 2; + private static final int METHODID_UPDATE_DOCUMENT = 3; + private static final int METHODID_DELETE_DOCUMENT = 4; + private static final int METHODID_IMPORT_DOCUMENTS = 5; + private static final int METHODID_PURGE_DOCUMENTS = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_DOCUMENT: + serviceImpl.getDocument((com.google.cloud.discoveryengine.v1beta.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DOCUMENTS: + serviceImpl.listDocuments((com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DOCUMENT: + serviceImpl.createDocument((com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DOCUMENT: + serviceImpl.updateDocument((com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DOCUMENT: + serviceImpl.deleteDocument((com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DOCUMENTS: + serviceImpl.importDocuments((com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_DOCUMENTS: + serviceImpl.purgeDocuments((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetDocumentRequest, + com.google.cloud.discoveryengine.v1beta.Document>( + service, METHODID_GET_DOCUMENT))) + .addMethod( + getListDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest, + com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse>( + service, METHODID_LIST_DOCUMENTS))) + .addMethod( + getCreateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest, + com.google.cloud.discoveryengine.v1beta.Document>( + service, METHODID_CREATE_DOCUMENT))) + .addMethod( + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest, + com.google.cloud.discoveryengine.v1beta.Document>( + service, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DOCUMENT))) + .addMethod( + getImportDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_DOCUMENTS))) + .addMethod( + getPurgeDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest, + com.google.longrunning.Operation>( + service, METHODID_PURGE_DOCUMENTS))) + .build(); + } + + private static abstract class DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentService"); + } + } + + private static final class DocumentServiceFileDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier { + DocumentServiceFileDescriptorSupplier() {} + } + + private static final class DocumentServiceMethodDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DocumentServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DocumentServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentServiceFileDescriptorSupplier()) + .addMethod(getGetDocumentMethod()) + .addMethod(getListDocumentsMethod()) + .addMethod(getCreateDocumentMethod()) + .addMethod(getUpdateDocumentMethod()) + .addMethod(getDeleteDocumentMethod()) + .addMethod(getImportDocumentsMethod()) + .addMethod(getPurgeDocumentsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java similarity index 56% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java index 6ddab7246ae1..27af89975669 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for making recommendations.
  * 
@@ -32,101 +15,85 @@ public final class RecommendationServiceGrpc { private RecommendationServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.RecommendationService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.RecommendationService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.RecommendRequest, - com.google.cloud.discoveryengine.v1beta.RecommendResponse> - getRecommendMethod; + private static volatile io.grpc.MethodDescriptor getRecommendMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Recommend", requestType = com.google.cloud.discoveryengine.v1beta.RecommendRequest.class, responseType = com.google.cloud.discoveryengine.v1beta.RecommendResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.RecommendRequest, - com.google.cloud.discoveryengine.v1beta.RecommendResponse> - getRecommendMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.RecommendRequest, - com.google.cloud.discoveryengine.v1beta.RecommendResponse> - getRecommendMethod; + public static io.grpc.MethodDescriptor getRecommendMethod() { + io.grpc.MethodDescriptor getRecommendMethod; if ((getRecommendMethod = RecommendationServiceGrpc.getRecommendMethod) == null) { synchronized (RecommendationServiceGrpc.class) { if ((getRecommendMethod = RecommendationServiceGrpc.getRecommendMethod) == null) { - RecommendationServiceGrpc.getRecommendMethod = - getRecommendMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recommend")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.RecommendRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.RecommendResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecommendationServiceMethodDescriptorSupplier("Recommend")) - .build(); + RecommendationServiceGrpc.getRecommendMethod = getRecommendMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recommend")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.RecommendRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.RecommendResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecommendationServiceMethodDescriptorSupplier("Recommend")) + .build(); } } } return getRecommendMethod; } - /** 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 RecommendationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecommendationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecommendationServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecommendationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceStub(channel, callOptions); + } + }; return RecommendationServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static RecommendationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static RecommendationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecommendationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecommendationServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecommendationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceBlockingStub(channel, callOptions); + } + }; return RecommendationServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RecommendationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RecommendationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecommendationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecommendationServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecommendationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecommendationServiceFutureStub(channel, callOptions); + } + }; return RecommendationServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for making recommendations.
    * 
@@ -134,46 +101,40 @@ public RecommendationServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Makes a recommendation, which requires a contextual user event.
      * 
*/ - default void recommend( - com.google.cloud.discoveryengine.v1beta.RecommendRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void recommend(com.google.cloud.discoveryengine.v1beta.RecommendRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecommendMethod(), responseObserver); } } /** * Base class for the server implementation of the service RecommendationService. - * *
    * Service for making recommendations.
    * 
*/ - public abstract static class RecommendationServiceImplBase + public static abstract class RecommendationServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return RecommendationServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service RecommendationService. - * *
    * Service for making recommendations.
    * 
*/ public static final class RecommendationServiceStub extends io.grpc.stub.AbstractAsyncStub { - private RecommendationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private RecommendationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -184,16 +145,12 @@ protected RecommendationServiceStub build( } /** - * - * *
      * Makes a recommendation, which requires a contextual user event.
      * 
*/ - public void recommend( - com.google.cloud.discoveryengine.v1beta.RecommendRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void recommend(com.google.cloud.discoveryengine.v1beta.RecommendRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRecommendMethod(), getCallOptions()), request, responseObserver); } @@ -201,7 +158,6 @@ public void recommend( /** * A stub to allow clients to do synchronous rpc calls to service RecommendationService. - * *
    * Service for making recommendations.
    * 
@@ -220,23 +176,18 @@ protected RecommendationServiceBlockingStub build( } /** - * - * *
      * Makes a recommendation, which requires a contextual user event.
      * 
*/ - public com.google.cloud.discoveryengine.v1beta.RecommendResponse recommend( - com.google.cloud.discoveryengine.v1beta.RecommendRequest request) { + public com.google.cloud.discoveryengine.v1beta.RecommendResponse recommend(com.google.cloud.discoveryengine.v1beta.RecommendRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRecommendMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * RecommendationService. - * + * A stub to allow clients to do ListenableFuture-style rpc calls to service RecommendationService. *
    * Service for making recommendations.
    * 
@@ -255,15 +206,12 @@ protected RecommendationServiceFutureStub build( } /** - * - * *
      * Makes a recommendation, which requires a contextual user event.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.RecommendResponse> - recommend(com.google.cloud.discoveryengine.v1beta.RecommendRequest request) { + public com.google.common.util.concurrent.ListenableFuture recommend( + com.google.cloud.discoveryengine.v1beta.RecommendRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRecommendMethod(), getCallOptions()), request); } @@ -271,11 +219,11 @@ protected RecommendationServiceFutureStub build( private static final int METHODID_RECOMMEND = 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 AsyncService serviceImpl; private final int methodId; @@ -289,11 +237,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_RECOMMEND: - serviceImpl.recommend( - (com.google.cloud.discoveryengine.v1beta.RecommendRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.discoveryengine.v1beta.RecommendResponse>) - responseObserver); + serviceImpl.recommend((com.google.cloud.discoveryengine.v1beta.RecommendRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -314,18 +259,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getRecommendMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.RecommendRequest, - com.google.cloud.discoveryengine.v1beta.RecommendResponse>( - service, METHODID_RECOMMEND))) + getRecommendMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.RecommendRequest, + com.google.cloud.discoveryengine.v1beta.RecommendResponse>( + service, METHODID_RECOMMEND))) .build(); } - private abstract static class RecommendationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class RecommendationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { RecommendationServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -367,12 +311,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (RecommendationServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RecommendationServiceFileDescriptorSupplier()) - .addMethod(getRecommendMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RecommendationServiceFileDescriptorSupplier()) + .addMethod(getRecommendMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java new file mode 100644 index 000000000000..040df11bbda1 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceGrpc.java @@ -0,0 +1,667 @@ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/schema_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SchemaServiceGrpc { + + private SchemaServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.SchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchema", + requestType = com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSchemaMethod() { + io.grpc.MethodDescriptor getGetSchemaMethod; + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + SchemaServiceGrpc.getGetSchemaMethod = getGetSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) + .build(); + } + } + } + return getGetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemas", + requestType = com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSchemasMethod() { + io.grpc.MethodDescriptor getListSchemasMethod; + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + SchemaServiceGrpc.getListSchemasMethod = getListSchemasMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) + .build(); + } + } + } + return getListSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchema", + requestType = com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSchemaMethod() { + io.grpc.MethodDescriptor getCreateSchemaMethod; + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + SchemaServiceGrpc.getCreateSchemaMethod = getCreateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("CreateSchema")) + .build(); + } + } + } + return getCreateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSchema", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSchemaMethod() { + io.grpc.MethodDescriptor getUpdateSchemaMethod; + if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getUpdateSchemaMethod = SchemaServiceGrpc.getUpdateSchemaMethod) == null) { + SchemaServiceGrpc.getUpdateSchemaMethod = getUpdateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("UpdateSchema")) + .build(); + } + } + } + return getUpdateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSchemaMethod() { + io.grpc.MethodDescriptor getDeleteSchemaMethod; + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + SchemaServiceGrpc.getDeleteSchemaMethod = getDeleteSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) + .build(); + } + } + } + return getDeleteSchemaMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + }; + return SchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SchemaServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + }; + return SchemaServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SchemaServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + }; + return SchemaServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + default void getSchema(com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+     * 
+ */ + default void listSchemas(com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + default void createSchema(com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + default void updateSchema(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSchemaMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + default void deleteSchema(com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+   * 
+ */ + public static abstract class SchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return SchemaServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+   * 
+ */ + public static final class SchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SchemaServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public void getSchema(com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+     * 
+ */ + public void listSchemas(com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public void createSchema(com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public void updateSchema(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public void deleteSchema(com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+   * 
+ */ + public static final class SchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.Schema getSchema(com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse listSchemas(com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.longrunning.Operation createSchema(com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.longrunning.Operation updateSchema(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.longrunning.Operation deleteSchema(com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. + *
+   * Service for managing [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+   * 
+ */ + public static final class SchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SchemaServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSchema( + com.google.cloud.discoveryengine.v1beta.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSchemas( + com.google.cloud.discoveryengine.v1beta.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSchema( + com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSchema( + com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSchema( + com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SCHEMA = 0; + private static final int METHODID_LIST_SCHEMAS = 1; + private static final int METHODID_CREATE_SCHEMA = 2; + private static final int METHODID_UPDATE_SCHEMA = 3; + private static final int METHODID_DELETE_SCHEMA = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SCHEMA: + serviceImpl.getSchema((com.google.cloud.discoveryengine.v1beta.GetSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEMAS: + serviceImpl.listSchemas((com.google.cloud.discoveryengine.v1beta.ListSchemasRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCHEMA: + serviceImpl.createSchema((com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCHEMA: + serviceImpl.updateSchema((com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA: + serviceImpl.deleteSchema((com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetSchemaRequest, + com.google.cloud.discoveryengine.v1beta.Schema>( + service, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListSchemasRequest, + com.google.cloud.discoveryengine.v1beta.ListSchemasResponse>( + service, METHODID_LIST_SCHEMAS))) + .addMethod( + getCreateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_SCHEMA))) + .addMethod( + getUpdateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SCHEMA))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_SCHEMA))) + .build(); + } + + private static abstract class SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SchemaService"); + } + } + + private static final class SchemaServiceFileDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier { + SchemaServiceFileDescriptorSupplier() {} + } + + private static final class SchemaServiceMethodDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) + .addMethod(getGetSchemaMethod()) + .addMethod(getListSchemasMethod()) + .addMethod(getCreateSchemaMethod()) + .addMethod(getUpdateSchemaMethod()) + .addMethod(getDeleteSchemaMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java similarity index 53% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java index 3295ba1f6c66..7cb271e29708 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for search.
  * 
@@ -32,100 +15,85 @@ public final class SearchServiceGrpc { private SearchServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.SearchService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.SearchService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.SearchRequest, - com.google.cloud.discoveryengine.v1beta.SearchResponse> - getSearchMethod; + private static volatile io.grpc.MethodDescriptor getSearchMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Search", requestType = com.google.cloud.discoveryengine.v1beta.SearchRequest.class, responseType = com.google.cloud.discoveryengine.v1beta.SearchResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.SearchRequest, - com.google.cloud.discoveryengine.v1beta.SearchResponse> - getSearchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.SearchRequest, - com.google.cloud.discoveryengine.v1beta.SearchResponse> - getSearchMethod; + public static io.grpc.MethodDescriptor getSearchMethod() { + io.grpc.MethodDescriptor getSearchMethod; if ((getSearchMethod = SearchServiceGrpc.getSearchMethod) == null) { synchronized (SearchServiceGrpc.class) { if ((getSearchMethod = SearchServiceGrpc.getSearchMethod) == null) { - SearchServiceGrpc.getSearchMethod = - getSearchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.SearchResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SearchServiceMethodDescriptorSupplier("Search")) - .build(); + SearchServiceGrpc.getSearchMethod = getSearchMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.SearchResponse.getDefaultInstance())) + .setSchemaDescriptor(new SearchServiceMethodDescriptorSupplier("Search")) + .build(); } } } return getSearchMethod; } - /** 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 SearchServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceStub(channel, callOptions); + } + }; return SearchServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SearchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static SearchServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceBlockingStub(channel, callOptions); + } + }; return SearchServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SearchServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SearchServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SearchServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SearchServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchServiceFutureStub(channel, callOptions); + } + }; return SearchServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for search.
    * 
@@ -133,65 +101,56 @@ public SearchServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Performs a search.
      * 
*/ - default void search( - com.google.cloud.discoveryengine.v1beta.SearchRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void search(com.google.cloud.discoveryengine.v1beta.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); } } /** * Base class for the server implementation of the service SearchService. - * *
    * Service for search.
    * 
*/ - public abstract static class SearchServiceImplBase + public static abstract class SearchServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SearchServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SearchService. - * *
    * Service for search.
    * 
*/ public static final class SearchServiceStub extends io.grpc.stub.AbstractAsyncStub { - private SearchServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SearchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SearchServiceStub(channel, callOptions); } /** - * - * *
      * Performs a search.
      * 
*/ - public void search( - com.google.cloud.discoveryengine.v1beta.SearchRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void search(com.google.cloud.discoveryengine.v1beta.SearchRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); } @@ -199,14 +158,14 @@ public void search( /** * A stub to allow clients to do synchronous rpc calls to service SearchService. - * *
    * Service for search.
    * 
*/ public static final class SearchServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SearchServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -217,14 +176,11 @@ protected SearchServiceBlockingStub build( } /** - * - * *
      * Performs a search.
      * 
*/ - public com.google.cloud.discoveryengine.v1beta.SearchResponse search( - com.google.cloud.discoveryengine.v1beta.SearchRequest request) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse search(com.google.cloud.discoveryengine.v1beta.SearchRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchMethod(), getCallOptions(), request); } @@ -232,14 +188,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse search( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SearchService. - * *
    * Service for search.
    * 
*/ public static final class SearchServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private SearchServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -250,15 +206,12 @@ protected SearchServiceFutureStub build( } /** - * - * *
      * Performs a search.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.SearchResponse> - search(com.google.cloud.discoveryengine.v1beta.SearchRequest request) { + public com.google.common.util.concurrent.ListenableFuture search( + com.google.cloud.discoveryengine.v1beta.SearchRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchMethod(), getCallOptions()), request); } @@ -266,11 +219,11 @@ protected SearchServiceFutureStub build( private static final int METHODID_SEARCH = 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 AsyncService serviceImpl; private final int methodId; @@ -284,10 +237,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SEARCH: - serviceImpl.search( - (com.google.cloud.discoveryengine.v1beta.SearchRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.search((com.google.cloud.discoveryengine.v1beta.SearchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -308,18 +259,17 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSearchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.SearchRequest, - com.google.cloud.discoveryengine.v1beta.SearchResponse>( - service, METHODID_SEARCH))) + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.SearchRequest, + com.google.cloud.discoveryengine.v1beta.SearchResponse>( + service, METHODID_SEARCH))) .build(); } - private abstract static class SearchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SearchServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -361,12 +311,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SearchServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SearchServiceFileDescriptorSupplier()) - .addMethod(getSearchMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SearchServiceFileDescriptorSupplier()) + .addMethod(getSearchMethod()) + .build(); } } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java similarity index 53% rename from java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java rename to owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java index 67a86f26d8e7..2c9affea0015 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.discoveryengine.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for ingesting end user actions on a website to Discovery Engine API.
  * 
@@ -32,191 +15,147 @@ public final class UserEventServiceGrpc { private UserEventServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.discoveryengine.v1beta.UserEventService"; + public static final java.lang.String SERVICE_NAME = "google.cloud.discoveryengine.v1beta.UserEventService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1beta.UserEvent> - getWriteUserEventMethod; + private static volatile io.grpc.MethodDescriptor getWriteUserEventMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "WriteUserEvent", requestType = com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.class, responseType = com.google.cloud.discoveryengine.v1beta.UserEvent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1beta.UserEvent> - getWriteUserEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1beta.UserEvent> - getWriteUserEventMethod; + 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.discoveryengine.v1beta.WriteUserEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.discoveryengine.v1beta.UserEvent - .getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) - .build(); + 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.discoveryengine.v1beta.WriteUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) + .build(); } } } return getWriteUserEventMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest, com.google.api.HttpBody> - getCollectUserEventMethod; + private static volatile io.grpc.MethodDescriptor getCollectUserEventMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CollectUserEvent", requestType = com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.class, responseType = com.google.api.HttpBody.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest, com.google.api.HttpBody> - getCollectUserEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest, - com.google.api.HttpBody> - getCollectUserEventMethod; + 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.discoveryengine.v1beta.CollectUserEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.HttpBody.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("CollectUserEvent")) - .build(); + 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.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod; + private static volatile io.grpc.MethodDescriptor getImportUserEventsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportUserEvents", requestType = com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod; + 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.discoveryengine.v1beta.ImportUserEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("ImportUserEvents")) - .build(); + 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.discoveryengine.v1beta.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 */ + /** + * 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** + * 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); - } - }; + 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 a website to Discovery Engine API.
    * 
@@ -224,23 +163,16 @@ public UserEventServiceFutureStub newStub( public interface AsyncService { /** - * - * *
      * Writes a single user event.
      * 
*/ - default void writeUserEvent( - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getWriteUserEventMethod(), responseObserver); + default void writeUserEvent(com.google.cloud.discoveryengine.v1beta.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 third-party domain.
@@ -248,16 +180,12 @@ default void writeUserEvent(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - default void collectUserEvent( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request, + default void collectUserEvent(com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCollectUserEventMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectUserEventMethod(), responseObserver); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -267,68 +195,57 @@ default void collectUserEvent(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - default void importUserEvents( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request, + default void importUserEvents(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportUserEventsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportUserEventsMethod(), responseObserver); } } /** * Base class for the server implementation of the service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ - public abstract static class UserEventServiceImplBase + public static abstract class UserEventServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return UserEventServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ public static final class UserEventServiceStub extends io.grpc.stub.AbstractAsyncStub { - private UserEventServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + 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) { + 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.discoveryengine.v1beta.WriteUserEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void writeUserEvent(com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), - request, - responseObserver); + 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 third-party domain.
@@ -336,18 +253,13 @@ public void writeUserEvent(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - public void collectUserEvent( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request, + public void collectUserEvent(com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -357,26 +269,23 @@ public void collectUserEvent(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - public void importUserEvents( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request, + public void importUserEvents(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ public static final class UserEventServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private UserEventServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private UserEventServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -387,21 +296,16 @@ protected UserEventServiceBlockingStub build( } /** - * - * *
      * Writes a single user event.
      * 
*/ - public com.google.cloud.discoveryengine.v1beta.UserEvent writeUserEvent( - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest request) { + public com.google.cloud.discoveryengine.v1beta.UserEvent writeUserEvent(com.google.cloud.discoveryengine.v1beta.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 third-party domain.
@@ -409,15 +313,12 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent writeUserEvent(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - public com.google.api.HttpBody collectUserEvent( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request) { + public com.google.api.HttpBody collectUserEvent(com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCollectUserEventMethod(), getCallOptions(), request); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -427,8 +328,7 @@ public com.google.api.HttpBody collectUserEvent(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - public com.google.longrunning.Operation importUserEvents( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request) { + public com.google.longrunning.Operation importUserEvents(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportUserEventsMethod(), getCallOptions(), request); } @@ -436,14 +336,14 @@ public com.google.longrunning.Operation importUserEvents( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service UserEventService. - * *
    * Service for ingesting end user actions on a website to Discovery Engine API.
    * 
*/ public static final class UserEventServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private UserEventServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private UserEventServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -454,22 +354,17 @@ protected UserEventServiceFutureStub build( } /** - * - * *
      * Writes a single user event.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.discoveryengine.v1beta.UserEvent> - writeUserEvent(com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest request) { + public com.google.common.util.concurrent.ListenableFuture writeUserEvent( + com.google.cloud.discoveryengine.v1beta.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 third-party domain.
@@ -477,15 +372,13 @@ protected UserEventServiceFutureStub build(
      * Google Tag Manager. Users should not call this method directly.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - collectUserEvent(com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request) { + public com.google.common.util.concurrent.ListenableFuture collectUserEvent( + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); } /** - * - * *
      * Bulk import of User events. Request processing might be
      * synchronous. Events that already exist are skipped.
@@ -495,8 +388,8 @@ protected UserEventServiceFutureStub build(
      * Operation.metadata is of type ImportMetadata.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importUserEvents(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request) { + public com.google.common.util.concurrent.ListenableFuture importUserEvents( + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request); } @@ -506,11 +399,11 @@ protected UserEventServiceFutureStub build( private static final int METHODID_COLLECT_USER_EVENT = 1; private static final int METHODID_IMPORT_USER_EVENTS = 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 static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -524,19 +417,15 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_WRITE_USER_EVENT: - serviceImpl.writeUserEvent( - (com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.writeUserEvent((com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COLLECT_USER_EVENT: - serviceImpl.collectUserEvent( - (com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) request, + serviceImpl.collectUserEvent((com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_USER_EVENTS: - serviceImpl.importUserEvents( - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) request, + serviceImpl.importUserEvents((com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -558,30 +447,31 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getWriteUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest, - com.google.cloud.discoveryengine.v1beta.UserEvent>( - service, METHODID_WRITE_USER_EVENT))) + getWriteUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest, + com.google.cloud.discoveryengine.v1beta.UserEvent>( + service, METHODID_WRITE_USER_EVENT))) .addMethod( - getCollectUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest, - com.google.api.HttpBody>(service, METHODID_COLLECT_USER_EVENT))) + getCollectUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest, + com.google.api.HttpBody>( + service, METHODID_COLLECT_USER_EVENT))) .addMethod( - getImportUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest, - com.google.longrunning.Operation>(service, METHODID_IMPORT_USER_EVENTS))) + getImportUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_USER_EVENTS))) .build(); } - private abstract static class UserEventServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class UserEventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { UserEventServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -623,14 +513,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (UserEventServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) - .addMethod(getWriteUserEventMethod()) - .addMethod(getCollectUserEventMethod()) - .addMethod(getImportUserEventsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) + .addMethod(getWriteUserEventMethod()) + .addMethod(getCollectUserEventMethod()) + .addMethod(getImportUserEventsMethod()) + .build(); } } } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java index dadbb4ad51d7..7a49eb3e993c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * BigQuery source import data from.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.BigQuerySource} */ -public final class BigQuerySource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQuerySource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.BigQuerySource) BigQuerySourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQuerySource.newBuilder() to construct. private BigQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQuerySource() { projectId_ = ""; datasetId_ = ""; @@ -47,38 +29,33 @@ private BigQuerySource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQuerySource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.BigQuerySource.class, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder.class); + com.google.cloud.discoveryengine.v1beta.BigQuerySource.class, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder.class); } private int partitionCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object partition_; - public enum PartitionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PARTITION_DATE(5), PARTITION_NOT_SET(0); private final int value; - private PartitionCase(int value) { this.value = value; } @@ -94,34 +71,29 @@ public static PartitionCase valueOf(int value) { public static PartitionCase forNumber(int value) { switch (value) { - case 5: - return PARTITION_DATE; - case 0: - return PARTITION_NOT_SET; - default: - return null; + case 5: return PARTITION_DATE; + case 0: return PARTITION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PartitionCase getPartitionCase() { - return PartitionCase.forNumber(partitionCase_); + public PartitionCase + getPartitionCase() { + return PartitionCase.forNumber( + partitionCase_); } public static final int PARTITION_DATE_FIELD_NUMBER = 5; /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return Whether the partitionDate field is set. */ @java.lang.Override @@ -129,26 +101,21 @@ public boolean hasPartitionDate() { return partitionCase_ == 5; } /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return The partitionDate. */ @java.lang.Override public com.google.type.Date getPartitionDate() { if (partitionCase_ == 5) { - return (com.google.type.Date) partition_; + return (com.google.type.Date) partition_; } return com.google.type.Date.getDefaultInstance(); } /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
@@ -158,18 +125,15 @@ public com.google.type.Date getPartitionDate() { @java.lang.Override public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { if (partitionCase_ == 5) { - return (com.google.type.Date) partition_; + return (com.google.type.Date) partition_; } return com.google.type.Date.getDefaultInstance(); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -177,7 +141,6 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() {
    * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -186,15 +149,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -202,15 +164,16 @@ public java.lang.String getProjectId() {
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -219,19 +182,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATASET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ @java.lang.Override @@ -240,30 +199,30 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -272,19 +231,15 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } public static final int TABLE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object tableId_ = ""; /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tableId. */ @java.lang.Override @@ -293,30 +248,30 @@ public java.lang.String getTableId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; } } /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tableId. */ @java.lang.Override - public com.google.protobuf.ByteString getTableIdBytes() { + public com.google.protobuf.ByteString + getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableId_ = b; return b; } else { @@ -325,12 +280,9 @@ public com.google.protobuf.ByteString getTableIdBytes() { } public static final int GCS_STAGING_DIR_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object gcsStagingDir_ = ""; /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -338,7 +290,6 @@ public com.google.protobuf.ByteString getTableIdBytes() {
    * 
* * string gcs_staging_dir = 4; - * * @return The gcsStagingDir. */ @java.lang.Override @@ -347,15 +298,14 @@ public java.lang.String getGcsStagingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsStagingDir_ = s; return s; } } /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -363,15 +313,16 @@ public java.lang.String getGcsStagingDir() {
    * 
* * string gcs_staging_dir = 4; - * * @return The bytes for gcsStagingDir. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsStagingDirBytes() { + public com.google.protobuf.ByteString + getGcsStagingDirBytes() { java.lang.Object ref = gcsStagingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsStagingDir_ = b; return b; } else { @@ -380,12 +331,9 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() { } public static final int DATA_SCHEMA_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object dataSchema_ = ""; /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -409,7 +357,6 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() {
    * 
* * string data_schema = 6; - * * @return The dataSchema. */ @java.lang.Override @@ -418,15 +365,14 @@ public java.lang.String getDataSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; } } /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -450,15 +396,16 @@ public java.lang.String getDataSchema() {
    * 
* * string data_schema = 6; - * * @return The bytes for dataSchema. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -467,7 +414,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -479,7 +425,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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -520,9 +467,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gcsStagingDir_); } if (partitionCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.type.Date) partition_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.type.Date) partition_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSchema_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dataSchema_); @@ -535,23 +481,28 @@ 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.discoveryengine.v1beta.BigQuerySource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.BigQuerySource other = - (com.google.cloud.discoveryengine.v1beta.BigQuerySource) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getDatasetId().equals(other.getDatasetId())) return false; - if (!getTableId().equals(other.getTableId())) return false; - if (!getGcsStagingDir().equals(other.getGcsStagingDir())) return false; - if (!getDataSchema().equals(other.getDataSchema())) return false; + com.google.cloud.discoveryengine.v1beta.BigQuerySource other = (com.google.cloud.discoveryengine.v1beta.BigQuerySource) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + if (!getTableId() + .equals(other.getTableId())) return false; + if (!getGcsStagingDir() + .equals(other.getGcsStagingDir())) return false; + if (!getDataSchema() + .equals(other.getDataSchema())) return false; if (!getPartitionCase().equals(other.getPartitionCase())) return false; switch (partitionCase_) { case 5: - if (!getPartitionDate().equals(other.getPartitionDate())) return false; + if (!getPartitionDate() + .equals(other.getPartitionDate())) return false; break; case 0: default: @@ -591,136 +542,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.BigQuerySource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.BigQuerySource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.BigQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.BigQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource 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.discoveryengine.v1beta.BigQuerySource prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.BigQuerySource 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; } /** - * - * *
    * BigQuery source import data from.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.BigQuerySource} */ - 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.discoveryengine.v1beta.BigQuerySource) com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.BigQuerySource.class, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder.class); + com.google.cloud.discoveryengine.v1beta.BigQuerySource.class, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -739,9 +685,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; } @java.lang.Override @@ -760,11 +706,8 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.BigQuerySource buildPartial() { - com.google.cloud.discoveryengine.v1beta.BigQuerySource result = - new com.google.cloud.discoveryengine.v1beta.BigQuerySource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.BigQuerySource result = new com.google.cloud.discoveryengine.v1beta.BigQuerySource(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -792,7 +735,8 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.BigQuerySourc private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.BigQuerySource result) { result.partitionCase_ = partitionCase_; result.partition_ = this.partition_; - if (partitionCase_ == 5 && partitionDateBuilder_ != null) { + if (partitionCase_ == 5 && + partitionDateBuilder_ != null) { result.partition_ = partitionDateBuilder_.build(); } } @@ -801,39 +745,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.BigQuery 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.discoveryengine.v1beta.BigQuerySource) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.BigQuerySource) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.BigQuerySource)other); } else { super.mergeFrom(other); return this; @@ -841,8 +784,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.BigQuerySource other) { - if (other == com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000002; @@ -869,15 +811,13 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.BigQuerySource onChanged(); } switch (other.getPartitionCase()) { - case PARTITION_DATE: - { - mergePartitionDate(other.getPartitionDate()); - break; - } - case PARTITION_NOT_SET: - { - break; - } + case PARTITION_DATE: { + mergePartitionDate(other.getPartitionDate()); + break; + } + case PARTITION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -905,49 +845,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - tableId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - gcsStagingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - input.readMessage(getPartitionDateFieldBuilder().getBuilder(), extensionRegistry); - partitionCase_ = 5; - break; - } // case 42 - case 50: - { - dataSchema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + tableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + gcsStagingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + input.readMessage( + getPartitionDateFieldBuilder().getBuilder(), + extensionRegistry); + partitionCase_ = 5; + break; + } // case 42 + case 50: { + dataSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -957,12 +892,12 @@ public Builder mergeFrom( } // finally return this; } - private int partitionCase_ = 0; private java.lang.Object partition_; - - public PartitionCase getPartitionCase() { - return PartitionCase.forNumber(partitionCase_); + public PartitionCase + getPartitionCase() { + return PartitionCase.forNumber( + partitionCase_); } public Builder clearPartition() { @@ -975,17 +910,13 @@ public Builder clearPartition() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - partitionDateBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> partitionDateBuilder_; /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
* * .google.type.Date partition_date = 5; - * * @return Whether the partitionDate field is set. */ @java.lang.Override @@ -993,14 +924,11 @@ public boolean hasPartitionDate() { return partitionCase_ == 5; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
* * .google.type.Date partition_date = 5; - * * @return The partitionDate. */ @java.lang.Override @@ -1018,8 +946,6 @@ public com.google.type.Date getPartitionDate() { } } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1040,15 +966,14 @@ public Builder setPartitionDate(com.google.type.Date value) { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
* * .google.type.Date partition_date = 5; */ - public Builder setPartitionDate(com.google.type.Date.Builder builderForValue) { + public Builder setPartitionDate( + com.google.type.Date.Builder builderForValue) { if (partitionDateBuilder_ == null) { partition_ = builderForValue.build(); onChanged(); @@ -1059,8 +984,6 @@ public Builder setPartitionDate(com.google.type.Date.Builder builderForValue) { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1069,11 +992,10 @@ public Builder setPartitionDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergePartitionDate(com.google.type.Date value) { if (partitionDateBuilder_ == null) { - if (partitionCase_ == 5 && partition_ != com.google.type.Date.getDefaultInstance()) { - partition_ = - com.google.type.Date.newBuilder((com.google.type.Date) partition_) - .mergeFrom(value) - .buildPartial(); + if (partitionCase_ == 5 && + partition_ != com.google.type.Date.getDefaultInstance()) { + partition_ = com.google.type.Date.newBuilder((com.google.type.Date) partition_) + .mergeFrom(value).buildPartial(); } else { partition_ = value; } @@ -1089,8 +1011,6 @@ public Builder mergePartitionDate(com.google.type.Date value) { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1114,8 +1034,6 @@ public Builder clearPartitionDate() { return this; } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1126,8 +1044,6 @@ public com.google.type.Date.Builder getPartitionDateBuilder() { return getPartitionDateFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1146,8 +1062,6 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { } } /** - * - * *
      * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
      * 
@@ -1155,16 +1069,17 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { * .google.type.Date partition_date = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getPartitionDateFieldBuilder() { if (partitionDateBuilder_ == null) { if (!(partitionCase_ == 5)) { partition_ = com.google.type.Date.getDefaultInstance(); } - partitionDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - (com.google.type.Date) partition_, getParentForChildren(), isClean()); + partitionDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + (com.google.type.Date) partition_, + getParentForChildren(), + isClean()); partition_ = null; } partitionCase_ = 5; @@ -1174,8 +1089,6 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() { private java.lang.Object projectId_ = ""; /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1183,13 +1096,13 @@ public com.google.type.DateOrBuilder getPartitionDateOrBuilder() {
      * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1198,8 +1111,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1207,14 +1118,15 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1222,8 +1134,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1231,22 +1141,18 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
      * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1254,7 +1160,6 @@ public Builder setProjectId(java.lang.String value) {
      * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1264,8 +1169,6 @@ public Builder clearProjectId() { return this; } /** - * - * *
      * The project ID (can be project # or ID) that the BigQuery source is in with
      * a length limit of 128 characters. If not specified, inherits the project
@@ -1273,14 +1176,12 @@ public Builder clearProjectId() {
      * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -1290,21 +1191,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object datasetId_ = ""; /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -1313,22 +1212,21 @@ public java.lang.String getDatasetId() { } } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -1336,37 +1234,30 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } datasetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -1376,22 +1267,18 @@ public Builder clearDatasetId() { return this; } /** - * - * *
      * Required. The BigQuery data set to copy the data from with a length limit
      * of 1,024 characters.
      * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000004; @@ -1401,21 +1288,19 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object tableId_ = ""; /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tableId. */ public java.lang.String getTableId() { java.lang.Object ref = tableId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; @@ -1424,22 +1309,21 @@ public java.lang.String getTableId() { } } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tableId. */ - public com.google.protobuf.ByteString getTableIdBytes() { + public com.google.protobuf.ByteString + getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableId_ = b; return b; } else { @@ -1447,37 +1331,30 @@ public com.google.protobuf.ByteString getTableIdBytes() { } } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The tableId to set. * @return This builder for chaining. */ - public Builder setTableId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tableId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTableId() { @@ -1487,22 +1364,18 @@ public Builder clearTableId() { return this; } /** - * - * *
      * Required. The BigQuery table to copy the data from with a length limit of
      * 1,024 characters.
      * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for tableId to set. * @return This builder for chaining. */ - public Builder setTableIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableId_ = value; bitField0_ |= 0x00000008; @@ -1512,8 +1385,6 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcsStagingDir_ = ""; /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1521,13 +1392,13 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string gcs_staging_dir = 4; - * * @return The gcsStagingDir. */ public java.lang.String getGcsStagingDir() { java.lang.Object ref = gcsStagingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsStagingDir_ = s; return s; @@ -1536,8 +1407,6 @@ public java.lang.String getGcsStagingDir() { } } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1545,14 +1414,15 @@ public java.lang.String getGcsStagingDir() {
      * 
* * string gcs_staging_dir = 4; - * * @return The bytes for gcsStagingDir. */ - public com.google.protobuf.ByteString getGcsStagingDirBytes() { + public com.google.protobuf.ByteString + getGcsStagingDirBytes() { java.lang.Object ref = gcsStagingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsStagingDir_ = b; return b; } else { @@ -1560,8 +1430,6 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() { } } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1569,22 +1437,18 @@ public com.google.protobuf.ByteString getGcsStagingDirBytes() {
      * 
* * string gcs_staging_dir = 4; - * * @param value The gcsStagingDir to set. * @return This builder for chaining. */ - public Builder setGcsStagingDir(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsStagingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } gcsStagingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1592,7 +1456,6 @@ public Builder setGcsStagingDir(java.lang.String value) {
      * 
* * string gcs_staging_dir = 4; - * * @return This builder for chaining. */ public Builder clearGcsStagingDir() { @@ -1602,8 +1465,6 @@ public Builder clearGcsStagingDir() { return this; } /** - * - * *
      * Intermediate Cloud Storage directory used for the import with a length
      * limit of 2,000 characters. Can be specified if one wants to have the
@@ -1611,14 +1472,12 @@ public Builder clearGcsStagingDir() {
      * 
* * string gcs_staging_dir = 4; - * * @param value The bytes for gcsStagingDir to set. * @return This builder for chaining. */ - public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsStagingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gcsStagingDir_ = value; bitField0_ |= 0x00000010; @@ -1628,8 +1487,6 @@ public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataSchema_ = ""; /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1653,13 +1510,13 @@ public Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value) {
      * 
* * string data_schema = 6; - * * @return The dataSchema. */ public java.lang.String getDataSchema() { java.lang.Object ref = dataSchema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; @@ -1668,8 +1525,6 @@ public java.lang.String getDataSchema() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1693,14 +1548,15 @@ public java.lang.String getDataSchema() {
      * 
* * string data_schema = 6; - * * @return The bytes for dataSchema. */ - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -1708,8 +1564,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1733,22 +1587,18 @@ public com.google.protobuf.ByteString getDataSchemaBytes() {
      * 
* * string data_schema = 6; - * * @param value The dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataSchema_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1772,7 +1622,6 @@ public Builder setDataSchema(java.lang.String value) {
      * 
* * string data_schema = 6; - * * @return This builder for chaining. */ public Builder clearDataSchema() { @@ -1782,8 +1631,6 @@ public Builder clearDataSchema() { return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1807,23 +1654,21 @@ public Builder clearDataSchema() {
      * 
* * string data_schema = 6; - * * @param value The bytes for dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSchema_ = value; bitField0_ |= 0x00000020; 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); } @@ -1833,12 +1678,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.BigQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.BigQuerySource) private static final com.google.cloud.discoveryengine.v1beta.BigQuerySource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.BigQuerySource(); } @@ -1847,27 +1692,27 @@ public static com.google.cloud.discoveryengine.v1beta.BigQuerySource getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQuerySource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1882,4 +1727,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.BigQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java similarity index 83% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java index 4a39479474db..a904571a2121 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigQuerySourceOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface BigQuerySourceOrBuilder - extends +public interface BigQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.BigQuerySource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return Whether the partitionDate field is set. */ boolean hasPartitionDate(); /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
* * .google.type.Date partition_date = 5; - * * @return The partitionDate. */ com.google.type.Date getPartitionDate(); /** - * - * *
    * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
    * 
@@ -59,8 +35,6 @@ public interface BigQuerySourceOrBuilder com.google.type.DateOrBuilder getPartitionDateOrBuilder(); /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -68,13 +42,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * The project ID (can be project # or ID) that the BigQuery source is in with
    * a length limit of 128 characters. If not specified, inherits the project
@@ -82,68 +53,56 @@ public interface BigQuerySourceOrBuilder
    * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ java.lang.String getDatasetId(); /** - * - * *
    * Required. The BigQuery data set to copy the data from with a length limit
    * of 1,024 characters.
    * 
* * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tableId. */ java.lang.String getTableId(); /** - * - * *
    * Required. The BigQuery table to copy the data from with a length limit of
    * 1,024 characters.
    * 
* * string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tableId. */ - com.google.protobuf.ByteString getTableIdBytes(); + com.google.protobuf.ByteString + getTableIdBytes(); /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -151,13 +110,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string gcs_staging_dir = 4; - * * @return The gcsStagingDir. */ java.lang.String getGcsStagingDir(); /** - * - * *
    * Intermediate Cloud Storage directory used for the import with a length
    * limit of 2,000 characters. Can be specified if one wants to have the
@@ -165,14 +121,12 @@ public interface BigQuerySourceOrBuilder
    * 
* * string gcs_staging_dir = 4; - * * @return The bytes for gcsStagingDir. */ - com.google.protobuf.ByteString getGcsStagingDirBytes(); + com.google.protobuf.ByteString + getGcsStagingDirBytes(); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -196,13 +150,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string data_schema = 6; - * * @return The dataSchema. */ java.lang.String getDataSchema(); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -226,10 +177,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string data_schema = 6; - * * @return The bytes for dataSchema. */ - com.google.protobuf.ByteString getDataSchemaBytes(); + com.google.protobuf.ByteString + getDataSchemaBytes(); com.google.cloud.discoveryengine.v1beta.BigQuerySource.PartitionCase getPartitionCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java index 156e3aef8251..7188a4689088 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for CollectUserEvent method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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,42 +27,35 @@ private CollectUserEventRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CollectUserEventRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.class, - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.class, com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -89,32 +64,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 DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -123,19 +96,15 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int USER_EVENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object userEvent_ = ""; /** - * - * *
    * Required. URL encoded UserEvent proto with a length limit of 2,000,000
    * characters.
    * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ @java.lang.Override @@ -144,30 +113,30 @@ 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 with a length limit of 2,000,000
    * characters.
    * 
* * 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 { @@ -176,12 +145,9 @@ public com.google.protobuf.ByteString getUserEventBytes() { } public static final int URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getUserEventBytes() {
    * 
* * optional string uri = 3; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -198,8 +163,6 @@ public boolean hasUri() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -208,7 +171,6 @@ public boolean hasUri() {
    * 
* * optional string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -217,15 +179,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; } } /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -234,15 +195,16 @@ public java.lang.String getUri() {
    * 
* * optional string uri = 3; - * * @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 { @@ -253,8 +215,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int ETS_FIELD_NUMBER = 4; private long ets_ = 0L; /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -262,7 +222,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * optional int64 ets = 4; - * * @return Whether the ets field is set. */ @java.lang.Override @@ -270,8 +229,6 @@ public boolean hasEts() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -279,7 +236,6 @@ public boolean hasEts() {
    * 
* * optional int64 ets = 4; - * * @return The ets. */ @java.lang.Override @@ -288,7 +244,6 @@ public long getEts() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,7 +255,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_); } @@ -332,7 +288,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ets_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ets_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -342,23 +299,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.discoveryengine.v1beta.CollectUserEventRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest other = - (com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) obj; + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest other = (com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getUserEvent().equals(other.getUserEvent())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getUserEvent() + .equals(other.getUserEvent())) return false; if (hasUri() != other.hasUri()) return false; if (hasUri()) { - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; } if (hasEts() != other.hasEts()) return false; if (hasEts()) { - if (getEts() != other.getEts()) return false; + if (getEts() + != other.getEts()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -381,7 +341,8 @@ public int hashCode() { } if (hasEts()) { 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -389,136 +350,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest 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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.CollectUserEventRequest) com.google.cloud.discoveryengine.v1beta.CollectUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.class, - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.class, com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -531,14 +487,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.getDefaultInstance(); } @@ -553,17 +508,13 @@ public com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest result = - new com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest result = new com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -587,50 +538,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -675,37 +622,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - userEvent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - ets_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userEvent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + ets_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -715,28 +657,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -745,24 +682,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -770,41 +704,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -814,24 +737,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -841,21 +758,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object userEvent_ = ""; /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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; @@ -864,22 +779,21 @@ public java.lang.String getUserEvent() { } } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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 { @@ -887,37 +801,30 @@ public com.google.protobuf.ByteString getUserEventBytes() { } } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserEvent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userEvent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUserEvent() { @@ -927,22 +834,18 @@ public Builder clearUserEvent() { return this; } /** - * - * *
      * Required. URL encoded UserEvent proto with a length limit of 2,000,000
      * characters.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserEventBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userEvent_ = value; bitField0_ |= 0x00000002; @@ -952,8 +855,6 @@ public Builder setUserEventBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -962,15 +863,12 @@ public Builder setUserEventBytes(com.google.protobuf.ByteString value) {
      * 
* * optional string uri = 3; - * * @return Whether the uri field is set. */ public boolean hasUri() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -979,13 +877,13 @@ public boolean hasUri() {
      * 
* * optional string uri = 3; - * * @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; @@ -994,8 +892,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1004,14 +900,15 @@ public java.lang.String getUri() {
      * 
* * optional string uri = 3; - * * @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 { @@ -1019,8 +916,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1029,22 +924,18 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * optional string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1053,7 +944,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * optional string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1063,8 +953,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * The URL including cgi-parameters but excluding the hash fragment with a
      * length limit of 5,000 characters. This is often more useful than the
@@ -1073,14 +961,12 @@ public Builder clearUri() {
      * 
* * optional string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; @@ -1088,10 +974,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private long ets_; + private long ets_ ; /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1099,7 +983,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int64 ets = 4; - * * @return Whether the ets field is set. */ @java.lang.Override @@ -1107,8 +990,6 @@ public boolean hasEts() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1116,7 +997,6 @@ public boolean hasEts() {
      * 
* * optional int64 ets = 4; - * * @return The ets. */ @java.lang.Override @@ -1124,8 +1004,6 @@ public long getEts() { return ets_; } /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1133,7 +1011,6 @@ public long getEts() {
      * 
* * optional int64 ets = 4; - * * @param value The ets to set. * @return This builder for chaining. */ @@ -1145,8 +1022,6 @@ public Builder setEts(long value) { return this; } /** - * - * *
      * The event timestamp in milliseconds. This prevents browser caching of
      * otherwise identical get requests. The name is abbreviated to reduce the
@@ -1154,7 +1029,6 @@ public Builder setEts(long value) {
      * 
* * optional int64 ets = 4; - * * @return This builder for chaining. */ public Builder clearEts() { @@ -1163,9 +1037,9 @@ public Builder clearEts() { 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); } @@ -1175,43 +1049,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CollectUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CollectUserEventRequest) - private static final com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest(); } - public static com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1223,8 +1095,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java index 860252831261..c4c188b44ad8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java @@ -1,89 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface CollectUserEventRequestOrBuilder - extends +public interface CollectUserEventRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CollectUserEventRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 with a length limit of 2,000,000
    * characters.
    * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ java.lang.String getUserEvent(); /** - * - * *
    * Required. URL encoded UserEvent proto with a length limit of 2,000,000
    * characters.
    * 
* * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userEvent. */ - com.google.protobuf.ByteString getUserEventBytes(); + com.google.protobuf.ByteString + getUserEventBytes(); /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -92,13 +60,10 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional string uri = 3; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -107,13 +72,10 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URL including cgi-parameters but excluding the hash fragment with a
    * length limit of 5,000 characters. This is often more useful than the
@@ -122,14 +84,12 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -137,13 +97,10 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional int64 ets = 4; - * * @return Whether the ets field is set. */ boolean hasEts(); /** - * - * *
    * The event timestamp in milliseconds. This prevents browser caching of
    * otherwise identical get requests. The name is abbreviated to reduce the
@@ -151,7 +108,6 @@ public interface CollectUserEventRequestOrBuilder
    * 
* * optional int64 ets = 4; - * * @return The ets. */ long getEts(); diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java new file mode 100644 index 000000000000..6ac65b3bdaab --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/common.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class CommonProto { + private CommonProto() {} + 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_discoveryengine_v1beta_Interval_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/discoveryengine/v1beta/co" + + "mmon.proto\022#google.cloud.discoveryengine" + + ".v1beta\032\031google/api/resource.proto\"x\n\010In" + + "terval\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive_m" + + "inimum\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exc" + + "lusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"0\n\017" + + "CustomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers" + + "\030\002 \003(\001\"/\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nu" + + "ser_agent\030\002 \001(\t\"\034\n\nDoubleList\022\016\n\006values\030" + + "\001 \003(\001B\322\007\n\'com.google.cloud.discoveryengi" + + "ne.v1betaB\013CommonProtoP\001ZQcloud.google.c" + + "om/go/discoveryengine/apiv1beta/discover" + + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" + + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" + + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" + + "a\352\002&Google::Cloud::DiscoveryEngine::V1be" + + "ta\352A\346\001\n%discoveryengine.googleapis.com/B" + + "ranch\022Qprojects/{project}/locations/{loc" + + "ation}/dataStores/{data_store}/branches/" + + "{branch}\022jprojects/{project}/locations/{" + + "location}/collections/{collection}/dataS" + + "tores/{data_store}/branches/{branch}\352A\305\001" + + "\n(discoveryengine.googleapis.com/DataSto" + + "re\022?projects/{project}/locations/{locati" + + "on}/dataStores/{data_store}\022Xprojects/{p" + + "roject}/locations/{location}/collections" + + "/{collection}/dataStores/{data_store}\352A\211" + + "\002\n,discoveryengine.googleapis.com/Servin" + + "gConfig\022_projects/{project}/locations/{l" + + "ocation}/dataStores/{data_store}/serving" + + "Configs/{serving_config}\022xprojects/{proj" + + "ect}/locations/{location}/collections/{c" + + "ollection}/dataStores/{data_store}/servi" + + "ngConfigs/{serving_config}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor, + new java.lang.String[] { "Minimum", "ExclusiveMinimum", "Maximum", "ExclusiveMaximum", "Min", "Max", }); + internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor, + new java.lang.String[] { "Text", "Numbers", }); + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor, + new java.lang.String[] { "UserId", "UserAgent", }); + internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor, + new java.lang.String[] { "Values", }); + 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java index ca8f4a79250d..89e129e4f403 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/completion_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompleteQueryRequest}
  */
-public final class CompleteQueryRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CompleteQueryRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CompleteQueryRequest)
     CompleteQueryRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CompleteQueryRequest.newBuilder() to construct.
   private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CompleteQueryRequest() {
     dataStore_ = "";
     query_ = "";
@@ -48,42 +30,35 @@ private CompleteQueryRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CompleteQueryRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.class,
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.class, com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.Builder.class);
   }
 
   public static final int DATA_STORE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object dataStore_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataStore. */ @java.lang.Override @@ -92,33 +67,31 @@ public java.lang.String getDataStore() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataStore_ = s; return s; } } /** - * - * *
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataStore. */ @java.lang.Override - public com.google.protobuf.ByteString getDataStoreBytes() { + public com.google.protobuf.ByteString + getDataStoreBytes() { java.lang.Object ref = dataStore_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataStore_ = b; return b; } else { @@ -127,19 +100,15 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } public static final int QUERY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ @java.lang.Override @@ -148,30 +117,30 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -180,12 +149,9 @@ public com.google.protobuf.ByteString getQueryBytes() { } public static final int QUERY_MODEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object queryModel_ = ""; /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -207,7 +173,6 @@ public com.google.protobuf.ByteString getQueryBytes() {
    * 
* * string query_model = 3; - * * @return The queryModel. */ @java.lang.Override @@ -216,15 +181,14 @@ public java.lang.String getQueryModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryModel_ = s; return s; } } /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -246,15 +210,16 @@ public java.lang.String getQueryModel() {
    * 
* * string query_model = 3; - * * @return The bytes for queryModel. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryModelBytes() { + public com.google.protobuf.ByteString + getQueryModelBytes() { java.lang.Object ref = queryModel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryModel_ = b; return b; } else { @@ -263,12 +228,9 @@ public com.google.protobuf.ByteString getQueryModelBytes() { } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -287,7 +249,6 @@ public com.google.protobuf.ByteString getQueryModelBytes() {
    * 
* * string user_pseudo_id = 4; - * * @return The userPseudoId. */ @java.lang.Override @@ -296,15 +257,14 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -323,15 +283,16 @@ public java.lang.String getUserPseudoId() {
    * 
* * string user_pseudo_id = 4; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -342,8 +303,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { public static final int INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER = 5; private boolean includeTailSuggestions_ = false; /** - * - * *
    * Indicates if tail suggestions should be returned if there are no
    * suggestions that match the full query. Even if set to true, if there are
@@ -352,7 +311,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
    * 
* * bool include_tail_suggestions = 5; - * * @return The includeTailSuggestions. */ @java.lang.Override @@ -361,7 +319,6 @@ public boolean getIncludeTailSuggestions() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,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(dataStore_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); } @@ -411,7 +369,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userPseudoId_); } if (includeTailSuggestions_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeTailSuggestions_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, includeTailSuggestions_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -421,19 +380,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.discoveryengine.v1beta.CompleteQueryRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest other = - (com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest) obj; - - if (!getDataStore().equals(other.getDataStore())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (!getQueryModel().equals(other.getQueryModel())) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; - if (getIncludeTailSuggestions() != other.getIncludeTailSuggestions()) return false; + com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest other = (com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest) obj; + + if (!getDataStore() + .equals(other.getDataStore())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getQueryModel() + .equals(other.getQueryModel())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (getIncludeTailSuggestions() + != other.getIncludeTailSuggestions()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -454,111 +417,106 @@ public int hashCode() { hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; hash = (53 * hash) + getUserPseudoId().hashCode(); hash = (37 * hash) + INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeTailSuggestions()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeTailSuggestions()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest 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.discoveryengine.v1beta.CompleteQueryRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest 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
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
@@ -567,32 +525,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompleteQueryRequest}
    */
-  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.discoveryengine.v1beta.CompleteQueryRequest)
       com.google.cloud.discoveryengine.v1beta.CompleteQueryRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.class,
-              com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.class, com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -606,14 +565,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.getDefaultInstance();
     }
 
@@ -628,17 +586,13 @@ public com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest result =
-          new com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest result = new com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.dataStore_ = dataStore_;
@@ -661,39 +615,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -701,9 +654,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest.getDefaultInstance()) return this;
       if (!other.getDataStore().isEmpty()) {
         dataStore_ = other.dataStore_;
         bitField0_ |= 0x00000001;
@@ -753,43 +704,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                dataStore_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                query_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                queryModel_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                userPseudoId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                includeTailSuggestions_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              dataStore_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              query_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              queryModel_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              userPseudoId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              includeTailSuggestions_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -799,29 +744,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object dataStore_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataStore. */ public java.lang.String getDataStore() { java.lang.Object ref = dataStore_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataStore_ = s; return s; @@ -830,25 +770,22 @@ public java.lang.String getDataStore() { } } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataStore. */ - public com.google.protobuf.ByteString getDataStoreBytes() { + public com.google.protobuf.ByteString + getDataStoreBytes() { java.lang.Object ref = dataStore_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataStore_ = b; return b; } else { @@ -856,43 +793,32 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The dataStore to set. * @return This builder for chaining. */ - public Builder setDataStore(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataStore( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataStore_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDataStore() { @@ -902,25 +828,19 @@ public Builder clearDataStore() { return this; } /** - * - * *
      * Required. The parent data store resource name for which the completion is
      * performed, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
      * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for dataStore to set. * @return This builder for chaining. */ - public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataStoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataStore_ = value; bitField0_ |= 0x00000001; @@ -930,21 +850,19 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -953,22 +871,21 @@ public java.lang.String getQuery() { } } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -976,37 +893,30 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearQuery() { @@ -1016,22 +926,18 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Required. The typeahead input used to fetch suggestions. Maximum length is
      * 128 characters.
      * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000002; @@ -1041,8 +947,6 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { private java.lang.Object queryModel_ = ""; /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1064,13 +968,13 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * string query_model = 3; - * * @return The queryModel. */ public java.lang.String getQueryModel() { java.lang.Object ref = queryModel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryModel_ = s; return s; @@ -1079,8 +983,6 @@ public java.lang.String getQueryModel() { } } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1102,14 +1004,15 @@ public java.lang.String getQueryModel() {
      * 
* * string query_model = 3; - * * @return The bytes for queryModel. */ - public com.google.protobuf.ByteString getQueryModelBytes() { + public com.google.protobuf.ByteString + getQueryModelBytes() { java.lang.Object ref = queryModel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); queryModel_ = b; return b; } else { @@ -1117,8 +1020,6 @@ public com.google.protobuf.ByteString getQueryModelBytes() { } } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1140,22 +1041,18 @@ public com.google.protobuf.ByteString getQueryModelBytes() {
      * 
* * string query_model = 3; - * * @param value The queryModel to set. * @return This builder for chaining. */ - public Builder setQueryModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } queryModel_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1177,7 +1074,6 @@ public Builder setQueryModel(java.lang.String value) {
      * 
* * string query_model = 3; - * * @return This builder for chaining. */ public Builder clearQueryModel() { @@ -1187,8 +1083,6 @@ public Builder clearQueryModel() { return this; } /** - * - * *
      * Selects data model of query suggestions for serving. Currently supported
      * values:
@@ -1210,14 +1104,12 @@ public Builder clearQueryModel() {
      * 
* * string query_model = 3; - * * @param value The bytes for queryModel to set. * @return This builder for chaining. */ - public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryModel_ = value; bitField0_ |= 0x00000004; @@ -1227,8 +1119,6 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1247,13 +1137,13 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) {
      * 
* * string user_pseudo_id = 4; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -1262,8 +1152,6 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1282,14 +1170,15 @@ public java.lang.String getUserPseudoId() {
      * 
* * string user_pseudo_id = 4; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -1297,8 +1186,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1317,22 +1204,18 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * 
* * string user_pseudo_id = 4; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1351,7 +1234,6 @@ public Builder setUserPseudoId(java.lang.String value) {
      * 
* * string user_pseudo_id = 4; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -1361,8 +1243,6 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -1381,14 +1261,12 @@ public Builder clearUserPseudoId() {
      * 
* * string user_pseudo_id = 4; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00000008; @@ -1396,10 +1274,8 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean includeTailSuggestions_; + private boolean includeTailSuggestions_ ; /** - * - * *
      * Indicates if tail suggestions should be returned if there are no
      * suggestions that match the full query. Even if set to true, if there are
@@ -1408,7 +1284,6 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool include_tail_suggestions = 5; - * * @return The includeTailSuggestions. */ @java.lang.Override @@ -1416,8 +1291,6 @@ public boolean getIncludeTailSuggestions() { return includeTailSuggestions_; } /** - * - * *
      * Indicates if tail suggestions should be returned if there are no
      * suggestions that match the full query. Even if set to true, if there are
@@ -1426,7 +1299,6 @@ public boolean getIncludeTailSuggestions() {
      * 
* * bool include_tail_suggestions = 5; - * * @param value The includeTailSuggestions to set. * @return This builder for chaining. */ @@ -1438,8 +1310,6 @@ public Builder setIncludeTailSuggestions(boolean value) { return this; } /** - * - * *
      * Indicates if tail suggestions should be returned if there are no
      * suggestions that match the full query. Even if set to true, if there are
@@ -1448,7 +1318,6 @@ public Builder setIncludeTailSuggestions(boolean value) {
      * 
* * bool include_tail_suggestions = 5; - * * @return This builder for chaining. */ public Builder clearIncludeTailSuggestions() { @@ -1457,9 +1326,9 @@ public Builder clearIncludeTailSuggestions() { 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); } @@ -1469,13 +1338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CompleteQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CompleteQueryRequest) - private static final com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest(); } @@ -1484,27 +1352,27 @@ public static com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1519,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java similarity index 81% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java index 60aa360bb570..57a97987b72e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java @@ -1,91 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/completion_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface CompleteQueryRequestOrBuilder - extends +public interface CompleteQueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CompleteQueryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The dataStore. */ java.lang.String getDataStore(); /** - * - * *
    * Required. The parent data store resource name for which the completion is
    * performed, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
    * 
* - * - * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for dataStore. */ - com.google.protobuf.ByteString getDataStoreBytes(); + com.google.protobuf.ByteString + getDataStoreBytes(); /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
    * Required. The typeahead input used to fetch suggestions. Maximum length is
    * 128 characters.
    * 
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -107,13 +75,10 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string query_model = 3; - * * @return The queryModel. */ java.lang.String getQueryModel(); /** - * - * *
    * Selects data model of query suggestions for serving. Currently supported
    * values:
@@ -135,14 +100,12 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string query_model = 3; - * * @return The bytes for queryModel. */ - com.google.protobuf.ByteString getQueryModelBytes(); + com.google.protobuf.ByteString + getQueryModelBytes(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -161,13 +124,10 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string user_pseudo_id = 4; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -186,14 +146,12 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * string user_pseudo_id = 4; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * Indicates if tail suggestions should be returned if there are no
    * suggestions that match the full query. Even if set to true, if there are
@@ -202,7 +160,6 @@ public interface CompleteQueryRequestOrBuilder
    * 
* * bool include_tail_suggestions = 5; - * * @return The includeTailSuggestions. */ boolean getIncludeTailSuggestions(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java similarity index 60% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java index 485385f1fe2d..03fd60c1301b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/completion_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response message for
  * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
@@ -29,129 +12,112 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompleteQueryResponse}
  */
-public final class CompleteQueryResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CompleteQueryResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CompleteQueryResponse)
     CompleteQueryResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CompleteQueryResponse.newBuilder() to construct.
   private CompleteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CompleteQueryResponse() {
     querySuggestions_ = 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 CompleteQueryResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.class,
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.class, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.Builder.class);
   }
 
-  public interface QuerySuggestionOrBuilder
-      extends
+  public interface QuerySuggestionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The suggestion. */ java.lang.String getSuggestion(); /** - * - * *
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The bytes for suggestion. */ - com.google.protobuf.ByteString getSuggestionBytes(); + com.google.protobuf.ByteString + getSuggestionBytes(); } /** - * - * *
    * Suggestions as search queries.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion} */ - public static final class QuerySuggestion extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QuerySuggestion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) QuerySuggestionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QuerySuggestion.newBuilder() to construct. private QuerySuggestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QuerySuggestion() { suggestion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QuerySuggestion(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.class, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - .class); + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.class, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder.class); } public static final int SUGGESTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object suggestion_ = ""; /** - * - * *
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The suggestion. */ @java.lang.Override @@ -160,29 +126,29 @@ public java.lang.String getSuggestion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); suggestion_ = s; return s; } } /** - * - * *
      * The suggestion for the query.
      * 
* * string suggestion = 1; - * * @return The bytes for suggestion. */ @java.lang.Override - public com.google.protobuf.ByteString getSuggestionBytes() { + public com.google.protobuf.ByteString + getSuggestionBytes() { java.lang.Object ref = suggestion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); suggestion_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getSuggestionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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(suggestion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); } @@ -227,17 +193,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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion other = - (com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) obj; + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion other = (com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) obj; - if (!getSuggestion().equals(other.getSuggestion())) return false; + if (!getSuggestion() + .equals(other.getSuggestion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,101 +220,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - 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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - 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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion 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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion 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 @@ -360,44 +313,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Suggestions as search queries.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion} */ - 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.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.class, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - .Builder.class); + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.class, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,22 +355,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion build() { - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -430,19 +375,14 @@ public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySugges } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - buildPartial() { - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion result = - new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion buildPartial() { + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion result = new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.suggestion_ = suggestion_; @@ -453,56 +393,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion other) { - if (other - == com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion other) { + if (other == com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()) return this; if (!other.getSuggestion().isEmpty()) { suggestion_ = other.suggestion_; bitField0_ |= 0x00000001; @@ -534,19 +464,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - suggestion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,25 +484,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object suggestion_ = ""; /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @return The suggestion. */ public java.lang.String getSuggestion() { java.lang.Object ref = suggestion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); suggestion_ = s; return s; @@ -583,21 +508,20 @@ public java.lang.String getSuggestion() { } } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @return The bytes for suggestion. */ - public com.google.protobuf.ByteString getSuggestionBytes() { + public com.google.protobuf.ByteString + getSuggestionBytes() { java.lang.Object ref = suggestion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); suggestion_ = b; return b; } else { @@ -605,35 +529,28 @@ public com.google.protobuf.ByteString getSuggestionBytes() { } } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @param value The suggestion to set. * @return This builder for chaining. */ - public Builder setSuggestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSuggestion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } suggestion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @return This builder for chaining. */ public Builder clearSuggestion() { @@ -643,28 +560,23 @@ public Builder clearSuggestion() { return this; } /** - * - * *
        * The suggestion for the query.
        * 
* * string suggestion = 1; - * * @param value The bytes for suggestion to set. * @return This builder for chaining. */ - public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSuggestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); suggestion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -677,46 +589,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion) - private static final com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - .QuerySuggestion - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion(); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuerySuggestion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuerySuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,112 +635,81 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int QUERY_SUGGESTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion> - querySuggestions_; + private java.util.List querySuggestions_; /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion> - getQuerySuggestionsList() { + public java.util.List getQuerySuggestionsList() { return querySuggestions_; } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - .QuerySuggestionOrBuilder> + public java.util.List getQuerySuggestionsOrBuilderList() { return querySuggestions_; } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override public int getQuerySuggestionsCount() { return querySuggestions_.size(); } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - getQuerySuggestions(int index) { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index) { return querySuggestions_.get(index); } /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder - getQuerySuggestionsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index) { return querySuggestions_.get(index); } public static final int TAIL_MATCH_TRIGGERED_FIELD_NUMBER = 2; private boolean tailMatchTriggered_ = false; /** - * - * *
    * True if the returned suggestions are all tail suggestions.
    *
@@ -842,7 +718,6 @@ public int getQuerySuggestionsCount() {
    * 
* * bool tail_match_triggered = 2; - * * @return The tailMatchTriggered. */ @java.lang.Override @@ -851,7 +726,6 @@ public boolean getTailMatchTriggered() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -863,7 +737,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 < querySuggestions_.size(); i++) { output.writeMessage(1, querySuggestions_.get(i)); } @@ -880,10 +755,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < querySuggestions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, querySuggestions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, querySuggestions_.get(i)); } if (tailMatchTriggered_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, tailMatchTriggered_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, tailMatchTriggered_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -893,16 +770,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.discoveryengine.v1beta.CompleteQueryResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse other = - (com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse) obj; + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse other = (com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse) obj; - if (!getQuerySuggestionsList().equals(other.getQuerySuggestionsList())) return false; - if (getTailMatchTriggered() != other.getTailMatchTriggered()) return false; + if (!getQuerySuggestionsList() + .equals(other.getQuerySuggestionsList())) return false; + if (getTailMatchTriggered() + != other.getTailMatchTriggered()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -919,111 +797,106 @@ public int hashCode() { hash = (53 * hash) + getQuerySuggestionsList().hashCode(); } hash = (37 * hash) + TAIL_MATCH_TRIGGERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTailMatchTriggered()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTailMatchTriggered()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse 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.discoveryengine.v1beta.CompleteQueryResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse 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
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
@@ -1032,32 +905,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompleteQueryResponse}
    */
-  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.discoveryengine.v1beta.CompleteQueryResponse)
       com.google.cloud.discoveryengine.v1beta.CompleteQueryResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.class,
-              com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.class, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1074,14 +948,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.getDefaultInstance();
     }
 
@@ -1096,18 +969,14 @@ public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse result =
-          new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse(this);
+      com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse result = new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse result) {
       if (querySuggestionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           querySuggestions_ = java.util.Collections.unmodifiableList(querySuggestions_);
@@ -1119,8 +988,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.tailMatchTriggered_ = tailMatchTriggered_;
@@ -1131,39 +999,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1171,9 +1038,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.getDefaultInstance()) return this;
       if (querySuggestionsBuilder_ == null) {
         if (!other.querySuggestions_.isEmpty()) {
           if (querySuggestions_.isEmpty()) {
@@ -1192,10 +1057,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CompleteQueryRe
             querySuggestionsBuilder_ = null;
             querySuggestions_ = other.querySuggestions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            querySuggestionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getQuerySuggestionsFieldBuilder()
-                    : null;
+            querySuggestionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getQuerySuggestionsFieldBuilder() : null;
           } else {
             querySuggestionsBuilder_.addAllMessages(other.querySuggestions_);
           }
@@ -1230,34 +1094,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse
-                            .QuerySuggestion.parser(),
-                        extensionRegistry);
-                if (querySuggestionsBuilder_ == null) {
-                  ensureQuerySuggestionsIsMutable();
-                  querySuggestions_.add(m);
-                } else {
-                  querySuggestionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                tailMatchTriggered_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.parser(),
+                      extensionRegistry);
+              if (querySuggestionsBuilder_ == null) {
+                ensureQuerySuggestionsIsMutable();
+                querySuggestions_.add(m);
+              } else {
+                querySuggestionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              tailMatchTriggered_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1267,44 +1127,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List<
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion>
-        querySuggestions_ = java.util.Collections.emptyList();
-
+    private java.util.List querySuggestions_ =
+      java.util.Collections.emptyList();
     private void ensureQuerySuggestionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        querySuggestions_ =
-            new java.util.ArrayList<
-                com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion>(
-                querySuggestions_);
+        querySuggestions_ = new java.util.ArrayList(querySuggestions_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion,
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder,
-            com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder>
-        querySuggestionsBuilder_;
+        com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder> querySuggestionsBuilder_;
 
     /**
-     *
-     *
      * 
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion> - getQuerySuggestionsList() { + public java.util.List getQuerySuggestionsList() { if (querySuggestionsBuilder_ == null) { return java.util.Collections.unmodifiableList(querySuggestions_); } else { @@ -1312,16 +1157,12 @@ private void ensureQuerySuggestionsIsMutable() { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public int getQuerySuggestionsCount() { if (querySuggestionsBuilder_ == null) { @@ -1331,19 +1172,14 @@ public int getQuerySuggestionsCount() { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - getQuerySuggestions(int index) { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index) { if (querySuggestionsBuilder_ == null) { return querySuggestions_.get(index); } else { @@ -1351,20 +1187,15 @@ public int getQuerySuggestionsCount() { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder setQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion value) { + int index, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion value) { if (querySuggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1378,21 +1209,15 @@ public Builder setQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder setQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); querySuggestions_.set(index, builderForValue.build()); @@ -1403,19 +1228,14 @@ public Builder setQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public Builder addQuerySuggestions( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion value) { + public Builder addQuerySuggestions(com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion value) { if (querySuggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1429,20 +1249,15 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion value) { + int index, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion value) { if (querySuggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1456,20 +1271,15 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addQuerySuggestions( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); querySuggestions_.add(builderForValue.build()); @@ -1480,21 +1290,15 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addQuerySuggestions( - int index, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder builderForValue) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); querySuggestions_.add(index, builderForValue.build()); @@ -1505,25 +1309,19 @@ public Builder addQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder addAllQuerySuggestions( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion> - values) { + java.lang.Iterable values) { if (querySuggestionsBuilder_ == null) { ensureQuerySuggestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, querySuggestions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, querySuggestions_); onChanged(); } else { querySuggestionsBuilder_.addAllMessages(values); @@ -1531,16 +1329,12 @@ public Builder addAllQuerySuggestions( return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder clearQuerySuggestions() { if (querySuggestionsBuilder_ == null) { @@ -1553,16 +1347,12 @@ public Builder clearQuerySuggestions() { return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ public Builder removeQuerySuggestions(int index) { if (querySuggestionsBuilder_ == null) { @@ -1575,58 +1365,42 @@ public Builder removeQuerySuggestions(int index) { return this; } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - getQuerySuggestionsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder getQuerySuggestionsBuilder( + int index) { return getQuerySuggestionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder - getQuerySuggestionsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index) { if (querySuggestionsBuilder_ == null) { - return querySuggestions_.get(index); - } else { + return querySuggestions_.get(index); } else { return querySuggestionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - .QuerySuggestionOrBuilder> - getQuerySuggestionsOrBuilderList() { + public java.util.List + getQuerySuggestionsOrBuilderList() { if (querySuggestionsBuilder_ != null) { return querySuggestionsBuilder_.getMessageOrBuilderList(); } else { @@ -1634,75 +1408,48 @@ public Builder removeQuerySuggestions(int index) { } } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - addQuerySuggestionsBuilder() { - return getQuerySuggestionsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder() { + return getQuerySuggestionsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()); } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder - addQuerySuggestionsBuilder(int index) { - return getQuerySuggestionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder( + int index) { + return getQuerySuggestionsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.getDefaultInstance()); } /** - * - * *
      * Results of the matched query suggestions. The result list is ordered and
      * the first result is a top suggestion.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder> - getQuerySuggestionsBuilderList() { + public java.util.List + getQuerySuggestionsBuilderList() { return getQuerySuggestionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder> + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder> getQuerySuggestionsFieldBuilder() { if (querySuggestionsBuilder_ == null) { - querySuggestionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion - .Builder, - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - .QuerySuggestionOrBuilder>( + querySuggestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.Builder, com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder>( querySuggestions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1712,10 +1459,8 @@ public Builder removeQuerySuggestions(int index) { return querySuggestionsBuilder_; } - private boolean tailMatchTriggered_; + private boolean tailMatchTriggered_ ; /** - * - * *
      * True if the returned suggestions are all tail suggestions.
      *
@@ -1724,7 +1469,6 @@ public Builder removeQuerySuggestions(int index) {
      * 
* * bool tail_match_triggered = 2; - * * @return The tailMatchTriggered. */ @java.lang.Override @@ -1732,8 +1476,6 @@ public boolean getTailMatchTriggered() { return tailMatchTriggered_; } /** - * - * *
      * True if the returned suggestions are all tail suggestions.
      *
@@ -1742,7 +1484,6 @@ public boolean getTailMatchTriggered() {
      * 
* * bool tail_match_triggered = 2; - * * @param value The tailMatchTriggered to set. * @return This builder for chaining. */ @@ -1754,8 +1495,6 @@ public Builder setTailMatchTriggered(boolean value) { return this; } /** - * - * *
      * True if the returned suggestions are all tail suggestions.
      *
@@ -1764,7 +1503,6 @@ public Builder setTailMatchTriggered(boolean value) {
      * 
* * bool tail_match_triggered = 2; - * * @return This builder for chaining. */ public Builder clearTailMatchTriggered() { @@ -1773,9 +1511,9 @@ public Builder clearTailMatchTriggered() { 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); } @@ -1785,13 +1523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CompleteQueryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CompleteQueryResponse) - private static final com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse(); } @@ -1800,27 +1537,27 @@ public static com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteQueryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1835,4 +1572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java similarity index 52% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java index 7cd4862c187b..d664c0206219 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryResponseOrBuilder.java @@ -1,104 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/completion_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface CompleteQueryResponseOrBuilder - extends +public interface CompleteQueryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CompleteQueryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - java.util.List + java.util.List getQuerySuggestionsList(); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getQuerySuggestions( - int index); + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ int getQuerySuggestionsCount(); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse - .QuerySuggestionOrBuilder> + java.util.List getQuerySuggestionsOrBuilderList(); /** - * - * *
    * Results of the matched query suggestions. The result list is ordered and
    * the first result is a top suggestion.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; */ - com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder - getQuerySuggestionsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder( + int index); /** - * - * *
    * True if the returned suggestions are all tail suggestions.
    *
@@ -107,7 +65,6 @@ com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion ge
    * 
* * bool tail_match_triggered = 2; - * * @return The tailMatchTriggered. */ boolean getTailMatchTriggered(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java index f55787b49da2..0facd85dbd39 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfo.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Detailed completion information including completion attribution token and
  * clicked completion info.
@@ -28,55 +11,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompletionInfo}
  */
-public final class CompletionInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CompletionInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CompletionInfo)
     CompletionInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CompletionInfo.newBuilder() to construct.
   private CompletionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CompletionInfo() {
     selectedSuggestion_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CompletionInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.CompletionInfo.class,
-            com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.CompletionInfo.class, com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder.class);
   }
 
   public static final int SELECTED_SUGGESTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object selectedSuggestion_ = "";
   /**
-   *
-   *
    * 
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The selectedSuggestion. */ @java.lang.Override @@ -85,30 +62,30 @@ public java.lang.String getSelectedSuggestion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selectedSuggestion_ = s; return s; } } /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The bytes for selectedSuggestion. */ @java.lang.Override - public com.google.protobuf.ByteString getSelectedSuggestionBytes() { + public com.google.protobuf.ByteString + getSelectedSuggestionBytes() { java.lang.Object ref = selectedSuggestion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); selectedSuggestion_ = b; return b; } else { @@ -119,8 +96,6 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() { public static final int SELECTED_POSITION_FIELD_NUMBER = 2; private int selectedPosition_ = 0; /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -128,7 +103,6 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() {
    * 
* * int32 selected_position = 2; - * * @return The selectedPosition. */ @java.lang.Override @@ -137,7 +111,6 @@ public int getSelectedPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +122,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(selectedSuggestion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedSuggestion_); } @@ -169,7 +143,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selectedSuggestion_); } if (selectedPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, selectedPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, selectedPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,16 +154,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.discoveryengine.v1beta.CompletionInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CompletionInfo other = - (com.google.cloud.discoveryengine.v1beta.CompletionInfo) obj; + com.google.cloud.discoveryengine.v1beta.CompletionInfo other = (com.google.cloud.discoveryengine.v1beta.CompletionInfo) obj; - if (!getSelectedSuggestion().equals(other.getSelectedSuggestion())) return false; - if (getSelectedPosition() != other.getSelectedPosition()) return false; + if (!getSelectedSuggestion() + .equals(other.getSelectedSuggestion())) return false; + if (getSelectedPosition() + != other.getSelectedPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,104 +186,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CompletionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CompletionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompletionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CompletionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo 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.discoveryengine.v1beta.CompletionInfo prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CompletionInfo 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 completion information including completion attribution token and
    * clicked completion info.
@@ -315,32 +285,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.CompletionInfo}
    */
-  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.discoveryengine.v1beta.CompletionInfo)
       com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.CompletionInfo.class,
-              com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.CompletionInfo.class, com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.CompletionInfo.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -351,9 +322,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor;
     }
 
     @java.lang.Override
@@ -372,11 +343,8 @@ public com.google.cloud.discoveryengine.v1beta.CompletionInfo build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.CompletionInfo buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.CompletionInfo result =
-          new com.google.cloud.discoveryengine.v1beta.CompletionInfo(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.CompletionInfo result = new com.google.cloud.discoveryengine.v1beta.CompletionInfo(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -395,39 +363,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CompletionInf
     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.discoveryengine.v1beta.CompletionInfo) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompletionInfo) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CompletionInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -435,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CompletionInfo other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance()) return this;
       if (!other.getSelectedSuggestion().isEmpty()) {
         selectedSuggestion_ = other.selectedSuggestion_;
         bitField0_ |= 0x00000001;
@@ -471,25 +437,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                selectedSuggestion_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                selectedPosition_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              selectedSuggestion_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              selectedPosition_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,26 +462,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object selectedSuggestion_ = "";
     /**
-     *
-     *
      * 
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @return The selectedSuggestion. */ public java.lang.String getSelectedSuggestion() { java.lang.Object ref = selectedSuggestion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selectedSuggestion_ = s; return s; @@ -527,22 +487,21 @@ public java.lang.String getSelectedSuggestion() { } } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @return The bytes for selectedSuggestion. */ - public com.google.protobuf.ByteString getSelectedSuggestionBytes() { + public com.google.protobuf.ByteString + getSelectedSuggestionBytes() { java.lang.Object ref = selectedSuggestion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); selectedSuggestion_ = b; return b; } else { @@ -550,37 +509,30 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() { } } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @param value The selectedSuggestion to set. * @return This builder for chaining. */ - public Builder setSelectedSuggestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedSuggestion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } selectedSuggestion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @return This builder for chaining. */ public Builder clearSelectedSuggestion() { @@ -590,22 +542,18 @@ public Builder clearSelectedSuggestion() { return this; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* * string selected_suggestion = 1; - * * @param value The bytes for selectedSuggestion to set. * @return This builder for chaining. */ - public Builder setSelectedSuggestionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedSuggestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selectedSuggestion_ = value; bitField0_ |= 0x00000001; @@ -613,10 +561,8 @@ public Builder setSelectedSuggestionBytes(com.google.protobuf.ByteString value) return this; } - private int selectedPosition_; + private int selectedPosition_ ; /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -624,7 +570,6 @@ public Builder setSelectedSuggestionBytes(com.google.protobuf.ByteString value)
      * 
* * int32 selected_position = 2; - * * @return The selectedPosition. */ @java.lang.Override @@ -632,8 +577,6 @@ public int getSelectedPosition() { return selectedPosition_; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -641,7 +584,6 @@ public int getSelectedPosition() {
      * 
* * int32 selected_position = 2; - * * @param value The selectedPosition to set. * @return This builder for chaining. */ @@ -653,8 +595,6 @@ public Builder setSelectedPosition(int value) { return this; } /** - * - * *
      * End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -662,7 +602,6 @@ public Builder setSelectedPosition(int value) {
      * 
* * int32 selected_position = 2; - * * @return This builder for chaining. */ public Builder clearSelectedPosition() { @@ -671,9 +610,9 @@ public Builder clearSelectedPosition() { 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); } @@ -683,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CompletionInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CompletionInfo) private static final com.google.cloud.discoveryengine.v1beta.CompletionInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CompletionInfo(); } @@ -697,27 +636,27 @@ public static com.google.cloud.discoveryengine.v1beta.CompletionInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompletionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.CompletionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java similarity index 63% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java index d242ab84350e..0abe4609684c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionInfoOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface CompletionInfoOrBuilder - extends +public interface CompletionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CompletionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The selectedSuggestion. */ java.lang.String getSelectedSuggestion(); /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* * string selected_suggestion = 1; - * * @return The bytes for selectedSuggestion. */ - com.google.protobuf.ByteString getSelectedSuggestionBytes(); + com.google.protobuf.ByteString + getSelectedSuggestionBytes(); /** - * - * *
    * End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion.suggestion]
@@ -60,7 +37,6 @@ public interface CompletionInfoOrBuilder
    * 
* * int32 selected_position = 2; - * * @return The selectedPosition. */ int getSelectedPosition(); diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java new file mode 100644 index 000000000000..8335537e9716 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/completion_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class CompletionServiceProto { + private CompletionServiceProto() {} + 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_discoveryengine_v1beta_CompleteQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CompleteQueryResponse_QuerySuggestion_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 * External conversation proto definition. *
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Conversation} */ -public final class Conversation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Conversation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Conversation) ConversationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Conversation.newBuilder() to construct. private Conversation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Conversation() { name_ = ""; state_ = 0; @@ -46,38 +28,34 @@ private Conversation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Conversation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Conversation.class, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder.class); + com.google.cloud.discoveryengine.v1beta.Conversation.class, com.google.cloud.discoveryengine.v1beta.Conversation.Builder.class); } /** - * - * *
    * Enumeration of the state of the conversation.
    * 
* * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Conversation.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown.
      * 
@@ -86,8 +64,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Conversation is currently open.
      * 
@@ -96,8 +72,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ IN_PROGRESS(1), /** - * - * *
      * Conversation has been completed.
      * 
@@ -109,8 +83,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown.
      * 
@@ -119,8 +91,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Conversation is currently open.
      * 
@@ -129,8 +99,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_PROGRESS_VALUE = 1; /** - * - * *
      * Conversation has been completed.
      * 
@@ -139,6 +107,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -163,51 +132,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return IN_PROGRESS; - case 2: - return COMPLETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return IN_PROGRESS; + case 2: return COMPLETED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.Conversation.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Conversation.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -225,19 +192,15 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -246,30 +209,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; } } /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -280,53 +243,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Conversation.State getState() { - com.google.cloud.discoveryengine.v1beta.Conversation.State result = - com.google.cloud.discoveryengine.v1beta.Conversation.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation.State getState() { + com.google.cloud.discoveryengine.v1beta.Conversation.State result = com.google.cloud.discoveryengine.v1beta.Conversation.State.forNumber(state_); + return result == null ? com.google.cloud.discoveryengine.v1beta.Conversation.State.UNRECOGNIZED : result; } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The userPseudoId. */ @java.lang.Override @@ -335,29 +283,29 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -366,12 +314,9 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } public static final int MESSAGES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List messages_; /** - * - * *
    * Conversation messages.
    * 
@@ -379,13 +324,10 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ @java.lang.Override - public java.util.List - getMessagesList() { + public java.util.List getMessagesList() { return messages_; } /** - * - * *
    * Conversation messages.
    * 
@@ -393,14 +335,11 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder> + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * Conversation messages.
    * 
@@ -412,8 +351,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Conversation messages.
    * 
@@ -425,8 +362,6 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage getMessages(i return messages_.get(index); } /** - * - * *
    * Conversation messages.
    * 
@@ -442,15 +377,11 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder getM public static final int START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -458,15 +389,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -474,14 +401,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -491,15 +415,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -507,15 +427,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -523,14 +439,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -538,7 +451,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -550,13 +462,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.discoveryengine.v1beta.Conversation.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.discoveryengine.v1beta.Conversation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { @@ -583,22 +494,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.discoveryengine.v1beta.Conversation.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.discoveryengine.v1beta.Conversation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userPseudoId_); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, messages_.get(i)); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -608,25 +521,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.discoveryengine.v1beta.Conversation)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Conversation other = - (com.google.cloud.discoveryengine.v1beta.Conversation) obj; + com.google.cloud.discoveryengine.v1beta.Conversation other = (com.google.cloud.discoveryengine.v1beta.Conversation) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -663,135 +580,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Conversation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Conversation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Conversation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Conversation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation 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; } /** - * - * *
    * External conversation proto definition.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Conversation} */ - 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.discoveryengine.v1beta.Conversation) com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Conversation.class, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder.class); + com.google.cloud.discoveryengine.v1beta.Conversation.class, com.google.cloud.discoveryengine.v1beta.Conversation.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.Conversation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -820,9 +733,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor; } @java.lang.Override @@ -841,18 +754,14 @@ public com.google.cloud.discoveryengine.v1beta.Conversation build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation buildPartial() { - com.google.cloud.discoveryengine.v1beta.Conversation result = - new com.google.cloud.discoveryengine.v1beta.Conversation(this); + com.google.cloud.discoveryengine.v1beta.Conversation result = new com.google.cloud.discoveryengine.v1beta.Conversation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.Conversation result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.Conversation result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -876,10 +785,14 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Conversation result.userPseudoId_ = userPseudoId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } @@ -887,39 +800,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Conversation 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.discoveryengine.v1beta.Conversation) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Conversation) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Conversation)other); } else { super.mergeFrom(other); return this; @@ -927,8 +839,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Conversation other) { - if (other == com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -960,10 +871,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Conversation ot messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000008); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessagesFieldBuilder() - : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -1001,57 +911,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1beta.ConversationMessage m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.ConversationMessage.parser(), - extensionRegistry); - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(m); - } else { - messagesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.cloud.discoveryengine.v1beta.ConversationMessage m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.ConversationMessage.parser(), + extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1061,26 +968,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1089,22 +993,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1112,37 +1015,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1152,22 +1048,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. Fully qualified name
      * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1177,29 +1069,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1210,33 +1095,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation.State getState() { - com.google.cloud.discoveryengine.v1beta.Conversation.State result = - com.google.cloud.discoveryengine.v1beta.Conversation.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.State.UNRECOGNIZED - : result; + com.google.cloud.discoveryengine.v1beta.Conversation.State result = com.google.cloud.discoveryengine.v1beta.Conversation.State.forNumber(state_); + return result == null ? com.google.cloud.discoveryengine.v1beta.Conversation.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1250,14 +1126,11 @@ public Builder setState(com.google.cloud.discoveryengine.v1beta.Conversation.Sta return this; } /** - * - * *
      * The state of the Conversation.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1269,20 +1142,18 @@ public Builder clearState() { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -1291,21 +1162,20 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -1313,35 +1183,28 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -1351,21 +1214,17 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * A unique identifier for tracking users.
      * 
* * string user_pseudo_id = 3; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00000004; @@ -1374,34 +1233,25 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } private java.util.List messages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - messages_ = - new java.util.ArrayList( - messages_); + messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ConversationMessage, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder> - messagesBuilder_; + com.google.cloud.discoveryengine.v1beta.ConversationMessage, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder> messagesBuilder_; /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - public java.util.List - getMessagesList() { + public java.util.List getMessagesList() { if (messagesBuilder_ == null) { return java.util.Collections.unmodifiableList(messages_); } else { @@ -1409,8 +1259,6 @@ private void ensureMessagesIsMutable() { } } /** - * - * *
      * Conversation messages.
      * 
@@ -1425,8 +1273,6 @@ public int getMessagesCount() { } } /** - * - * *
      * Conversation messages.
      * 
@@ -1441,8 +1287,6 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage getMessages(i } } /** - * - * *
      * Conversation messages.
      * 
@@ -1464,8 +1308,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1473,8 +1315,7 @@ public Builder setMessages( * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ public Builder setMessages( - int index, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.set(index, builderForValue.build()); @@ -1485,8 +1326,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1507,8 +1346,6 @@ public Builder addMessages(com.google.cloud.discoveryengine.v1beta.ConversationM return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1530,8 +1367,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1550,8 +1385,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1559,8 +1392,7 @@ public Builder addMessages( * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ public Builder addMessages( - int index, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(index, builderForValue.build()); @@ -1571,8 +1403,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1580,11 +1410,11 @@ public Builder addMessages( * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ public Builder addAllMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -1592,8 +1422,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1611,8 +1439,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1630,8 +1456,6 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * Conversation messages.
      * 
@@ -1643,34 +1467,28 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder getMe return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - public com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder - getMessagesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder getMessagesOrBuilder( + int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder> - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -1678,23 +1496,17 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder getMe } } /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder - addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.ConversationMessage.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder addMessagesBuilder() { + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.ConversationMessage.getDefaultInstance()); } /** - * - * *
      * Conversation messages.
      * 
@@ -1703,37 +1515,30 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder getMe */ public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder addMessagesBuilder( int index) { - return getMessagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.ConversationMessage.getDefaultInstance()); } /** - * - * *
      * Conversation messages.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ConversationMessage, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder> + com.google.cloud.discoveryengine.v1beta.ConversationMessage, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ConversationMessage, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ConversationMessage, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder, com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); messages_ = null; } return messagesBuilder_; @@ -1741,35 +1546,24 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder addMe private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1780,14 +1574,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -1803,16 +1594,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -1823,20 +1612,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1849,14 +1635,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1869,14 +1652,11 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000010; @@ -1884,44 +1664,36 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The time the conversation started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1929,35 +1701,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1968,14 +1729,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1991,16 +1749,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -2011,20 +1767,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -2037,14 +1790,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2057,14 +1807,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000020; @@ -2072,51 +1819,43 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the conversation finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @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); } @@ -2126,12 +1865,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Conversation) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Conversation) private static final com.google.cloud.discoveryengine.v1beta.Conversation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Conversation(); } @@ -2140,27 +1879,27 @@ public static com.google.cloud.discoveryengine.v1beta.Conversation getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Conversation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conversation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2175,4 +1914,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Conversation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java index edd708a1614a..c1aa43c73c54 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContext.java @@ -1,113 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Defines context of the conversation
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConversationContext} */ -public final class ConversationContext extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConversationContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ConversationContext) ConversationContextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConversationContext.newBuilder() to construct. private ConversationContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConversationContext() { - contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); activeDocument_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConversationContext(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ConversationContext.class, - com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder.class); + com.google.cloud.discoveryengine.v1beta.ConversationContext.class, com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder.class); } public static final int CONTEXT_DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return A list containing the contextDocuments. */ - public com.google.protobuf.ProtocolStringList getContextDocumentsList() { + public com.google.protobuf.ProtocolStringList + getContextDocumentsList() { return contextDocuments_; } /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return The count of contextDocuments. */ public int getContextDocumentsCount() { return contextDocuments_.size(); } /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the element to return. * @return The contextDocuments at the given index. */ @@ -115,36 +88,30 @@ public java.lang.String getContextDocuments(int index) { return contextDocuments_.get(index); } /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the value to return. * @return The bytes of the contextDocuments at the given index. */ - public com.google.protobuf.ByteString getContextDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getContextDocumentsBytes(int index) { return contextDocuments_.getByteString(index); } public static final int ACTIVE_DOCUMENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object activeDocument_ = ""; /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The activeDocument. */ @java.lang.Override @@ -153,30 +120,30 @@ public java.lang.String getActiveDocument() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeDocument_ = s; return s; } } /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The bytes for activeDocument. */ @java.lang.Override - public com.google.protobuf.ByteString getActiveDocumentBytes() { + public com.google.protobuf.ByteString + getActiveDocumentBytes() { java.lang.Object ref = activeDocument_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); activeDocument_ = b; return b; } else { @@ -185,7 +152,6 @@ public com.google.protobuf.ByteString getActiveDocumentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +163,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 < contextDocuments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextDocuments_.getRaw(i)); } @@ -232,16 +199,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.discoveryengine.v1beta.ConversationContext)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ConversationContext other = - (com.google.cloud.discoveryengine.v1beta.ConversationContext) obj; + com.google.cloud.discoveryengine.v1beta.ConversationContext other = (com.google.cloud.discoveryengine.v1beta.ConversationContext) obj; - if (!getContextDocumentsList().equals(other.getContextDocumentsList())) return false; - if (!getActiveDocument().equals(other.getActiveDocument())) return false; + if (!getContextDocumentsList() + .equals(other.getContextDocumentsList())) return false; + if (!getActiveDocument() + .equals(other.getActiveDocument())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,149 +233,145 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConversationContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ConversationContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConversationContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConversationContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext 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.discoveryengine.v1beta.ConversationContext prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ConversationContext 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; } /** - * - * *
    * Defines context of the conversation
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConversationContext} */ - 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.discoveryengine.v1beta.ConversationContext) com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ConversationContext.class, - com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder.class); + com.google.cloud.discoveryengine.v1beta.ConversationContext.class, com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.ConversationContext.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); activeDocument_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; } @java.lang.Override @@ -426,11 +390,8 @@ public com.google.cloud.discoveryengine.v1beta.ConversationContext build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ConversationContext buildPartial() { - com.google.cloud.discoveryengine.v1beta.ConversationContext result = - new com.google.cloud.discoveryengine.v1beta.ConversationContext(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.ConversationContext result = new com.google.cloud.discoveryengine.v1beta.ConversationContext(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -450,39 +411,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ConversationC 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.discoveryengine.v1beta.ConversationContext) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ConversationContext) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ConversationContext)other); } else { super.mergeFrom(other); return this; @@ -490,8 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ConversationContext other) { - if (other == com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance()) return this; if (!other.contextDocuments_.isEmpty()) { if (contextDocuments_.isEmpty()) { contextDocuments_ = other.contextDocuments_; @@ -533,26 +492,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContextDocumentsIsMutable(); - contextDocuments_.add(s); - break; - } // case 10 - case 18: - { - activeDocument_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContextDocumentsIsMutable(); + contextDocuments_.add(s); + break; + } // case 10 + case 18: { + activeDocument_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,12 +518,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContextDocumentsIsMutable() { if (!contextDocuments_.isModifiable()) { contextDocuments_ = new com.google.protobuf.LazyStringArrayList(contextDocuments_); @@ -575,46 +529,38 @@ private void ensureContextDocumentsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @return A list containing the contextDocuments. */ - public com.google.protobuf.ProtocolStringList getContextDocumentsList() { + public com.google.protobuf.ProtocolStringList + getContextDocumentsList() { contextDocuments_.makeImmutable(); return contextDocuments_; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @return The count of contextDocuments. */ public int getContextDocumentsCount() { return contextDocuments_.size(); } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param index The index of the element to return. * @return The contextDocuments at the given index. */ @@ -622,39 +568,33 @@ public java.lang.String getContextDocuments(int index) { return contextDocuments_.get(index); } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param index The index of the value to return. * @return The bytes of the contextDocuments at the given index. */ - public com.google.protobuf.ByteString getContextDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getContextDocumentsBytes(int index) { return contextDocuments_.getByteString(index); } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param index The index to set the value at. * @param value The contextDocuments to set. * @return This builder for chaining. */ - public Builder setContextDocuments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContextDocuments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContextDocumentsIsMutable(); contextDocuments_.set(index, value); bitField0_ |= 0x00000001; @@ -662,22 +602,18 @@ public Builder setContextDocuments(int index, java.lang.String value) { return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param value The contextDocuments to add. * @return This builder for chaining. */ - public Builder addContextDocuments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContextDocuments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContextDocumentsIsMutable(); contextDocuments_.add(value); bitField0_ |= 0x00000001; @@ -685,61 +621,53 @@ public Builder addContextDocuments(java.lang.String value) { return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param values The contextDocuments to add. * @return This builder for chaining. */ - public Builder addAllContextDocuments(java.lang.Iterable values) { + public Builder addAllContextDocuments( + java.lang.Iterable values) { ensureContextDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contextDocuments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contextDocuments_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @return This builder for chaining. */ public Builder clearContextDocuments() { - contextDocuments_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + contextDocuments_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The current list of documents the user is seeing.
      * It contains the document resource references.
      * 
* * repeated string context_documents = 1; - * * @param value The bytes of the contextDocuments to add. * @return This builder for chaining. */ - public Builder addContextDocumentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContextDocumentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContextDocumentsIsMutable(); contextDocuments_.add(value); @@ -750,21 +678,19 @@ public Builder addContextDocumentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object activeDocument_ = ""; /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @return The activeDocument. */ public java.lang.String getActiveDocument() { java.lang.Object ref = activeDocument_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeDocument_ = s; return s; @@ -773,22 +699,21 @@ public java.lang.String getActiveDocument() { } } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @return The bytes for activeDocument. */ - public com.google.protobuf.ByteString getActiveDocumentBytes() { + public com.google.protobuf.ByteString + getActiveDocumentBytes() { java.lang.Object ref = activeDocument_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); activeDocument_ = b; return b; } else { @@ -796,37 +721,30 @@ public com.google.protobuf.ByteString getActiveDocumentBytes() { } } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @param value The activeDocument to set. * @return This builder for chaining. */ - public Builder setActiveDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActiveDocument( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } activeDocument_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @return This builder for chaining. */ public Builder clearActiveDocument() { @@ -836,31 +754,27 @@ public Builder clearActiveDocument() { return this; } /** - * - * *
      * The current active document the user opened.
      * It contains the document resource reference.
      * 
* * string active_document = 2; - * * @param value The bytes for activeDocument to set. * @return This builder for chaining. */ - public Builder setActiveDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActiveDocumentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); activeDocument_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -870,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ConversationContext) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ConversationContext) private static final com.google.cloud.discoveryengine.v1beta.ConversationContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ConversationContext(); } @@ -884,27 +798,27 @@ public static com.google.cloud.discoveryengine.v1beta.ConversationContext getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -919,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ConversationContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java index 6900dea9877e..7de79f9f1b26 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationContextOrBuilder.java @@ -1,107 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; -public interface ConversationContextOrBuilder - extends +public interface ConversationContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ConversationContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return A list containing the contextDocuments. */ - java.util.List getContextDocumentsList(); + java.util.List + getContextDocumentsList(); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @return The count of contextDocuments. */ int getContextDocumentsCount(); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the element to return. * @return The contextDocuments at the given index. */ java.lang.String getContextDocuments(int index); /** - * - * *
    * The current list of documents the user is seeing.
    * It contains the document resource references.
    * 
* * repeated string context_documents = 1; - * * @param index The index of the value to return. * @return The bytes of the contextDocuments at the given index. */ - com.google.protobuf.ByteString getContextDocumentsBytes(int index); + com.google.protobuf.ByteString + getContextDocumentsBytes(int index); /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The activeDocument. */ java.lang.String getActiveDocument(); /** - * - * *
    * The current active document the user opened.
    * It contains the document resource reference.
    * 
* * string active_document = 2; - * * @return The bytes for activeDocument. */ - com.google.protobuf.ByteString getActiveDocumentBytes(); + com.google.protobuf.ByteString + getActiveDocumentBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java index fdbd8f5578d4..a739bf86836d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessage.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Defines a conversation message.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConversationMessage} */ -public final class ConversationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConversationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ConversationMessage) ConversationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConversationMessage.newBuilder() to construct. private ConversationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConversationMessage() {} + private ConversationMessage() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConversationMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ConversationMessage.class, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder.class); + com.google.cloud.discoveryengine.v1beta.ConversationMessage.class, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder.class); } private int messageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object message_; - public enum MessageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USER_INPUT(1), REPLY(2), MESSAGE_NOT_SET(0); private final int value; - private MessageCase(int value) { this.value = value; } @@ -89,36 +67,30 @@ public static MessageCase valueOf(int value) { public static MessageCase forNumber(int value) { switch (value) { - case 1: - return USER_INPUT; - case 2: - return REPLY; - case 0: - return MESSAGE_NOT_SET; - default: - return null; + case 1: return USER_INPUT; + case 2: return REPLY; + case 0: return MESSAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); } public static final int USER_INPUT_FIELD_NUMBER = 1; /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; - * * @return Whether the userInput field is set. */ @java.lang.Override @@ -126,26 +98,21 @@ public boolean hasUserInput() { return messageCase_ == 1; } /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; - * * @return The userInput. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TextInput getUserInput() { if (messageCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.TextInput) message_; + return (com.google.cloud.discoveryengine.v1beta.TextInput) message_; } return com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance(); } /** - * - * *
    * User text input.
    * 
@@ -155,21 +122,18 @@ public com.google.cloud.discoveryengine.v1beta.TextInput getUserInput() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getUserInputOrBuilder() { if (messageCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.TextInput) message_; + return (com.google.cloud.discoveryengine.v1beta.TextInput) message_; } return com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance(); } public static final int REPLY_FIELD_NUMBER = 2; /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; - * * @return Whether the reply field is set. */ @java.lang.Override @@ -177,26 +141,21 @@ public boolean hasReply() { return messageCase_ == 2; } /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; - * * @return The reply. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Reply getReply() { if (messageCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Reply) message_; + return (com.google.cloud.discoveryengine.v1beta.Reply) message_; } return com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance(); } /** - * - * *
    * Search reply.
    * 
@@ -206,7 +165,7 @@ public com.google.cloud.discoveryengine.v1beta.Reply getReply() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder() { if (messageCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Reply) message_; + return (com.google.cloud.discoveryengine.v1beta.Reply) message_; } return com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance(); } @@ -214,15 +173,11 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -230,15 +185,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -246,14 +197,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -261,7 +209,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +220,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 (messageCase_ == 1) { output.writeMessage(1, (com.google.cloud.discoveryengine.v1beta.TextInput) message_); } @@ -293,17 +241,16 @@ public int getSerializedSize() { size = 0; if (messageCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.discoveryengine.v1beta.TextInput) message_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.discoveryengine.v1beta.TextInput) message_); } if (messageCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.discoveryengine.v1beta.Reply) message_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1beta.Reply) message_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -313,25 +260,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.discoveryengine.v1beta.ConversationMessage)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ConversationMessage other = - (com.google.cloud.discoveryengine.v1beta.ConversationMessage) obj; + com.google.cloud.discoveryengine.v1beta.ConversationMessage other = (com.google.cloud.discoveryengine.v1beta.ConversationMessage) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!getMessageCase().equals(other.getMessageCase())) return false; switch (messageCase_) { case 1: - if (!getUserInput().equals(other.getUserInput())) return false; + if (!getUserInput() + .equals(other.getUserInput())) return false; break; case 2: - if (!getReply().equals(other.getReply())) return false; + if (!getReply() + .equals(other.getReply())) return false; break; case 0: default: @@ -369,136 +318,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConversationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ConversationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConversationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConversationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage 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.discoveryengine.v1beta.ConversationMessage prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ConversationMessage 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; } /** - * - * *
    * Defines a conversation message.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConversationMessage} */ - 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.discoveryengine.v1beta.ConversationMessage) com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ConversationMessage.class, - com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder.class); + com.google.cloud.discoveryengine.v1beta.ConversationMessage.class, com.google.cloud.discoveryengine.v1beta.ConversationMessage.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.ConversationMessage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; } @java.lang.Override @@ -541,11 +485,8 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ConversationMessage buildPartial() { - com.google.cloud.discoveryengine.v1beta.ConversationMessage result = - new com.google.cloud.discoveryengine.v1beta.ConversationMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.ConversationMessage result = new com.google.cloud.discoveryengine.v1beta.ConversationMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -554,18 +495,21 @@ public com.google.cloud.discoveryengine.v1beta.ConversationMessage buildPartial( private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ConversationMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.ConversationMessage result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.ConversationMessage result) { result.messageCase_ = messageCase_; result.message_ = this.message_; - if (messageCase_ == 1 && userInputBuilder_ != null) { + if (messageCase_ == 1 && + userInputBuilder_ != null) { result.message_ = userInputBuilder_.build(); } - if (messageCase_ == 2 && replyBuilder_ != null) { + if (messageCase_ == 2 && + replyBuilder_ != null) { result.message_ = replyBuilder_.build(); } } @@ -574,39 +518,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.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.discoveryengine.v1beta.ConversationMessage) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ConversationMessage) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ConversationMessage)other); } else { super.mergeFrom(other); return this; @@ -614,26 +557,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ConversationMessage other) { - if (other == com.google.cloud.discoveryengine.v1beta.ConversationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.ConversationMessage.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } switch (other.getMessageCase()) { - case USER_INPUT: - { - mergeUserInput(other.getUserInput()); - break; - } - case REPLY: - { - mergeReply(other.getReply()); - break; - } - case MESSAGE_NOT_SET: - { - break; - } + case USER_INPUT: { + mergeUserInput(other.getUserInput()); + break; + } + case REPLY: { + mergeReply(other.getReply()); + break; + } + case MESSAGE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -661,31 +600,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUserInputFieldBuilder().getBuilder(), extensionRegistry); - messageCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getReplyFieldBuilder().getBuilder(), extensionRegistry); - messageCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUserInputFieldBuilder().getBuilder(), + extensionRegistry); + messageCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getReplyFieldBuilder().getBuilder(), + extensionRegistry); + messageCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -695,12 +636,12 @@ public Builder mergeFrom( } // finally return this; } - private int messageCase_ = 0; private java.lang.Object message_; - - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); } public Builder clearMessage() { @@ -713,19 +654,13 @@ public Builder clearMessage() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TextInput, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder, - com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> - userInputBuilder_; + com.google.cloud.discoveryengine.v1beta.TextInput, com.google.cloud.discoveryengine.v1beta.TextInput.Builder, com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> userInputBuilder_; /** - * - * *
      * User text input.
      * 
* * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; - * * @return Whether the userInput field is set. */ @java.lang.Override @@ -733,14 +668,11 @@ public boolean hasUserInput() { return messageCase_ == 1; } /** - * - * *
      * User text input.
      * 
* * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; - * * @return The userInput. */ @java.lang.Override @@ -758,8 +690,6 @@ public com.google.cloud.discoveryengine.v1beta.TextInput getUserInput() { } } /** - * - * *
      * User text input.
      * 
@@ -780,8 +710,6 @@ public Builder setUserInput(com.google.cloud.discoveryengine.v1beta.TextInput va return this; } /** - * - * *
      * User text input.
      * 
@@ -800,8 +728,6 @@ public Builder setUserInput( return this; } /** - * - * *
      * User text input.
      * 
@@ -810,13 +736,10 @@ public Builder setUserInput( */ public Builder mergeUserInput(com.google.cloud.discoveryengine.v1beta.TextInput value) { if (userInputBuilder_ == null) { - if (messageCase_ == 1 - && message_ != com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance()) { - message_ = - com.google.cloud.discoveryengine.v1beta.TextInput.newBuilder( - (com.google.cloud.discoveryengine.v1beta.TextInput) message_) - .mergeFrom(value) - .buildPartial(); + if (messageCase_ == 1 && + message_ != com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance()) { + message_ = com.google.cloud.discoveryengine.v1beta.TextInput.newBuilder((com.google.cloud.discoveryengine.v1beta.TextInput) message_) + .mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -832,8 +755,6 @@ public Builder mergeUserInput(com.google.cloud.discoveryengine.v1beta.TextInput return this; } /** - * - * *
      * User text input.
      * 
@@ -857,8 +778,6 @@ public Builder clearUserInput() { return this; } /** - * - * *
      * User text input.
      * 
@@ -869,8 +788,6 @@ public com.google.cloud.discoveryengine.v1beta.TextInput.Builder getUserInputBui return getUserInputFieldBuilder().getBuilder(); } /** - * - * *
      * User text input.
      * 
@@ -889,8 +806,6 @@ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getUserInputOr } } /** - * - * *
      * User text input.
      * 
@@ -898,19 +813,14 @@ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getUserInputOr * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TextInput, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder, - com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> + com.google.cloud.discoveryengine.v1beta.TextInput, com.google.cloud.discoveryengine.v1beta.TextInput.Builder, com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> getUserInputFieldBuilder() { if (userInputBuilder_ == null) { if (!(messageCase_ == 1)) { message_ = com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance(); } - userInputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TextInput, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder, - com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder>( + userInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.TextInput, com.google.cloud.discoveryengine.v1beta.TextInput.Builder, com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder>( (com.google.cloud.discoveryengine.v1beta.TextInput) message_, getParentForChildren(), isClean()); @@ -922,19 +832,13 @@ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getUserInputOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply, - com.google.cloud.discoveryengine.v1beta.Reply.Builder, - com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> - replyBuilder_; + com.google.cloud.discoveryengine.v1beta.Reply, com.google.cloud.discoveryengine.v1beta.Reply.Builder, com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> replyBuilder_; /** - * - * *
      * Search reply.
      * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; - * * @return Whether the reply field is set. */ @java.lang.Override @@ -942,14 +846,11 @@ public boolean hasReply() { return messageCase_ == 2; } /** - * - * *
      * Search reply.
      * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; - * * @return The reply. */ @java.lang.Override @@ -967,8 +868,6 @@ public com.google.cloud.discoveryengine.v1beta.Reply getReply() { } } /** - * - * *
      * Search reply.
      * 
@@ -989,15 +888,14 @@ public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply value) { return this; } /** - * - * *
      * Search reply.
      * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; */ - public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply.Builder builderForValue) { + public Builder setReply( + com.google.cloud.discoveryengine.v1beta.Reply.Builder builderForValue) { if (replyBuilder_ == null) { message_ = builderForValue.build(); onChanged(); @@ -1008,8 +906,6 @@ public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply.Builder bu return this; } /** - * - * *
      * Search reply.
      * 
@@ -1018,13 +914,10 @@ public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply.Builder bu */ public Builder mergeReply(com.google.cloud.discoveryengine.v1beta.Reply value) { if (replyBuilder_ == null) { - if (messageCase_ == 2 - && message_ != com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance()) { - message_ = - com.google.cloud.discoveryengine.v1beta.Reply.newBuilder( - (com.google.cloud.discoveryengine.v1beta.Reply) message_) - .mergeFrom(value) - .buildPartial(); + if (messageCase_ == 2 && + message_ != com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance()) { + message_ = com.google.cloud.discoveryengine.v1beta.Reply.newBuilder((com.google.cloud.discoveryengine.v1beta.Reply) message_) + .mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -1040,8 +933,6 @@ public Builder mergeReply(com.google.cloud.discoveryengine.v1beta.Reply value) { return this; } /** - * - * *
      * Search reply.
      * 
@@ -1065,8 +956,6 @@ public Builder clearReply() { return this; } /** - * - * *
      * Search reply.
      * 
@@ -1077,8 +966,6 @@ public com.google.cloud.discoveryengine.v1beta.Reply.Builder getReplyBuilder() { return getReplyFieldBuilder().getBuilder(); } /** - * - * *
      * Search reply.
      * 
@@ -1097,8 +984,6 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( } } /** - * - * *
      * Search reply.
      * 
@@ -1106,19 +991,14 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( * .google.cloud.discoveryengine.v1beta.Reply reply = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply, - com.google.cloud.discoveryengine.v1beta.Reply.Builder, - com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> + com.google.cloud.discoveryengine.v1beta.Reply, com.google.cloud.discoveryengine.v1beta.Reply.Builder, com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> getReplyFieldBuilder() { if (replyBuilder_ == null) { if (!(messageCase_ == 2)) { message_ = com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance(); } - replyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply, - com.google.cloud.discoveryengine.v1beta.Reply.Builder, - com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder>( + replyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Reply, com.google.cloud.discoveryengine.v1beta.Reply.Builder, com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder>( (com.google.cloud.discoveryengine.v1beta.Reply) message_, getParentForChildren(), isClean()); @@ -1131,58 +1011,39 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1198,17 +1059,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1219,21 +1077,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1246,15 +1100,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1267,15 +1117,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1283,55 +1129,43 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Message creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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); } @@ -1341,12 +1175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ConversationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ConversationMessage) private static final com.google.cloud.discoveryengine.v1beta.ConversationMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ConversationMessage(); } @@ -1355,27 +1189,27 @@ public static com.google.cloud.discoveryengine.v1beta.ConversationMessage getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1390,4 +1224,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ConversationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java index 126ec5e8689b..f41b8c2b9208 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationMessageOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; -public interface ConversationMessageOrBuilder - extends +public interface ConversationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ConversationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; - * * @return Whether the userInput field is set. */ boolean hasUserInput(); /** - * - * *
    * User text input.
    * 
* * .google.cloud.discoveryengine.v1beta.TextInput user_input = 1; - * * @return The userInput. */ com.google.cloud.discoveryengine.v1beta.TextInput getUserInput(); /** - * - * *
    * User text input.
    * 
@@ -59,32 +35,24 @@ public interface ConversationMessageOrBuilder com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getUserInputOrBuilder(); /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; - * * @return Whether the reply field is set. */ boolean hasReply(); /** - * - * *
    * Search reply.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 2; - * * @return The reply. */ com.google.cloud.discoveryengine.v1beta.Reply getReply(); /** - * - * *
    * Search reply.
    * 
@@ -94,40 +62,29 @@ public interface ConversationMessageOrBuilder com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder(); /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Message creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java index 33ab4a998585..1c627daceee0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationOrBuilder.java @@ -1,118 +1,83 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; -public interface ConversationOrBuilder - extends +public interface ConversationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Conversation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. Fully qualified name
    * `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the Conversation.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation.State state = 2; - * * @return The state. */ com.google.cloud.discoveryengine.v1beta.Conversation.State getState(); /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * A unique identifier for tracking users.
    * 
* * string user_pseudo_id = 3; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * Conversation messages.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * Conversation messages.
    * 
@@ -121,8 +86,6 @@ public interface ConversationOrBuilder */ com.google.cloud.discoveryengine.v1beta.ConversationMessage getMessages(int index); /** - * - * *
    * Conversation messages.
    * 
@@ -131,19 +94,15 @@ public interface ConversationOrBuilder */ int getMessagesCount(); /** - * - * *
    * Conversation messages.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.ConversationMessage messages = 4; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * Conversation messages.
    * 
@@ -154,78 +113,56 @@ com.google.cloud.discoveryengine.v1beta.ConversationMessageOrBuilder getMessages int index); /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The time the conversation started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the conversation finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); } diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationProto.java new file mode 100644 index 000000000000..d80e00cef964 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationProto.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/conversation.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class ConversationProto { + private ConversationProto() {} + 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_discoveryengine_v1beta_Conversation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_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/discoveryengine/v1beta/co" + + "nversation.proto\022#google.cloud.discovery" + + "engine.v1beta\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\0328googl" + + "e/cloud/discoveryengine/v1beta/search_se" + + "rvice.proto\032\037google/protobuf/timestamp.p" + + "roto\"\201\005\n\014Conversation\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\005\022F\n\005state\030\002 \001(\01627.google.cloud.discover" + + "yengine.v1beta.Conversation.State\022\026\n\016use" + + "r_pseudo_id\030\003 \001(\t\022J\n\010messages\030\004 \003(\01328.go" + + "ogle.cloud.discoveryengine.v1beta.Conver" + + "sationMessage\0224\n\nstart_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030" + + "\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"" + + ">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013IN_PR" + + "OGRESS\020\001\022\r\n\tCOMPLETED\020\002:\206\002\352A\202\002\n+discover" + + "yengine.googleapis.com/Conversation\022\\pro" + + "jects/{project}/locations/{location}/dat" + + "aStores/{data_store}/conversations/{conv" + + "ersation}\022uprojects/{project}/locations/" + + "{location}/collections/{collection}/data" + + "Stores/{data_store}/conversations/{conve" + + "rsation}\"\205\002\n\005Reply\022\021\n\005reply\030\001 \001(\tB\002\030\001\022L\n" + + "\nreferences\030\002 \003(\01324.google.cloud.discove" + + "ryengine.v1beta.Reply.ReferenceB\002\030\001\022L\n\007s" + + "ummary\030\003 \001(\0132;.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.Summary\032M\n\tRef" + + "erence\022\013\n\003uri\030\001 \001(\t\022\023\n\013anchor_text\030\002 \001(\t" + + "\022\r\n\005start\030\003 \001(\005\022\013\n\003end\030\004 \001(\005:\002\030\001\"I\n\023Conv" + + "ersationContext\022\031\n\021context_documents\030\001 \003" + + "(\t\022\027\n\017active_document\030\002 \001(\t\"e\n\tTextInput" + + "\022\r\n\005input\030\001 \001(\t\022I\n\007context\030\002 \001(\01328.googl" + + "e.cloud.discoveryengine.v1beta.Conversat" + + "ionContext\"\332\001\n\023ConversationMessage\022D\n\nus" + + "er_input\030\001 \001(\0132..google.cloud.discoverye" + + "ngine.v1beta.TextInputH\000\022;\n\005reply\030\002 \001(\0132" + + "*.google.cloud.discoveryengine.v1beta.Re" + + "plyH\000\0225\n\013create_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampB\004\342A\001\003B\t\n\007messageB\230\002\n\'com." + + "google.cloud.discoveryengine.v1betaB\021Con" + + "versationProtoP\001ZQcloud.google.com/go/di" + + "scoveryengine/apiv1beta/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" + + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" + + "le::Cloud::DiscoveryEngine::V1betab\006prot" + + "o3" + }; + 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.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Conversation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Conversation_descriptor, + new java.lang.String[] { "Name", "State", "UserPseudoId", "Messages", "StartTime", "EndTime", }); + internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor, + new java.lang.String[] { "Reply", "References", "Summary", }); + internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor, + new java.lang.String[] { "Uri", "AnchorText", "Start", "End", }); + internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ConversationContext_descriptor, + new java.lang.String[] { "ContextDocuments", "ActiveDocument", }); + internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor, + new java.lang.String[] { "Input", "Context", }); + internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ConversationMessage_descriptor, + new java.lang.String[] { "UserInput", "Reply", "CreateTime", "Message", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java new file mode 100644 index 000000000000..0142ffe87106 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java @@ -0,0 +1,272 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class ConversationalSearchServiceProto { + private ConversationalSearchServiceProto() {} + 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_discoveryengine_v1beta_ConverseConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nGgoogle/cloud/discoveryengine/v1beta/co" + + "nversational_search_service.proto\022#googl" + + "e.cloud.discoveryengine.v1beta\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\0326google/cloud/" + + "discoveryengine/v1beta/conversation.prot" + + "o\0328google/cloud/discoveryengine/v1beta/s" + + "earch_service.proto\032\033google/protobuf/emp" + + "ty.proto\032 google/protobuf/field_mask.pro" + + "to\"\321\004\n\033ConverseConversationRequest\022B\n\004na" + + "me\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryengine.googl" + + "eapis.com/Conversation\022C\n\005query\030\002 \001(\0132.." + + "google.cloud.discoveryengine.v1beta.Text" + + "InputB\004\342A\001\002\022I\n\016serving_config\030\003 \001(\tB1\372A." + + "\n,discoveryengine.googleapis.com/Serving" + + "Config\022G\n\014conversation\030\005 \001(\01321.google.cl" + + "oud.discoveryengine.v1beta.Conversation\022" + + "\023\n\013safe_search\030\006 \001(\010\022e\n\013user_labels\030\007 \003(" + + "\0132P.google.cloud.discoveryengine.v1beta." + + "ConverseConversationRequest.UserLabelsEn" + + "try\022f\n\014summary_spec\030\010 \001(\0132P.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.Co" + + "ntentSearchSpec.SummarySpec\0321\n\017UserLabel" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\227" + + "\002\n\034ConverseConversationResponse\0229\n\005reply" + + "\030\001 \001(\0132*.google.cloud.discoveryengine.v1" + + "beta.Reply\022G\n\014conversation\030\002 \001(\01321.googl" + + "e.cloud.discoveryengine.v1beta.Conversat" + + "ion\022\031\n\021related_questions\030\006 \003(\t\022X\n\016search" + + "_results\030\003 \003(\0132@.google.cloud.discoverye" + + "ngine.v1beta.SearchResponse.SearchResult" + + "\"\255\001\n\031CreateConversationRequest\022A\n\006parent" + + "\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.googlea" + + "pis.com/DataStore\022M\n\014conversation\030\002 \001(\0132" + + "1.google.cloud.discoveryengine.v1beta.Co" + + "nversationB\004\342A\001\002\"\233\001\n\031UpdateConversationR" + + "equest\022M\n\014conversation\030\001 \001(\01321.google.cl" + + "oud.discoveryengine.v1beta.ConversationB" + + "\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"_\n\031DeleteConversationRequ" + + "est\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryeng" + + "ine.googleapis.com/Conversation\"\\\n\026GetCo" + + "nversationRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" + + "\n+discoveryengine.googleapis.com/Convers" + + "ation\"\246\001\n\030ListConversationsRequest\022A\n\006pa" + + "rent\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.goo" + + "gleapis.com/DataStore\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010" + + "order_by\030\005 \001(\t\"~\n\031ListConversationsRespo" + + "nse\022H\n\rconversations\030\001 \003(\01321.google.clou" + + "d.discoveryengine.v1beta.Conversation\022\027\n" + + "\017next_page_token\030\002 \001(\t2\266\020\n\033Conversationa" + + "lSearchService\022\342\002\n\024ConverseConversation\022" + + "@.google.cloud.discoveryengine.v1beta.Co" + + "nverseConversationRequest\032A.google.cloud" + + ".discoveryengine.v1beta.ConverseConversa" + + "tionResponse\"\304\001\332A\nname,query\202\323\344\223\002\260\001\"K/v1" + + "beta/{name=projects/*/locations/*/dataSt" + + "ores/*/conversations/*}:converse:\001*Z^\"Y/" + + "v1beta/{name=projects/*/locations/*/coll" + + "ections/*/dataStores/*/conversations/*}:" + + "converse:\001*\022\333\002\n\022CreateConversation\022>.goo" + + "gle.cloud.discoveryengine.v1beta.CreateC" + + "onversationRequest\0321.google.cloud.discov" + + "eryengine.v1beta.Conversation\"\321\001\332A\023paren" + + "t,conversation\202\323\344\223\002\264\001\"B/v1beta/{parent=p" + + "rojects/*/locations/*/dataStores/*}/conv" + + "ersations:\014conversationZ`\"P/v1beta/{pare" + + "nt=projects/*/locations/*/collections/*/" + + "dataStores/*}/conversations:\014conversatio" + + "n\022\225\002\n\022DeleteConversation\022>.google.cloud." + + "discoveryengine.v1beta.DeleteConversatio" + + "nRequest\032\026.google.protobuf.Empty\"\246\001\332A\004na" + + "me\202\323\344\223\002\230\001*B/v1beta/{name=projects/*/loca" + + "tions/*/dataStores/*/conversations/*}ZR*" + + "P/v1beta/{name=projects/*/locations/*/co" + + "llections/*/dataStores/*/conversations/*" + + "}\022\372\002\n\022UpdateConversation\022>.google.cloud." + + "discoveryengine.v1beta.UpdateConversatio" + + "nRequest\0321.google.cloud.discoveryengine." + + "v1beta.Conversation\"\360\001\332A\030conversation,up" + + "date_mask\202\323\344\223\002\316\0012O/v1beta/{conversation." + + "name=projects/*/locations/*/dataStores/*" + + "/conversations/*}:\014conversationZm2]/v1be" + + "ta/{conversation.name=projects/*/locatio" + + "ns/*/collections/*/dataStores/*/conversa" + + "tions/*}:\014conversation\022\252\002\n\017GetConversati" + + "on\022;.google.cloud.discoveryengine.v1beta" + + ".GetConversationRequest\0321.google.cloud.d" + + "iscoveryengine.v1beta.Conversation\"\246\001\332A\004" + + "name\202\323\344\223\002\230\001\022B/v1beta/{name=projects/*/lo" + + "cations/*/dataStores/*/conversations/*}Z" + + "R\022P/v1beta/{name=projects/*/locations/*/" + + "collections/*/dataStores/*/conversations" + + "/*}\022\275\002\n\021ListConversations\022=.google.cloud" + + ".discoveryengine.v1beta.ListConversation" + + "sRequest\032>.google.cloud.discoveryengine." + + "v1beta.ListConversationsResponse\"\250\001\332A\006pa" + + "rent\202\323\344\223\002\230\001\022B/v1beta/{parent=projects/*/" + + "locations/*/dataStores/*}/conversationsZ" + + "R\022P/v1beta/{parent=projects/*/locations/" + + "*/collections/*/dataStores/*}/conversati" + + "ons\032R\312A\036discoveryengine.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\247\002\n\'com.google.cloud.discoveryen" + + "gine.v1betaB ConversationalSearchService" + + "ProtoP\001ZQcloud.google.com/go/discoveryen" + + "gine/apiv1beta/discoveryenginepb;discove" + + "ryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cl" + + "oud.DiscoveryEngine.V1Beta\312\002#Google\\Clou" + + "d\\DiscoveryEngine\\V1beta\352\002&Google::Cloud" + + "::DiscoveryEngine::V1betab\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.discoveryengine.v1beta.ConversationProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor, + new java.lang.String[] { "Name", "Query", "ServingConfig", "Conversation", "SafeSearch", "UserLabels", "SummarySpec", }); + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor, + new java.lang.String[] { "Reply", "Conversation", "RelatedQuestions", "SearchResults", }); + internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor, + new java.lang.String[] { "Parent", "Conversation", }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor, + new java.lang.String[] { "Conversation", "UpdateMask", }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor, + new java.lang.String[] { "Conversations", "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); + 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.discoveryengine.v1beta.ConversationProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java index 676bb8df8def..fb653e42a882 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConverseConversationRequest}
  */
-public final class ConverseConversationRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConverseConversationRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ConverseConversationRequest)
     ConverseConversationRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConverseConversationRequest.newBuilder() to construct.
   private ConverseConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConverseConversationRequest() {
     name_ = "";
     servingConfig_ = "";
@@ -46,43 +28,40 @@ private ConverseConversationRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConverseConversationRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_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 7:
         return internalGetUserLabels();
       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.discoveryengine.v1beta.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.class,
-            com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.class, com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -92,10 +71,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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 @@ -104,15 +80,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. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -122,18 +97,17 @@ public java.lang.String getName() {
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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 { @@ -144,16 +118,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int QUERY_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.TextInput query_; /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the query field is set. */ @java.lang.Override @@ -161,49 +130,33 @@ public boolean hasQuery() { return query_ != null; } /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TextInput getQuery() { - return query_ == null - ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() - : query_; + return query_ == null ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() : query_; } /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getQueryOrBuilder() { - return query_ == null - ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() - : query_; + return query_ == null ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() : query_; } public static final int SERVING_CONFIG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object servingConfig_ = ""; /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -211,7 +164,6 @@ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getQueryOrBuil
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The servingConfig. */ @java.lang.Override @@ -220,15 +172,14 @@ public java.lang.String getServingConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; } } /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -236,15 +187,16 @@ public java.lang.String getServingConfig() {
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for servingConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -255,8 +207,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { public static final int CONVERSATION_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -264,7 +214,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5; - * * @return Whether the conversation field is set. */ @java.lang.Override @@ -272,8 +221,6 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -281,18 +228,13 @@ public boolean hasConversation() {
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5; - * * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -303,22 +245,17 @@ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() {
-    return conversation_ == null
-        ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()
-        : conversation_;
+    return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_;
   }
 
   public static final int SAFE_SEARCH_FIELD_NUMBER = 6;
   private boolean safeSearch_ = false;
   /**
-   *
-   *
    * 
    * Whether to turn on safe search.
    * 
* * bool safe_search = 6; - * * @return The safeSearch. */ @java.lang.Override @@ -327,34 +264,32 @@ public boolean getSafeSearch() { } public static final int USER_LABELS_FIELD_NUMBER = 7; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_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.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -378,21 +313,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 7;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -420,8 +354,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -445,19 +377,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 7;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -481,11 +411,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 7;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -493,19 +423,13 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int SUMMARY_SPEC_FIELD_NUMBER = 8;
-  private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
-      summarySpec_;
+  private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_;
   /**
-   *
-   *
    * 
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return Whether the summarySpec field is set. */ @java.lang.Override @@ -513,49 +437,30 @@ public boolean hasSummarySpec() { return summarySpec_ != null; } /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return The summarySpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,7 +472,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_); } @@ -583,8 +489,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (safeSearch_ != false) { output.writeBool(6, safeSearch_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 7); if (summarySpec_ != null) { output.writeMessage(8, getSummarySpec()); } @@ -601,29 +511,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (query_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, servingConfig_); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getConversation()); } if (safeSearch_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, safeSearch_); - } - for (java.util.Map.Entry entry : - internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry userLabels__ = - UserLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, userLabels__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, safeSearch_); + } + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, userLabels__); } if (summarySpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSummarySpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSummarySpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -633,29 +547,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest other = - (com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest) obj; + com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest other = (com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; } - if (!getServingConfig().equals(other.getServingConfig())) return false; + if (!getServingConfig() + .equals(other.getServingConfig())) return false; if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } - if (getSafeSearch() != other.getSafeSearch()) return false; - if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (getSafeSearch() + != other.getSafeSearch()) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; if (hasSummarySpec() != other.hasSummarySpec()) return false; if (hasSummarySpec()) { - if (!getSummarySpec().equals(other.getSummarySpec())) return false; + if (!getSummarySpec() + .equals(other.getSummarySpec())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -681,7 +601,8 @@ public int hashCode() { hash = (53 * hash) + getConversation().hashCode(); } hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSafeSearch()); if (!internalGetUserLabels().getMap().isEmpty()) { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode(); @@ -696,105 +617,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest 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.discoveryengine.v1beta.ConverseConversationRequest 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.discoveryengine.v1beta.ConverseConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest 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.discoveryengine.v1beta.ConverseConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest 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.discoveryengine.v1beta.ConverseConversationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest 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.discoveryengine.v1beta.ConverseConversationRequest 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.discoveryengine.v1beta.ConverseConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest 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
    * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation]
@@ -803,53 +717,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConverseConversationRequest}
    */
-  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.discoveryengine.v1beta.ConverseConversationRequest)
       com.google.cloud.discoveryengine.v1beta.ConverseConversationRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetUserLabels();
         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 7:
           return internalGetMutableUserLabels();
         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.discoveryengine.v1beta.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.class,
-              com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.class, com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -877,16 +793,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest
-          .getDefaultInstance();
+    public com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest getDefaultInstanceForType() {
+      return com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -900,30 +814,29 @@ public com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest build
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest result =
-          new com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest result = new com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build();
+        result.query_ = queryBuilder_ == null
+            ? query_
+            : queryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.servingConfig_ = servingConfig_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.conversation_ =
-            conversationBuilder_ == null ? conversation_ : conversationBuilder_.build();
+        result.conversation_ = conversationBuilder_ == null
+            ? conversation_
+            : conversationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.safeSearch_ = safeSearch_;
@@ -933,8 +846,9 @@ private void buildPartial0(
         result.userLabels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.summarySpec_ =
-            summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build();
+        result.summarySpec_ = summarySpecBuilder_ == null
+            ? summarySpec_
+            : summarySpecBuilder_.build();
       }
     }
 
@@ -942,51 +856,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest) {
-        return mergeFrom(
-            (com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest other) {
+      if (other == com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1006,7 +915,8 @@ public Builder mergeFrom(
       if (other.getSafeSearch() != false) {
         setSafeSearch(other.getSafeSearch());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00000020;
       if (other.hasSummarySpec()) {
         mergeSummarySpec(other.getSummarySpec());
@@ -1037,61 +947,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getQueryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                servingConfig_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 42:
-              {
-                input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 48:
-              {
-                safeSearch_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 48
-            case 58:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getSummarySpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getQueryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              servingConfig_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 42: {
+              input.readMessage(
+                  getConversationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 48: {
+              safeSearch_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 48
+            case 58: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getSummarySpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1101,13 +1007,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1117,16 +1020,14 @@ public Builder mergeFrom(
      * conversation inside a ConverseConversation session.
      * 
* - * - * 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; @@ -1135,8 +1036,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1146,17 +1045,16 @@ public java.lang.String getName() {
      * conversation inside a ConverseConversation session.
      * 
* - * - * 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 { @@ -1164,8 +1062,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1175,25 +1071,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * conversation inside a ConverseConversation session.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1203,10 +1093,7 @@ public Builder setName(java.lang.String value) {
      * conversation inside a ConverseConversation session.
      * 
* - * - * 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() { @@ -1216,8 +1103,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -1227,17 +1112,13 @@ public Builder clearName() {
      * conversation inside a ConverseConversation session.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1247,58 +1128,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.TextInput query_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TextInput, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder, - com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> - queryBuilder_; + com.google.cloud.discoveryengine.v1beta.TextInput, com.google.cloud.discoveryengine.v1beta.TextInput.Builder, com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> queryBuilder_; /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the query field is set. */ public boolean hasQuery() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ public com.google.cloud.discoveryengine.v1beta.TextInput getQuery() { if (queryBuilder_ == null) { - return query_ == null - ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() - : query_; + return query_ == null ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() : query_; } else { return queryBuilder_.getMessage(); } } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setQuery(com.google.cloud.discoveryengine.v1beta.TextInput value) { if (queryBuilder_ == null) { @@ -1314,15 +1176,11 @@ public Builder setQuery(com.google.cloud.discoveryengine.v1beta.TextInput value) return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setQuery( com.google.cloud.discoveryengine.v1beta.TextInput.Builder builderForValue) { @@ -1336,21 +1194,17 @@ public Builder setQuery( return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeQuery(com.google.cloud.discoveryengine.v1beta.TextInput value) { if (queryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && query_ != null - && query_ != com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + query_ != null && + query_ != com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance()) { getQueryBuilder().mergeFrom(value); } else { query_ = value; @@ -1363,15 +1217,11 @@ public Builder mergeQuery(com.google.cloud.discoveryengine.v1beta.TextInput valu return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearQuery() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1384,15 +1234,11 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.TextInput.Builder getQueryBuilder() { bitField0_ |= 0x00000002; @@ -1400,48 +1246,36 @@ public com.google.cloud.discoveryengine.v1beta.TextInput.Builder getQueryBuilder return getQueryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getQueryOrBuilder() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilder(); } else { - return query_ == null - ? com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() - : query_; + return query_ == null ? + com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance() : query_; } } /** - * - * *
      * Required. Current user input.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TextInput, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder, - com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> + com.google.cloud.discoveryengine.v1beta.TextInput, com.google.cloud.discoveryengine.v1beta.TextInput.Builder, com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { - queryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TextInput, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder, - com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder>( - getQuery(), getParentForChildren(), isClean()); + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.TextInput, com.google.cloud.discoveryengine.v1beta.TextInput.Builder, com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); query_ = null; } return queryBuilder_; @@ -1449,8 +1283,6 @@ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getQueryOrBuil private java.lang.Object servingConfig_ = ""; /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1458,13 +1290,13 @@ public com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getQueryOrBuil
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The servingConfig. */ public java.lang.String getServingConfig() { java.lang.Object ref = servingConfig_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; @@ -1473,8 +1305,6 @@ public java.lang.String getServingConfig() { } } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1482,14 +1312,15 @@ public java.lang.String getServingConfig() {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for servingConfig. */ - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -1497,8 +1328,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1506,22 +1335,18 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @param value The servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } servingConfig_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1529,7 +1354,6 @@ public Builder setServingConfig(java.lang.String value) {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearServingConfig() { @@ -1539,8 +1363,6 @@ public Builder clearServingConfig() { return this; } /** - * - * *
      * The resource name of the Serving Config to use. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -1548,14 +1370,12 @@ public Builder clearServingConfig() {
      * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingConfig_ = value; bitField0_ |= 0x00000004; @@ -1565,13 +1385,8 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1579,15 +1394,12 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5; - * * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1595,21 +1407,16 @@ public boolean hasConversation() {
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5; - * * @return The conversation. */ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1632,8 +1439,6 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1beta.Conversat
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1654,8 +1459,6 @@ public Builder setConversation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1666,10 +1469,9 @@ public Builder setConversation(
      */
     public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Conversation value) {
       if (conversationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && conversation_ != null
-            && conversation_
-                != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          conversation_ != null &&
+          conversation_ != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) {
           getConversationBuilder().mergeFrom(value);
         } else {
           conversation_ = value;
@@ -1682,8 +1484,6 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Convers
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1703,8 +1503,6 @@ public Builder clearConversation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1719,8 +1517,6 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat
       return getConversationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1729,19 +1525,15 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat
      *
      * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
      */
-    public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder
-        getConversationOrBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() {
       if (conversationBuilder_ != null) {
         return conversationBuilder_.getMessageOrBuilder();
       } else {
-        return conversation_ == null
-            ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()
-            : conversation_;
+        return conversation_ == null ?
+            com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_;
       }
     }
     /**
-     *
-     *
      * 
      * The conversation to be used by auto session only. The name field will be
      * ignored as we automatically assign new name for the conversation in auto
@@ -1751,32 +1543,26 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat
      * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Conversation,
-            com.google.cloud.discoveryengine.v1beta.Conversation.Builder,
-            com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> 
         getConversationFieldBuilder() {
       if (conversationBuilder_ == null) {
-        conversationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.Conversation,
-                com.google.cloud.discoveryengine.v1beta.Conversation.Builder,
-                com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>(
-                getConversation(), getParentForChildren(), isClean());
+        conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>(
+                getConversation(),
+                getParentForChildren(),
+                isClean());
         conversation_ = null;
       }
       return conversationBuilder_;
     }
 
-    private boolean safeSearch_;
+    private boolean safeSearch_ ;
     /**
-     *
-     *
      * 
      * Whether to turn on safe search.
      * 
* * bool safe_search = 6; - * * @return The safeSearch. */ @java.lang.Override @@ -1784,14 +1570,11 @@ public boolean getSafeSearch() { return safeSearch_; } /** - * - * *
      * Whether to turn on safe search.
      * 
* * bool safe_search = 6; - * * @param value The safeSearch to set. * @return This builder for chaining. */ @@ -1803,14 +1586,11 @@ public Builder setSafeSearch(boolean value) { return this; } /** - * - * *
      * Whether to turn on safe search.
      * 
* * bool safe_search = 6; - * * @return This builder for chaining. */ public Builder clearSafeSearch() { @@ -1820,8 +1600,8 @@ public Builder clearSafeSearch() { return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -1830,12 +1610,11 @@ public Builder clearSafeSearch() { } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -1844,13 +1623,10 @@ public Builder clearSafeSearch() { onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1874,21 +1650,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 7;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1916,8 +1691,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1941,19 +1714,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 7;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -1977,25 +1748,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 7;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2018,22 +1787,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 7;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2056,20 +1826,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 7;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2092,74 +1859,51 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 7;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
-    private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
-        summarySpec_;
+    private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
-                .Builder,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
-                .SummarySpecOrBuilder>
-        summarySpecBuilder_;
+        com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> summarySpecBuilder_;
     /**
-     *
-     *
      * 
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return Whether the summarySpec field is set. */ public boolean hasSummarySpec() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return The summarySpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { if (summarySpecBuilder_ == null) { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } else { return summarySpecBuilder_.getMessage(); } } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec value) { + public Builder setSummarySpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2173,19 +1917,14 @@ public Builder setSummarySpec( return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue) { if (summarySpecBuilder_ == null) { summarySpec_ = builderForValue.build(); } else { @@ -2196,24 +1935,17 @@ public Builder setSummarySpec( return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public Builder mergeSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec value) { + public Builder mergeSummarySpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && summarySpec_ != null - && summarySpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + summarySpec_ != null && + summarySpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) { getSummarySpecBuilder().mergeFrom(value); } else { summarySpec_ = value; @@ -2226,15 +1958,11 @@ public Builder mergeSummarySpec( return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ public Builder clearSummarySpec() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2247,79 +1975,55 @@ public Builder clearSummarySpec() { return this; } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - getSummarySpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder() { bitField0_ |= 0x00000040; onChanged(); return getSummarySpecFieldBuilder().getBuilder(); } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { if (summarySpecBuilder_ != null) { return summarySpecBuilder_.getMessageOrBuilder(); } else { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } } /** - * - * *
      * A specification for configuring the summary returned in the response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> getSummarySpecFieldBuilder() { if (summarySpecBuilder_ == null) { - summarySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); + summarySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder>( + getSummarySpec(), + getParentForChildren(), + isClean()); summarySpec_ = null; } return summarySpecBuilder_; } - @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); } @@ -2329,43 +2033,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ConverseConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ConverseConversationRequest) - private static final com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest(); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConverseConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConverseConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2377,8 +2079,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java similarity index 79% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java index c96aa5891ea5..656eeab1d871 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ConverseConversationRequestOrBuilder - extends +public interface ConverseConversationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ConverseConversationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -35,16 +17,11 @@ public interface ConverseConversationRequestOrBuilder
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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 resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
@@ -54,58 +31,40 @@ public interface ConverseConversationRequestOrBuilder
    * conversation inside a ConverseConversation session.
    * 
* - * - * 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. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the query field is set. */ boolean hasQuery(); /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The query. */ com.google.cloud.discoveryengine.v1beta.TextInput getQuery(); /** - * - * *
    * Required. Current user input.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder getQueryOrBuilder(); /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -113,13 +72,10 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The servingConfig. */ java.lang.String getServingConfig(); /** - * - * *
    * The resource name of the Serving Config to use. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
@@ -127,14 +83,12 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * string serving_config = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for servingConfig. */ - com.google.protobuf.ByteString getServingConfigBytes(); + com.google.protobuf.ByteString + getServingConfigBytes(); /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -142,13 +96,10 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5; - * * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -156,13 +107,10 @@ public interface ConverseConversationRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 5; - * * @return The conversation. */ com.google.cloud.discoveryengine.v1beta.Conversation getConversation(); /** - * - * *
    * The conversation to be used by auto session only. The name field will be
    * ignored as we automatically assign new name for the conversation in auto
@@ -174,21 +122,16 @@ public interface ConverseConversationRequestOrBuilder
   com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Whether to turn on safe search.
    * 
* * bool safe_search = 6; - * * @return The safeSearch. */ boolean getSafeSearch(); /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -213,8 +156,6 @@ public interface ConverseConversationRequestOrBuilder
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -237,13 +178,15 @@ public interface ConverseConversationRequestOrBuilder
    *
    * map<string, string> user_labels = 7;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -266,10 +209,9 @@ public interface ConverseConversationRequestOrBuilder
    *
    * map<string, string> user_labels = 7;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -293,13 +235,11 @@ public interface ConverseConversationRequestOrBuilder
    * map<string, string> user_labels = 7;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -322,48 +262,33 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 7;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return Whether the summarySpec field is set. */ boolean hasSummarySpec(); /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; * @return The summarySpec. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec(); /** - * - * *
    * A specification for configuring the summary returned in the response.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java index 432c89194c5c..d66c553f7908 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response message for
  * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation]
@@ -29,53 +12,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConverseConversationResponse}
  */
-public final class ConverseConversationResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConverseConversationResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ConverseConversationResponse)
     ConverseConversationResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConverseConversationResponse.newBuilder() to construct.
   private ConverseConversationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConverseConversationResponse() {
-    relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    relatedQuestions_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     searchResults_ = 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 ConverseConversationResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.class,
-            com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.class, com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.Builder.class);
   }
 
   public static final int REPLY_FIELD_NUMBER = 1;
   private com.google.cloud.discoveryengine.v1beta.Reply reply_;
   /**
-   *
-   *
    * 
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; - * * @return Whether the reply field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasReply() { return reply_ != null; } /** - * - * *
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; - * * @return The reply. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Reply getReply() { - return reply_ == null - ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() - : reply_; + return reply_ == null ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() : reply_; } /** - * - * *
    * Answer to the current query.
    * 
@@ -110,22 +82,17 @@ public com.google.cloud.discoveryengine.v1beta.Reply getReply() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder() { - return reply_ == null - ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() - : reply_; + return reply_ == null ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() : reply_; } public static final int CONVERSATION_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; - * * @return Whether the conversation field is set. */ @java.lang.Override @@ -133,25 +100,18 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; - * * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Updated conversation including the answer.
    * 
@@ -160,53 +120,42 @@ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } public static final int RELATED_QUESTIONS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @return A list containing the relatedQuestions. */ - public com.google.protobuf.ProtocolStringList getRelatedQuestionsList() { + public com.google.protobuf.ProtocolStringList + getRelatedQuestionsList() { return relatedQuestions_; } /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @return The count of relatedQuestions. */ public int getRelatedQuestionsCount() { return relatedQuestions_.size(); } /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @param index The index of the element to return. * @return The relatedQuestions at the given index. */ @@ -214,109 +163,81 @@ public java.lang.String getRelatedQuestions(int index) { return relatedQuestions_.get(index); } /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @param index The index of the value to return. * @return The bytes of the relatedQuestions at the given index. */ - public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) { + public com.google.protobuf.ByteString + getRelatedQuestionsBytes(int index) { return relatedQuestions_.getByteString(index); } public static final int SEARCH_RESULTS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List - searchResults_; + private java.util.List searchResults_; /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public java.util.List - getSearchResultsList() { + public java.util.List getSearchResultsList() { return searchResults_; } /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + public java.util.List getSearchResultsOrBuilderList() { return searchResults_; } /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override public int getSearchResultsCount() { return searchResults_.size(); } /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getSearchResults( - int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getSearchResults(int index) { return searchResults_.get(index); } /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index) { return searchResults_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +249,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 (reply_ != null) { output.writeMessage(1, getReply()); } @@ -351,13 +273,16 @@ public int getSerializedSize() { size = 0; if (reply_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReply()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReply()); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); } for (int i = 0; i < searchResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, searchResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, searchResults_.get(i)); } { int dataSize = 0; @@ -375,24 +300,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.discoveryengine.v1beta.ConverseConversationResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse other = - (com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse) obj; + com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse other = (com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse) obj; if (hasReply() != other.hasReply()) return false; if (hasReply()) { - if (!getReply().equals(other.getReply())) return false; + if (!getReply() + .equals(other.getReply())) return false; } if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } - if (!getRelatedQuestionsList().equals(other.getRelatedQuestionsList())) return false; - if (!getSearchResultsList().equals(other.getSearchResultsList())) return false; + if (!getRelatedQuestionsList() + .equals(other.getRelatedQuestionsList())) return false; + if (!getSearchResultsList() + .equals(other.getSearchResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -426,105 +354,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse 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.discoveryengine.v1beta.ConverseConversationResponse 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.discoveryengine.v1beta.ConverseConversationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse 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.discoveryengine.v1beta.ConverseConversationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse 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.discoveryengine.v1beta.ConverseConversationResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse 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.discoveryengine.v1beta.ConverseConversationResponse 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.discoveryengine.v1beta.ConverseConversationResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse 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
    * [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation]
@@ -533,33 +454,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ConverseConversationResponse}
    */
-  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.discoveryengine.v1beta.ConverseConversationResponse)
       com.google.cloud.discoveryengine.v1beta.ConverseConversationResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.class,
-              com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.class, com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -574,7 +495,8 @@ public Builder clear() {
         conversationBuilder_.dispose();
         conversationBuilder_ = null;
       }
-      relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      relatedQuestions_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       if (searchResultsBuilder_ == null) {
         searchResults_ = java.util.Collections.emptyList();
       } else {
@@ -586,16 +508,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse
-          .getDefaultInstance();
+    public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse getDefaultInstanceForType() {
+      return com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -609,18 +529,14 @@ public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse buil
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse result =
-          new com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse(this);
+      com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse result = new com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse result) {
       if (searchResultsBuilder_ == null) {
         if (((bitField0_ & 0x00000008) != 0)) {
           searchResults_ = java.util.Collections.unmodifiableList(searchResults_);
@@ -632,15 +548,17 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.reply_ = replyBuilder_ == null ? reply_ : replyBuilder_.build();
+        result.reply_ = replyBuilder_ == null
+            ? reply_
+            : replyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.conversation_ =
-            conversationBuilder_ == null ? conversation_ : conversationBuilder_.build();
+        result.conversation_ = conversationBuilder_ == null
+            ? conversation_
+            : conversationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         relatedQuestions_.makeImmutable();
@@ -652,51 +570,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse) {
-        return mergeFrom(
-            (com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse other) {
+      if (other == com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse.getDefaultInstance()) return this;
       if (other.hasReply()) {
         mergeReply(other.getReply());
       }
@@ -731,10 +644,9 @@ public Builder mergeFrom(
             searchResultsBuilder_ = null;
             searchResults_ = other.searchResults_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            searchResultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSearchResultsFieldBuilder()
-                    : null;
+            searchResultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSearchResultsFieldBuilder() : null;
           } else {
             searchResultsBuilder_.addAllMessages(other.searchResults_);
           }
@@ -766,47 +678,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getReplyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult
-                            .parser(),
-                        extensionRegistry);
-                if (searchResultsBuilder_ == null) {
-                  ensureSearchResultsIsMutable();
-                  searchResults_.add(m);
-                } else {
-                  searchResultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureRelatedQuestionsIsMutable();
-                relatedQuestions_.add(s);
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getReplyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getConversationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.parser(),
+                      extensionRegistry);
+              if (searchResultsBuilder_ == null) {
+                ensureSearchResultsIsMutable();
+                searchResults_.add(m);
+              } else {
+                searchResultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureRelatedQuestionsIsMutable();
+              relatedQuestions_.add(s);
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -816,52 +726,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.discoveryengine.v1beta.Reply reply_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Reply,
-            com.google.cloud.discoveryengine.v1beta.Reply.Builder,
-            com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder>
-        replyBuilder_;
+        com.google.cloud.discoveryengine.v1beta.Reply, com.google.cloud.discoveryengine.v1beta.Reply.Builder, com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> replyBuilder_;
     /**
-     *
-     *
      * 
      * Answer to the current query.
      * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; - * * @return Whether the reply field is set. */ public boolean hasReply() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Answer to the current query.
      * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; - * * @return The reply. */ public com.google.cloud.discoveryengine.v1beta.Reply getReply() { if (replyBuilder_ == null) { - return reply_ == null - ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() - : reply_; + return reply_ == null ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() : reply_; } else { return replyBuilder_.getMessage(); } } /** - * - * *
      * Answer to the current query.
      * 
@@ -882,15 +778,14 @@ public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply value) { return this; } /** - * - * *
      * Answer to the current query.
      * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; */ - public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply.Builder builderForValue) { + public Builder setReply( + com.google.cloud.discoveryengine.v1beta.Reply.Builder builderForValue) { if (replyBuilder_ == null) { reply_ = builderForValue.build(); } else { @@ -901,8 +796,6 @@ public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply.Builder bu return this; } /** - * - * *
      * Answer to the current query.
      * 
@@ -911,9 +804,9 @@ public Builder setReply(com.google.cloud.discoveryengine.v1beta.Reply.Builder bu */ public Builder mergeReply(com.google.cloud.discoveryengine.v1beta.Reply value) { if (replyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && reply_ != null - && reply_ != com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + reply_ != null && + reply_ != com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance()) { getReplyBuilder().mergeFrom(value); } else { reply_ = value; @@ -926,8 +819,6 @@ public Builder mergeReply(com.google.cloud.discoveryengine.v1beta.Reply value) { return this; } /** - * - * *
      * Answer to the current query.
      * 
@@ -945,8 +836,6 @@ public Builder clearReply() { return this; } /** - * - * *
      * Answer to the current query.
      * 
@@ -959,8 +848,6 @@ public com.google.cloud.discoveryengine.v1beta.Reply.Builder getReplyBuilder() { return getReplyFieldBuilder().getBuilder(); } /** - * - * *
      * Answer to the current query.
      * 
@@ -971,14 +858,11 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( if (replyBuilder_ != null) { return replyBuilder_.getMessageOrBuilder(); } else { - return reply_ == null - ? com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() - : reply_; + return reply_ == null ? + com.google.cloud.discoveryengine.v1beta.Reply.getDefaultInstance() : reply_; } } /** - * - * *
      * Answer to the current query.
      * 
@@ -986,17 +870,14 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( * .google.cloud.discoveryengine.v1beta.Reply reply = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply, - com.google.cloud.discoveryengine.v1beta.Reply.Builder, - com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> + com.google.cloud.discoveryengine.v1beta.Reply, com.google.cloud.discoveryengine.v1beta.Reply.Builder, com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder> getReplyFieldBuilder() { if (replyBuilder_ == null) { - replyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply, - com.google.cloud.discoveryengine.v1beta.Reply.Builder, - com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder>( - getReply(), getParentForChildren(), isClean()); + replyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Reply, com.google.cloud.discoveryengine.v1beta.Reply.Builder, com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder>( + getReply(), + getParentForChildren(), + isClean()); reply_ = null; } return replyBuilder_; @@ -1004,47 +885,34 @@ public com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder( private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Updated conversation including the answer.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; - * * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Updated conversation including the answer.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; - * * @return The conversation. */ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1065,8 +933,6 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1beta.Conversat return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1085,8 +951,6 @@ public Builder setConversation( return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1095,10 +959,9 @@ public Builder setConversation( */ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Conversation value) { if (conversationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && conversation_ != null - && conversation_ - != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) { getConversationBuilder().mergeFrom(value); } else { conversation_ = value; @@ -1111,8 +974,6 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Convers return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1130,8 +991,6 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1144,27 +1003,21 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Updated conversation including the answer.
      * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; */ - public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder - getConversationOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Updated conversation including the answer.
      * 
@@ -1172,17 +1025,14 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; @@ -1190,7 +1040,6 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat private com.google.protobuf.LazyStringArrayList relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureRelatedQuestionsIsMutable() { if (!relatedQuestions_.isModifiable()) { relatedQuestions_ = new com.google.protobuf.LazyStringArrayList(relatedQuestions_); @@ -1198,43 +1047,35 @@ private void ensureRelatedQuestionsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @return A list containing the relatedQuestions. */ - public com.google.protobuf.ProtocolStringList getRelatedQuestionsList() { + public com.google.protobuf.ProtocolStringList + getRelatedQuestionsList() { relatedQuestions_.makeImmutable(); return relatedQuestions_; } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @return The count of relatedQuestions. */ public int getRelatedQuestionsCount() { return relatedQuestions_.size(); } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @param index The index of the element to return. * @return The relatedQuestions at the given index. */ @@ -1242,37 +1083,31 @@ public java.lang.String getRelatedQuestions(int index) { return relatedQuestions_.get(index); } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @param index The index of the value to return. * @return The bytes of the relatedQuestions at the given index. */ - public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) { + public com.google.protobuf.ByteString + getRelatedQuestionsBytes(int index) { return relatedQuestions_.getByteString(index); } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @param index The index to set the value at. * @param value The relatedQuestions to set. * @return This builder for chaining. */ - public Builder setRelatedQuestions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRelatedQuestions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRelatedQuestionsIsMutable(); relatedQuestions_.set(index, value); bitField0_ |= 0x00000004; @@ -1280,21 +1115,17 @@ public Builder setRelatedQuestions(int index, java.lang.String value) { return this; } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @param value The relatedQuestions to add. * @return This builder for chaining. */ - public Builder addRelatedQuestions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRelatedQuestions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRelatedQuestionsIsMutable(); relatedQuestions_.add(value); bitField0_ |= 0x00000004; @@ -1302,58 +1133,50 @@ public Builder addRelatedQuestions(java.lang.String value) { return this; } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @param values The relatedQuestions to add. * @return This builder for chaining. */ - public Builder addAllRelatedQuestions(java.lang.Iterable values) { + public Builder addAllRelatedQuestions( + java.lang.Iterable values) { ensureRelatedQuestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedQuestions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relatedQuestions_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @return This builder for chaining. */ public Builder clearRelatedQuestions() { - relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Suggested related questions.
      * 
* * repeated string related_questions = 6; - * * @param value The bytes of the relatedQuestions to add. * @return This builder for chaining. */ - public Builder addRelatedQuestionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRelatedQuestionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRelatedQuestionsIsMutable(); relatedQuestions_.add(value); @@ -1362,38 +1185,26 @@ public Builder addRelatedQuestionsBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - searchResults_ = java.util.Collections.emptyList(); - + private java.util.List searchResults_ = + java.util.Collections.emptyList(); private void ensureSearchResultsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - searchResults_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult>( - searchResults_); + searchResults_ = new java.util.ArrayList(searchResults_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> - searchResultsBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> searchResultsBuilder_; /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public java.util.List - getSearchResultsList() { + public java.util.List getSearchResultsList() { if (searchResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(searchResults_); } else { @@ -1401,15 +1212,11 @@ private void ensureSearchResultsIsMutable() { } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public int getSearchResultsCount() { if (searchResultsBuilder_ == null) { @@ -1419,18 +1226,13 @@ public int getSearchResultsCount() { } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getSearchResults( - int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getSearchResults(int index) { if (searchResultsBuilder_ == null) { return searchResults_.get(index); } else { @@ -1438,15 +1240,11 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getSe } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder setSearchResults( int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { @@ -1463,20 +1261,14 @@ public Builder setSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder setSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder builderForValue) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); searchResults_.set(index, builderForValue.build()); @@ -1487,18 +1279,13 @@ public Builder setSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public Builder addSearchResults( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { + public Builder addSearchResults(com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { if (searchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1512,15 +1299,11 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder addSearchResults( int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { @@ -1537,19 +1320,14 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder addSearchResults( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder builderForValue) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); searchResults_.add(builderForValue.build()); @@ -1560,20 +1338,14 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder addSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder builderForValue) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); searchResults_.add(index, builderForValue.build()); @@ -1584,23 +1356,18 @@ public Builder addSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder addAllSearchResults( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult> - values) { + java.lang.Iterable values) { if (searchResultsBuilder_ == null) { ensureSearchResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, searchResults_); onChanged(); } else { searchResultsBuilder_.addAllMessages(values); @@ -1608,15 +1375,11 @@ public Builder addAllSearchResults( return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder clearSearchResults() { if (searchResultsBuilder_ == null) { @@ -1629,15 +1392,11 @@ public Builder clearSearchResults() { return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ public Builder removeSearchResults(int index) { if (searchResultsBuilder_ == null) { @@ -1650,53 +1409,39 @@ public Builder removeSearchResults(int index) { return this; } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - getSearchResultsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder getSearchResultsBuilder( + int index) { return getSearchResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index) { if (searchResultsBuilder_ == null) { - return searchResults_.get(index); - } else { + return searchResults_.get(index); } else { return searchResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> - getSearchResultsOrBuilderList() { + public java.util.List + getSearchResultsOrBuilderList() { if (searchResultsBuilder_ != null) { return searchResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1704,70 +1449,45 @@ public Builder removeSearchResults(int index) { } } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - addSearchResultsBuilder() { - return getSearchResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder addSearchResultsBuilder() { + return getSearchResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - addSearchResultsBuilder(int index) { - return getSearchResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder addSearchResultsBuilder( + int index) { + return getSearchResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * Search Results.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder> - getSearchResultsBuilderList() { + public java.util.List + getSearchResultsBuilderList() { return getSearchResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> getSearchResultsFieldBuilder() { if (searchResultsBuilder_ == null) { - searchResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder>( + searchResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder>( searchResults_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1776,9 +1496,9 @@ public Builder removeSearchResults(int index) { } return searchResultsBuilder_; } - @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); } @@ -1788,43 +1508,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ConverseConversationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ConverseConversationResponse) - private static final com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse(); } - public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConverseConversationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConverseConversationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1836,8 +1554,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java similarity index 65% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java index 823d53f56136..f85dc975d2f8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ConverseConversationResponseOrBuilder - extends +public interface ConverseConversationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ConverseConversationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; - * * @return Whether the reply field is set. */ boolean hasReply(); /** - * - * *
    * Answer to the current query.
    * 
* * .google.cloud.discoveryengine.v1beta.Reply reply = 1; - * * @return The reply. */ com.google.cloud.discoveryengine.v1beta.Reply getReply(); /** - * - * *
    * Answer to the current query.
    * 
@@ -59,32 +35,24 @@ public interface ConverseConversationResponseOrBuilder com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder getReplyOrBuilder(); /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; - * * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * Updated conversation including the answer.
    * 
* * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2; - * * @return The conversation. */ com.google.cloud.discoveryengine.v1beta.Conversation getConversation(); /** - * - * *
    * Updated conversation including the answer.
    * 
@@ -94,118 +62,87 @@ public interface ConverseConversationResponseOrBuilder com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder(); /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @return A list containing the relatedQuestions. */ - java.util.List getRelatedQuestionsList(); + java.util.List + getRelatedQuestionsList(); /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @return The count of relatedQuestions. */ int getRelatedQuestionsCount(); /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @param index The index of the element to return. * @return The relatedQuestions at the given index. */ java.lang.String getRelatedQuestions(int index); /** - * - * *
    * Suggested related questions.
    * 
* * repeated string related_questions = 6; - * * @param index The index of the value to return. * @return The bytes of the relatedQuestions at the given index. */ - com.google.protobuf.ByteString getRelatedQuestionsBytes(int index); + com.google.protobuf.ByteString + getRelatedQuestionsBytes(int index); /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - java.util.List + java.util.List getSearchResultsList(); /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getSearchResults(int index); /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ int getSearchResultsCount(); /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + java.util.List getSearchResultsOrBuilderList(); /** - * - * *
    * Search Results.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder - getSearchResultsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder( + int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java similarity index 59% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java index 4d8827f1a7ea..b6eca415ab7f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request for CreateConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateConversationRequest} */ -public final class CreateConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateConversationRequest) CreateConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConversationRequest.newBuilder() to construct. private CreateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConversationRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.class, com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Full resource name of parent data store. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 @@ -86,32 +61,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. Full resource name of parent data store. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONVERSATION_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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.discoveryengine.v1beta.CreateConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest other = - (com.google.cloud.discoveryengine.v1beta.CreateConversationRequest) obj; + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest other = (com.google.cloud.discoveryengine.v1beta.CreateConversationRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,138 +211,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest 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.discoveryengine.v1beta.CreateConversationRequest 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.discoveryengine.v1beta.CreateConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest 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.discoveryengine.v1beta.CreateConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest 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.discoveryengine.v1beta.CreateConversationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest 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.discoveryengine.v1beta.CreateConversationRequest 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.discoveryengine.v1beta.CreateConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CreateConversationRequest 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 for CreateConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateConversationRequest} */ - 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.discoveryengine.v1beta.CreateConversationRequest) com.google.cloud.discoveryengine.v1beta.CreateConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.class, com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CreateConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.CreateConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.getDefaultInstance(); } @@ -422,24 +371,21 @@ public com.google.cloud.discoveryengine.v1beta.CreateConversationRequest build() @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CreateConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest result = - new com.google.cloud.discoveryengine.v1beta.CreateConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.CreateConversationRequest result = new com.google.cloud.discoveryengine.v1beta.CreateConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CreateConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.conversation_ = - conversationBuilder_ == null ? conversation_ : conversationBuilder_.build(); + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); } } @@ -447,50 +393,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateConversationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.CreateConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.CreateConversationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -525,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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; @@ -583,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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 { @@ -608,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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() { @@ -652,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Full resource name of parent data store. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -679,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation(com.google.cloud.discoveryengine.v1beta.Conversation value) { if (conversationBuilder_ == null) { @@ -746,15 +643,11 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1beta.Conversat return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation( com.google.cloud.discoveryengine.v1beta.Conversation.Builder builderForValue) { @@ -768,22 +661,17 @@ public Builder setConversation( return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Conversation value) { if (conversationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && conversation_ != null - && conversation_ - != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) { getConversationBuilder().mergeFrom(value); } else { conversation_ = value; @@ -796,15 +684,11 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Convers return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConversation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -817,15 +701,11 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversationBuilder() { bitField0_ |= 0x00000002; @@ -833,56 +713,43 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder - getConversationOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,43 +759,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateConversationRequest) - private static final com.google.cloud.discoveryengine.v1beta.CreateConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.CreateConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateConversationRequest(); } - public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.CreateConversationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -940,8 +805,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CreateConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.CreateConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java new file mode 100644 index 000000000000..d3a0e71dd9f9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateConversationRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface CreateConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Full resource name of parent data store. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversation. + */ + com.google.cloud.discoveryengine.v1beta.Conversation getConversation(); + /** + *
+   * Required. The conversation to create.
+   * 
+ * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java index 83b12e7cb68e..49d70007a229 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [DocumentService.CreateDocument][google.cloud.discoveryengine.v1beta.DocumentService.CreateDocument]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateDocumentRequest}
  */
-public final class CreateDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateDocumentRequest)
     CreateDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateDocumentRequest.newBuilder() to construct.
   private CreateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateDocumentRequest() {
     parent_ = "";
     documentId_ = "";
@@ -46,41 +28,34 @@ private CreateDocumentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 @@ -89,32 +64,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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,17 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.Document document_; /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -143,51 +111,35 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } public static final int DOCUMENT_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object documentId_ = ""; /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -209,7 +161,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The documentId. */ @java.lang.Override @@ -218,15 +169,14 @@ public java.lang.String getDocumentId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -248,15 +198,16 @@ public java.lang.String getDocumentId() {
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for documentId. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentIdBytes() { + public com.google.protobuf.ByteString + getDocumentIdBytes() { java.lang.Object ref = documentId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentId_ = b; return b; } else { @@ -265,7 +216,6 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,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_); } @@ -300,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentId_); @@ -313,20 +265,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.discoveryengine.v1beta.CreateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest other = - (com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest) obj; + com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest other = (com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } - if (!getDocumentId().equals(other.getDocumentId())) return false; + if (!getDocumentId() + .equals(other.getDocumentId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,104 +306,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest 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.discoveryengine.v1beta.CreateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest 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
    * [DocumentService.CreateDocument][google.cloud.discoveryengine.v1beta.DocumentService.CreateDocument]
@@ -458,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateDocumentRequest}
    */
-  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.discoveryengine.v1beta.CreateDocumentRequest)
       com.google.cloud.discoveryengine.v1beta.CreateDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -499,14 +448,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.getDefaultInstance();
     }
 
@@ -521,23 +469,21 @@ public com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest result = new com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build();
+        result.document_ = documentBuilder_ == null
+            ? document_
+            : documentBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.documentId_ = documentId_;
@@ -548,39 +494,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -588,9 +533,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -630,31 +573,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                documentId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getDocumentFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              documentId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -664,28 +605,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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; @@ -694,24 +630,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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 { @@ -719,41 +652,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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() { @@ -763,24 +685,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -790,61 +706,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.discoveryengine.v1beta.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document value) { if (documentBuilder_ == null) { @@ -860,16 +757,12 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document valu return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument( com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { @@ -883,22 +776,18 @@ public Builder setDocument( return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && document_ != null - && document_ != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -911,16 +800,12 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document va return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000002); @@ -933,16 +818,12 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000002; @@ -950,50 +831,38 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuild return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; @@ -1001,8 +870,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu private java.lang.Object documentId_ = ""; /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -1024,13 +891,13 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The documentId. */ public java.lang.String getDocumentId() { java.lang.Object ref = documentId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentId_ = s; return s; @@ -1039,8 +906,6 @@ public java.lang.String getDocumentId() { } } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -1062,14 +927,15 @@ public java.lang.String getDocumentId() {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for documentId. */ - public com.google.protobuf.ByteString getDocumentIdBytes() { + public com.google.protobuf.ByteString + getDocumentIdBytes() { java.lang.Object ref = documentId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentId_ = b; return b; } else { @@ -1077,8 +943,6 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { } } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -1100,22 +964,18 @@ public com.google.protobuf.ByteString getDocumentIdBytes() {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The documentId to set. * @return This builder for chaining. */ - public Builder setDocumentId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -1137,7 +997,6 @@ public Builder setDocumentId(java.lang.String value) {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDocumentId() { @@ -1147,8 +1006,6 @@ public Builder clearDocumentId() { return this; } /** - * - * *
      * Required. The ID to use for the
      * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -1170,23 +1027,21 @@ public Builder clearDocumentId() {
      * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for documentId to set. * @return This builder for chaining. */ - public Builder setDocumentIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDocumentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1196,13 +1051,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateDocumentRequest) - private static final com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest(); } @@ -1211,27 +1065,27 @@ public static com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1246,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java index e7b000704a50..02e244385470 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java @@ -1,106 +1,65 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface CreateDocumentRequestOrBuilder - extends +public interface CreateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 [Document][google.cloud.discoveryengine.v1beta.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ com.google.cloud.discoveryengine.v1beta.Document getDocument(); /** - * - * *
    * Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -122,13 +81,10 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The documentId. */ java.lang.String getDocumentId(); /** - * - * *
    * Required. The ID to use for the
    * [Document][google.cloud.discoveryengine.v1beta.Document], which will become
@@ -150,8 +106,8 @@ public interface CreateDocumentRequestOrBuilder
    * 
* * string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for documentId. */ - com.google.protobuf.ByteString getDocumentIdBytes(); + com.google.protobuf.ByteString + getDocumentIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java index d8127d55eae4..cea93c52c61b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadata.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Metadata for Create Schema LRO.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSchemaMetadata} */ -public final class CreateSchemaMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateSchemaMetadata) CreateSchemaMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSchemaMetadata.newBuilder() to construct. private CreateSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CreateSchemaMetadata() {} + private CreateSchemaMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSchemaMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.class, com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -109,15 +83,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -125,15 +96,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -141,8 +109,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.
@@ -156,7 +122,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,7 +133,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (createTime_ != null) {
       output.writeMessage(1, getCreateTime());
     }
@@ -185,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -198,21 +166,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.discoveryengine.v1beta.CreateSchemaMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata other =
-        (com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata) obj;
+    com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata other = (com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata) obj;
 
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -239,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata 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.discoveryengine.v1beta.CreateSchemaMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for Create Schema LRO.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSchemaMetadata} */ - 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.discoveryengine.v1beta.CreateSchemaMetadata) com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.class, com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,14 +351,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.getDefaultInstance(); } @@ -409,23 +372,23 @@ public com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata buildPartial() { - com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata result = - new com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata result = new com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -433,39 +396,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata)other); } else { super.mergeFrom(other); return this; @@ -473,9 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata other) { - if (other - == com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -508,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -602,15 +549,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -621,8 +567,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -631,9 +575,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -646,8 +590,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -665,8 +607,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -679,8 +619,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -691,14 +629,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.
      * 
@@ -706,17 +641,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -724,49 +656,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -788,8 +707,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.
@@ -797,7 +714,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -808,8 +726,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.
@@ -819,9 +735,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -834,8 +750,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.
@@ -854,8 +768,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -869,8 +781,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -882,14 +792,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.
@@ -898,24 +805,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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);
     }
 
@@ -925,13 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateSchemaMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateSchemaMetadata)
-  private static final com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata();
   }
@@ -940,27 +843,27 @@ public static com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CreateSchemaMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CreateSchemaMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -975,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java
similarity index 70%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java
index 3ae006fd89e2..54c482cc7b6e 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaMetadataOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface CreateSchemaMetadataOrBuilder
-    extends
+public interface CreateSchemaMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateSchemaMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface CreateSchemaMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java
similarity index 66%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java
index 6bf1072aa870..9b42c3aebcf7 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Request message for
  * [SchemaService.CreateSchema][google.cloud.discoveryengine.v1beta.SchemaService.CreateSchema]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSchemaRequest}
  */
-public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateSchemaRequest)
     CreateSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateSchemaRequest.newBuilder() to construct.
   private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateSchemaRequest() {
     parent_ = "";
     schemaId_ = "";
@@ -46,41 +28,34 @@ private CreateSchemaRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -89,32 +64,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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -125,17 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.Schema schema_; /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ @java.lang.Override @@ -143,51 +111,35 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Schema getSchema() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilder() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } public static final int SCHEMA_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -200,7 +152,6 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilde
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schemaId. */ @java.lang.Override @@ -209,15 +160,14 @@ public java.lang.String getSchemaId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -230,15 +180,16 @@ public java.lang.String getSchemaId() {
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schemaId. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -247,7 +198,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +209,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -282,7 +233,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); @@ -295,20 +247,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.discoveryengine.v1beta.CreateSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest other = - (com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest) obj; + com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest other = (com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; } - if (!getSchemaId().equals(other.getSchemaId())) return false; + if (!getSchemaId() + .equals(other.getSchemaId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,104 +288,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest 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.discoveryengine.v1beta.CreateSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest 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
    * [SchemaService.CreateSchema][google.cloud.discoveryengine.v1beta.SchemaService.CreateSchema]
@@ -440,32 +388,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateSchemaRequest}
    */
-  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.discoveryengine.v1beta.CreateSchemaRequest)
       com.google.cloud.discoveryengine.v1beta.CreateSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -481,9 +430,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -502,11 +451,8 @@ public com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest result = new com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -517,7 +463,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CreateSchemaR
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build();
+        result.schema_ = schemaBuilder_ == null
+            ? schema_
+            : schemaBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.schemaId_ = schemaId_;
@@ -528,39 +476,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CreateSchemaR
     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.discoveryengine.v1beta.CreateSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -568,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -609,31 +555,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                schemaId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              schemaId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -643,28 +587,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -673,24 +612,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -698,41 +634,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -742,24 +667,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,61 +688,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> - schemaBuilder_; + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> schemaBuilder_; /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ public com.google.cloud.discoveryengine.v1beta.Schema getSchema() { if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { if (schemaBuilder_ == null) { @@ -839,16 +739,12 @@ public Builder setSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSchema( com.google.cloud.discoveryengine.v1beta.Schema.Builder builderForValue) { @@ -862,22 +758,18 @@ public Builder setSchema( return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && schema_ != null - && schema_ != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + schema_ != null && + schema_ != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; @@ -890,16 +782,12 @@ public Builder mergeSchema(com.google.cloud.discoveryengine.v1beta.Schema value) return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); @@ -912,16 +800,12 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; @@ -929,50 +813,38 @@ public com.google.cloud.discoveryengine.v1beta.Schema.Builder getSchemaBuilder() return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? + com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * create.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); schema_ = null; } return schemaBuilder_; @@ -980,8 +852,6 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilde private java.lang.Object schemaId_ = ""; /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -994,13 +864,13 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilde
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; @@ -1009,8 +879,6 @@ public java.lang.String getSchemaId() { } } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -1023,14 +891,15 @@ public java.lang.String getSchemaId() {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schemaId. */ - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -1038,8 +907,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -1052,22 +919,18 @@ public com.google.protobuf.ByteString getSchemaIdBytes() {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -1080,7 +943,6 @@ public Builder setSchemaId(java.lang.String value) {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSchemaId() { @@ -1090,8 +952,6 @@ public Builder clearSchemaId() { return this; } /** - * - * *
      * Required. The ID to use for the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -1104,23 +964,21 @@ public Builder clearSchemaId() {
      * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1130,12 +988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateSchemaRequest) private static final com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest(); } @@ -1144,27 +1002,27 @@ public static com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1179,4 +1037,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java index 5a388daec881..3443300a9c83 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSchemaRequestOrBuilder.java @@ -1,106 +1,65 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface CreateSchemaRequestOrBuilder - extends +public interface CreateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ com.google.cloud.discoveryengine.v1beta.Schema getSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * create.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilder(); /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -113,13 +72,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schemaId. */ java.lang.String getSchemaId(); /** - * - * *
    * Required. The ID to use for the
    * [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
@@ -132,8 +88,8 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString getSchemaIdBytes(); + com.google.protobuf.ByteString + getSchemaIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java index e29a12a7908a..b82a2e3ca41d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttribute.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * A custom attribute that is not explicitly modeled in a resource, e.g.
  * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent].
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.CustomAttribute}
  */
-public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomAttribute extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CustomAttribute)
     CustomAttributeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomAttribute.newBuilder() to construct.
   private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomAttribute() {
-    text_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    text_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     numbers_ = emptyDoubleList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomAttribute();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.CommonProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.CommonProto
-        .internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.CustomAttribute.class,
-            com.google.cloud.discoveryengine.v1beta.CustomAttribute.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.CustomAttribute.class, com.google.cloud.discoveryengine.v1beta.CustomAttribute.Builder.class);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList text_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -87,15 +66,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string text = 1; - * * @return A list containing the text. */ - public com.google.protobuf.ProtocolStringList getTextList() { + public com.google.protobuf.ProtocolStringList + getTextList() { return text_; } /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -111,15 +88,12 @@ public com.google.protobuf.ProtocolStringList getTextList() {
    * 
* * repeated string text = 1; - * * @return The count of text. */ public int getTextCount() { return text_.size(); } /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -135,7 +109,6 @@ public int getTextCount() {
    * 
* * repeated string text = 1; - * * @param index The index of the element to return. * @return The text at the given index. */ @@ -143,8 +116,6 @@ public java.lang.String getText(int index) { return text_.get(index); } /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -160,21 +131,18 @@ public java.lang.String getText(int index) {
    * 
* * repeated string text = 1; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - public com.google.protobuf.ByteString getTextBytes(int index) { + public com.google.protobuf.ByteString + getTextBytes(int index) { return text_.getByteString(index); } public static final int NUMBERS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList numbers_; /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -187,16 +155,14 @@ public com.google.protobuf.ByteString getTextBytes(int index) {
    * 
* * repeated double numbers = 2; - * * @return A list containing the numbers. */ @java.lang.Override - public java.util.List getNumbersList() { + public java.util.List + getNumbersList() { return numbers_; } /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -209,15 +175,12 @@ public java.util.List getNumbersList() {
    * 
* * repeated double numbers = 2; - * * @return The count of numbers. */ public int getNumbersCount() { return numbers_.size(); } /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -230,18 +193,15 @@ public int getNumbersCount() {
    * 
* * repeated double numbers = 2; - * * @param index The index of the element to return. * @return The numbers at the given index. */ public double getNumbers(int index) { return numbers_.getDouble(index); } - private int numbersMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +213,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(); for (int i = 0; i < text_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_.getRaw(i)); @@ -288,7 +249,8 @@ public int getSerializedSize() { size += dataSize; if (!getNumbersList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } numbersMemoizedSerializedSize = dataSize; } @@ -300,16 +262,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.discoveryengine.v1beta.CustomAttribute)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.CustomAttribute other = - (com.google.cloud.discoveryengine.v1beta.CustomAttribute) obj; + com.google.cloud.discoveryengine.v1beta.CustomAttribute other = (com.google.cloud.discoveryengine.v1beta.CustomAttribute) obj; - if (!getTextList().equals(other.getTextList())) return false; - if (!getNumbersList().equals(other.getNumbersList())) return false; + if (!getTextList() + .equals(other.getTextList())) return false; + if (!getNumbersList() + .equals(other.getNumbersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -335,104 +298,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CustomAttribute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.CustomAttribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CustomAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.CustomAttribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute 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.discoveryengine.v1beta.CustomAttribute prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CustomAttribute 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 custom attribute that is not explicitly modeled in a resource, e.g.
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent].
@@ -440,45 +397,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.CustomAttribute}
    */
-  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.discoveryengine.v1beta.CustomAttribute)
       com.google.cloud.discoveryengine.v1beta.CustomAttributeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.CommonProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.CommonProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.CustomAttribute.class,
-              com.google.cloud.discoveryengine.v1beta.CustomAttribute.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.CustomAttribute.class, com.google.cloud.discoveryengine.v1beta.CustomAttribute.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.CustomAttribute.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      text_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      text_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       numbers_ = emptyDoubleList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.CommonProto
-          .internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_CustomAttribute_descriptor;
     }
 
     @java.lang.Override
@@ -497,18 +456,14 @@ public com.google.cloud.discoveryengine.v1beta.CustomAttribute build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.CustomAttribute buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.CustomAttribute result =
-          new com.google.cloud.discoveryengine.v1beta.CustomAttribute(this);
+      com.google.cloud.discoveryengine.v1beta.CustomAttribute result = new com.google.cloud.discoveryengine.v1beta.CustomAttribute(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.CustomAttribute result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.CustomAttribute result) {
       if (((bitField0_ & 0x00000002) != 0)) {
         numbers_.makeImmutable();
         bitField0_ = (bitField0_ & ~0x00000002);
@@ -528,39 +483,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CustomAttribu
     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.discoveryengine.v1beta.CustomAttribute) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CustomAttribute) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.CustomAttribute)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -568,8 +522,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CustomAttribute other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.CustomAttribute.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.CustomAttribute.getDefaultInstance()) return this;
       if (!other.text_.isEmpty()) {
         if (text_.isEmpty()) {
           text_ = other.text_;
@@ -616,38 +569,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTextIsMutable();
-                text_.add(s);
-                break;
-              } // case 10
-            case 17:
-              {
-                double v = input.readDouble();
-                ensureNumbersIsMutable();
-                numbers_.addDouble(v);
-                break;
-              } // case 17
-            case 18:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensureNumbersIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  numbers_.addDouble(input.readDouble());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTextIsMutable();
+              text_.add(s);
+              break;
+            } // case 10
+            case 17: {
+              double v = input.readDouble();
+              ensureNumbersIsMutable();
+              numbers_.addDouble(v);
+              break;
+            } // case 17
+            case 18: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureNumbersIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                numbers_.addDouble(input.readDouble());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -657,12 +606,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList text_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureTextIsMutable() {
       if (!text_.isModifiable()) {
         text_ = new com.google.protobuf.LazyStringArrayList(text_);
@@ -670,8 +617,6 @@ private void ensureTextIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -687,16 +632,14 @@ private void ensureTextIsMutable() {
      * 
* * repeated string text = 1; - * * @return A list containing the text. */ - public com.google.protobuf.ProtocolStringList getTextList() { + public com.google.protobuf.ProtocolStringList + getTextList() { text_.makeImmutable(); return text_; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -712,15 +655,12 @@ public com.google.protobuf.ProtocolStringList getTextList() {
      * 
* * repeated string text = 1; - * * @return The count of text. */ public int getTextCount() { return text_.size(); } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -736,7 +676,6 @@ public int getTextCount() {
      * 
* * repeated string text = 1; - * * @param index The index of the element to return. * @return The text at the given index. */ @@ -744,8 +683,6 @@ public java.lang.String getText(int index) { return text_.get(index); } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -761,16 +698,14 @@ public java.lang.String getText(int index) {
      * 
* * repeated string text = 1; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - public com.google.protobuf.ByteString getTextBytes(int index) { + public com.google.protobuf.ByteString + getTextBytes(int index) { return text_.getByteString(index); } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -786,15 +721,13 @@ public com.google.protobuf.ByteString getTextBytes(int index) {
      * 
* * repeated string text = 1; - * * @param index The index to set the value at. * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setText( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.set(index, value); bitField0_ |= 0x00000001; @@ -802,8 +735,6 @@ public Builder setText(int index, java.lang.String value) { return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -819,14 +750,12 @@ public Builder setText(int index, java.lang.String value) {
      * 
* * repeated string text = 1; - * * @param value The text to add. * @return This builder for chaining. */ - public Builder addText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.add(value); bitField0_ |= 0x00000001; @@ -834,8 +763,6 @@ public Builder addText(java.lang.String value) { return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -851,20 +778,19 @@ public Builder addText(java.lang.String value) {
      * 
* * repeated string text = 1; - * * @param values The text to add. * @return This builder for chaining. */ - public Builder addAllText(java.lang.Iterable values) { + public Builder addAllText( + java.lang.Iterable values) { ensureTextIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, text_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, text_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -880,19 +806,16 @@ public Builder addAllText(java.lang.Iterable values) {
      * 
* * repeated string text = 1; - * * @return This builder for chaining. */ public Builder clearText() { - text_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + text_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The textual values of this custom attribute. For example, `["yellow",
      * "green"]` when the key is "color".
@@ -908,14 +831,12 @@ public Builder clearText() {
      * 
* * repeated string text = 1; - * * @param value The bytes of the text to add. * @return This builder for chaining. */ - public Builder addTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTextIsMutable(); text_.add(value); @@ -925,7 +846,6 @@ public Builder addTextBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.DoubleList numbers_ = emptyDoubleList(); - private void ensureNumbersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { numbers_ = mutableCopy(numbers_); @@ -933,8 +853,6 @@ private void ensureNumbersIsMutable() { } } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -947,17 +865,14 @@ private void ensureNumbersIsMutable() {
      * 
* * repeated double numbers = 2; - * * @return A list containing the numbers. */ - public java.util.List getNumbersList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(numbers_) - : numbers_; + public java.util.List + getNumbersList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(numbers_) : numbers_; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -970,15 +885,12 @@ public java.util.List getNumbersList() {
      * 
* * repeated double numbers = 2; - * * @return The count of numbers. */ public int getNumbersCount() { return numbers_.size(); } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -991,7 +903,6 @@ public int getNumbersCount() {
      * 
* * repeated double numbers = 2; - * * @param index The index of the element to return. * @return The numbers at the given index. */ @@ -999,8 +910,6 @@ public double getNumbers(int index) { return numbers_.getDouble(index); } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1013,12 +922,12 @@ public double getNumbers(int index) {
      * 
* * repeated double numbers = 2; - * * @param index The index to set the value at. * @param value The numbers to set. * @return This builder for chaining. */ - public Builder setNumbers(int index, double value) { + public Builder setNumbers( + int index, double value) { ensureNumbersIsMutable(); numbers_.setDouble(index, value); @@ -1026,8 +935,6 @@ public Builder setNumbers(int index, double value) { return this; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1040,7 +947,6 @@ public Builder setNumbers(int index, double value) {
      * 
* * repeated double numbers = 2; - * * @param value The numbers to add. * @return This builder for chaining. */ @@ -1052,8 +958,6 @@ public Builder addNumbers(double value) { return this; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1066,19 +970,18 @@ public Builder addNumbers(double value) {
      * 
* * repeated double numbers = 2; - * * @param values The numbers to add. * @return This builder for chaining. */ - public Builder addAllNumbers(java.lang.Iterable values) { + public Builder addAllNumbers( + java.lang.Iterable values) { ensureNumbersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, numbers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, numbers_); onChanged(); return this; } /** - * - * *
      * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
      * when the key is "lengths_cm".
@@ -1091,7 +994,6 @@ public Builder addAllNumbers(java.lang.Iterable valu
      * 
* * repeated double numbers = 2; - * * @return This builder for chaining. */ public Builder clearNumbers() { @@ -1100,9 +1002,9 @@ public Builder clearNumbers() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +1014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CustomAttribute) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CustomAttribute) private static final com.google.cloud.discoveryengine.v1beta.CustomAttribute DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CustomAttribute(); } @@ -1126,27 +1028,27 @@ public static com.google.cloud.discoveryengine.v1beta.CustomAttribute getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAttribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,4 +1063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.CustomAttribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java similarity index 84% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java index 19e096244aaf..180416a01bac 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CustomAttributeOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; -public interface CustomAttributeOrBuilder - extends +public interface CustomAttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CustomAttribute) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -41,13 +23,11 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @return A list containing the text. */ - java.util.List getTextList(); + java.util.List + getTextList(); /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -63,13 +43,10 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @return The count of text. */ int getTextCount(); /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -85,14 +62,11 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @param index The index of the element to return. * @return The text at the given index. */ java.lang.String getText(int index); /** - * - * *
    * The textual values of this custom attribute. For example, `["yellow",
    * "green"]` when the key is "color".
@@ -108,15 +82,13 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated string text = 1; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - com.google.protobuf.ByteString getTextBytes(int index); + com.google.protobuf.ByteString + getTextBytes(int index); /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -129,13 +101,10 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated double numbers = 2; - * * @return A list containing the numbers. */ java.util.List getNumbersList(); /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -148,13 +117,10 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated double numbers = 2; - * * @return The count of numbers. */ int getNumbersCount(); /** - * - * *
    * The numerical values of this custom attribute. For example, `[2.3, 15.4]`
    * when the key is "lengths_cm".
@@ -167,7 +133,6 @@ public interface CustomAttributeOrBuilder
    * 
* * repeated double numbers = 2; - * * @param index The index of the element to return. * @return The numbers at the given index. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java similarity index 61% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java index a37bbb477e3c..a6741b1865be 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request for DeleteConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteConversationRequest} */ -public final class DeleteConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteConversationRequest) DeleteConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConversationRequest.newBuilder() to construct. private DeleteConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConversationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.class, com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the Conversation to delete. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 @@ -86,32 +61,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 resource name of the Conversation to delete. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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.discoveryengine.v1beta.DeleteConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest other = - (com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest) obj; + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest other = (com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,138 +157,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest 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.discoveryengine.v1beta.DeleteConversationRequest 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.discoveryengine.v1beta.DeleteConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest 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.discoveryengine.v1beta.DeleteConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest 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.discoveryengine.v1beta.DeleteConversationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest 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.discoveryengine.v1beta.DeleteConversationRequest 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.discoveryengine.v1beta.DeleteConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest 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 for DeleteConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteConversationRequest} */ - 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.discoveryengine.v1beta.DeleteConversationRequest) com.google.cloud.discoveryengine.v1beta.DeleteConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.class, com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.getDefaultInstance(); } @@ -347,17 +312,13 @@ public com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest build() @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest result = - new com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest result = new com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,50 +329,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -443,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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; @@ -495,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -520,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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() { @@ -564,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Conversation to delete. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,43 +530,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteConversationRequest) - private static final com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest(); } - public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,8 +576,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java new file mode 100644 index 000000000000..6d3c318f28ae --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteConversationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface DeleteConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to delete. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java index ad8c0f54a23a..631585c5179e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1beta.DocumentService.DeleteDocument]
@@ -29,48 +12,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteDocumentRequest}
  */
-public final class DeleteDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteDocumentRequest)
     DeleteDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteDocumentRequest.newBuilder() to construct.
   private DeleteDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteDocumentRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 @@ -96,15 +71,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
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -118,18 +92,17 @@ public java.lang.String getName() {
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 { @@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +122,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_); } @@ -174,15 +147,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.discoveryengine.v1beta.DeleteDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest other = - (com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) obj; + com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest other = (com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,104 +175,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest 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.discoveryengine.v1beta.DeleteDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest 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
    * [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1beta.DocumentService.DeleteDocument]
@@ -308,32 +275,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteDocumentRequest}
    */
-  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.discoveryengine.v1beta.DeleteDocumentRequest)
       com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,14 +311,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.getDefaultInstance();
     }
 
@@ -365,17 +332,13 @@ public com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest result = new com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -386,39 +349,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -426,9 +388,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -460,19 +420,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -482,13 +440,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -502,16 +457,14 @@ public Builder mergeFrom(
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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; @@ -520,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -535,17 +486,16 @@ public java.lang.String getName() {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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 { @@ -553,8 +503,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -568,25 +516,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -600,10 +542,7 @@ public Builder setName(java.lang.String value) {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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() { @@ -613,8 +552,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -628,26 +565,22 @@ public Builder clearName() {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,13 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) - private static final com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest(); } @@ -672,27 +604,27 @@ public static com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -707,4 +639,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java index 779dddd98403..868e8a5fe234 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface DeleteDocumentRequestOrBuilder - extends +public interface DeleteDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -39,16 +21,11 @@ public interface DeleteDocumentRequestOrBuilder
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -62,11 +39,9 @@ public interface DeleteDocumentRequestOrBuilder
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java index 33a774db9ab7..33f91164a0d4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadata.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Metadata for DeleteSchema LRO.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata} */ -public final class DeleteSchemaMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata) DeleteSchemaMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSchemaMetadata.newBuilder() to construct. private DeleteSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeleteSchemaMetadata() {} + private DeleteSchemaMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSchemaMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.class, - com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.class, com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -109,15 +83,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -125,15 +96,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -141,8 +109,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.
@@ -156,7 +122,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,7 +133,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (createTime_ != null) {
       output.writeMessage(1, getCreateTime());
     }
@@ -185,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -198,21 +166,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.discoveryengine.v1beta.DeleteSchemaMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata other =
-        (com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata) obj;
+    com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata other = (com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata) obj;
 
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -239,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata 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.discoveryengine.v1beta.DeleteSchemaMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for DeleteSchema LRO.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata} */ - 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.discoveryengine.v1beta.DeleteSchemaMetadata) com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.class, - com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.class, com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,14 +351,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.getDefaultInstance(); } @@ -409,23 +372,23 @@ public com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata buildPartial() { - com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata result = - new com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata result = new com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -433,39 +396,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata)other); } else { super.mergeFrom(other); return this; @@ -473,9 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata other) { - if (other - == com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -508,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -602,15 +549,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -621,8 +567,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -631,9 +575,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -646,8 +590,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -665,8 +607,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -679,8 +619,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -691,14 +629,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.
      * 
@@ -706,17 +641,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -724,49 +656,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -788,8 +707,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.
@@ -797,7 +714,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -808,8 +726,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.
@@ -819,9 +735,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -834,8 +750,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.
@@ -854,8 +768,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -869,8 +781,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -882,14 +792,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.
@@ -898,24 +805,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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);
     }
 
@@ -925,13 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata)
-  private static final com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata();
   }
@@ -940,27 +843,27 @@ public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeleteSchemaMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeleteSchemaMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -975,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java
similarity index 70%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java
index 17ce4a531831..43fb6e0ad656 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaMetadataOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface DeleteSchemaMetadataOrBuilder
-    extends
+public interface DeleteSchemaMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface DeleteSchemaMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java
similarity index 64%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java
index 480d38bc67f2..41eb49411bf4 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Request message for
  * [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1beta.SchemaService.DeleteSchema]
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSchemaRequest}
  */
-public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteSchemaRequest)
     DeleteSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteSchemaRequest.newBuilder() to construct.
   private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteSchemaRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 @@ -88,32 +63,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 full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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.discoveryengine.v1beta.DeleteSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest other = - (com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) obj; + com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest other = (com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,104 +159,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest 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.discoveryengine.v1beta.DeleteSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest 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
    * [SchemaService.DeleteSchema][google.cloud.discoveryengine.v1beta.SchemaService.DeleteSchema]
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteSchemaRequest}
    */
-  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.discoveryengine.v1beta.DeleteSchemaRequest)
       com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +316,8 @@ public com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest result = new com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +333,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DeleteSchemaR
     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.discoveryengine.v1beta.DeleteSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -441,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,28 +424,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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; @@ -493,24 +449,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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 { @@ -518,41 +471,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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() { @@ -562,33 +504,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) private static final com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest(); } @@ -612,27 +548,27 @@ public static com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..91db7a192c2d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/schema_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface DeleteSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java similarity index 75% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java index 3e3a80f9f9c7..8f02ca2f6e1b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Document captures all raw metadata information of items to be recommended or
  * searched.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document}
  */
-public final class Document extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Document extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Document)
     DocumentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Document.newBuilder() to construct.
   private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Document() {
     name_ = "";
     id_ = "";
@@ -47,33 +29,29 @@ private Document() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Document();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentProto
-        .internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentProto
-        .internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.Document.class,
-            com.google.cloud.discoveryengine.v1beta.Document.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.Document.class, com.google.cloud.discoveryengine.v1beta.Document.Builder.class);
   }
 
-  public interface ContentOrBuilder
-      extends
+  public interface ContentOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Document.Content)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -86,13 +64,10 @@ public interface ContentOrBuilder
      * 
* * bytes raw_bytes = 2; - * * @return Whether the rawBytes field is set. */ boolean hasRawBytes(); /** - * - * *
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -105,14 +80,11 @@ public interface ContentOrBuilder
      * 
* * bytes raw_bytes = 2; - * * @return The rawBytes. */ com.google.protobuf.ByteString getRawBytes(); /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -120,13 +92,10 @@ public interface ContentOrBuilder
      * 
* * string uri = 3; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -134,13 +103,10 @@ public interface ContentOrBuilder
      * 
* * string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -148,14 +114,12 @@ public interface ContentOrBuilder
      * 
* * string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -169,13 +133,10 @@ public interface ContentOrBuilder
      * 
* * string mime_type = 1; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -189,71 +150,63 @@ public interface ContentOrBuilder
      * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); com.google.cloud.discoveryengine.v1beta.Document.Content.ContentCase getContentCase(); } /** - * - * *
    * Unstructured data linked to this document.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document.Content} */ - public static final class Content extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Content extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Document.Content) ContentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Content.newBuilder() to construct. private Content(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Content() { mimeType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Content(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.DocumentProto - .internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.DocumentProto - .internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Document.Content.class, - com.google.cloud.discoveryengine.v1beta.Document.Content.Builder.class); + com.google.cloud.discoveryengine.v1beta.Document.Content.class, com.google.cloud.discoveryengine.v1beta.Document.Content.Builder.class); } private int contentCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object content_; - public enum ContentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RAW_BYTES(2), URI(3), CONTENT_NOT_SET(0); private final int value; - private ContentCase(int value) { this.value = value; } @@ -269,30 +222,25 @@ public static ContentCase valueOf(int value) { public static ContentCase forNumber(int value) { switch (value) { - case 2: - return RAW_BYTES; - case 3: - return URI; - case 0: - return CONTENT_NOT_SET; - default: - return null; + case 2: return RAW_BYTES; + case 3: return URI; + case 0: return CONTENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); } public static final int RAW_BYTES_FIELD_NUMBER = 2; /** - * - * *
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -305,7 +253,6 @@ public ContentCase getContentCase() {
      * 
* * bytes raw_bytes = 2; - * * @return Whether the rawBytes field is set. */ @java.lang.Override @@ -313,8 +260,6 @@ public boolean hasRawBytes() { return contentCase_ == 2; } /** - * - * *
      * The content represented as a stream of bytes. The maximum length is
      * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -327,7 +272,6 @@ public boolean hasRawBytes() {
      * 
* * bytes raw_bytes = 2; - * * @return The rawBytes. */ @java.lang.Override @@ -340,8 +284,6 @@ public com.google.protobuf.ByteString getRawBytes() { public static final int URI_FIELD_NUMBER = 3; /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -349,15 +291,12 @@ public com.google.protobuf.ByteString getRawBytes() {
      * 
* * string uri = 3; - * * @return Whether the uri field is set. */ public boolean hasUri() { return contentCase_ == 3; } /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -365,7 +304,6 @@ public boolean hasUri() {
      * 
* * string uri = 3; - * * @return The uri. */ public java.lang.String getUri() { @@ -376,7 +314,8 @@ 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(); if (contentCase_ == 3) { content_ = s; @@ -385,8 +324,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the content. Only Cloud Storage URIs (e.g.
      * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -394,17 +331,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 3; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (contentCase_ == 3) { ref = content_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (contentCase_ == 3) { content_ = b; } @@ -415,12 +353,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mimeType_ = ""; /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -434,7 +369,6 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string mime_type = 1; - * * @return The mimeType. */ @java.lang.Override @@ -443,15 +377,14 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
      * The MIME type of the content. Supported types:
      *
@@ -465,15 +398,16 @@ public java.lang.String getMimeType() {
      * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -482,7 +416,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -494,12 +427,14 @@ 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(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); } if (contentCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) content_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) content_); } if (contentCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); @@ -517,9 +452,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); } if (contentCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) content_); } if (contentCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); @@ -532,22 +467,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.discoveryengine.v1beta.Document.Content)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Document.Content other = - (com.google.cloud.discoveryengine.v1beta.Document.Content) obj; + com.google.cloud.discoveryengine.v1beta.Document.Content other = (com.google.cloud.discoveryengine.v1beta.Document.Content) obj; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 2: - if (!getRawBytes().equals(other.getRawBytes())) return false; + if (!getRawBytes() + .equals(other.getRawBytes())) return false; break; case 3: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -583,94 +520,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Document.Content parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Document.Content parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Document.Content parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Document.Content parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content 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.discoveryengine.v1beta.Document.Content prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Document.Content 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 @@ -680,41 +612,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Unstructured data linked to this document.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document.Content} */ - 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.discoveryengine.v1beta.Document.Content) com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.DocumentProto - .internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.DocumentProto - .internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Document.Content.class, - com.google.cloud.discoveryengine.v1beta.Document.Content.Builder.class); + com.google.cloud.discoveryengine.v1beta.Document.Content.class, com.google.cloud.discoveryengine.v1beta.Document.Content.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.Document.Content.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -726,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.DocumentProto - .internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; } @java.lang.Override @@ -747,11 +677,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.Content build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document.Content buildPartial() { - com.google.cloud.discoveryengine.v1beta.Document.Content result = - new com.google.cloud.discoveryengine.v1beta.Document.Content(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.Document.Content result = new com.google.cloud.discoveryengine.v1beta.Document.Content(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -764,8 +691,7 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Document.Cont } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.Document.Content result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Document.Content result) { result.contentCase_ = contentCase_; result.content_ = this.content_; } @@ -774,41 +700,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.Document.Content) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Document.Content) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Document.Content)other); } else { super.mergeFrom(other); return this; @@ -816,30 +739,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document.Content other) { - if (other == com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getContentCase()) { - case RAW_BYTES: - { - setRawBytes(other.getRawBytes()); - break; - } - case URI: - { - contentCase_ = 3; - content_ = other.content_; - onChanged(); - break; - } - case CONTENT_NOT_SET: - { - break; - } + case RAW_BYTES: { + setRawBytes(other.getRawBytes()); + break; + } + case URI: { + contentCase_ = 3; + content_ = other.content_; + onChanged(); + break; + } + case CONTENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -867,32 +786,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - content_ = input.readBytes(); - contentCase_ = 2; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 3; - content_ = s; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + content_ = input.readBytes(); + contentCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 3; + content_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -902,12 +817,12 @@ public Builder mergeFrom( } // finally return this; } - private int contentCase_ = 0; private java.lang.Object content_; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); } public Builder clearContent() { @@ -920,8 +835,6 @@ public Builder clearContent() { private int bitField0_; /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -934,15 +847,12 @@ public Builder clearContent() {
        * 
* * bytes raw_bytes = 2; - * * @return Whether the rawBytes field is set. */ public boolean hasRawBytes() { return contentCase_ == 2; } /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -955,7 +865,6 @@ public boolean hasRawBytes() {
        * 
* * bytes raw_bytes = 2; - * * @return The rawBytes. */ public com.google.protobuf.ByteString getRawBytes() { @@ -965,8 +874,6 @@ public com.google.protobuf.ByteString getRawBytes() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -979,22 +886,17 @@ public com.google.protobuf.ByteString getRawBytes() {
        * 
* * bytes raw_bytes = 2; - * * @param value The rawBytes to set. * @return This builder for chaining. */ public Builder setRawBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } contentCase_ = 2; content_ = value; onChanged(); return this; } /** - * - * *
        * The content represented as a stream of bytes. The maximum length is
        * 1,000,000 bytes (1 MB / ~0.95 MiB).
@@ -1007,7 +909,6 @@ public Builder setRawBytes(com.google.protobuf.ByteString value) {
        * 
* * bytes raw_bytes = 2; - * * @return This builder for chaining. */ public Builder clearRawBytes() { @@ -1020,8 +921,6 @@ public Builder clearRawBytes() { } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1029,7 +928,6 @@ public Builder clearRawBytes() {
        * 
* * string uri = 3; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -1037,8 +935,6 @@ public boolean hasUri() { return contentCase_ == 3; } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1046,7 +942,6 @@ public boolean hasUri() {
        * 
* * string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -1056,7 +951,8 @@ public java.lang.String getUri() { ref = content_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (contentCase_ == 3) { content_ = s; @@ -1067,8 +963,6 @@ public java.lang.String getUri() { } } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1076,18 +970,19 @@ public java.lang.String getUri() {
        * 
* * string uri = 3; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (contentCase_ == 3) { ref = content_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (contentCase_ == 3) { content_ = b; } @@ -1097,8 +992,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1106,22 +999,18 @@ public com.google.protobuf.ByteString getUriBytes() {
        * 
* * string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentCase_ = 3; content_ = value; onChanged(); return this; } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1129,7 +1018,6 @@ public Builder setUri(java.lang.String value) {
        * 
* * string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1141,8 +1029,6 @@ public Builder clearUri() { return this; } /** - * - * *
        * The URI of the content. Only Cloud Storage URIs (e.g.
        * `gs://bucket-name/path/to/file`) are supported. The maximum file size
@@ -1150,14 +1036,12 @@ public Builder clearUri() {
        * 
* * string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentCase_ = 3; content_ = value; @@ -1167,8 +1051,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1182,13 +1064,13 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
        * 
* * string mime_type = 1; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -1197,8 +1079,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1212,14 +1092,15 @@ public java.lang.String getMimeType() {
        * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1227,8 +1108,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1242,22 +1121,18 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
        * 
* * string mime_type = 1; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1271,7 +1146,6 @@ public Builder setMimeType(java.lang.String value) {
        * 
* * string mime_type = 1; - * * @return This builder for chaining. */ public Builder clearMimeType() { @@ -1281,8 +1155,6 @@ public Builder clearMimeType() { return this; } /** - * - * *
        * The MIME type of the content. Supported types:
        *
@@ -1296,21 +1168,18 @@ public Builder clearMimeType() {
        * 
* * string mime_type = 1; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1323,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document.Content) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Document.Content) private static final com.google.cloud.discoveryengine.v1beta.Document.Content DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Document.Content(); } @@ -1337,28 +1206,27 @@ public static com.google.cloud.discoveryengine.v1beta.Document.Content getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Content parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1373,22 +1241,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Document.Content getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int dataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRUCT_DATA(4), JSON_DATA(5), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -1404,30 +1269,25 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 4: - return STRUCT_DATA; - case 5: - return JSON_DATA; - case 0: - return DATA_NOT_SET; - default: - return null; + case 4: return STRUCT_DATA; + case 5: return JSON_DATA; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int STRUCT_DATA_FIELD_NUMBER = 4; /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -1435,7 +1295,6 @@ public DataCase getDataCase() {
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return Whether the structData field is set. */ @java.lang.Override @@ -1443,8 +1302,6 @@ public boolean hasStructData() { return dataCase_ == 4; } /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -1452,19 +1309,16 @@ public boolean hasStructData() {
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return The structData. */ @java.lang.Override public com.google.protobuf.Struct getStructData() { if (dataCase_ == 4) { - return (com.google.protobuf.Struct) data_; + return (com.google.protobuf.Struct) data_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -1476,15 +1330,13 @@ public com.google.protobuf.Struct getStructData() {
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
     if (dataCase_ == 4) {
-      return (com.google.protobuf.Struct) data_;
+       return (com.google.protobuf.Struct) data_;
     }
     return com.google.protobuf.Struct.getDefaultInstance();
   }
 
   public static final int JSON_DATA_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -1492,15 +1344,12 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
    * 
* * string json_data = 5; - * * @return Whether the jsonData field is set. */ public boolean hasJsonData() { return dataCase_ == 5; } /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -1508,7 +1357,6 @@ public boolean hasJsonData() {
    * 
* * string json_data = 5; - * * @return The jsonData. */ public java.lang.String getJsonData() { @@ -1519,7 +1367,8 @@ public java.lang.String getJsonData() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (dataCase_ == 5) { data_ = s; @@ -1528,8 +1377,6 @@ public java.lang.String getJsonData() { } } /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -1537,17 +1384,18 @@ public java.lang.String getJsonData() {
    * 
* * string json_data = 5; - * * @return The bytes for jsonData. */ - public com.google.protobuf.ByteString getJsonDataBytes() { + public com.google.protobuf.ByteString + getJsonDataBytes() { java.lang.Object ref = ""; if (dataCase_ == 5) { ref = data_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (dataCase_ == 5) { data_ = b; } @@ -1558,12 +1406,9 @@ public com.google.protobuf.ByteString getJsonDataBytes() { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -1574,7 +1419,6 @@ public com.google.protobuf.ByteString getJsonDataBytes() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -1583,15 +1427,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; } } /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -1602,15 +1445,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1619,12 +1463,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -1633,7 +1474,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ @java.lang.Override @@ -1642,15 +1482,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; } } /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -1659,15 +1498,16 @@ public java.lang.String getId() {
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1676,18 +1516,14 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int SCHEMA_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The schemaId. */ @java.lang.Override @@ -1696,29 +1532,29 @@ public java.lang.String getSchemaId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } } /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -1729,8 +1565,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { public static final int CONTENT_FIELD_NUMBER = 10; private com.google.cloud.discoveryengine.v1beta.Document.Content content_; /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -1738,7 +1572,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() {
    * 
* * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1746,8 +1579,6 @@ public boolean hasContent() { return content_ != null; } /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -1755,18 +1586,13 @@ public boolean hasContent() {
    * 
* * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; - * * @return The content. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document.Content getContent() { - return content_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance() - : content_; + return content_ == null ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance() : content_; } /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -1777,18 +1603,13 @@ public com.google.cloud.discoveryengine.v1beta.Document.Content getContent() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getContentOrBuilder() {
-    return content_ == null
-        ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance()
-        : content_;
+    return content_ == null ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance() : content_;
   }
 
   public static final int PARENT_DOCUMENT_ID_FIELD_NUMBER = 7;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parentDocumentId_ = "";
   /**
-   *
-   *
    * 
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -1798,7 +1619,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getCont
    * 
* * string parent_document_id = 7; - * * @return The parentDocumentId. */ @java.lang.Override @@ -1807,15 +1627,14 @@ public java.lang.String getParentDocumentId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDocumentId_ = s; return s; } } /** - * - * *
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -1825,15 +1644,16 @@ public java.lang.String getParentDocumentId() {
    * 
* * string parent_document_id = 7; - * * @return The bytes for parentDocumentId. */ @java.lang.Override - public com.google.protobuf.ByteString getParentDocumentIdBytes() { + public com.google.protobuf.ByteString + getParentDocumentIdBytes() { java.lang.Object ref = parentDocumentId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDocumentId_ = b; return b; } else { @@ -1844,17 +1664,12 @@ public com.google.protobuf.ByteString getParentDocumentIdBytes() { public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct derivedStructData_; /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the derivedStructData field is set. */ @java.lang.Override @@ -1862,46 +1677,32 @@ public boolean hasDerivedStructData() { return derivedStructData_ != null; } /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The derivedStructData. */ @java.lang.Override public com.google.protobuf.Struct getDerivedStructData() { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1913,7 +1714,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_); } @@ -1957,21 +1759,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); } if (dataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.protobuf.Struct) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.protobuf.Struct) data_); } if (dataCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, data_); } if (derivedStructData_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDerivedStructData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDerivedStructData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDocumentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, parentDocumentId_); } if (content_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getContent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getContent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1981,33 +1784,40 @@ 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.discoveryengine.v1beta.Document)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Document other = - (com.google.cloud.discoveryengine.v1beta.Document) obj; + com.google.cloud.discoveryengine.v1beta.Document other = (com.google.cloud.discoveryengine.v1beta.Document) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; - if (!getSchemaId().equals(other.getSchemaId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getSchemaId() + .equals(other.getSchemaId())) return false; if (hasContent() != other.hasContent()) return false; if (hasContent()) { - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; } - if (!getParentDocumentId().equals(other.getParentDocumentId())) return false; + if (!getParentDocumentId() + .equals(other.getParentDocumentId())) return false; if (hasDerivedStructData() != other.hasDerivedStructData()) return false; if (hasDerivedStructData()) { - if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; + if (!getDerivedStructData() + .equals(other.getDerivedStructData())) return false; } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: - if (!getStructData().equals(other.getStructData())) return false; + if (!getStructData() + .equals(other.getStructData())) return false; break; case 5: - if (!getJsonData().equals(other.getJsonData())) return false; + if (!getJsonData() + .equals(other.getJsonData())) return false; break; case 0: default: @@ -2056,104 +1866,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.Document parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1beta.Document parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.Document parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Document parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.Document parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Document parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.Document parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Document parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.Document 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; } /** - * - * *
    * Document captures all raw metadata information of items to be recommended or
    * searched.
@@ -2161,32 +1966,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document}
    */
-  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.discoveryengine.v1beta.Document)
       com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentProto
-          .internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentProto
-          .internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.Document.class,
-              com.google.cloud.discoveryengine.v1beta.Document.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.Document.class, com.google.cloud.discoveryengine.v1beta.Document.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.Document.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2214,9 +2020,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentProto
-          .internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentProto.internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor;
     }
 
     @java.lang.Override
@@ -2235,11 +2041,8 @@ public com.google.cloud.discoveryengine.v1beta.Document build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.Document buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.Document result =
-          new com.google.cloud.discoveryengine.v1beta.Document(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.Document result = new com.google.cloud.discoveryengine.v1beta.Document(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -2257,23 +2060,25 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Document resu
         result.schemaId_ = schemaId_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build();
+        result.content_ = contentBuilder_ == null
+            ? content_
+            : contentBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.parentDocumentId_ = parentDocumentId_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.derivedStructData_ =
-            derivedStructDataBuilder_ == null
-                ? derivedStructData_
-                : derivedStructDataBuilder_.build();
+        result.derivedStructData_ = derivedStructDataBuilder_ == null
+            ? derivedStructData_
+            : derivedStructDataBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Document result) {
       result.dataCase_ = dataCase_;
       result.data_ = this.data_;
-      if (dataCase_ == 4 && structDataBuilder_ != null) {
+      if (dataCase_ == 4 &&
+          structDataBuilder_ != null) {
         result.data_ = structDataBuilder_.build();
       }
     }
@@ -2282,39 +2087,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Document
     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.discoveryengine.v1beta.Document) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.Document) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.Document)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2322,8 +2126,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000004;
@@ -2351,22 +2154,19 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document other)
         mergeDerivedStructData(other.getDerivedStructData());
       }
       switch (other.getDataCase()) {
-        case STRUCT_DATA:
-          {
-            mergeStructData(other.getStructData());
-            break;
-          }
-        case JSON_DATA:
-          {
-            dataCase_ = 5;
-            data_ = other.data_;
-            onChanged();
-            break;
-          }
-        case DATA_NOT_SET:
-          {
-            break;
-          }
+        case STRUCT_DATA: {
+          mergeStructData(other.getStructData());
+          break;
+        }
+        case JSON_DATA: {
+          dataCase_ = 5;
+          data_ = other.data_;
+          onChanged();
+          break;
+        }
+        case DATA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -2394,63 +2194,59 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 10
-            case 18:
-              {
-                id_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 18
-            case 26:
-              {
-                schemaId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getStructDataFieldBuilder().getBuilder(), extensionRegistry);
-                dataCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                dataCase_ = 5;
-                data_ = s;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getDerivedStructDataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 50
-            case 58:
-              {
-                parentDocumentId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 82:
-              {
-                input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 10
+            case 18: {
+              id_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 18
+            case 26: {
+              schemaId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getStructDataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              dataCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              dataCase_ = 5;
+              data_ = s;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getDerivedStructDataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 50
+            case 58: {
+              parentDocumentId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 82: {
+              input.readMessage(
+                  getContentFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2460,12 +2256,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int dataCase_ = 0;
     private java.lang.Object data_;
-
-    public DataCase getDataCase() {
-      return DataCase.forNumber(dataCase_);
+    public DataCase
+        getDataCase() {
+      return DataCase.forNumber(
+          dataCase_);
     }
 
     public Builder clearData() {
@@ -2478,13 +2274,8 @@ public Builder clearData() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
-        structDataBuilder_;
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structDataBuilder_;
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2492,7 +2283,6 @@ public Builder clearData() {
      * 
* * .google.protobuf.Struct struct_data = 4; - * * @return Whether the structData field is set. */ @java.lang.Override @@ -2500,8 +2290,6 @@ public boolean hasStructData() { return dataCase_ == 4; } /** - * - * *
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2509,7 +2297,6 @@ public boolean hasStructData() {
      * 
* * .google.protobuf.Struct struct_data = 4; - * * @return The structData. */ @java.lang.Override @@ -2527,8 +2314,6 @@ public com.google.protobuf.Struct getStructData() { } } /** - * - * *
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2551,8 +2336,6 @@ public Builder setStructData(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2561,7 +2344,8 @@ public Builder setStructData(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct struct_data = 4;
      */
-    public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setStructData(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (structDataBuilder_ == null) {
         data_ = builderForValue.build();
         onChanged();
@@ -2572,8 +2356,6 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2584,11 +2366,10 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue)
      */
     public Builder mergeStructData(com.google.protobuf.Struct value) {
       if (structDataBuilder_ == null) {
-        if (dataCase_ == 4 && data_ != com.google.protobuf.Struct.getDefaultInstance()) {
-          data_ =
-              com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (dataCase_ == 4 &&
+            data_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          data_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_)
+              .mergeFrom(value).buildPartial();
         } else {
           data_ = value;
         }
@@ -2604,8 +2385,6 @@ public Builder mergeStructData(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2631,8 +2410,6 @@ public Builder clearStructData() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2645,8 +2422,6 @@ public com.google.protobuf.Struct.Builder getStructDataBuilder() {
       return getStructDataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2667,8 +2442,6 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The structured JSON data for the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2678,20 +2451,17 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
      * .google.protobuf.Struct struct_data = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getStructDataFieldBuilder() {
       if (structDataBuilder_ == null) {
         if (!(dataCase_ == 4)) {
           data_ = com.google.protobuf.Struct.getDefaultInstance();
         }
-        structDataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                (com.google.protobuf.Struct) data_, getParentForChildren(), isClean());
+        structDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                (com.google.protobuf.Struct) data_,
+                getParentForChildren(),
+                isClean());
         data_ = null;
       }
       dataCase_ = 4;
@@ -2700,8 +2470,6 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
     }
 
     /**
-     *
-     *
      * 
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2709,7 +2477,6 @@ public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() {
      * 
* * string json_data = 5; - * * @return Whether the jsonData field is set. */ @java.lang.Override @@ -2717,8 +2484,6 @@ public boolean hasJsonData() { return dataCase_ == 5; } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2726,7 +2491,6 @@ public boolean hasJsonData() {
      * 
* * string json_data = 5; - * * @return The jsonData. */ @java.lang.Override @@ -2736,7 +2500,8 @@ public java.lang.String getJsonData() { ref = data_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (dataCase_ == 5) { data_ = s; @@ -2747,8 +2512,6 @@ public java.lang.String getJsonData() { } } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2756,18 +2519,19 @@ public java.lang.String getJsonData() {
      * 
* * string json_data = 5; - * * @return The bytes for jsonData. */ @java.lang.Override - public com.google.protobuf.ByteString getJsonDataBytes() { + public com.google.protobuf.ByteString + getJsonDataBytes() { java.lang.Object ref = ""; if (dataCase_ == 5) { ref = data_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (dataCase_ == 5) { data_ = b; } @@ -2777,8 +2541,6 @@ public com.google.protobuf.ByteString getJsonDataBytes() { } } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2786,22 +2548,18 @@ public com.google.protobuf.ByteString getJsonDataBytes() {
      * 
* * string json_data = 5; - * * @param value The jsonData to set. * @return This builder for chaining. */ - public Builder setJsonData(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonData( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataCase_ = 5; data_ = value; onChanged(); return this; } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2809,7 +2567,6 @@ public Builder setJsonData(java.lang.String value) {
      * 
* * string json_data = 5; - * * @return This builder for chaining. */ public Builder clearJsonData() { @@ -2821,8 +2578,6 @@ public Builder clearJsonData() { return this; } /** - * - * *
      * The JSON string representation of the document. It should conform to the
      * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -2830,14 +2585,12 @@ public Builder clearJsonData() {
      * 
* * string json_data = 5; - * * @param value The bytes for jsonData to set. * @return This builder for chaining. */ - public Builder setJsonDataBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataCase_ = 5; data_ = value; @@ -2847,8 +2600,6 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2859,13 +2610,13 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2874,8 +2625,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2886,14 +2635,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -2901,8 +2651,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2913,22 +2661,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2939,7 +2683,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2949,8 +2692,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The full resource name of the document.
      * Format:
@@ -2961,14 +2702,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; @@ -2978,8 +2717,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -2988,13 +2725,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -3003,8 +2740,6 @@ public java.lang.String getId() { } } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3013,14 +2748,15 @@ public java.lang.String getId() {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -3028,8 +2764,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3038,22 +2772,18 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3062,7 +2792,6 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearId() { @@ -3072,8 +2801,6 @@ public Builder clearId() { return this; } /** - * - * *
      * Immutable. The identifier of the document.
      *
@@ -3082,14 +2809,12 @@ public Builder clearId() {
      * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000008; @@ -3099,20 +2824,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object schemaId_ = ""; /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; @@ -3121,21 +2844,20 @@ public java.lang.String getSchemaId() { } } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -3143,35 +2865,28 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @return This builder for chaining. */ public Builder clearSchemaId() { @@ -3181,21 +2896,17 @@ public Builder clearSchemaId() { return this; } /** - * - * *
      * The identifier of the schema located in the same data store.
      * 
* * string schema_id = 3; - * * @param value The bytes for schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaId_ = value; bitField0_ |= 0x00000010; @@ -3205,13 +2916,8 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Document.Content content_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document.Content, - com.google.cloud.discoveryengine.v1beta.Document.Content.Builder, - com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder> - contentBuilder_; + com.google.cloud.discoveryengine.v1beta.Document.Content, com.google.cloud.discoveryengine.v1beta.Document.Content.Builder, com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder> contentBuilder_; /** - * - * *
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3219,15 +2925,12 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; - * * @return Whether the content field is set. */ public boolean hasContent() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3235,21 +2938,16 @@ public boolean hasContent() {
      * 
* * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; - * * @return The content. */ public com.google.cloud.discoveryengine.v1beta.Document.Content getContent() { if (contentBuilder_ == null) { - return content_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance() - : content_; + return content_ == null ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } } /** - * - * *
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3272,8 +2970,6 @@ public Builder setContent(com.google.cloud.discoveryengine.v1beta.Document.Conte
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3294,8 +2990,6 @@ public Builder setContent(
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3306,10 +3000,9 @@ public Builder setContent(
      */
     public Builder mergeContent(com.google.cloud.discoveryengine.v1beta.Document.Content value) {
       if (contentBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)
-            && content_ != null
-            && content_
-                != com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          content_ != null &&
+          content_ != com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance()) {
           getContentBuilder().mergeFrom(value);
         } else {
           content_ = value;
@@ -3322,8 +3015,6 @@ public Builder mergeContent(com.google.cloud.discoveryengine.v1beta.Document.Con
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3343,8 +3034,6 @@ public Builder clearContent() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3359,8 +3048,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.Content.Builder getConte
       return getContentFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3373,14 +3060,11 @@ public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getCont
       if (contentBuilder_ != null) {
         return contentBuilder_.getMessageOrBuilder();
       } else {
-        return content_ == null
-            ? com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance()
-            : content_;
+        return content_ == null ?
+            com.google.cloud.discoveryengine.v1beta.Document.Content.getDefaultInstance() : content_;
       }
     }
     /**
-     *
-     *
      * 
      * The unstructured data linked to this document. Content must be set if this
      * document is under a
@@ -3390,17 +3074,14 @@ public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getCont
      * .google.cloud.discoveryengine.v1beta.Document.Content content = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Document.Content,
-            com.google.cloud.discoveryengine.v1beta.Document.Content.Builder,
-            com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.Document.Content, com.google.cloud.discoveryengine.v1beta.Document.Content.Builder, com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder> 
         getContentFieldBuilder() {
       if (contentBuilder_ == null) {
-        contentBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.Document.Content,
-                com.google.cloud.discoveryengine.v1beta.Document.Content.Builder,
-                com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder>(
-                getContent(), getParentForChildren(), isClean());
+        contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.Document.Content, com.google.cloud.discoveryengine.v1beta.Document.Content.Builder, com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder>(
+                getContent(),
+                getParentForChildren(),
+                isClean());
         content_ = null;
       }
       return contentBuilder_;
@@ -3408,8 +3089,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getCont
 
     private java.lang.Object parentDocumentId_ = "";
     /**
-     *
-     *
      * 
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3419,13 +3098,13 @@ public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getCont
      * 
* * string parent_document_id = 7; - * * @return The parentDocumentId. */ public java.lang.String getParentDocumentId() { java.lang.Object ref = parentDocumentId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDocumentId_ = s; return s; @@ -3434,8 +3113,6 @@ public java.lang.String getParentDocumentId() { } } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3445,14 +3122,15 @@ public java.lang.String getParentDocumentId() {
      * 
* * string parent_document_id = 7; - * * @return The bytes for parentDocumentId. */ - public com.google.protobuf.ByteString getParentDocumentIdBytes() { + public com.google.protobuf.ByteString + getParentDocumentIdBytes() { java.lang.Object ref = parentDocumentId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDocumentId_ = b; return b; } else { @@ -3460,8 +3138,6 @@ public com.google.protobuf.ByteString getParentDocumentIdBytes() { } } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3471,22 +3147,18 @@ public com.google.protobuf.ByteString getParentDocumentIdBytes() {
      * 
* * string parent_document_id = 7; - * * @param value The parentDocumentId to set. * @return This builder for chaining. */ - public Builder setParentDocumentId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentDocumentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parentDocumentId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3496,7 +3168,6 @@ public Builder setParentDocumentId(java.lang.String value) {
      * 
* * string parent_document_id = 7; - * * @return This builder for chaining. */ public Builder clearParentDocumentId() { @@ -3506,8 +3177,6 @@ public Builder clearParentDocumentId() { return this; } /** - * - * *
      * The identifier of the parent document. Currently supports at most two level
      * document hierarchy.
@@ -3517,14 +3186,12 @@ public Builder clearParentDocumentId() {
      * 
* * string parent_document_id = 7; - * * @param value The bytes for parentDocumentId to set. * @return This builder for chaining. */ - public Builder setParentDocumentIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentDocumentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentDocumentId_ = value; bitField0_ |= 0x00000040; @@ -3534,61 +3201,42 @@ public Builder setParentDocumentIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct derivedStructData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - derivedStructDataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> derivedStructDataBuilder_; /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the derivedStructData field is set. */ public boolean hasDerivedStructData() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The derivedStructData. */ public com.google.protobuf.Struct getDerivedStructData() { if (derivedStructDataBuilder_ == null) { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } else { return derivedStructDataBuilder_.getMessage(); } } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDerivedStructData(com.google.protobuf.Struct value) { if (derivedStructDataBuilder_ == null) { @@ -3604,18 +3252,15 @@ public Builder setDerivedStructData(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setDerivedStructData( + com.google.protobuf.Struct.Builder builderForValue) { if (derivedStructDataBuilder_ == null) { derivedStructData_ = builderForValue.build(); } else { @@ -3626,22 +3271,18 @@ public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderFo return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { if (derivedStructDataBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && derivedStructData_ != null - && derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + derivedStructData_ != null && + derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { getDerivedStructDataBuilder().mergeFrom(value); } else { derivedStructData_ = value; @@ -3654,16 +3295,12 @@ public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDerivedStructData() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3676,16 +3313,12 @@ public Builder clearDerivedStructData() { return this; } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { bitField0_ |= 0x00000080; @@ -3693,57 +3326,45 @@ public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { return getDerivedStructDataFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { if (derivedStructDataBuilder_ != null) { return derivedStructDataBuilder_.getMessageOrBuilder(); } else { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; + return derivedStructData_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : derivedStructData_; } } /** - * - * *
      * Output only. This field is OUTPUT_ONLY.
      * It contains derived data that are not in the original input document.
      * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getDerivedStructDataFieldBuilder() { if (derivedStructDataBuilder_ == null) { - derivedStructDataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getDerivedStructData(), getParentForChildren(), isClean()); + derivedStructDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getDerivedStructData(), + getParentForChildren(), + isClean()); derivedStructData_ = null; } return derivedStructDataBuilder_; } - @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); } @@ -3753,12 +3374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Document) private static final com.google.cloud.discoveryengine.v1beta.Document DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Document(); } @@ -3767,27 +3388,27 @@ public static com.google.cloud.discoveryengine.v1beta.Document getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Document parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3802,4 +3423,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java similarity index 75% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java index f2af16ef7050..b054995aaab5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java @@ -1,83 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Detailed document information associated with a user event.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DocumentInfo} */ -public final class DocumentInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DocumentInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentInfo) DocumentInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DocumentInfo.newBuilder() to construct. private DocumentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentInfo() { - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentInfo.class, - com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.DocumentInfo.class, com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder.class); } private int bitField0_; private int documentDescriptorCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object documentDescriptor_; - public enum DocumentDescriptorCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ID(1), NAME(2), URI(6), DOCUMENTDESCRIPTOR_NOT_SET(0); private final int value; - private DocumentDescriptorCase(int value) { this.value = value; } @@ -93,52 +71,42 @@ public static DocumentDescriptorCase valueOf(int value) { public static DocumentDescriptorCase forNumber(int value) { switch (value) { - case 1: - return ID; - case 2: - return NAME; - case 6: - return URI; - case 0: - return DOCUMENTDESCRIPTOR_NOT_SET; - default: - return null; + case 1: return ID; + case 2: return NAME; + case 6: return URI; + case 0: return DOCUMENTDESCRIPTOR_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DocumentDescriptorCase getDocumentDescriptorCase() { - return DocumentDescriptorCase.forNumber(documentDescriptorCase_); + public DocumentDescriptorCase + getDocumentDescriptorCase() { + return DocumentDescriptorCase.forNumber( + documentDescriptorCase_); } public static final int ID_FIELD_NUMBER = 1; /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
    * 
* * string id = 1; - * * @return Whether the id field is set. */ public boolean hasId() { return documentDescriptorCase_ == 1; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
    * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { @@ -149,7 +117,8 @@ 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(); if (documentDescriptorCase_ == 1) { documentDescriptor_ = s; @@ -158,24 +127,23 @@ public java.lang.String getId() { } } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
    * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = ""; if (documentDescriptorCase_ == 1) { ref = documentDescriptor_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 1) { documentDescriptor_ = b; } @@ -187,8 +155,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int NAME_FIELD_NUMBER = 2; /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
    * full name, of the form:
@@ -196,15 +162,12 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ public boolean hasName() { return documentDescriptorCase_ == 2; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
    * full name, of the form:
@@ -212,7 +175,6 @@ public boolean hasName() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { @@ -223,7 +185,8 @@ 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(); if (documentDescriptorCase_ == 2) { documentDescriptor_ = s; @@ -232,8 +195,6 @@ public java.lang.String getName() { } } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
    * full name, of the form:
@@ -241,17 +202,18 @@ public java.lang.String getName() {
    * 
* * string name = 2 [(.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 = ""; if (documentDescriptorCase_ == 2) { ref = documentDescriptor_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 2) { documentDescriptor_ = b; } @@ -263,30 +225,24 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int URI_FIELD_NUMBER = 6; /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ public boolean hasUri() { return documentDescriptorCase_ == 6; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The uri. */ public java.lang.String getUri() { @@ -297,7 +253,8 @@ 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(); if (documentDescriptorCase_ == 6) { documentDescriptor_ = s; @@ -306,25 +263,24 @@ public java.lang.String getUri() { } } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (documentDescriptorCase_ == 6) { ref = documentDescriptor_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 6) { documentDescriptor_ = b; } @@ -337,8 +293,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int QUANTITY_FIELD_NUMBER = 3; private int quantity_ = 0; /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -352,7 +306,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * optional int32 quantity = 3; - * * @return Whether the quantity field is set. */ @java.lang.Override @@ -360,8 +313,6 @@ public boolean hasQuantity() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -375,7 +326,6 @@ public boolean hasQuantity() {
    * 
* * optional int32 quantity = 3; - * * @return The quantity. */ @java.lang.Override @@ -384,50 +334,41 @@ public int getQuantity() { } public static final int PROMOTION_IDS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { return promotionIds_; } /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -435,24 +376,21 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -464,7 +402,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 (documentDescriptorCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documentDescriptor_); } @@ -496,7 +435,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentDescriptor_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, quantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, quantity_); } { int dataSize = 0; @@ -517,29 +457,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.discoveryengine.v1beta.DocumentInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.DocumentInfo other = - (com.google.cloud.discoveryengine.v1beta.DocumentInfo) obj; + com.google.cloud.discoveryengine.v1beta.DocumentInfo other = (com.google.cloud.discoveryengine.v1beta.DocumentInfo) obj; if (hasQuantity() != other.hasQuantity()) return false; if (hasQuantity()) { - if (getQuantity() != other.getQuantity()) return false; + if (getQuantity() + != other.getQuantity()) return false; } - if (!getPromotionIdsList().equals(other.getPromotionIdsList())) return false; + if (!getPromotionIdsList() + .equals(other.getPromotionIdsList())) return false; if (!getDocumentDescriptorCase().equals(other.getDocumentDescriptorCase())) return false; switch (documentDescriptorCase_) { case 1: - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; break; case 2: - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; break; case 6: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -585,150 +529,147 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DocumentInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DocumentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DocumentInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DocumentInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo 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.discoveryengine.v1beta.DocumentInfo 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 document information associated with a user event.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DocumentInfo} */ - 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.discoveryengine.v1beta.DocumentInfo) com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentInfo.class, - com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.DocumentInfo.class, com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.DocumentInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; quantity_ = 0; - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); documentDescriptorCase_ = 0; documentDescriptor_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; } @java.lang.Override @@ -747,11 +688,8 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.DocumentInfo result = - new com.google.cloud.discoveryengine.v1beta.DocumentInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.DocumentInfo result = new com.google.cloud.discoveryengine.v1beta.DocumentInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -780,39 +718,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Document 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.discoveryengine.v1beta.DocumentInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.DocumentInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DocumentInfo)other); } else { super.mergeFrom(other); return this; @@ -820,8 +757,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DocumentInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.DocumentInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.DocumentInfo.getDefaultInstance()) return this; if (other.hasQuantity()) { setQuantity(other.getQuantity()); } @@ -836,31 +772,27 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DocumentInfo ot onChanged(); } switch (other.getDocumentDescriptorCase()) { - case ID: - { - documentDescriptorCase_ = 1; - documentDescriptor_ = other.documentDescriptor_; - onChanged(); - break; - } - case NAME: - { - documentDescriptorCase_ = 2; - documentDescriptor_ = other.documentDescriptor_; - onChanged(); - break; - } - case URI: - { - documentDescriptorCase_ = 6; - documentDescriptor_ = other.documentDescriptor_; - onChanged(); - break; - } - case DOCUMENTDESCRIPTOR_NOT_SET: - { - break; - } + case ID: { + documentDescriptorCase_ = 1; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case NAME: { + documentDescriptorCase_ = 2; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case URI: { + documentDescriptorCase_ = 6; + documentDescriptor_ = other.documentDescriptor_; + onChanged(); + break; + } + case DOCUMENTDESCRIPTOR_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -888,47 +820,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - documentDescriptorCase_ = 1; - documentDescriptor_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - documentDescriptorCase_ = 2; - documentDescriptor_ = s; - break; - } // case 18 - case 24: - { - quantity_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePromotionIdsIsMutable(); - promotionIds_.add(s); - break; - } // case 34 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - documentDescriptorCase_ = 6; - documentDescriptor_ = s; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 1; + documentDescriptor_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 2; + documentDescriptor_ = s; + break; + } // case 18 + case 24: { + quantity_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePromotionIdsIsMutable(); + promotionIds_.add(s); + break; + } // case 34 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + documentDescriptorCase_ = 6; + documentDescriptor_ = s; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -938,12 +864,12 @@ public Builder mergeFrom( } // finally return this; } - private int documentDescriptorCase_ = 0; private java.lang.Object documentDescriptor_; - - public DocumentDescriptorCase getDocumentDescriptorCase() { - return DocumentDescriptorCase.forNumber(documentDescriptorCase_); + public DocumentDescriptorCase + getDocumentDescriptorCase() { + return DocumentDescriptorCase.forNumber( + documentDescriptorCase_); } public Builder clearDocumentDescriptor() { @@ -956,14 +882,11 @@ public Builder clearDocumentDescriptor() { private int bitField0_; /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
      * 
* * string id = 1; - * * @return Whether the id field is set. */ @java.lang.Override @@ -971,14 +894,11 @@ public boolean hasId() { return documentDescriptorCase_ == 1; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
      * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -988,7 +908,8 @@ public java.lang.String getId() { ref = documentDescriptor_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (documentDescriptorCase_ == 1) { documentDescriptor_ = s; @@ -999,25 +920,24 @@ public java.lang.String getId() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
      * 
* * 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 = ""; if (documentDescriptorCase_ == 1) { ref = documentDescriptor_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 1) { documentDescriptor_ = b; } @@ -1027,35 +947,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentDescriptorCase_ = 1; documentDescriptor_ = value; onChanged(); return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1067,21 +980,17 @@ public Builder clearId() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentDescriptorCase_ = 1; documentDescriptor_ = value; @@ -1090,8 +999,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
      * full name, of the form:
@@ -1099,7 +1006,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ @java.lang.Override @@ -1107,8 +1013,6 @@ public boolean hasName() { return documentDescriptorCase_ == 2; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
      * full name, of the form:
@@ -1116,7 +1020,6 @@ public boolean hasName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -1126,7 +1029,8 @@ public java.lang.String getName() { ref = documentDescriptor_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (documentDescriptorCase_ == 2) { documentDescriptor_ = s; @@ -1137,8 +1041,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
      * full name, of the form:
@@ -1146,18 +1048,19 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.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 = ""; if (documentDescriptorCase_ == 2) { ref = documentDescriptor_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 2) { documentDescriptor_ = b; } @@ -1167,8 +1070,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
      * full name, of the form:
@@ -1176,22 +1077,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentDescriptorCase_ = 2; documentDescriptor_ = value; onChanged(); return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
      * full name, of the form:
@@ -1199,7 +1096,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { @@ -1211,8 +1107,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
      * full name, of the form:
@@ -1220,14 +1114,12 @@ public Builder clearName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentDescriptorCase_ = 2; documentDescriptor_ = value; @@ -1236,15 +1128,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -1252,15 +1141,12 @@ public boolean hasUri() { return documentDescriptorCase_ == 6; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return The uri. */ @java.lang.Override @@ -1270,7 +1156,8 @@ public java.lang.String getUri() { ref = documentDescriptor_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (documentDescriptorCase_ == 6) { documentDescriptor_ = s; @@ -1281,26 +1168,25 @@ public java.lang.String getUri() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (documentDescriptorCase_ == 6) { ref = documentDescriptor_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (documentDescriptorCase_ == 6) { documentDescriptor_ = b; } @@ -1310,37 +1196,30 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } documentDescriptorCase_ = 6; documentDescriptor_ = value; onChanged(); return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1352,22 +1231,18 @@ public Builder clearUri() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
      * allowed for website data stores.
      * 
* * string uri = 6; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); documentDescriptorCase_ = 6; documentDescriptor_ = value; @@ -1375,10 +1250,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private int quantity_; + private int quantity_ ; /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1392,7 +1265,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int32 quantity = 3; - * * @return Whether the quantity field is set. */ @java.lang.Override @@ -1400,8 +1272,6 @@ public boolean hasQuantity() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1415,7 +1285,6 @@ public boolean hasQuantity() {
      * 
* * optional int32 quantity = 3; - * * @return The quantity. */ @java.lang.Override @@ -1423,8 +1292,6 @@ public int getQuantity() { return quantity_; } /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1438,7 +1305,6 @@ public int getQuantity() {
      * 
* * optional int32 quantity = 3; - * * @param value The quantity to set. * @return This builder for chaining. */ @@ -1450,8 +1316,6 @@ public Builder setQuantity(int value) { return this; } /** - * - * *
      * Quantity of the Document associated with the user event. Defaults to 1.
      *
@@ -1465,7 +1329,6 @@ public Builder setQuantity(int value) {
      * 
* * optional int32 quantity = 3; - * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -1477,7 +1340,6 @@ public Builder clearQuantity() { private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); @@ -1485,46 +1347,38 @@ private void ensurePromotionIdsIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { promotionIds_.makeImmutable(); return promotionIds_; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -1532,39 +1386,33 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param index The index to set the value at. * @param value The promotionIds to set. * @return This builder for chaining. */ - public Builder setPromotionIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPromotionIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); bitField0_ |= 0x00000010; @@ -1572,22 +1420,18 @@ public Builder setPromotionIds(int index, java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param value The promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.add(value); bitField0_ |= 0x00000010; @@ -1595,61 +1439,53 @@ public Builder addPromotionIds(java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param values The promotionIds to add. * @return This builder for chaining. */ - public Builder addAllPromotionIds(java.lang.Iterable values) { + public Builder addAllPromotionIds( + java.lang.Iterable values) { ensurePromotionIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promotionIds_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @return This builder for chaining. */ public Builder clearPromotionIds() { - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * The promotion IDs associated with this Document.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 4; - * * @param value The bytes of the promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); @@ -1657,9 +1493,9 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString 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); } @@ -1669,12 +1505,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentInfo) private static final com.google.cloud.discoveryengine.v1beta.DocumentInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DocumentInfo(); } @@ -1683,27 +1519,27 @@ public static com.google.cloud.discoveryengine.v1beta.DocumentInfo getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1718,4 +1554,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.DocumentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java similarity index 81% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java index 6a9915afde8b..c2faf4031999 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java @@ -1,68 +1,42 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface DocumentInfoOrBuilder - extends +public interface DocumentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
    * 
* * string id = 1; - * * @return Whether the id field is set. */ boolean hasId(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
    * full name, of the form:
@@ -70,13 +44,10 @@ public interface DocumentInfoOrBuilder
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ boolean hasName(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
    * full name, of the form:
@@ -84,13 +55,10 @@ public interface DocumentInfoOrBuilder
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] resource
    * full name, of the form:
@@ -98,54 +66,44 @@ public interface DocumentInfoOrBuilder
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only
    * allowed for website data stores.
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -159,13 +117,10 @@ public interface DocumentInfoOrBuilder
    * 
* * optional int32 quantity = 3; - * * @return Whether the quantity field is set. */ boolean hasQuantity(); /** - * - * *
    * Quantity of the Document associated with the user event. Defaults to 1.
    *
@@ -179,66 +134,54 @@ public interface DocumentInfoOrBuilder
    * 
* * optional int32 quantity = 3; - * * @return The quantity. */ int getQuantity(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return A list containing the promotionIds. */ - java.util.List getPromotionIdsList(); + java.util.List + getPromotionIdsList(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @return The count of promotionIds. */ int getPromotionIdsCount(); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ java.lang.String getPromotionIds(int index); /** - * - * *
    * The promotion IDs associated with this Document.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - com.google.protobuf.ByteString getPromotionIdsBytes(int index); + com.google.protobuf.ByteString + getPromotionIdsBytes(int index); - com.google.cloud.discoveryengine.v1beta.DocumentInfo.DocumentDescriptorCase - getDocumentDescriptorCase(); + com.google.cloud.discoveryengine.v1beta.DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java similarity index 81% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java index 21a4649d9a15..7409fdb0f086 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document.proto package com.google.cloud.discoveryengine.v1beta; -public interface DocumentOrBuilder - extends +public interface DocumentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Document) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -33,13 +15,10 @@ public interface DocumentOrBuilder
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return Whether the structData field is set. */ boolean hasStructData(); /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -47,13 +26,10 @@ public interface DocumentOrBuilder
    * 
* * .google.protobuf.Struct struct_data = 4; - * * @return The structData. */ com.google.protobuf.Struct getStructData(); /** - * - * *
    * The structured JSON data for the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -65,8 +41,6 @@ public interface DocumentOrBuilder
   com.google.protobuf.StructOrBuilder getStructDataOrBuilder();
 
   /**
-   *
-   *
    * 
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -74,13 +48,10 @@ public interface DocumentOrBuilder
    * 
* * string json_data = 5; - * * @return Whether the jsonData field is set. */ boolean hasJsonData(); /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -88,13 +59,10 @@ public interface DocumentOrBuilder
    * 
* * string json_data = 5; - * * @return The jsonData. */ java.lang.String getJsonData(); /** - * - * *
    * The JSON string representation of the document. It should conform to the
    * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
@@ -102,14 +70,12 @@ public interface DocumentOrBuilder
    * 
* * string json_data = 5; - * * @return The bytes for jsonData. */ - com.google.protobuf.ByteString getJsonDataBytes(); + com.google.protobuf.ByteString + getJsonDataBytes(); /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -120,13 +86,10 @@ public interface DocumentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The full resource name of the document.
    * Format:
@@ -137,14 +100,12 @@ public interface DocumentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -153,13 +114,10 @@ public interface DocumentOrBuilder
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Immutable. The identifier of the document.
    *
@@ -168,39 +126,32 @@ public interface DocumentOrBuilder
    * 
* * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The schemaId. */ java.lang.String getSchemaId(); /** - * - * *
    * The identifier of the schema located in the same data store.
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString getSchemaIdBytes(); + com.google.protobuf.ByteString + getSchemaIdBytes(); /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -208,13 +159,10 @@ public interface DocumentOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -222,13 +170,10 @@ public interface DocumentOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; - * * @return The content. */ com.google.cloud.discoveryengine.v1beta.Document.Content getContent(); /** - * - * *
    * The unstructured data linked to this document. Content must be set if this
    * document is under a
@@ -240,8 +185,6 @@ public interface DocumentOrBuilder
   com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getContentOrBuilder();
 
   /**
-   *
-   *
    * 
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -251,13 +194,10 @@ public interface DocumentOrBuilder
    * 
* * string parent_document_id = 7; - * * @return The parentDocumentId. */ java.lang.String getParentDocumentId(); /** - * - * *
    * The identifier of the parent document. Currently supports at most two level
    * document hierarchy.
@@ -267,52 +207,38 @@ public interface DocumentOrBuilder
    * 
* * string parent_document_id = 7; - * * @return The bytes for parentDocumentId. */ - com.google.protobuf.ByteString getParentDocumentIdBytes(); + com.google.protobuf.ByteString + getParentDocumentIdBytes(); /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the derivedStructData field is set. */ boolean hasDerivedStructData(); /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The derivedStructData. */ com.google.protobuf.Struct getDerivedStructData(); /** - * - * *
    * Output only. This field is OUTPUT_ONLY.
    * It contains derived data that are not in the original input document.
    * 
* - * - * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java new file mode 100644 index 000000000000..26220803bf44 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/document.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class DocumentProto { + private DocumentProto() {} + 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_discoveryengine_v1beta_Document_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/discoveryengine/v1beta/do" + + "cument.proto\022#google.cloud.discoveryengi" + + "ne.v1beta\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\034google/pr" + + "otobuf/struct.proto\"\226\005\n\010Document\022.\n\013stru" + + "ct_data\030\004 \001(\0132\027.google.protobuf.StructH\000" + + "\022\023\n\tjson_data\030\005 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\005\022\020\n\002id\030\002 \001(\tB\004\342A\001\005\022\021\n\tschema_id\030\003 \001(\t\022F" + + "\n\007content\030\n \001(\01325.google.cloud.discovery" + + "engine.v1beta.Document.Content\022\032\n\022parent" + + "_document_id\030\007 \001(\t\022:\n\023derived_struct_dat" + + "a\030\006 \001(\0132\027.google.protobuf.StructB\004\342A\001\003\032K" + + "\n\007Content\022\023\n\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri\030\003 " + + "\001(\tH\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007content:\226\002\352A" + + "\222\002\n\'discoveryengine.googleapis.com/Docum" + + "ent\022fprojects/{project}/locations/{locat" + + "ion}/dataStores/{data_store}/branches/{b" + + "ranch}/documents/{document}\022\177projects/{p" + + "roject}/locations/{location}/collections" + + "/{collection}/dataStores/{data_store}/br" + + "anches/{branch}/documents/{document}B\006\n\004" + + "dataB\224\002\n\'com.google.cloud.discoveryengin" + + "e.v1betaB\rDocumentProtoP\001ZQcloud.google." + + "com/go/discoveryengine/apiv1beta/discove" + + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" + + "ENGINE\252\002#Google.Cloud.DiscoveryEngine.V1" + + "Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1be" + + "ta\352\002&Google::Cloud::DiscoveryEngine::V1b" + + "etab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Document_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor, + new java.lang.String[] { "StructData", "JsonData", "Name", "Id", "SchemaId", "Content", "ParentDocumentId", "DerivedStructData", "Data", }); + internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor, + new java.lang.String[] { "RawBytes", "Uri", "MimeType", "Content", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java new file mode 100644 index 000000000000..474f43bf05e9 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java @@ -0,0 +1,230 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/document_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class DocumentServiceProto { + private DocumentServiceProto() {} + 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_discoveryengine_v1beta_GetDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_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/discoveryengine/v1beta/do" + + "cument_service.proto\022#google.cloud.disco" + + "veryengine.v1beta\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0322google/cloud/discoveryengi" + + "ne/v1beta/document.proto\0327google/cloud/d" + + "iscoveryengine/v1beta/import_config.prot" + + "o\0326google/cloud/discoveryengine/v1beta/p" + + "urge_config.proto\032#google/longrunning/op" + + "erations.proto\032\033google/protobuf/empty.pr" + + "oto\"T\n\022GetDocumentRequest\022>\n\004name\030\001 \001(\tB" + + "0\342A\001\002\372A)\n\'discoveryengine.googleapis.com" + + "/Document\"}\n\024ListDocumentsRequest\022>\n\006par" + + "ent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.goog" + + "leapis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"r\n\025ListDocumentsRespons" + + "e\022@\n\tdocuments\030\001 \003(\0132-.google.cloud.disc" + + "overyengine.v1beta.Document\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\271\001\n\025CreateDocumentRequest\022>" + + "\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine" + + ".googleapis.com/Branch\022E\n\010document\030\002 \001(\013" + + "2-.google.cloud.discoveryengine.v1beta.D" + + "ocumentB\004\342A\001\002\022\031\n\013document_id\030\003 \001(\tB\004\342A\001\002" + + "\"u\n\025UpdateDocumentRequest\022E\n\010document\030\001 " + + "\001(\0132-.google.cloud.discoveryengine.v1bet" + + "a.DocumentB\004\342A\001\002\022\025\n\rallow_missing\030\002 \001(\010\"" + + "W\n\025DeleteDocumentRequest\022>\n\004name\030\001 \001(\tB0" + + "\342A\001\002\372A)\n\'discoveryengine.googleapis.com/" + + "Document2\204\024\n\017DocumentService\022\254\002\n\013GetDocu" + + "ment\0227.google.cloud.discoveryengine.v1be" + + "ta.GetDocumentRequest\032-.google.cloud.dis" + + "coveryengine.v1beta.Document\"\264\001\332A\004name\202\323" + + "\344\223\002\246\001\022I/v1beta/{name=projects/*/location" + + "s/*/dataStores/*/branches/*/documents/*}" + + "ZY\022W/v1beta/{name=projects/*/locations/*" + + "/collections/*/dataStores/*/branches/*/d" + + "ocuments/*}\022\277\002\n\rListDocuments\0229.google.c" + + "loud.discoveryengine.v1beta.ListDocument" + + "sRequest\032:.google.cloud.discoveryengine." + + "v1beta.ListDocumentsResponse\"\266\001\332A\006parent" + + "\202\323\344\223\002\246\001\022I/v1beta/{parent=projects/*/loca" + + "tions/*/dataStores/*/branches/*}/documen" + + "tsZY\022W/v1beta/{parent=projects/*/locatio" + + "ns/*/collections/*/dataStores/*/branches" + + "/*}/documents\022\335\002\n\016CreateDocument\022:.googl" + + "e.cloud.discoveryengine.v1beta.CreateDoc" + + "umentRequest\032-.google.cloud.discoveryeng" + + "ine.v1beta.Document\"\337\001\332A\033parent,document" + + ",document_id\202\323\344\223\002\272\001\"I/v1beta/{parent=pro" + + "jects/*/locations/*/dataStores/*/branche" + + "s/*}/documents:\010documentZc\"W/v1beta/{par" + + "ent=projects/*/locations/*/collections/*" + + "/dataStores/*/branches/*}/documents:\010doc" + + "ument\022\321\002\n\016UpdateDocument\022:.google.cloud." + + "discoveryengine.v1beta.UpdateDocumentReq" + + "uest\032-.google.cloud.discoveryengine.v1be" + + "ta.Document\"\323\001\202\323\344\223\002\314\0012R/v1beta/{document" + + ".name=projects/*/locations/*/dataStores/" + + "*/branches/*/documents/*}:\010documentZl2`/" + + "v1beta/{document.name=projects/*/locatio" + + "ns/*/collections/*/dataStores/*/branches" + + "/*/documents/*}:\010document\022\233\002\n\016DeleteDocu" + + "ment\022:.google.cloud.discoveryengine.v1be" + + "ta.DeleteDocumentRequest\032\026.google.protob" + + "uf.Empty\"\264\001\332A\004name\202\323\344\223\002\246\001*I/v1beta/{name" + + "=projects/*/locations/*/dataStores/*/bra" + + "nches/*/documents/*}ZY*W/v1beta/{name=pr" + + "ojects/*/locations/*/collections/*/dataS" + + "tores/*/branches/*/documents/*}\022\256\003\n\017Impo" + + "rtDocuments\022;.google.cloud.discoveryengi" + + "ne.v1beta.ImportDocumentsRequest\032\035.googl" + + "e.longrunning.Operation\"\276\002\312Az\n;google.cl" + + "oud.discoveryengine.v1beta.ImportDocumen" + + "tsResponse\022;google.cloud.discoveryengine" + + ".v1beta.ImportDocumentsMetadata\202\323\344\223\002\272\001\"P" + + "/v1beta/{parent=projects/*/locations/*/d" + + "ataStores/*/branches/*}/documents:import" + + ":\001*Zc\"^/v1beta/{parent=projects/*/locati" + + "ons/*/collections/*/dataStores/*/branche" + + "s/*}/documents:import:\001*\022\250\003\n\016PurgeDocume" + + "nts\022:.google.cloud.discoveryengine.v1bet" + + "a.PurgeDocumentsRequest\032\035.google.longrun" + + "ning.Operation\"\272\002\312Ax\n:google.cloud.disco" + + "veryengine.v1beta.PurgeDocumentsResponse" + + "\022:google.cloud.discoveryengine.v1beta.Pu" + + "rgeDocumentsMetadata\202\323\344\223\002\270\001\"O/v1beta/{pa" + + "rent=projects/*/locations/*/dataStores/*" + + "/branches/*}/documents:purge:\001*Zb\"]/v1be" + + "ta/{parent=projects/*/locations/*/collec" + + "tions/*/dataStores/*/branches/*}/documen" + + "ts:purge:\001*\032R\312A\036discoveryengine.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\233\002\n\'com.google.cloud.dis" + + "coveryengine.v1betaB\024DocumentServiceProt" + + "oP\001ZQcloud.google.com/go/discoveryengine" + + "/apiv1beta/discoveryenginepb;discoveryen" + + "ginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud." + + "DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\Di" + + "scoveryEngine\\V1beta\352\002&Google::Cloud::Di" + + "scoveryEngine::V1betab\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.discoveryengine.v1beta.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.ImportConfigProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor, + new java.lang.String[] { "Documents", "NextPageToken", }); + internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "Document", "DocumentId", }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor, + new java.lang.String[] { "Document", "AllowMissing", }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteDocumentRequest_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.discoveryengine.v1beta.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.ImportConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java similarity index 65% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java index e652bd580c24..39185dfeb414 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleList.java @@ -1,120 +1,90 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Double list.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DoubleList} */ -public final class DoubleList extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DoubleList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DoubleList) DoubleListOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DoubleList.newBuilder() to construct. private DoubleList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DoubleList() { values_ = emptyDoubleList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DoubleList(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DoubleList.class, - com.google.cloud.discoveryengine.v1beta.DoubleList.Builder.class); + com.google.cloud.discoveryengine.v1beta.DoubleList.class, com.google.cloud.discoveryengine.v1beta.DoubleList.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** - * - * *
    * Double values.
    * 
* * repeated double values = 1; - * * @return A list containing the values. */ @java.lang.Override - public java.util.List getValuesList() { + public java.util.List + getValuesList() { return values_; } /** - * - * *
    * Double values.
    * 
* * repeated double values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * Double values.
    * 
* * repeated double values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ public double getValues(int index) { return values_.getDouble(index); } - private int valuesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +96,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 (getValuesList().size() > 0) { output.writeUInt32NoTag(10); @@ -150,7 +121,8 @@ public int getSerializedSize() { size += dataSize; if (!getValuesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } valuesMemoizedSerializedSize = dataSize; } @@ -162,15 +134,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.discoveryengine.v1beta.DoubleList)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.DoubleList other = - (com.google.cloud.discoveryengine.v1beta.DoubleList) obj; + com.google.cloud.discoveryengine.v1beta.DoubleList other = (com.google.cloud.discoveryengine.v1beta.DoubleList) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,135 +164,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DoubleList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.DoubleList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DoubleList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.DoubleList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList 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.discoveryengine.v1beta.DoubleList 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; } /** - * - * *
    * Double list.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.DoubleList} */ - 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.discoveryengine.v1beta.DoubleList) com.google.cloud.discoveryengine.v1beta.DoubleListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DoubleList.class, - com.google.cloud.discoveryengine.v1beta.DoubleList.Builder.class); + com.google.cloud.discoveryengine.v1beta.DoubleList.class, com.google.cloud.discoveryengine.v1beta.DoubleList.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.DoubleList.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +298,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; } @java.lang.Override @@ -351,18 +319,14 @@ public com.google.cloud.discoveryengine.v1beta.DoubleList build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DoubleList buildPartial() { - com.google.cloud.discoveryengine.v1beta.DoubleList result = - new com.google.cloud.discoveryengine.v1beta.DoubleList(this); + com.google.cloud.discoveryengine.v1beta.DoubleList result = new com.google.cloud.discoveryengine.v1beta.DoubleList(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.DoubleList result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.DoubleList result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -378,39 +342,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DoubleList re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.DoubleList) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.DoubleList) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DoubleList)other); } else { super.mergeFrom(other); return this; @@ -418,8 +381,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DoubleList other) { - if (other == com.google.cloud.discoveryengine.v1beta.DoubleList.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.DoubleList.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -456,31 +418,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - double v = input.readDouble(); - ensureValuesIsMutable(); - values_.addDouble(v); - break; - } // case 9 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValuesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - values_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + double v = input.readDouble(); + ensureValuesIsMutable(); + values_.addDouble(v); + break; + } // case 9 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValuesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + values_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -490,11 +449,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList(); - private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = mutableCopy(values_); @@ -502,44 +459,35 @@ private void ensureValuesIsMutable() { } } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @return A list containing the values. */ - public java.util.List getValuesList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(values_) - : values_; + public java.util.List + getValuesList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(values_) : values_; } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -547,19 +495,17 @@ public double getValues(int index) { return values_.getDouble(index); } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues(int index, double value) { + public Builder setValues( + int index, double value) { ensureValuesIsMutable(); values_.setDouble(index, value); @@ -567,14 +513,11 @@ public Builder setValues(int index, double value) { return this; } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @param value The values to add. * @return This builder for chaining. */ @@ -586,32 +529,28 @@ public Builder addValues(double value) { return this; } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues(java.lang.Iterable values) { + public Builder addAllValues( + java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); return this; } /** - * - * *
      * Double values.
      * 
* * repeated double values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -620,9 +559,9 @@ public Builder clearValues() { 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); } @@ -632,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DoubleList) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DoubleList) private static final com.google.cloud.discoveryengine.v1beta.DoubleList DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DoubleList(); } @@ -646,27 +585,27 @@ public static com.google.cloud.discoveryengine.v1beta.DoubleList getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,4 +620,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.DoubleList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java similarity index 57% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java index 873a59eff9d7..4e85d6fb4a57 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DoubleListOrBuilder.java @@ -1,61 +1,36 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; -public interface DoubleListOrBuilder - extends +public interface DoubleListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DoubleList) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Double values.
    * 
* * repeated double values = 1; - * * @return A list containing the values. */ java.util.List getValuesList(); /** - * - * *
    * Double values.
    * 
* * repeated double values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * Double values.
    * 
* * repeated double values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java similarity index 79% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java index 915914b2e40f..8053b942e653 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Cloud Storage location for input content.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.emptyList(); + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); dataSchema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.GcsSource.class, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder.class); + com.google.cloud.discoveryengine.v1beta.GcsSource.class, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder.class); } public static final int INPUT_URIS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -83,15 +62,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -104,15 +81,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -125,7 +99,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. */ @@ -133,8 +106,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -147,21 +118,18 @@ 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); } public static final int DATA_SCHEMA_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataSchema_ = ""; /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -190,7 +158,6 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) {
    * 
* * string data_schema = 2; - * * @return The dataSchema. */ @java.lang.Override @@ -199,15 +166,14 @@ public java.lang.String getDataSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; } } /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -236,15 +202,16 @@ public java.lang.String getDataSchema() {
    * 
* * string data_schema = 2; - * * @return The bytes for dataSchema. */ @java.lang.Override - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -253,7 +220,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +231,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)); } @@ -300,16 +267,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.discoveryengine.v1beta.GcsSource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.GcsSource other = - (com.google.cloud.discoveryengine.v1beta.GcsSource) obj; + com.google.cloud.discoveryengine.v1beta.GcsSource other = (com.google.cloud.discoveryengine.v1beta.GcsSource) obj; - if (!getInputUrisList().equals(other.getInputUrisList())) return false; - if (!getDataSchema().equals(other.getDataSchema())) return false; + if (!getInputUrisList() + .equals(other.getInputUrisList())) return false; + if (!getDataSchema() + .equals(other.getDataSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,148 +301,145 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.GcsSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.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; } /** - * - * *
    * Cloud Storage location for input content.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.GcsSource) com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.GcsSource.class, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder.class); + com.google.cloud.discoveryengine.v1beta.GcsSource.class, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); dataSchema_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor; } @java.lang.Override @@ -493,11 +458,8 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GcsSource buildPartial() { - com.google.cloud.discoveryengine.v1beta.GcsSource result = - new com.google.cloud.discoveryengine.v1beta.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.GcsSource result = new com.google.cloud.discoveryengine.v1beta.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -517,39 +479,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GcsSource res 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.discoveryengine.v1beta.GcsSource) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.GcsSource) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -557,8 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GcsSource other) { - if (other == com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) return this; if (!other.inputUris_.isEmpty()) { if (inputUris_.isEmpty()) { inputUris_ = other.inputUris_; @@ -600,26 +560,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInputUrisIsMutable(); - inputUris_.add(s); - break; - } // case 10 - case 18: - { - dataSchema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputUrisIsMutable(); + inputUris_.add(s); + break; + } // case 10 + case 18: { + dataSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -629,12 +586,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureInputUrisIsMutable() { if (!inputUris_.isModifiable()) { inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_); @@ -642,8 +597,6 @@ private void ensureInputUrisIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -656,16 +609,14 @@ 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() { inputUris_.makeImmutable(); return inputUris_; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -678,15 +629,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. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -699,7 +647,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. */ @@ -707,8 +654,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -721,16 +666,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. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -743,15 +686,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureInputUrisIsMutable(); inputUris_.set(index, value); bitField0_ |= 0x00000001; @@ -759,8 +700,6 @@ public Builder setInputUris(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -773,14 +712,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addInputUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureInputUrisIsMutable(); inputUris_.add(value); bitField0_ |= 0x00000001; @@ -788,8 +725,6 @@ public Builder addInputUris(java.lang.String value) { return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -802,20 +737,19 @@ 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -828,19 +762,16 @@ 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() { - inputUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + inputUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage URIs to input files. URI can be up to
      * 2000 characters long. URIs can match the full object path (for example,
@@ -853,14 +784,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addInputUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); @@ -871,8 +800,6 @@ public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataSchema_ = ""; /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -901,13 +828,13 @@ public Builder addInputUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * string data_schema = 2; - * * @return The dataSchema. */ public java.lang.String getDataSchema() { java.lang.Object ref = dataSchema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSchema_ = s; return s; @@ -916,8 +843,6 @@ public java.lang.String getDataSchema() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -946,14 +871,15 @@ public java.lang.String getDataSchema() {
      * 
* * string data_schema = 2; - * * @return The bytes for dataSchema. */ - public com.google.protobuf.ByteString getDataSchemaBytes() { + public com.google.protobuf.ByteString + getDataSchemaBytes() { java.lang.Object ref = dataSchema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataSchema_ = b; return b; } else { @@ -961,8 +887,6 @@ public com.google.protobuf.ByteString getDataSchemaBytes() { } } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -991,22 +915,18 @@ public com.google.protobuf.ByteString getDataSchemaBytes() {
      * 
* * string data_schema = 2; - * * @param value The dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataSchema_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1035,7 +955,6 @@ public Builder setDataSchema(java.lang.String value) {
      * 
* * string data_schema = 2; - * * @return This builder for chaining. */ public Builder clearDataSchema() { @@ -1045,8 +964,6 @@ public Builder clearDataSchema() { return this; } /** - * - * *
      * The schema to use when parsing the data from the source.
      *
@@ -1075,23 +992,21 @@ public Builder clearDataSchema() {
      * 
* * string data_schema = 2; - * * @param value The bytes for dataSchema to set. * @return This builder for chaining. */ - public Builder setDataSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSchema_ = value; bitField0_ |= 0x00000002; 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); } @@ -1101,12 +1016,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GcsSource) private static final com.google.cloud.discoveryengine.v1beta.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GcsSource(); } @@ -1115,27 +1030,27 @@ public static com.google.cloud.discoveryengine.v1beta.GcsSource getDefaultInstan 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1065,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java similarity index 86% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java index 46c22c055823..cea3332436f3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -38,13 +20,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -57,13 +37,10 @@ public interface GcsSourceOrBuilder
    * 
* * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ int getInputUrisCount(); /** - * - * *
    * Required. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -76,14 +53,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. Cloud Storage URIs to input files. URI can be up to
    * 2000 characters long. URIs can match the full object path (for example,
@@ -96,15 +70,13 @@ 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); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -133,13 +105,10 @@ public interface GcsSourceOrBuilder
    * 
* * string data_schema = 2; - * * @return The dataSchema. */ java.lang.String getDataSchema(); /** - * - * *
    * The schema to use when parsing the data from the source.
    *
@@ -168,8 +137,8 @@ public interface GcsSourceOrBuilder
    * 
* * string data_schema = 2; - * * @return The bytes for dataSchema. */ - com.google.protobuf.ByteString getDataSchemaBytes(); + com.google.protobuf.ByteString + getDataSchemaBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java index 05fa2b16df15..255ba4ad3c85 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request for GetConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetConversationRequest} */ -public final class GetConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetConversationRequest) GetConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConversationRequest.newBuilder() to construct. private GetConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConversationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.GetConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.GetConversationRequest.class, com.google.cloud.discoveryengine.v1beta.GetConversationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 @@ -86,32 +61,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 resource name of the Conversation to get. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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.discoveryengine.v1beta.GetConversationRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.GetConversationRequest other = - (com.google.cloud.discoveryengine.v1beta.GetConversationRequest) obj; + com.google.cloud.discoveryengine.v1beta.GetConversationRequest other = (com.google.cloud.discoveryengine.v1beta.GetConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest 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.discoveryengine.v1beta.GetConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.GetConversationRequest 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 for GetConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetConversationRequest} */ - 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.discoveryengine.v1beta.GetConversationRequest) com.google.cloud.discoveryengine.v1beta.GetConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.GetConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.GetConversationRequest.class, com.google.cloud.discoveryengine.v1beta.GetConversationRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.GetConversationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GetConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.GetConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.GetConversationRequest.getDefaultInstance(); } @@ -345,17 +312,13 @@ public com.google.cloud.discoveryengine.v1beta.GetConversationRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GetConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.GetConversationRequest result = - new com.google.cloud.discoveryengine.v1beta.GetConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.GetConversationRequest result = new com.google.cloud.discoveryengine.v1beta.GetConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.GetConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GetConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,39 +329,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.GetConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -406,9 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.GetConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.GetConversationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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; @@ -492,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 { @@ -517,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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() { @@ -561,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Conversation to get. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,43 +530,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetConversationRequest) - private static final com.google.cloud.discoveryengine.v1beta.GetConversationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.GetConversationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetConversationRequest(); } - public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.GetConversationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,8 +576,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GetConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.GetConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java new file mode 100644 index 000000000000..ea75559d7c6a --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetConversationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface GetConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Conversation to get. Format:
+   * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java index 3e578ed6e162..4372d815572c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
@@ -29,48 +12,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetDocumentRequest}
  */
-public final class GetDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetDocumentRequest)
     GetDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetDocumentRequest.newBuilder() to construct.
   private GetDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetDocumentRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 @@ -96,15 +71,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
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -118,18 +92,17 @@ public java.lang.String getName() {
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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 { @@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +122,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_); } @@ -174,15 +147,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.discoveryengine.v1beta.GetDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.GetDocumentRequest other = - (com.google.cloud.discoveryengine.v1beta.GetDocumentRequest) obj; + com.google.cloud.discoveryengine.v1beta.GetDocumentRequest other = (com.google.cloud.discoveryengine.v1beta.GetDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,104 +175,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest 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.discoveryengine.v1beta.GetDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.GetDocumentRequest 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
    * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
@@ -308,32 +275,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetDocumentRequest}
    */
-  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.discoveryengine.v1beta.GetDocumentRequest)
       com.google.cloud.discoveryengine.v1beta.GetDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +311,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetDocumentRequest_descriptor;
     }
 
     @java.lang.Override
@@ -364,11 +332,8 @@ public com.google.cloud.discoveryengine.v1beta.GetDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.GetDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.GetDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1beta.GetDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.GetDocumentRequest result = new com.google.cloud.discoveryengine.v1beta.GetDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -384,39 +349,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GetDocumentRe
     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.discoveryengine.v1beta.GetDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -424,8 +388,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetDocumentRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.GetDocumentRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -457,19 +420,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -479,13 +440,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -499,16 +457,14 @@ public Builder mergeFrom(
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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; @@ -517,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -532,17 +486,16 @@ public java.lang.String getName() {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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 { @@ -550,8 +503,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -565,25 +516,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -597,10 +542,7 @@ public Builder setName(java.lang.String value) {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * 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() { @@ -610,8 +552,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Full resource name of
      * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -625,26 +565,22 @@ public Builder clearName() {
      * does not exist, a `NOT_FOUND` error is returned.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetDocumentRequest) private static final com.google.cloud.discoveryengine.v1beta.GetDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetDocumentRequest(); } @@ -668,27 +604,27 @@ public static com.google.cloud.discoveryengine.v1beta.GetDocumentRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -703,4 +639,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.GetDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java similarity index 62% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java index 2921289478c5..f2b3b10c8545 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface GetDocumentRequestOrBuilder - extends +public interface GetDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Full resource name of
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -39,16 +21,11 @@ public interface GetDocumentRequestOrBuilder
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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
    * [Document][google.cloud.discoveryengine.v1beta.Document], such as
@@ -62,11 +39,9 @@ public interface GetDocumentRequestOrBuilder
    * does not exist, a `NOT_FOUND` error is returned.
    * 
* - * - * 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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java index 0a3040ea237e..187765a7694d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetSchemaRequest}
  */
-public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetSchemaRequest)
     GetSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetSchemaRequest.newBuilder() to construct.
   private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetSchemaRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 @@ -88,32 +63,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 full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
    * 
* - * - * 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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.discoveryengine.v1beta.GetSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.GetSchemaRequest other = - (com.google.cloud.discoveryengine.v1beta.GetSchemaRequest) obj; + com.google.cloud.discoveryengine.v1beta.GetSchemaRequest other = (com.google.cloud.discoveryengine.v1beta.GetSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,104 +159,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest 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.discoveryengine.v1beta.GetSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.GetSchemaRequest 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
    * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetSchemaRequest}
    */
-  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.discoveryengine.v1beta.GetSchemaRequest)
       com.google.cloud.discoveryengine.v1beta.GetSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +316,8 @@ public com.google.cloud.discoveryengine.v1beta.GetSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.GetSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.GetSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1beta.GetSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.GetSchemaRequest result = new com.google.cloud.discoveryengine.v1beta.GetSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +333,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GetSchemaRequ
     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.discoveryengine.v1beta.GetSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.GetSchemaRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -441,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,28 +424,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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; @@ -493,24 +449,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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 { @@ -518,41 +471,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * 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() { @@ -562,33 +504,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetSchemaRequest) private static final com.google.cloud.discoveryengine.v1beta.GetSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetSchemaRequest(); } @@ -612,27 +548,27 @@ public static com.google.cloud.discoveryengine.v1beta.GetSchemaRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.GetSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..bd070449d985 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/schema_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface GetSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full resource name of the schema, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java new file mode 100644 index 000000000000..d8e8e3a2a218 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java @@ -0,0 +1,249 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/import_config.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class ImportConfigProto { + private ImportConfigProto() {} + 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_discoveryengine_v1beta_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_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/discoveryengine/v1beta/im" + + "port_config.proto\022#google.cloud.discover" + + "yengine.v1beta\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\0322goog" + + "le/cloud/discoveryengine/v1beta/document" + + ".proto\0324google/cloud/discoveryengine/v1b" + + "eta/user_event.proto\032\037google/protobuf/ti" + + "mestamp.proto\032\027google/rpc/status.proto\032\026" + + "google/type/date.proto\":\n\tGcsSource\022\030\n\ni" + + "nput_uris\030\001 \003(\tB\004\342A\001\002\022\023\n\013data_schema\030\002 \001" + + "(\t\"\276\001\n\016BigQuerySource\022+\n\016partition_date\030" + + "\005 \001(\0132\021.google.type.DateH\000\022\022\n\nproject_id" + + "\030\001 \001(\t\022\030\n\ndataset_id\030\002 \001(\tB\004\342A\001\002\022\026\n\010tabl" + + "e_id\030\003 \001(\tB\004\342A\001\002\022\027\n\017gcs_staging_dir\030\004 \001(" + + "\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpartition\"8\n\021I" + + "mportErrorConfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r" + + "\n\013destination\"\211\004\n\027ImportUserEventsReques" + + "t\022b\n\rinline_source\030\002 \001(\0132I.google.cloud." + + "discoveryengine.v1beta.ImportUserEventsR" + + "equest.InlineSourceH\000\022D\n\ngcs_source\030\003 \001(" + + "\0132..google.cloud.discoveryengine.v1beta." + + "GcsSourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.g" + + "oogle.cloud.discoveryengine.v1beta.BigQu" + + "erySourceH\000\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(di" + + "scoveryengine.googleapis.com/DataStore\022L" + + "\n\014error_config\030\005 \001(\01326.google.cloud.disc" + + "overyengine.v1beta.ImportErrorConfig\032Y\n\014" + + "InlineSource\022I\n\013user_events\030\001 \003(\0132..goog" + + "le.cloud.discoveryengine.v1beta.UserEven" + + "tB\004\342A\001\002B\010\n\006source\"\317\001\n\030ImportUserEventsRe" + + "sponse\022)\n\rerror_samples\030\001 \003(\0132\022.google.r" + + "pc.Status\022L\n\014error_config\030\002 \001(\01326.google" + + ".cloud.discoveryengine.v1beta.ImportErro" + + "rConfig\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025" + + "unjoined_events_count\030\004 \001(\003\"\252\001\n\030ImportUs" + + "erEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022/\n\013update_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsu" + + "ccess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003" + + "\"\251\001\n\027ImportDocumentsMetadata\022/\n\013create_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure" + + "_count\030\004 \001(\003\"\361\005\n\026ImportDocumentsRequest\022" + + "a\n\rinline_source\030\002 \001(\0132H.google.cloud.di" + + "scoveryengine.v1beta.ImportDocumentsRequ" + + "est.InlineSourceH\000\022D\n\ngcs_source\030\003 \001(\0132." + + ".google.cloud.discoveryengine.v1beta.Gcs" + + "SourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.goog" + + "le.cloud.discoveryengine.v1beta.BigQuery" + + "SourceH\000\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%disco" + + "veryengine.googleapis.com/Branch\022L\n\014erro" + + "r_config\030\005 \001(\01326.google.cloud.discoverye" + + "ngine.v1beta.ImportErrorConfig\022k\n\023reconc" + + "iliation_mode\030\006 \001(\0162N.google.cloud.disco" + + "veryengine.v1beta.ImportDocumentsRequest" + + ".ReconciliationMode\022\031\n\021auto_generate_ids" + + "\030\010 \001(\010\022\020\n\010id_field\030\t \001(\t\032V\n\014InlineSource" + + "\022F\n\tdocuments\030\001 \003(\0132-.google.cloud.disco" + + "veryengine.v1beta.DocumentB\004\342A\001\002\"T\n\022Reco" + + "nciliationMode\022#\n\037RECONCILIATION_MODE_UN" + + "SPECIFIED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002B\010" + + "\n\006source\"\222\001\n\027ImportDocumentsResponse\022)\n\r" + + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022" + + "L\n\014error_config\030\002 \001(\01326.google.cloud.dis" + + "coveryengine.v1beta.ImportErrorConfigB\230\002" + + "\n\'com.google.cloud.discoveryengine.v1bet" + + "aB\021ImportConfigProtoP\001ZQcloud.google.com" + + "/go/discoveryengine/apiv1beta/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" + + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" + + "\002&Google::Cloud::DiscoveryEngine::V1beta" + + "b\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.discoveryengine.v1beta.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GcsSource_descriptor, + new java.lang.String[] { "InputUris", "DataSchema", }); + internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_BigQuerySource_descriptor, + new java.lang.String[] { "PartitionDate", "ProjectId", "DatasetId", "TableId", "GcsStagingDir", "DataSchema", "Partition", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor, + new java.lang.String[] { "GcsPrefix", "Destination", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor, + new java.lang.String[] { "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "Source", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor, + new java.lang.String[] { "UserEvents", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorConfig", "JoinedEventsCount", "UnjoinedEventsCount", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor, + new java.lang.String[] { "InlineSource", "GcsSource", "BigquerySource", "Parent", "ErrorConfig", "ReconciliationMode", "AutoGenerateIds", "IdField", "Source", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor, + new java.lang.String[] { "Documents", }); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorConfig", }); + 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.discoveryengine.v1beta.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java index bf2c3ed25d93..97069b85eeb4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Metadata related to the progress of the ImportDocuments operation. This is
  * returned by the google.longrunning.Operation.metadata field.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata}
  */
-public final class ImportDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportDocumentsMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata)
     ImportDocumentsMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportDocumentsMetadata.newBuilder() to construct.
   private ImportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ImportDocumentsMetadata() {}
+  private ImportDocumentsMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportDocumentsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.class,
-            com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.Builder.class);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -110,15 +84,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -126,15 +97,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -142,8 +110,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.
@@ -159,14 +125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int SUCCESS_COUNT_FIELD_NUMBER = 3;
   private long successCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -177,14 +140,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 4; private long failureCount_ = 0L; /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -193,7 +153,6 @@ public long getFailureCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -228,16 +188,20 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (successCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); } if (failureCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,24 +211,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.discoveryengine.v1beta.ImportDocumentsMetadata)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata other = - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) obj; + com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata other = (com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getSuccessCount() != other.getSuccessCount()) return false; - if (getFailureCount() != other.getFailureCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,113 +252,109 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata 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.discoveryengine.v1beta.ImportDocumentsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata 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 ImportDocuments operation. This is
    * returned by the google.longrunning.Operation.metadata field.
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata}
    */
-  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.discoveryengine.v1beta.ImportDocumentsMetadata)
       com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.class,
-              com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,14 +409,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.getDefaultInstance();
     }
 
@@ -467,23 +430,23 @@ public com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata result =
-          new com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata result = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.successCount_ = successCount_;
@@ -497,50 +460,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata other) {
+      if (other == com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -579,37 +538,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                successCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                failureCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              successCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              failureCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -619,52 +577,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -685,15 +629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -704,8 +647,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -714,9 +655,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -729,8 +670,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -748,8 +687,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -762,8 +699,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -774,14 +709,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.
      * 
@@ -789,17 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -807,49 +736,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -871,8 +787,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.
@@ -880,7 +794,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -891,8 +806,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.
@@ -902,9 +815,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -917,8 +830,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.
@@ -937,8 +848,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -952,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -965,14 +872,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.
@@ -981,32 +885,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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_;
     }
 
-    private long successCount_;
+    private long successCount_ ;
     /**
-     *
-     *
      * 
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -1014,14 +912,11 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @param value The successCount to set. * @return This builder for chaining. */ @@ -1033,14 +928,11 @@ public Builder setSuccessCount(long value) { return this; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { @@ -1050,16 +942,13 @@ public Builder clearSuccessCount() { return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -1067,14 +956,11 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @param value The failureCount to set. * @return This builder for chaining. */ @@ -1086,14 +972,11 @@ public Builder setFailureCount(long value) { return this; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return This builder for chaining. */ public Builder clearFailureCount() { @@ -1102,9 +985,9 @@ public Builder clearFailureCount() { 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); } @@ -1114,43 +997,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) - private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata(); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDocumentsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,8 +1043,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java index cec0965bb01d..428c482b7bff 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface ImportDocumentsMetadataOrBuilder - extends +public interface ImportDocumentsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface ImportDocumentsMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
@@ -97,27 +65,21 @@ public interface ImportDocumentsMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ long getFailureCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java index 623454b5457f..a90cdd17605a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for Import methods.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsRequest} */ -public final class ImportDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) ImportDocumentsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportDocumentsRequest.newBuilder() to construct. private ImportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDocumentsRequest() { parent_ = ""; reconciliationMode_ = 0; @@ -45,40 +27,35 @@ private ImportDocumentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDocumentsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.class, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.Builder.class); } /** - * - * *
    * Indicates how imported documents are reconciled with the existing documents
    * created or imported before.
    * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode} + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode} */ - public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnum { + public enum ReconciliationMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Defaults to `INCREMENTAL`.
      * 
@@ -87,8 +64,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ RECONCILIATION_MODE_UNSPECIFIED(0), /** - * - * *
      * Inserts new documents or updates existing documents.
      * 
@@ -97,8 +72,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ INCREMENTAL(1), /** - * - * *
      * Calculates diff and replaces the entire document dataset. Existing
      * documents may be deleted if they are not present in the source location.
@@ -111,8 +84,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu
     ;
 
     /**
-     *
-     *
      * 
      * Defaults to `INCREMENTAL`.
      * 
@@ -121,8 +92,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int RECONCILIATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Inserts new documents or updates existing documents.
      * 
@@ -131,8 +100,6 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int INCREMENTAL_VALUE = 1; /** - * - * *
      * Calculates diff and replaces the entire document dataset. Existing
      * documents may be deleted if they are not present in the source location.
@@ -142,6 +109,7 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int FULL_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -166,14 +134,10 @@ public static ReconciliationMode valueOf(int value) {
      */
     public static ReconciliationMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return RECONCILIATION_MODE_UNSPECIFIED;
-        case 1:
-          return INCREMENTAL;
-        case 2:
-          return FULL;
-        default:
-          return null;
+        case 0: return RECONCILIATION_MODE_UNSPECIFIED;
+        case 1: return INCREMENTAL;
+        case 2: return FULL;
+        default: return null;
       }
     }
 
@@ -181,31 +145,29 @@ public static ReconciliationMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ReconciliationMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ReconciliationMode findValueByNumber(int number) {
+              return ReconciliationMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ReconciliationMode findValueByNumber(int number) {
-                return ReconciliationMode.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.discoveryengine.v1beta.ImportDocumentsRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ReconciliationMode[] VALUES = values();
@@ -213,7 +175,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ReconciliationMode 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;
@@ -230,213 +193,168 @@ private ReconciliationMode(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode)
   }
 
-  public interface InlineSourceOrBuilder
-      extends
+  public interface InlineSourceOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getDocumentsCount(); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getDocumentsOrBuilderList(); /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder( + int index); } /** - * - * *
    * The inline source for the input config for ImportDocuments method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource} */ - public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class InlineSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) InlineSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InlineSource.newBuilder() to construct. private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InlineSource() { documents_ = 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 InlineSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List documents_; /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getDocumentsList() { return documents_; } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentsOrBuilderList() { return documents_; } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getDocumentsCount() { return documents_.size(); } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index) { return documents_.get(index); } /** - * - * *
      * Required. A list of documents to update/create. Each document must have a
      * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
      * Recommended max of 100 items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder( @@ -445,7 +363,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,7 +374,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 < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } @@ -471,7 +389,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documents_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -481,16 +400,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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource other = - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) obj; + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource other = (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -511,101 +429,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - 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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - 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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource 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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource 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 @@ -615,43 +522,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The inline source for the input config for ImportDocuments method.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource} */ - 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.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -667,22 +570,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource build() { - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -690,20 +590,15 @@ public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSour } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - buildPartial() { - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result = - new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource(this); + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result) { if (documentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); @@ -715,8 +610,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource result) { int from_bitField0_ = bitField0_; } @@ -724,55 +618,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource other) { - if (other - == com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource other) { + if (other == com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance()) return this; if (documentsBuilder_ == null) { if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { @@ -791,10 +676,9 @@ public Builder mergeFrom( documentsBuilder_ = null; documents_ = other.documents_; bitField0_ = (bitField0_ & ~0x00000001); - documentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDocumentsFieldBuilder() - : null; + documentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDocumentsFieldBuilder() : null; } else { documentsBuilder_.addAllMessages(other.documents_); } @@ -826,27 +710,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1beta.Document m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Document.parser(), - extensionRegistry); - if (documentsBuilder_ == null) { - ensureDocumentsIsMutable(); - documents_.add(m); - } else { - documentsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1beta.Document m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Document.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -856,38 +738,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List documents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - documents_ = - new java.util.ArrayList(documents_); + documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> - documentsBuilder_; + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> documentsBuilder_; /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getDocumentsList() { if (documentsBuilder_ == null) { @@ -897,17 +769,13 @@ public java.util.List getDocum } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getDocumentsCount() { if (documentsBuilder_ == null) { @@ -917,17 +785,13 @@ public int getDocumentsCount() { } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index) { if (documentsBuilder_ == null) { @@ -937,17 +801,13 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index) } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocuments( int index, com.google.cloud.discoveryengine.v1beta.Document value) { @@ -964,17 +824,13 @@ public Builder setDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocuments( int index, com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { @@ -988,17 +844,13 @@ public Builder setDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments(com.google.cloud.discoveryengine.v1beta.Document value) { if (documentsBuilder_ == null) { @@ -1014,17 +866,13 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1beta.Document val return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments( int index, com.google.cloud.discoveryengine.v1beta.Document value) { @@ -1041,17 +889,13 @@ public Builder addDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments( com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { @@ -1065,17 +909,13 @@ public Builder addDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDocuments( int index, com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { @@ -1089,23 +929,20 @@ public Builder addDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllDocuments( java.lang.Iterable values) { if (documentsBuilder_ == null) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); onChanged(); } else { documentsBuilder_.addAllMessages(values); @@ -1113,17 +950,13 @@ public Builder addAllDocuments( return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocuments() { if (documentsBuilder_ == null) { @@ -1136,17 +969,13 @@ public Builder clearDocuments() { return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeDocuments(int index) { if (documentsBuilder_ == null) { @@ -1159,58 +988,45 @@ public Builder removeDocuments(int index) { return this; } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentsBuilder( int index) { return getDocumentsFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder( int index) { if (documentsBuilder_ == null) { - return documents_.get(index); - } else { + return documents_.get(index); } else { return documentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDocumentsOrBuilderList() { + public java.util.List + getDocumentsOrBuilderList() { if (documentsBuilder_ != null) { return documentsBuilder_.getMessageOrBuilderList(); } else { @@ -1218,76 +1034,59 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrB } } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuilder() { - return getDocumentsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuilder( int index) { - return getDocumentsFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); } /** - * - * *
        * Required. A list of documents to update/create. Each document must have a
        * valid [Document.id][google.cloud.discoveryengine.v1beta.Document.id].
        * Recommended max of 100 items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDocumentsBuilderList() { + public java.util.List + getDocumentsBuilderList() { return getDocumentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> getDocumentsFieldBuilder() { if (documentsBuilder_ == null) { - documentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( - documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( + documents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); documents_ = null; } return documentsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1300,45 +1099,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) - private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource(); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,27 +1145,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCase_ = 0; - @SuppressWarnings("serial") 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 { INLINE_SOURCE(2), GCS_SOURCE(3), BIGQUERY_SOURCE(4), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -1386,40 +1177,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return INLINE_SOURCE; - case 3: - return GCS_SOURCE; - case 4: - return BIGQUERY_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return INLINE_SOURCE; + case 3: return GCS_SOURCE; + case 4: return BIGQUERY_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 INLINE_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -1427,58 +1209,42 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource getInlineSource() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 3; /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1486,26 +1252,21 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; } return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); } /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -1515,21 +1276,18 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; } return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); } public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1537,26 +1295,21 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * BigQuery input source.
    * 
@@ -1564,31 +1317,24 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource( * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder - getBigquerySourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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 @@ -1597,33 +1343,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 parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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 { @@ -1634,14 +1378,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ERROR_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -1649,25 +1390,18 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
@@ -1675,66 +1409,43 @@ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig( * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder - getErrorConfigOrBuilder() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } public static final int RECONCILIATION_MODE_FIELD_NUMBER = 6; private int reconciliationMode_ = 0; /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The enum numeric value on the wire for reconciliationMode. */ - @java.lang.Override - public int getReconciliationModeValue() { + @java.lang.Override public int getReconciliationModeValue() { return reconciliationMode_; } /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The reconciliationMode. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - getReconciliationMode() { - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode result = - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.forNumber( - reconciliationMode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode getReconciliationMode() { + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode result = com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.forNumber(reconciliationMode_); + return result == null ? com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED : result; } public static final int AUTO_GENERATE_IDS_FIELD_NUMBER = 8; private boolean autoGenerateIds_ = false; /** - * - * *
    * Whether to automatically generate IDs for the documents if absent.
    *
@@ -1760,7 +1471,6 @@ public int getReconciliationModeValue() {
    * 
* * bool auto_generate_ids = 8; - * * @return The autoGenerateIds. */ @java.lang.Override @@ -1769,12 +1479,9 @@ public boolean getAutoGenerateIds() { } public static final int ID_FIELD_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object idField_ = ""; /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -1808,7 +1515,6 @@ public boolean getAutoGenerateIds() {
    * 
* * string id_field = 9; - * * @return The idField. */ @java.lang.Override @@ -1817,15 +1523,14 @@ public java.lang.String getIdField() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); idField_ = s; return s; } } /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -1859,15 +1564,16 @@ public java.lang.String getIdField() {
    * 
* * string id_field = 9; - * * @return The bytes for idField. */ @java.lang.Override - public com.google.protobuf.ByteString getIdFieldBytes() { + public com.google.protobuf.ByteString + getIdFieldBytes() { java.lang.Object ref = idField_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); idField_ = b; return b; } else { @@ -1876,7 +1582,6 @@ public com.google.protobuf.ByteString getIdFieldBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1888,13 +1593,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (sourceCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_); + output.writeMessage(2, (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_); } if (sourceCase_ == 3) { output.writeMessage(3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); @@ -1905,10 +1610,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorConfig_ != null) { output.writeMessage(5, getErrorConfig()); } - if (reconciliationMode_ - != com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - .RECONCILIATION_MODE_UNSPECIFIED - .getNumber()) { + if (reconciliationMode_ != com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.RECONCILIATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(6, reconciliationMode_); } if (autoGenerateIds_ != false) { @@ -1930,33 +1632,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) - source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_); } if (sourceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_); } if (sourceCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_); } if (errorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getErrorConfig()); } - if (reconciliationMode_ - != com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - .RECONCILIATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, reconciliationMode_); + if (reconciliationMode_ != com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.RECONCILIATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, reconciliationMode_); } if (autoGenerateIds_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, autoGenerateIds_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, autoGenerateIds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idField_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idField_); @@ -1969,32 +1666,38 @@ 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.discoveryengine.v1beta.ImportDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest other = - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) obj; + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest other = (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasErrorConfig() != other.hasErrorConfig()) return false; if (hasErrorConfig()) { - if (!getErrorConfig().equals(other.getErrorConfig())) return false; + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; } if (reconciliationMode_ != other.reconciliationMode_) return false; - if (getAutoGenerateIds() != other.getAutoGenerateIds()) return false; - if (!getIdField().equals(other.getIdField())) return false; + if (getAutoGenerateIds() + != other.getAutoGenerateIds()) return false; + if (!getIdField() + .equals(other.getIdField())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: - if (!getInlineSource().equals(other.getInlineSource())) return false; + if (!getInlineSource() + .equals(other.getInlineSource())) return false; break; case 3: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 4: - if (!getBigquerySource().equals(other.getBigquerySource())) return false; + if (!getBigquerySource() + .equals(other.getBigquerySource())) return false; break; case 0: default: @@ -2019,7 +1722,8 @@ public int hashCode() { hash = (37 * hash) + RECONCILIATION_MODE_FIELD_NUMBER; hash = (53 * hash) + reconciliationMode_; hash = (37 * hash) + AUTO_GENERATE_IDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoGenerateIds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutoGenerateIds()); hash = (37 * hash) + ID_FIELD_FIELD_NUMBER; hash = (53 * hash) + getIdField().hashCode(); switch (sourceCase_) { @@ -2044,136 +1748,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest 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.discoveryengine.v1beta.ImportDocumentsRequest} */ - 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.discoveryengine.v1beta.ImportDocumentsRequest) com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.class, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2202,14 +1901,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.getDefaultInstance(); } @@ -2224,25 +1922,22 @@ public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result = - new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.errorConfig_ = - errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.reconciliationMode_ = reconciliationMode_; @@ -2255,17 +1950,19 @@ private void buildPartial0( } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + if (sourceCase_ == 2 && + inlineSourceBuilder_ != null) { result.source_ = inlineSourceBuilder_.build(); } - if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 3 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } - if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + if (sourceCase_ == 4 && + bigquerySourceBuilder_ != null) { result.source_ = bigquerySourceBuilder_.build(); } } @@ -2274,39 +1971,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.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.discoveryengine.v1beta.ImportDocumentsRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest)other); } else { super.mergeFrom(other); return this; @@ -2314,9 +2010,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000008; @@ -2337,25 +2031,21 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocuments onChanged(); } switch (other.getSourceCase()) { - case INLINE_SOURCE: - { - mergeInlineSource(other.getInlineSource()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case BIGQUERY_SOURCE: - { - mergeBigquerySource(other.getBigquerySource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case INLINE_SOURCE: { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2383,61 +2073,60 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - reconciliationMode_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 64: - { - autoGenerateIds_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 74: - { - idField_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getInlineSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getBigquerySourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + reconciliationMode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 64: { + autoGenerateIds_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 74: { + idField_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2447,12 +2136,12 @@ public Builder mergeFrom( } // finally 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() { @@ -2465,21 +2154,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder> - inlineSourceBuilder_; + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder> inlineSourceBuilder_; /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -2487,49 +2168,35 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource getInlineSource() { if (inlineSourceBuilder_ == null) { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) - source_; + return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } else { if (sourceCase_ == 2) { return inlineSourceBuilder_.getMessage(); } - return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ - public Builder setInlineSource( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource value) { + public Builder setInlineSource(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2543,19 +2210,14 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ public Builder setInlineSource( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder builderForValue) { if (inlineSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -2566,30 +2228,18 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ - public Builder mergeInlineSource( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource value) { + public Builder mergeInlineSource(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ - != com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .newBuilder( - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) - source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.newBuilder((com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2605,15 +2255,11 @@ public Builder mergeInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ public Builder clearInlineSource() { if (inlineSourceBuilder_ == null) { @@ -2632,75 +2278,50 @@ public Builder clearInlineSource() { return this; } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder - getInlineSourceBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder() { return getInlineSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { return inlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) - source_; + return (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for documents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder> + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder> getInlineSourceFieldBuilder() { if (inlineSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { - source_ = - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource - .getDefaultInstance(); + source_ = com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.getDefaultInstance(); } - inlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest - .InlineSourceOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) - source_, + inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource) source_, getParentForChildren(), isClean()); source_ = null; @@ -2711,19 +2332,13 @@ public Builder clearInlineSource() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.GcsSource, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, - com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.discoveryengine.v1beta.GcsSource, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -2731,14 +2346,11 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override @@ -2756,8 +2368,6 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2778,8 +2388,6 @@ public Builder setGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource va return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2798,8 +2406,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2808,13 +2414,10 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 3 - && source_ != com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder( - (com.google.cloud.discoveryengine.v1beta.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 3 && + source_ != com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder((com.google.cloud.discoveryengine.v1beta.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2830,8 +2433,6 @@ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2855,8 +2456,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2867,8 +2466,6 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource.Builder getGcsSourceBui return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2887,8 +2484,6 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2896,19 +2491,14 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.GcsSource, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, - com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> + com.google.cloud.discoveryengine.v1beta.GcsSource, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 3)) { source_ = com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.GcsSource, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, - com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder>( (com.google.cloud.discoveryengine.v1beta.GcsSource) source_, getParentForChildren(), isClean()); @@ -2920,19 +2510,13 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.BigQuerySource, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> - bigquerySourceBuilder_; + com.google.cloud.discoveryengine.v1beta.BigQuerySource, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> bigquerySourceBuilder_; /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -2940,14 +2524,11 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override @@ -2965,8 +2546,6 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource( } } /** - * - * *
      * BigQuery input source.
      * 
@@ -2987,8 +2566,6 @@ public Builder setBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuer return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -3007,25 +2584,18 @@ public Builder setBigquerySource( return this; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ - public Builder mergeBigquerySource( - com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { + public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { if (bigquerySourceBuilder_ == null) { - if (sourceCase_ == 4 - && source_ - != com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder( - (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 4 && + source_ != com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder((com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -3041,8 +2611,6 @@ public Builder mergeBigquerySource( return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -3066,21 +2634,16 @@ public Builder clearBigquerySource() { return this; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ - public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder - getBigquerySourceBuilder() { + public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder getBigquerySourceBuilder() { return getBigquerySourceFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery input source.
      * 
@@ -3088,8 +2651,7 @@ public Builder clearBigquerySource() { * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder - getBigquerySourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { return bigquerySourceBuilder_.getMessageOrBuilder(); } else { @@ -3100,8 +2662,6 @@ public Builder clearBigquerySource() { } } /** - * - * *
      * BigQuery input source.
      * 
@@ -3109,19 +2669,14 @@ public Builder clearBigquerySource() { * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.BigQuerySource, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> + com.google.cloud.discoveryengine.v1beta.BigQuerySource, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> getBigquerySourceFieldBuilder() { if (bigquerySourceBuilder_ == null) { if (!(sourceCase_ == 4)) { source_ = com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); } - bigquerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.BigQuerySource, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder>( + bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder>( (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_, getParentForChildren(), isClean()); @@ -3134,24 +2689,20 @@ public Builder clearBigquerySource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string 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; @@ -3160,25 +2711,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string 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 { @@ -3186,43 +2734,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string 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() { @@ -3232,25 +2769,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * Requires create/update permission.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; @@ -3260,47 +2791,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3321,8 +2839,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErro return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3341,21 +2857,17 @@ public Builder setErrorConfig( return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; */ - public Builder mergeErrorConfig( - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { if (errorConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && errorConfig_ != null - && errorConfig_ - != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { getErrorConfigBuilder().mergeFrom(value); } else { errorConfig_ = value; @@ -3368,8 +2880,6 @@ public Builder mergeErrorConfig( return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3387,42 +2897,33 @@ public Builder clearErrorConfig() { return this; } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; */ - public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder - getErrorConfigBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder getErrorConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getErrorConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; */ - public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder - getErrorConfigOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { if (errorConfigBuilder_ != null) { return errorConfigBuilder_.getMessageOrBuilder(); } else { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } } /** - * - * *
      * The desired location of errors incurred during the Import.
      * 
@@ -3430,17 +2931,14 @@ public Builder clearErrorConfig() { * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> getErrorConfigFieldBuilder() { if (errorConfigBuilder_ == null) { - errorConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( - getErrorConfig(), getParentForChildren(), isClean()); + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); errorConfig_ = null; } return errorConfigBuilder_; @@ -3448,37 +2946,26 @@ public Builder clearErrorConfig() { private int reconciliationMode_ = 0; /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The enum numeric value on the wire for reconciliationMode. */ - @java.lang.Override - public int getReconciliationModeValue() { + @java.lang.Override public int getReconciliationModeValue() { return reconciliationMode_; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @param value The enum numeric value on the wire for reconciliationMode to set. * @return This builder for chaining. */ @@ -3489,49 +2976,32 @@ public Builder setReconciliationModeValue(int value) { return this; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The reconciliationMode. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - getReconciliationMode() { - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode result = - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - .forNumber(reconciliationMode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - .UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode getReconciliationMode() { + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode result = com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.forNumber(reconciliationMode_); + return result == null ? com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.UNRECOGNIZED : result; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @param value The reconciliationMode to set. * @return This builder for chaining. */ - public Builder setReconciliationMode( - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode value) { + public Builder setReconciliationMode(com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode value) { if (value == null) { throw new NullPointerException(); } @@ -3541,18 +3011,13 @@ public Builder setReconciliationMode( return this; } /** - * - * *
      * The mode of reconciliation between existing documents and the documents to
      * be imported. Defaults to
      * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return This builder for chaining. */ public Builder clearReconciliationMode() { @@ -3562,10 +3027,8 @@ public Builder clearReconciliationMode() { return this; } - private boolean autoGenerateIds_; + private boolean autoGenerateIds_ ; /** - * - * *
      * Whether to automatically generate IDs for the documents if absent.
      *
@@ -3591,7 +3054,6 @@ public Builder clearReconciliationMode() {
      * 
* * bool auto_generate_ids = 8; - * * @return The autoGenerateIds. */ @java.lang.Override @@ -3599,8 +3061,6 @@ public boolean getAutoGenerateIds() { return autoGenerateIds_; } /** - * - * *
      * Whether to automatically generate IDs for the documents if absent.
      *
@@ -3626,7 +3086,6 @@ public boolean getAutoGenerateIds() {
      * 
* * bool auto_generate_ids = 8; - * * @param value The autoGenerateIds to set. * @return This builder for chaining. */ @@ -3638,8 +3097,6 @@ public Builder setAutoGenerateIds(boolean value) { return this; } /** - * - * *
      * Whether to automatically generate IDs for the documents if absent.
      *
@@ -3665,7 +3122,6 @@ public Builder setAutoGenerateIds(boolean value) {
      * 
* * bool auto_generate_ids = 8; - * * @return This builder for chaining. */ public Builder clearAutoGenerateIds() { @@ -3677,8 +3133,6 @@ public Builder clearAutoGenerateIds() { private java.lang.Object idField_ = ""; /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3712,13 +3166,13 @@ public Builder clearAutoGenerateIds() {
      * 
* * string id_field = 9; - * * @return The idField. */ public java.lang.String getIdField() { java.lang.Object ref = idField_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); idField_ = s; return s; @@ -3727,8 +3181,6 @@ public java.lang.String getIdField() { } } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3762,14 +3214,15 @@ public java.lang.String getIdField() {
      * 
* * string id_field = 9; - * * @return The bytes for idField. */ - public com.google.protobuf.ByteString getIdFieldBytes() { + public com.google.protobuf.ByteString + getIdFieldBytes() { java.lang.Object ref = idField_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); idField_ = b; return b; } else { @@ -3777,8 +3230,6 @@ public com.google.protobuf.ByteString getIdFieldBytes() { } } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3812,22 +3263,18 @@ public com.google.protobuf.ByteString getIdFieldBytes() {
      * 
* * string id_field = 9; - * * @param value The idField to set. * @return This builder for chaining. */ - public Builder setIdField(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdField( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } idField_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3861,7 +3308,6 @@ public Builder setIdField(java.lang.String value) {
      * 
* * string id_field = 9; - * * @return This builder for chaining. */ public Builder clearIdField() { @@ -3871,8 +3317,6 @@ public Builder clearIdField() { return this; } /** - * - * *
      * The field in the Cloud Storage and BigQuery sources that indicates the
      * unique IDs of the documents.
@@ -3906,23 +3350,21 @@ public Builder clearIdField() {
      * 
* * string id_field = 9; - * * @param value The bytes for idField to set. * @return This builder for chaining. */ - public Builder setIdFieldBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idField_ = value; bitField0_ |= 0x00000080; 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); } @@ -3932,43 +3374,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) - private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest(); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3980,8 +3420,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java similarity index 82% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java index 20baa0aef3a9..9e70d76cf04c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java @@ -1,97 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface ImportDocumentsRequestOrBuilder - extends +public interface ImportDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ boolean hasInlineSource(); /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource getInlineSource(); /** - * - * *
    * The Inline source for the input content for documents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2; */ - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder(); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return The gcsSource. */ com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -101,32 +62,24 @@ public interface ImportDocumentsRequestOrBuilder com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
@@ -136,65 +89,48 @@ public interface ImportDocumentsRequestOrBuilder com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); /** - * - * *
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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 branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * Requires create/update permission.
    * 
* - * - * string 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(); /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import.
    * 
@@ -204,42 +140,29 @@ public interface ImportDocumentsRequestOrBuilder com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The enum numeric value on the wire for reconciliationMode. */ int getReconciliationModeValue(); /** - * - * *
    * The mode of reconciliation between existing documents and the documents to
    * be imported. Defaults to
    * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL].
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * - * + * .google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; * @return The reconciliationMode. */ - com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode - getReconciliationMode(); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode getReconciliationMode(); /** - * - * *
    * Whether to automatically generate IDs for the documents if absent.
    *
@@ -265,14 +188,11 @@ public interface ImportDocumentsRequestOrBuilder
    * 
* * bool auto_generate_ids = 8; - * * @return The autoGenerateIds. */ boolean getAutoGenerateIds(); /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -306,13 +226,10 @@ public interface ImportDocumentsRequestOrBuilder
    * 
* * string id_field = 9; - * * @return The idField. */ java.lang.String getIdField(); /** - * - * *
    * The field in the Cloud Storage and BigQuery sources that indicates the
    * unique IDs of the documents.
@@ -346,10 +263,10 @@ public interface ImportDocumentsRequestOrBuilder
    * 
* * string id_field = 9; - * * @return The bytes for idField. */ - com.google.protobuf.ByteString getIdFieldBytes(); + com.google.protobuf.ByteString + getIdFieldBytes(); com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.SourceCase getSourceCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java index fdfe9fff3420..e7e05fa47da7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response of the
  * [ImportDocumentsRequest][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest].
@@ -30,48 +13,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsResponse}
  */
-public final class ImportDocumentsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportDocumentsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportDocumentsResponse)
     ImportDocumentsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportDocumentsResponse.newBuilder() to construct.
   private ImportDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportDocumentsResponse() {
     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 ImportDocumentsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.class,
-            com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.Builder.class);
   }
 
   public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List errorSamples_;
   /**
-   *
-   *
    * 
    * A sample of errors encountered while processing the request.
    * 
@@ -83,8 +61,6 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -92,12 +68,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.
    * 
@@ -109,8 +84,6 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -122,8 +95,6 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -131,21 +102,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 ERROR_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -153,25 +122,18 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
@@ -179,15 +141,11 @@ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig( * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder - getErrorConfigOrBuilder() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +157,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)); } @@ -216,10 +175,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 (errorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,18 +190,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.discoveryengine.v1beta.ImportDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse other = - (com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) obj; + com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse other = (com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) obj; - if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; if (hasErrorConfig() != other.hasErrorConfig()) return false; if (hasErrorConfig()) { - if (!getErrorConfig().equals(other.getErrorConfig())) return false; + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,104 +229,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse 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.discoveryengine.v1beta.ImportDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse 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
    * [ImportDocumentsRequest][google.cloud.discoveryengine.v1beta.ImportDocumentsRequest].
@@ -374,32 +330,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportDocumentsResponse}
    */
-  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.discoveryengine.v1beta.ImportDocumentsResponse)
       com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.class,
-              com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.class, com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,14 +377,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.getDefaultInstance();
     }
 
@@ -442,18 +398,14 @@ public com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse result =
-          new com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse(this);
+      com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse result = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse result) {
       if (errorSamplesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
@@ -465,12 +417,12 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.errorConfig_ =
-            errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build();
+        result.errorConfig_ = errorConfigBuilder_ == null
+            ? errorConfig_
+            : errorConfigBuilder_.build();
       }
     }
 
@@ -478,50 +430,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse other) {
+      if (other == com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse.getDefaultInstance()) return this;
       if (errorSamplesBuilder_ == null) {
         if (!other.errorSamples_.isEmpty()) {
           if (errorSamples_.isEmpty()) {
@@ -540,10 +488,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_);
           }
@@ -578,31 +525,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (errorSamplesBuilder_ == null) {
-                  ensureErrorSamplesIsMutable();
-                  errorSamples_.add(m);
-                } else {
-                  errorSamplesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (errorSamplesBuilder_ == null) {
+                ensureErrorSamplesIsMutable();
+                errorSamples_.add(m);
+              } else {
+                errorSamplesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getErrorConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -612,25 +560,21 @@ public Builder mergeFrom(
       } // finally
       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.
      * 
@@ -645,8 +589,6 @@ public java.util.List getErrorSamplesList() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -661,8 +603,6 @@ public int getErrorSamplesCount() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -677,15 +617,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(); @@ -699,15 +638,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()); @@ -718,8 +656,6 @@ public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -740,15 +676,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(); @@ -762,15 +697,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()); @@ -781,15 +715,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()); @@ -800,18 +733,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); @@ -819,8 +752,6 @@ public Builder addAllErrorSamples(java.lang.Iterable * A sample of errors encountered while processing the request. *
@@ -838,8 +769,6 @@ public Builder clearErrorSamples() { return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -857,43 +786,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 { @@ -901,8 +826,6 @@ public java.util.List getErrorSamplesO } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -910,44 +833,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_; @@ -955,47 +876,34 @@ public java.util.List getErrorSamplesBuilderList( private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1016,8 +924,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErro return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1036,21 +942,17 @@ public Builder setErrorConfig( return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; */ - public Builder mergeErrorConfig( - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { if (errorConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && errorConfig_ != null - && errorConfig_ - != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + errorConfig_ != null && + errorConfig_ != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { getErrorConfigBuilder().mergeFrom(value); } else { errorConfig_ = value; @@ -1063,8 +965,6 @@ public Builder mergeErrorConfig( return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1082,42 +982,33 @@ public Builder clearErrorConfig() { return this; } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; */ - public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder - getErrorConfigBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder getErrorConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getErrorConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; */ - public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder - getErrorConfigOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() { if (errorConfigBuilder_ != null) { return errorConfigBuilder_.getMessageOrBuilder(); } else { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } } /** - * - * *
      * Echoes the destination for the complete errors in the request if set.
      * 
@@ -1125,24 +1016,21 @@ public Builder clearErrorConfig() { * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> getErrorConfigFieldBuilder() { if (errorConfigBuilder_ == null) { - errorConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( - getErrorConfig(), getParentForChildren(), isClean()); + errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), + getParentForChildren(), + isClean()); errorConfig_ = null; } return errorConfigBuilder_; } - @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); } @@ -1152,43 +1040,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) - private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse(); } - public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1200,8 +1086,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java index 10941367a9ec..23d9ab19192a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface ImportDocumentsResponseOrBuilder - extends +public interface ImportDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportDocumentsResponse) 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 ImportDocumentsResponseOrBuilder */ com.google.rpc.Status getErrorSamples(int index); /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -54,53 +33,43 @@ public interface ImportDocumentsResponseOrBuilder */ 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.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors in the request if set.
    * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java index d41fb305a007..e39bc6a1d397 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfig.java @@ -1,78 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Configuration of destination for Import related errors.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportErrorConfig} */ -public final class ImportErrorConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportErrorConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportErrorConfig) ImportErrorConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportErrorConfig.newBuilder() to construct. private ImportErrorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportErrorConfig() {} + private ImportErrorConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportErrorConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.class, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder.class); + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.class, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") 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; } @@ -88,28 +66,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; /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -118,15 +92,12 @@ public DestinationCase getDestinationCase() {
    * 
* * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -135,7 +106,6 @@ public boolean hasGcsPrefix() {
    * 
* * string gcs_prefix = 1; - * * @return The gcsPrefix. */ public java.lang.String getGcsPrefix() { @@ -146,7 +116,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; @@ -155,8 +126,6 @@ public java.lang.String getGcsPrefix() { } } /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -165,17 +134,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; } @@ -186,7 +156,6 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); } @@ -222,18 +192,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.discoveryengine.v1beta.ImportErrorConfig)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig other = - (com.google.cloud.discoveryengine.v1beta.ImportErrorConfig) obj; + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig other = (com.google.cloud.discoveryengine.v1beta.ImportErrorConfig) 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: @@ -263,136 +233,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig 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.discoveryengine.v1beta.ImportErrorConfig} */ - 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.discoveryengine.v1beta.ImportErrorConfig) com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.class, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder.class); + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.class, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportErrorConfig_descriptor; } @java.lang.Override @@ -424,11 +389,8 @@ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig buildPartial() { - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig result = - new com.google.cloud.discoveryengine.v1beta.ImportErrorConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig result = new com.google.cloud.discoveryengine.v1beta.ImportErrorConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -438,8 +400,7 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportErrorCo int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; } @@ -448,39 +409,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.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.discoveryengine.v1beta.ImportErrorConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportErrorConfig) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportErrorConfig)other); } else { super.mergeFrom(other); return this; @@ -488,20 +448,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig other) { - if (other == com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.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.getUnknownFields()); onChanged(); @@ -529,20 +486,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - destinationCase_ = 1; - destination_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,12 +507,12 @@ public Builder mergeFrom( } // finally 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() { @@ -570,8 +525,6 @@ public Builder clearDestination() { private int bitField0_; /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -580,7 +533,6 @@ public Builder clearDestination() {
      * 
* * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ @java.lang.Override @@ -588,8 +540,6 @@ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -598,7 +548,6 @@ public boolean hasGcsPrefix() {
      * 
* * string gcs_prefix = 1; - * * @return The gcsPrefix. */ @java.lang.Override @@ -608,7 +557,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; @@ -619,8 +569,6 @@ public java.lang.String getGcsPrefix() { } } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -629,18 +577,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; } @@ -650,8 +599,6 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() { } } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -660,22 +607,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationCase_ = 1; destination_ = value; onChanged(); return this; } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -684,7 +627,6 @@ public Builder setGcsPrefix(java.lang.String value) {
      * 
* * string gcs_prefix = 1; - * * @return This builder for chaining. */ public Builder clearGcsPrefix() { @@ -696,8 +638,6 @@ public Builder clearGcsPrefix() { return this; } /** - * - * *
      * Cloud Storage prefix for import errors. This must be an empty,
      * existing Cloud Storage directory. Import errors are written to
@@ -706,23 +646,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -732,12 +670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportErrorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportErrorConfig) private static final com.google.cloud.discoveryengine.v1beta.ImportErrorConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportErrorConfig(); } @@ -746,27 +684,27 @@ public static com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportErrorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportErrorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -781,4 +719,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java index 721a7e94631c..8f35f76693af 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportErrorConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface ImportErrorConfigOrBuilder - extends +public interface ImportErrorConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportErrorConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -34,13 +16,10 @@ public interface ImportErrorConfigOrBuilder
    * 
* * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ boolean hasGcsPrefix(); /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -49,13 +28,10 @@ public interface ImportErrorConfigOrBuilder
    * 
* * string gcs_prefix = 1; - * * @return The gcsPrefix. */ java.lang.String getGcsPrefix(); /** - * - * *
    * Cloud Storage prefix for import errors. This must be an empty,
    * existing Cloud Storage directory. Import errors are written to
@@ -64,10 +40,10 @@ public interface ImportErrorConfigOrBuilder
    * 
* * string gcs_prefix = 1; - * * @return The bytes for gcsPrefix. */ - com.google.protobuf.ByteString getGcsPrefixBytes(); + com.google.protobuf.ByteString + getGcsPrefixBytes(); com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.DestinationCase getDestinationCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java index 85f94fd1ec21..d4bb5def084f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Metadata related to the progress of the Import operation. This is
  * returned by the google.longrunning.Operation.metadata field.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata}
  */
-public final class ImportUserEventsMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportUserEventsMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata)
     ImportUserEventsMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportUserEventsMetadata.newBuilder() to construct.
   private ImportUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ImportUserEventsMetadata() {}
+  private ImportUserEventsMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportUserEventsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.class,
-            com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.Builder.class);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -110,15 +84,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -126,15 +97,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -142,8 +110,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.
@@ -159,14 +125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int SUCCESS_COUNT_FIELD_NUMBER = 3;
   private long successCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -177,14 +140,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 4; private long failureCount_ = 0L; /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -193,7 +153,6 @@ public long getFailureCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -228,16 +188,20 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (successCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); } if (failureCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,24 +211,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.discoveryengine.v1beta.ImportUserEventsMetadata)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata other = - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) obj; + com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata other = (com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getSuccessCount() != other.getSuccessCount()) return false; - if (getFailureCount() != other.getFailureCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,113 +252,109 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata 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.discoveryengine.v1beta.ImportUserEventsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata 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 is
    * returned by the google.longrunning.Operation.metadata field.
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata}
    */
-  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.discoveryengine.v1beta.ImportUserEventsMetadata)
       com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.class,
-              com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,14 +409,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.getDefaultInstance();
     }
 
@@ -467,23 +430,23 @@ public com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata build()
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata result =
-          new com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata result = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.successCount_ = successCount_;
@@ -497,50 +460,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata other) {
+      if (other == com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -579,37 +538,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                successCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                failureCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              successCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              failureCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -619,52 +577,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -685,15 +629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -704,8 +647,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -714,9 +655,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -729,8 +670,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -748,8 +687,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -762,8 +699,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -774,14 +709,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.
      * 
@@ -789,17 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -807,49 +736,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -871,8 +787,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.
@@ -880,7 +794,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -891,8 +806,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.
@@ -902,9 +815,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -917,8 +830,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.
@@ -937,8 +848,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -952,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -965,14 +872,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.
@@ -981,32 +885,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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_;
     }
 
-    private long successCount_;
+    private long successCount_ ;
     /**
-     *
-     *
      * 
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -1014,14 +912,11 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @param value The successCount to set. * @return This builder for chaining. */ @@ -1033,14 +928,11 @@ public Builder setSuccessCount(long value) { return this; } /** - * - * *
      * Count of entries that were processed successfully.
      * 
* * int64 success_count = 3; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { @@ -1050,16 +942,13 @@ public Builder clearSuccessCount() { return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -1067,14 +956,11 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @param value The failureCount to set. * @return This builder for chaining. */ @@ -1086,14 +972,11 @@ public Builder setFailureCount(long value) { return this; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return This builder for chaining. */ public Builder clearFailureCount() { @@ -1102,9 +985,9 @@ public Builder clearFailureCount() { 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); } @@ -1114,43 +997,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) - private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata(); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportUserEventsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,8 +1043,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java index 0b5e057776ec..785d242ce742 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface ImportUserEventsMetadataOrBuilder - extends +public interface ImportUserEventsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface ImportUserEventsMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
@@ -97,27 +65,21 @@ public interface ImportUserEventsMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of entries that were processed successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ long getFailureCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java similarity index 63% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java index 4d7a172897fc..f95aded4c10a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java @@ -1,254 +1,190 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for the ImportUserEvents request.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportUserEventsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.class, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.Builder.class); } - public interface InlineSourceOrBuilder - extends + public interface InlineSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getUserEventsList(); + java.util.List + getUserEventsList(); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvents(int index); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getUserEventsCount(); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getUserEventsOrBuilderList(); /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventsOrBuilder( + int index); } /** - * - * *
    * The inline source for the input config for ImportUserEvents method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource} */ - public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class InlineSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) InlineSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InlineSource.newBuilder() to construct. private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InlineSource() { 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 InlineSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder.class); } public static final int USER_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List userEvents_; /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getUserEventsList() { return userEvents_; } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsOrBuilderList() { return userEvents_; } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getUserEventsCount() { return userEvents_.size(); } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvents(int index) { return userEvents_.get(index); } /** - * - * *
      * Required. A list of user events to import. Recommended max of 10k items.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventsOrBuilder( @@ -257,7 +193,6 @@ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventsO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,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 { for (int i = 0; i < userEvents_.size(); i++) { output.writeMessage(1, userEvents_.get(i)); } @@ -283,7 +219,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -293,17 +230,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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource other = - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) obj; + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource other = (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) obj; - if (!getUserEventsList().equals(other.getUserEventsList())) return false; + if (!getUserEventsList() + .equals(other.getUserEventsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,101 +259,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - 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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - 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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource 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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource 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 @@ -428,44 +352,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The inline source for the input config for ImportUserEvents method.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource} */ - 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.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.class, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder - .class); + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,22 +400,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_InlineSource_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource build() { - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -504,20 +420,15 @@ public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSou } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - buildPartial() { - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result = - new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource(this); + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result) { if (userEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { userEvents_ = java.util.Collections.unmodifiableList(userEvents_); @@ -529,8 +440,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource result) { int from_bitField0_ = bitField0_; } @@ -538,55 +448,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource other) { - if (other - == com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource other) { + if (other == com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance()) return this; if (userEventsBuilder_ == null) { if (!other.userEvents_.isEmpty()) { if (userEvents_.isEmpty()) { @@ -605,10 +506,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_); } @@ -640,27 +540,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1beta.UserEvent m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.UserEvent.parser(), - extensionRegistry); - if (userEventsBuilder_ == null) { - ensureUserEventsIsMutable(); - userEvents_.add(m); - } else { - userEventsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1beta.UserEvent m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.UserEvent.parser(), + extensionRegistry); + if (userEventsBuilder_ == null) { + ensureUserEventsIsMutable(); + userEvents_.add(m); + } else { + userEventsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -670,37 +568,26 @@ public Builder mergeFrom( } // finally 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.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> - userEventsBuilder_; + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> userEventsBuilder_; /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getUserEventsList() { if (userEventsBuilder_ == null) { @@ -710,15 +597,11 @@ public java.util.List getUser } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getUserEventsCount() { if (userEventsBuilder_ == null) { @@ -728,15 +611,11 @@ public int getUserEventsCount() { } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -746,15 +625,11 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvents(int index } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvents( int index, com.google.cloud.discoveryengine.v1beta.UserEvent value) { @@ -771,15 +646,11 @@ public Builder setUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvents( int index, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder builderForValue) { @@ -793,15 +664,11 @@ public Builder setUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents(com.google.cloud.discoveryengine.v1beta.UserEvent value) { if (userEventsBuilder_ == null) { @@ -817,15 +684,11 @@ public Builder addUserEvents(com.google.cloud.discoveryengine.v1beta.UserEvent v return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents( int index, com.google.cloud.discoveryengine.v1beta.UserEvent value) { @@ -842,15 +705,11 @@ public Builder addUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents( com.google.cloud.discoveryengine.v1beta.UserEvent.Builder builderForValue) { @@ -864,15 +723,11 @@ public Builder addUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addUserEvents( int index, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder builderForValue) { @@ -886,21 +741,18 @@ public Builder addUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllUserEvents( 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); @@ -908,15 +760,11 @@ public Builder addAllUserEvents( return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvents() { if (userEventsBuilder_ == null) { @@ -929,15 +777,11 @@ public Builder clearUserEvents() { return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -950,52 +794,39 @@ public Builder removeUserEvents(int index) { return this; } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder getUserEventsBuilder( int index) { return getUserEventsFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventsOrBuilder( int index) { if (userEventsBuilder_ == null) { - return userEvents_.get(index); - } else { + return userEvents_.get(index); } else { return userEventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getUserEventsOrBuilderList() { + public java.util.List + getUserEventsOrBuilderList() { if (userEventsBuilder_ != null) { return userEventsBuilder_.getMessageOrBuilderList(); } else { @@ -1003,70 +834,53 @@ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventsO } } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder addUserEventsBuilder() { - return getUserEventsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()); } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder addUserEventsBuilder( int index) { - return getUserEventsFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()); } /** - * - * *
        * Required. A list of user events to import. Recommended max of 10k items.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.discoveryengine.v1beta.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getUserEventsBuilderList() { + public java.util.List + getUserEventsBuilderList() { return getUserEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> getUserEventsFieldBuilder() { if (userEventsBuilder_ == null) { - userEventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder>( - userEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder>( + userEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); userEvents_ = null; } return userEventsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1079,46 +893,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) - private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest - .InlineSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource(); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,27 +939,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCase_ = 0; - @SuppressWarnings("serial") 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 { INLINE_SOURCE(2), GCS_SOURCE(3), BIGQUERY_SOURCE(4), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -1166,40 +971,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return INLINE_SOURCE; - case 3: - return GCS_SOURCE; - case 4: - return BIGQUERY_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return INLINE_SOURCE; + case 3: return GCS_SOURCE; + case 4: return BIGQUERY_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 INLINE_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -1207,58 +1003,42 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource getInlineSource() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_; + return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 3; /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1266,26 +1046,21 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; } return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); } /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -1295,21 +1070,18 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; + return (com.google.cloud.discoveryengine.v1beta.GcsSource) source_; } return com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); } public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 4; /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1317,26 +1089,21 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * BigQuery input source.
    * 
@@ -1344,30 +1111,23 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource( * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder - getBigquerySourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if (sourceCase_ == 4) { - return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; + return (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_; } return com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -1376,32 +1136,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. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -1412,15 +1170,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ERROR_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -1428,26 +1183,19 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
@@ -1456,15 +1204,11 @@ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(
    * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
    */
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder
-      getErrorConfigOrBuilder() {
-    return errorConfig_ == null
-        ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()
-        : errorConfig_;
+  public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
+    return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1476,14 +1220,13 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
     if (sourceCase_ == 2) {
-      output.writeMessage(
-          2,
-          (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_);
+      output.writeMessage(2, (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_);
     }
     if (sourceCase_ == 3) {
       output.writeMessage(3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_);
@@ -1507,24 +1250,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (sourceCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2,
-              (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource)
-                  source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_);
     }
     if (sourceCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.discoveryengine.v1beta.GcsSource) source_);
     }
     if (sourceCase_ == 4) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_);
     }
     if (errorConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getErrorConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getErrorConfig());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1534,29 +1273,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.discoveryengine.v1beta.ImportUserEventsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest other =
-        (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) obj;
+    com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest other = (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasErrorConfig() != other.hasErrorConfig()) return false;
     if (hasErrorConfig()) {
-      if (!getErrorConfig().equals(other.getErrorConfig())) return false;
+      if (!getErrorConfig()
+          .equals(other.getErrorConfig())) return false;
     }
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 2:
-        if (!getInlineSource().equals(other.getInlineSource())) return false;
+        if (!getInlineSource()
+            .equals(other.getInlineSource())) return false;
         break;
       case 3:
-        if (!getGcsSource().equals(other.getGcsSource())) return false;
+        if (!getGcsSource()
+            .equals(other.getGcsSource())) return false;
         break;
       case 4:
-        if (!getBigquerySource().equals(other.getBigquerySource())) return false;
+        if (!getBigquerySource()
+            .equals(other.getBigquerySource())) return false;
         break;
       case 0:
       default:
@@ -1600,136 +1343,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest 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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsRequest) com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.class, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1755,14 +1493,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ImportConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.getDefaultInstance(); } @@ -1777,39 +1514,38 @@ public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest result = - new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest result = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.errorConfig_ = - errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + result.errorConfig_ = errorConfigBuilder_ == null + ? errorConfig_ + : errorConfigBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + if (sourceCase_ == 2 && + inlineSourceBuilder_ != null) { result.source_ = inlineSourceBuilder_.build(); } - if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 3 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } - if (sourceCase_ == 4 && bigquerySourceBuilder_ != null) { + if (sourceCase_ == 4 && + bigquerySourceBuilder_ != null) { result.source_ = bigquerySourceBuilder_.build(); } } @@ -1818,50 +1554,46 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000008; @@ -1871,25 +1603,21 @@ public Builder mergeFrom( mergeErrorConfig(other.getErrorConfig()); } switch (other.getSourceCase()) { - case INLINE_SOURCE: - { - mergeInlineSource(other.getInlineSource()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case BIGQUERY_SOURCE: - { - mergeBigquerySource(other.getBigquerySource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case INLINE_SOURCE: { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1917,43 +1645,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getBigquerySourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getInlineSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getBigquerySourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getErrorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1963,12 +1693,12 @@ public Builder mergeFrom( } // finally 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() { @@ -1981,21 +1711,13 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder> - inlineSourceBuilder_; + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder> inlineSourceBuilder_; /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ @java.lang.Override @@ -2003,49 +1725,35 @@ public boolean hasInlineSource() { return sourceCase_ == 2; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - getInlineSource() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource getInlineSource() { if (inlineSourceBuilder_ == null) { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) - source_; + return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } else { if (sourceCase_ == 2) { return inlineSourceBuilder_.getMessage(); } - return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ - public Builder setInlineSource( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource value) { + public Builder setInlineSource(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2059,19 +1767,14 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ public Builder setInlineSource( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder builderForValue) { if (inlineSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -2082,30 +1785,18 @@ public Builder setInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ - public Builder mergeInlineSource( - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource value) { + public Builder mergeInlineSource(com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource value) { if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ - != com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .newBuilder( - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) - source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.newBuilder((com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2121,15 +1812,11 @@ public Builder mergeInlineSource( return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ public Builder clearInlineSource() { if (inlineSourceBuilder_ == null) { @@ -2148,76 +1835,50 @@ public Builder clearInlineSource() { return this; } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder - getInlineSourceBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder getInlineSourceBuilder() { return getInlineSourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder() { if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { return inlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) - source_; + return (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_; } - return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } } /** - * - * *
      * The Inline source for the input content for UserEvents.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder> + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder> getInlineSourceFieldBuilder() { if (inlineSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { - source_ = - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .getDefaultInstance(); + source_ = com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.getDefaultInstance(); } - inlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource - .Builder, - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest - .InlineSourceOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) - source_, + inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder, com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource) source_, getParentForChildren(), isClean()); source_ = null; @@ -2228,19 +1889,13 @@ public Builder clearInlineSource() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.GcsSource, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, - com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.discoveryengine.v1beta.GcsSource, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -2248,14 +1903,11 @@ public boolean hasGcsSource() { return sourceCase_ == 3; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return The gcsSource. */ @java.lang.Override @@ -2273,8 +1925,6 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() { } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2295,8 +1945,6 @@ public Builder setGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource va return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2315,8 +1963,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2325,13 +1971,10 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 3 - && source_ != com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder( - (com.google.cloud.discoveryengine.v1beta.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 3 && + source_ != com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1beta.GcsSource.newBuilder((com.google.cloud.discoveryengine.v1beta.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2347,8 +1990,6 @@ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2372,8 +2013,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2384,8 +2023,6 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource.Builder getGcsSourceBui return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2404,8 +2041,6 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr } } /** - * - * *
      * Cloud Storage location for the input content.
      * 
@@ -2413,19 +2048,14 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.GcsSource, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, - com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> + com.google.cloud.discoveryengine.v1beta.GcsSource, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 3)) { source_ = com.google.cloud.discoveryengine.v1beta.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.GcsSource, - com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, - com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.GcsSource, com.google.cloud.discoveryengine.v1beta.GcsSource.Builder, com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder>( (com.google.cloud.discoveryengine.v1beta.GcsSource) source_, getParentForChildren(), isClean()); @@ -2437,19 +2067,13 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.BigQuerySource, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> - bigquerySourceBuilder_; + com.google.cloud.discoveryengine.v1beta.BigQuerySource, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> bigquerySourceBuilder_; /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -2457,14 +2081,11 @@ public boolean hasBigquerySource() { return sourceCase_ == 4; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ @java.lang.Override @@ -2482,8 +2103,6 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource( } } /** - * - * *
      * BigQuery input source.
      * 
@@ -2504,8 +2123,6 @@ public Builder setBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuer return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2524,25 +2141,18 @@ public Builder setBigquerySource( return this; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ - public Builder mergeBigquerySource( - com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { + public Builder mergeBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuerySource value) { if (bigquerySourceBuilder_ == null) { - if (sourceCase_ == 4 - && source_ - != com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) { - source_ = - com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder( - (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 4 && + source_ != com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance()) { + source_ = com.google.cloud.discoveryengine.v1beta.BigQuerySource.newBuilder((com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -2558,8 +2168,6 @@ public Builder mergeBigquerySource( return this; } /** - * - * *
      * BigQuery input source.
      * 
@@ -2583,21 +2191,16 @@ public Builder clearBigquerySource() { return this; } /** - * - * *
      * BigQuery input source.
      * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ - public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder - getBigquerySourceBuilder() { + public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder getBigquerySourceBuilder() { return getBigquerySourceFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery input source.
      * 
@@ -2605,8 +2208,7 @@ public Builder clearBigquerySource() { * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder - getBigquerySourceOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if ((sourceCase_ == 4) && (bigquerySourceBuilder_ != null)) { return bigquerySourceBuilder_.getMessageOrBuilder(); } else { @@ -2617,8 +2219,6 @@ public Builder clearBigquerySource() { } } /** - * - * *
      * BigQuery input source.
      * 
@@ -2626,19 +2226,14 @@ public Builder clearBigquerySource() { * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.BigQuerySource, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> + com.google.cloud.discoveryengine.v1beta.BigQuerySource, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder> getBigquerySourceFieldBuilder() { if (bigquerySourceBuilder_ == null) { if (!(sourceCase_ == 4)) { source_ = com.google.cloud.discoveryengine.v1beta.BigQuerySource.getDefaultInstance(); } - bigquerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.BigQuerySource, - com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, - com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder>( + bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.BigQuerySource, com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder, com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder>( (com.google.cloud.discoveryengine.v1beta.BigQuerySource) source_, getParentForChildren(), isClean()); @@ -2651,23 +2246,19 @@ public Builder clearBigquerySource() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -2676,24 +2267,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -2701,41 +2289,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -2745,24 +2322,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent DataStore resource name, of the form
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; @@ -2772,49 +2343,36 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2836,8 +2394,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErro
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2857,8 +2413,6 @@ public Builder setErrorConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2866,13 +2420,11 @@ public Builder setErrorConfig(
      *
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      */
-    public Builder mergeErrorConfig(
-        com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) {
+    public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) {
       if (errorConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && errorConfig_ != null
-            && errorConfig_
-                != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          errorConfig_ != null &&
+          errorConfig_ != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) {
           getErrorConfigBuilder().mergeFrom(value);
         } else {
           errorConfig_ = value;
@@ -2885,8 +2437,6 @@ public Builder mergeErrorConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2905,8 +2455,6 @@ public Builder clearErrorConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2914,15 +2462,12 @@ public Builder clearErrorConfig() {
      *
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      */
-    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder
-        getErrorConfigBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder getErrorConfigBuilder() {
       bitField0_ |= 0x00000010;
       onChanged();
       return getErrorConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2930,19 +2475,15 @@ public Builder clearErrorConfig() {
      *
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      */
-    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder
-        getErrorConfigOrBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
       if (errorConfigBuilder_ != null) {
         return errorConfigBuilder_.getMessageOrBuilder();
       } else {
-        return errorConfig_ == null
-            ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()
-            : errorConfig_;
+        return errorConfig_ == null ?
+            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * The desired location of errors incurred during the Import. Cannot be set
      * for inline user event imports.
@@ -2951,24 +2492,21 @@ public Builder clearErrorConfig() {
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig,
-            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder,
-            com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> 
         getErrorConfigFieldBuilder() {
       if (errorConfigBuilder_ == null) {
-        errorConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.ImportErrorConfig,
-                com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder,
-                com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>(
-                getErrorConfig(), getParentForChildren(), isClean());
+        errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>(
+                getErrorConfig(),
+                getParentForChildren(),
+                isClean());
         errorConfig_ = null;
       }
       return errorConfigBuilder_;
     }
-
     @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);
     }
 
@@ -2978,43 +2516,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest)
-  private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest();
   }
 
-  public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest
-      getDefaultInstance() {
+  public static com.google.cloud.discoveryengine.v1beta.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ImportUserEventsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3026,8 +2562,9 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
similarity index 71%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
index a12e4fe34256..3caa8d12f64e 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
@@ -1,97 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/import_config.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface ImportUserEventsRequestOrBuilder
-    extends
+public interface ImportUserEventsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportUserEventsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Inline source for the input content for UserEvents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; * @return Whether the inlineSource field is set. */ boolean hasInlineSource(); /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; * @return The inlineSource. */ com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource getInlineSource(); /** - * - * *
    * The Inline source for the input content for UserEvents.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; - * + * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2; */ - com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder - getInlineSourceOrBuilder(); + com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
* * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3; - * * @return The gcsSource. */ com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource(); /** - * - * *
    * Cloud Storage location for the input content.
    * 
@@ -101,32 +62,24 @@ public interface ImportUserEventsRequestOrBuilder com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
* * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4; - * * @return The bigquerySource. */ com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource(); /** - * - * *
    * BigQuery input source.
    * 
@@ -136,65 +89,48 @@ public interface ImportUserEventsRequestOrBuilder com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); /** - * - * *
    * Required. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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. Parent DataStore resource name, of the form
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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(); /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); /** - * - * *
    * The desired location of errors incurred during the Import. Cannot be set
    * for inline user event imports.
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java
similarity index 71%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java
index 6e3bc0d44618..e09537edf51e 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponse.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/import_config.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Response of the ImportUserEventsRequest. If the long running
  * operation was successful, then this message is returned by the
@@ -29,48 +12,43 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.class,
-            com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.Builder.class);
   }
 
   public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List errorSamples_;
   /**
-   *
-   *
    * 
    * A sample of errors encountered while processing the request.
    * 
@@ -82,8 +60,6 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -91,12 +67,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.
    * 
@@ -108,8 +83,6 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -121,8 +94,6 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** - * - * *
    * A sample of errors encountered while processing the request.
    * 
@@ -130,22 +101,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 ERROR_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ @java.lang.Override @@ -153,26 +122,19 @@ public boolean hasErrorConfig() { return errorConfig_ != null; } /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
@@ -181,24 +143,18 @@ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(
    * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
    */
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder
-      getErrorConfigOrBuilder() {
-    return errorConfig_ == null
-        ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()
-        : errorConfig_;
+  public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
+    return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_;
   }
 
   public static final int JOINED_EVENTS_COUNT_FIELD_NUMBER = 3;
   private long joinedEventsCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of user events imported with complete existing Documents.
    * 
* * int64 joined_events_count = 3; - * * @return The joinedEventsCount. */ @java.lang.Override @@ -209,15 +165,12 @@ public long getJoinedEventsCount() { public static final int UNJOINED_EVENTS_COUNT_FIELD_NUMBER = 4; private long unjoinedEventsCount_ = 0L; /** - * - * *
    * Count of user events imported, but with Document information not found
    * in the existing Branch.
    * 
* * int64 unjoined_events_count = 4; - * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -226,7 +179,6 @@ public long getUnjoinedEventsCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +190,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)); } @@ -261,16 +214,20 @@ 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 (errorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorConfig()); } if (joinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, joinedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, joinedEventsCount_); } if (unjoinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, unjoinedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, unjoinedEventsCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -280,21 +237,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.discoveryengine.v1beta.ImportUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse other = - (com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse) obj; + com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse other = (com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse) obj; - if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; if (hasErrorConfig() != other.hasErrorConfig()) return false; if (hasErrorConfig()) { - if (!getErrorConfig().equals(other.getErrorConfig())) return false; + if (!getErrorConfig() + .equals(other.getErrorConfig())) return false; } - 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -315,113 +275,109 @@ public int hashCode() { hash = (53 * hash) + getErrorConfig().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse 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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.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
@@ -430,32 +386,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportUserEventsResponse)
       com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.class,
-              com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.class, com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -478,14 +435,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.ImportConfigProto.internal_static_google_cloud_discoveryengine_v1beta_ImportUserEventsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.getDefaultInstance();
     }
 
@@ -500,18 +456,14 @@ public com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse build()
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse result =
-          new com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse(this);
+      com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse result = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse result) {
       if (errorSamplesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
@@ -523,12 +475,12 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.errorConfig_ =
-            errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build();
+        result.errorConfig_ = errorConfigBuilder_ == null
+            ? errorConfig_
+            : errorConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.joinedEventsCount_ = joinedEventsCount_;
@@ -542,50 +494,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse other) {
+      if (other == com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse.getDefaultInstance()) return this;
       if (errorSamplesBuilder_ == null) {
         if (!other.errorSamples_.isEmpty()) {
           if (errorSamples_.isEmpty()) {
@@ -604,10 +552,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_);
           }
@@ -648,43 +595,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (errorSamplesBuilder_ == null) {
-                  ensureErrorSamplesIsMutable();
-                  errorSamples_.add(m);
-                } else {
-                  errorSamplesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                joinedEventsCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                unjoinedEventsCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (errorSamplesBuilder_ == null) {
+                ensureErrorSamplesIsMutable();
+                errorSamples_.add(m);
+              } else {
+                errorSamplesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getErrorConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              joinedEventsCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              unjoinedEventsCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -694,25 +640,21 @@ public Builder mergeFrom(
       } // finally
       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.
      * 
@@ -727,8 +669,6 @@ public java.util.List getErrorSamplesList() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -743,8 +683,6 @@ public int getErrorSamplesCount() { } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -759,15 +697,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(); @@ -781,15 +718,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()); @@ -800,8 +736,6 @@ public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -822,15 +756,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(); @@ -844,15 +777,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()); @@ -863,15 +795,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()); @@ -882,18 +813,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); @@ -901,8 +832,6 @@ public Builder addAllErrorSamples(java.lang.Iterable * A sample of errors encountered while processing the request. *
@@ -920,8 +849,6 @@ public Builder clearErrorSamples() { return this; } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -939,43 +866,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 { @@ -983,8 +906,6 @@ public java.util.List getErrorSamplesO } } /** - * - * *
      * A sample of errors encountered while processing the request.
      * 
@@ -992,44 +913,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_; @@ -1037,49 +956,36 @@ public java.util.List getErrorSamplesBuilderList( private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, - com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> - errorConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> errorConfigBuilder_; /** - * - * *
      * Echoes the destination for the complete errors if this field was set in
      * the request.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ public boolean hasErrorConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Echoes the destination for the complete errors if this field was set in
      * the request.
      * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { if (errorConfigBuilder_ == null) { - return errorConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() - : errorConfig_; + return errorConfig_ == null ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_; } else { return errorConfigBuilder_.getMessage(); } } /** - * - * *
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1101,8 +1007,6 @@ public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErro
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1122,8 +1026,6 @@ public Builder setErrorConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1131,13 +1033,11 @@ public Builder setErrorConfig(
      *
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      */
-    public Builder mergeErrorConfig(
-        com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) {
+    public Builder mergeErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) {
       if (errorConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && errorConfig_ != null
-            && errorConfig_
-                != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          errorConfig_ != null &&
+          errorConfig_ != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) {
           getErrorConfigBuilder().mergeFrom(value);
         } else {
           errorConfig_ = value;
@@ -1150,8 +1050,6 @@ public Builder mergeErrorConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1170,8 +1068,6 @@ public Builder clearErrorConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1179,15 +1075,12 @@ public Builder clearErrorConfig() {
      *
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      */
-    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder
-        getErrorConfigBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder getErrorConfigBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getErrorConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1195,19 +1088,15 @@ public Builder clearErrorConfig() {
      *
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      */
-    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder
-        getErrorConfigOrBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder() {
       if (errorConfigBuilder_ != null) {
         return errorConfigBuilder_.getMessageOrBuilder();
       } else {
-        return errorConfig_ == null
-            ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()
-            : errorConfig_;
+        return errorConfig_ == null ?
+            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() : errorConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Echoes the destination for the complete errors if this field was set in
      * the request.
@@ -1216,32 +1105,26 @@ public Builder clearErrorConfig() {
      * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig,
-            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder,
-            com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> 
         getErrorConfigFieldBuilder() {
       if (errorConfigBuilder_ == null) {
-        errorConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.ImportErrorConfig,
-                com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder,
-                com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>(
-                getErrorConfig(), getParentForChildren(), isClean());
+        errorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>(
+                getErrorConfig(),
+                getParentForChildren(),
+                isClean());
         errorConfig_ = null;
       }
       return errorConfigBuilder_;
     }
 
-    private long joinedEventsCount_;
+    private long joinedEventsCount_ ;
     /**
-     *
-     *
      * 
      * Count of user events imported with complete existing Documents.
      * 
* * int64 joined_events_count = 3; - * * @return The joinedEventsCount. */ @java.lang.Override @@ -1249,14 +1132,11 @@ public long getJoinedEventsCount() { return joinedEventsCount_; } /** - * - * *
      * Count of user events imported with complete existing Documents.
      * 
* * int64 joined_events_count = 3; - * * @param value The joinedEventsCount to set. * @return This builder for chaining. */ @@ -1268,14 +1148,11 @@ public Builder setJoinedEventsCount(long value) { return this; } /** - * - * *
      * Count of user events imported with complete existing Documents.
      * 
* * int64 joined_events_count = 3; - * * @return This builder for chaining. */ public Builder clearJoinedEventsCount() { @@ -1285,17 +1162,14 @@ public Builder clearJoinedEventsCount() { return this; } - private long unjoinedEventsCount_; + private long unjoinedEventsCount_ ; /** - * - * *
      * Count of user events imported, but with Document information not found
      * in the existing Branch.
      * 
* * int64 unjoined_events_count = 4; - * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -1303,15 +1177,12 @@ public long getUnjoinedEventsCount() { return unjoinedEventsCount_; } /** - * - * *
      * Count of user events imported, but with Document information not found
      * in the existing Branch.
      * 
* * int64 unjoined_events_count = 4; - * * @param value The unjoinedEventsCount to set. * @return This builder for chaining. */ @@ -1323,15 +1194,12 @@ public Builder setUnjoinedEventsCount(long value) { return this; } /** - * - * *
      * Count of user events imported, but with Document information not found
      * in the existing Branch.
      * 
* * int64 unjoined_events_count = 4; - * * @return This builder for chaining. */ public Builder clearUnjoinedEventsCount() { @@ -1340,9 +1208,9 @@ public Builder clearUnjoinedEventsCount() { 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); } @@ -1352,43 +1220,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportUserEventsResponse) - private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse(); } - public static com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1400,8 +1266,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java index 263f685d7db1..1a8d00376697 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/import_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface ImportUserEventsResponseOrBuilder - extends +public interface ImportUserEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return Whether the errorConfig field is set. */ boolean hasErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
    * 
* * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; - * * @return The errorConfig. */ com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); /** - * - * *
    * Echoes the destination for the complete errors if this field was set in
    * the request.
@@ -113,28 +82,22 @@ public interface ImportUserEventsResponseOrBuilder
   com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of user events imported with complete existing Documents.
    * 
* * int64 joined_events_count = 3; - * * @return The joinedEventsCount. */ long getJoinedEventsCount(); /** - * - * *
    * Count of user events imported, but with Document information not found
    * in the existing Branch.
    * 
* * int64 unjoined_events_count = 4; - * * @return The unjoinedEventsCount. */ long getUnjoinedEventsCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java index e74e19a8da01..bfb923e3618e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Interval.java @@ -1,79 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * A floating point interval.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Interval} */ -public final class Interval extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Interval extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Interval) IntervalOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Interval.newBuilder() to construct. private Interval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Interval() {} + private Interval() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Interval(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Interval.class, - com.google.cloud.discoveryengine.v1beta.Interval.Builder.class); + com.google.cloud.discoveryengine.v1beta.Interval.class, com.google.cloud.discoveryengine.v1beta.Interval.Builder.class); } private int minCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object min_; - public enum MinCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MINIMUM(1), EXCLUSIVE_MINIMUM(2), MIN_NOT_SET(0); private final int value; - private MinCase(int value) { this.value = value; } @@ -89,40 +67,33 @@ public static MinCase valueOf(int value) { public static MinCase forNumber(int value) { switch (value) { - case 1: - return MINIMUM; - case 2: - return EXCLUSIVE_MINIMUM; - case 0: - return MIN_NOT_SET; - default: - return null; + case 1: return MINIMUM; + case 2: return EXCLUSIVE_MINIMUM; + case 0: return MIN_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MinCase getMinCase() { - return MinCase.forNumber(minCase_); + public MinCase + getMinCase() { + return MinCase.forNumber( + minCase_); } private int maxCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object max_; - public enum MaxCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAXIMUM(3), EXCLUSIVE_MAXIMUM(4), MAX_NOT_SET(0); private final int value; - private MaxCase(int value) { this.value = value; } @@ -138,36 +109,30 @@ public static MaxCase valueOf(int value) { public static MaxCase forNumber(int value) { switch (value) { - case 3: - return MAXIMUM; - case 4: - return EXCLUSIVE_MAXIMUM; - case 0: - return MAX_NOT_SET; - default: - return null; + case 3: return MAXIMUM; + case 4: return EXCLUSIVE_MAXIMUM; + case 0: return MAX_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MaxCase getMaxCase() { - return MaxCase.forNumber(maxCase_); + public MaxCase + getMaxCase() { + return MaxCase.forNumber( + maxCase_); } public static final int MINIMUM_FIELD_NUMBER = 1; /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return Whether the minimum field is set. */ @java.lang.Override @@ -175,14 +140,11 @@ public boolean hasMinimum() { return minCase_ == 1; } /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return The minimum. */ @java.lang.Override @@ -195,14 +157,11 @@ public double getMinimum() { public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER = 2; /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return Whether the exclusiveMinimum field is set. */ @java.lang.Override @@ -210,14 +169,11 @@ public boolean hasExclusiveMinimum() { return minCase_ == 2; } /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return The exclusiveMinimum. */ @java.lang.Override @@ -230,14 +186,11 @@ public double getExclusiveMinimum() { public static final int MAXIMUM_FIELD_NUMBER = 3; /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return Whether the maximum field is set. */ @java.lang.Override @@ -245,14 +198,11 @@ public boolean hasMaximum() { return maxCase_ == 3; } /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return The maximum. */ @java.lang.Override @@ -265,14 +215,11 @@ public double getMaximum() { public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER = 4; /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return Whether the exclusiveMaximum field is set. */ @java.lang.Override @@ -280,14 +227,11 @@ public boolean hasExclusiveMaximum() { return maxCase_ == 4; } /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return The exclusiveMaximum. */ @java.lang.Override @@ -299,7 +243,6 @@ public double getExclusiveMaximum() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,18 +254,23 @@ 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 (minCase_ == 1) { - output.writeDouble(1, (double) ((java.lang.Double) min_)); + output.writeDouble( + 1, (double)((java.lang.Double) min_)); } if (minCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) min_)); + output.writeDouble( + 2, (double)((java.lang.Double) min_)); } if (maxCase_ == 3) { - output.writeDouble(3, (double) ((java.lang.Double) max_)); + output.writeDouble( + 3, (double)((java.lang.Double) max_)); } if (maxCase_ == 4) { - output.writeDouble(4, (double) ((java.lang.Double) max_)); + output.writeDouble( + 4, (double)((java.lang.Double) max_)); } getUnknownFields().writeTo(output); } @@ -334,24 +282,24 @@ public int getSerializedSize() { size = 0; if (minCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 1, (double) ((java.lang.Double) min_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 1, (double)((java.lang.Double) min_)); } if (minCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) min_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) min_)); } if (maxCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 3, (double) ((java.lang.Double) max_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 3, (double)((java.lang.Double) max_)); } if (maxCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 4, (double) ((java.lang.Double) max_)); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 4, (double)((java.lang.Double) max_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -361,23 +309,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.discoveryengine.v1beta.Interval)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Interval other = - (com.google.cloud.discoveryengine.v1beta.Interval) obj; + com.google.cloud.discoveryengine.v1beta.Interval other = (com.google.cloud.discoveryengine.v1beta.Interval) obj; if (!getMinCase().equals(other.getMinCase())) return false; switch (minCase_) { case 1: if (java.lang.Double.doubleToLongBits(getMinimum()) - != java.lang.Double.doubleToLongBits(other.getMinimum())) return false; + != java.lang.Double.doubleToLongBits( + other.getMinimum())) return false; break; case 2: if (java.lang.Double.doubleToLongBits(getExclusiveMinimum()) - != java.lang.Double.doubleToLongBits(other.getExclusiveMinimum())) return false; + != java.lang.Double.doubleToLongBits( + other.getExclusiveMinimum())) return false; break; case 0: default: @@ -386,11 +335,13 @@ public boolean equals(final java.lang.Object obj) { switch (maxCase_) { case 3: if (java.lang.Double.doubleToLongBits(getMaximum()) - != java.lang.Double.doubleToLongBits(other.getMaximum())) return false; + != java.lang.Double.doubleToLongBits( + other.getMaximum())) return false; break; case 4: if (java.lang.Double.doubleToLongBits(getExclusiveMaximum()) - != java.lang.Double.doubleToLongBits(other.getExclusiveMaximum())) return false; + != java.lang.Double.doubleToLongBits( + other.getExclusiveMaximum())) return false; break; case 0: default: @@ -409,17 +360,13 @@ public int hashCode() { switch (minCase_) { case 1: hash = (37 * hash) + MINIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinimum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinimum())); break; case 2: hash = (37 * hash) + EXCLUSIVE_MINIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExclusiveMinimum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExclusiveMinimum())); break; case 0: default: @@ -427,17 +374,13 @@ public int hashCode() { switch (maxCase_) { case 3: hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaximum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaximum())); break; case 4: hash = (37 * hash) + EXCLUSIVE_MAXIMUM_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExclusiveMaximum())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExclusiveMaximum())); break; case 0: default: @@ -447,136 +390,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.Interval parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1beta.Interval parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Interval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Interval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Interval parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Interval parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval 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 floating point interval.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Interval} */ - 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.discoveryengine.v1beta.Interval) com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Interval.class, - com.google.cloud.discoveryengine.v1beta.Interval.Builder.class); + com.google.cloud.discoveryengine.v1beta.Interval.class, com.google.cloud.discoveryengine.v1beta.Interval.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.Interval.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -589,9 +528,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_Interval_descriptor; } @java.lang.Override @@ -610,11 +549,8 @@ public com.google.cloud.discoveryengine.v1beta.Interval build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Interval buildPartial() { - com.google.cloud.discoveryengine.v1beta.Interval result = - new com.google.cloud.discoveryengine.v1beta.Interval(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.Interval result = new com.google.cloud.discoveryengine.v1beta.Interval(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -635,39 +571,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Interval 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.discoveryengine.v1beta.Interval) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Interval) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Interval)other); } else { super.mergeFrom(other); return this; @@ -675,39 +610,32 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Interval other) { - if (other == com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance()) return this; switch (other.getMinCase()) { - case MINIMUM: - { - setMinimum(other.getMinimum()); - break; - } - case EXCLUSIVE_MINIMUM: - { - setExclusiveMinimum(other.getExclusiveMinimum()); - break; - } - case MIN_NOT_SET: - { - break; - } + case MINIMUM: { + setMinimum(other.getMinimum()); + break; + } + case EXCLUSIVE_MINIMUM: { + setExclusiveMinimum(other.getExclusiveMinimum()); + break; + } + case MIN_NOT_SET: { + break; + } } switch (other.getMaxCase()) { - case MAXIMUM: - { - setMaximum(other.getMaximum()); - break; - } - case EXCLUSIVE_MAXIMUM: - { - setExclusiveMaximum(other.getExclusiveMaximum()); - break; - } - case MAX_NOT_SET: - { - break; - } + case MAXIMUM: { + setMaximum(other.getMaximum()); + break; + } + case EXCLUSIVE_MAXIMUM: { + setExclusiveMaximum(other.getExclusiveMaximum()); + break; + } + case MAX_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -735,37 +663,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - min_ = input.readDouble(); - minCase_ = 1; - break; - } // case 9 - case 17: - { - min_ = input.readDouble(); - minCase_ = 2; - break; - } // case 17 - case 25: - { - max_ = input.readDouble(); - maxCase_ = 3; - break; - } // case 25 - case 33: - { - max_ = input.readDouble(); - maxCase_ = 4; - break; - } // case 33 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + min_ = input.readDouble(); + minCase_ = 1; + break; + } // case 9 + case 17: { + min_ = input.readDouble(); + minCase_ = 2; + break; + } // case 17 + case 25: { + max_ = input.readDouble(); + maxCase_ = 3; + break; + } // case 25 + case 33: { + max_ = input.readDouble(); + maxCase_ = 4; + break; + } // case 33 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -775,12 +698,12 @@ public Builder mergeFrom( } // finally return this; } - private int minCase_ = 0; private java.lang.Object min_; - - public MinCase getMinCase() { - return MinCase.forNumber(minCase_); + public MinCase + getMinCase() { + return MinCase.forNumber( + minCase_); } public Builder clearMin() { @@ -792,9 +715,10 @@ public Builder clearMin() { private int maxCase_ = 0; private java.lang.Object max_; - - public MaxCase getMaxCase() { - return MaxCase.forNumber(maxCase_); + public MaxCase + getMaxCase() { + return MaxCase.forNumber( + maxCase_); } public Builder clearMax() { @@ -807,28 +731,22 @@ public Builder clearMax() { private int bitField0_; /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @return Whether the minimum field is set. */ public boolean hasMinimum() { return minCase_ == 1; } /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @return The minimum. */ public double getMinimum() { @@ -838,14 +756,11 @@ public double getMinimum() { return 0D; } /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @param value The minimum to set. * @return This builder for chaining. */ @@ -857,14 +772,11 @@ public Builder setMinimum(double value) { return this; } /** - * - * *
      * Inclusive lower bound.
      * 
* * double minimum = 1; - * * @return This builder for chaining. */ public Builder clearMinimum() { @@ -877,28 +789,22 @@ public Builder clearMinimum() { } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @return Whether the exclusiveMinimum field is set. */ public boolean hasExclusiveMinimum() { return minCase_ == 2; } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @return The exclusiveMinimum. */ public double getExclusiveMinimum() { @@ -908,14 +814,11 @@ public double getExclusiveMinimum() { return 0D; } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @param value The exclusiveMinimum to set. * @return This builder for chaining. */ @@ -927,14 +830,11 @@ public Builder setExclusiveMinimum(double value) { return this; } /** - * - * *
      * Exclusive lower bound.
      * 
* * double exclusive_minimum = 2; - * * @return This builder for chaining. */ public Builder clearExclusiveMinimum() { @@ -947,28 +847,22 @@ public Builder clearExclusiveMinimum() { } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @return Whether the maximum field is set. */ public boolean hasMaximum() { return maxCase_ == 3; } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @return The maximum. */ public double getMaximum() { @@ -978,14 +872,11 @@ public double getMaximum() { return 0D; } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @param value The maximum to set. * @return This builder for chaining. */ @@ -997,14 +888,11 @@ public Builder setMaximum(double value) { return this; } /** - * - * *
      * Inclusive upper bound.
      * 
* * double maximum = 3; - * * @return This builder for chaining. */ public Builder clearMaximum() { @@ -1017,28 +905,22 @@ public Builder clearMaximum() { } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @return Whether the exclusiveMaximum field is set. */ public boolean hasExclusiveMaximum() { return maxCase_ == 4; } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @return The exclusiveMaximum. */ public double getExclusiveMaximum() { @@ -1048,14 +930,11 @@ public double getExclusiveMaximum() { return 0D; } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @param value The exclusiveMaximum to set. * @return This builder for chaining. */ @@ -1067,14 +946,11 @@ public Builder setExclusiveMaximum(double value) { return this; } /** - * - * *
      * Exclusive upper bound.
      * 
* * double exclusive_maximum = 4; - * * @return This builder for chaining. */ public Builder clearExclusiveMaximum() { @@ -1085,9 +961,9 @@ public Builder clearExclusiveMaximum() { } 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); } @@ -1097,12 +973,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Interval) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Interval) private static final com.google.cloud.discoveryengine.v1beta.Interval DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Interval(); } @@ -1111,27 +987,27 @@ public static com.google.cloud.discoveryengine.v1beta.Interval getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Interval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Interval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,4 +1022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Interval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java index 9e3af43ab0d6..42e4dd1356ab 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IntervalOrBuilder.java @@ -1,124 +1,84 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; -public interface IntervalOrBuilder - extends +public interface IntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Interval) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return Whether the minimum field is set. */ boolean hasMinimum(); /** - * - * *
    * Inclusive lower bound.
    * 
* * double minimum = 1; - * * @return The minimum. */ double getMinimum(); /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return Whether the exclusiveMinimum field is set. */ boolean hasExclusiveMinimum(); /** - * - * *
    * Exclusive lower bound.
    * 
* * double exclusive_minimum = 2; - * * @return The exclusiveMinimum. */ double getExclusiveMinimum(); /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return Whether the maximum field is set. */ boolean hasMaximum(); /** - * - * *
    * Inclusive upper bound.
    * 
* * double maximum = 3; - * * @return The maximum. */ double getMaximum(); /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return Whether the exclusiveMaximum field is set. */ boolean hasExclusiveMaximum(); /** - * - * *
    * Exclusive upper bound.
    * 
* * double exclusive_maximum = 4; - * * @return The exclusiveMaximum. */ double getExclusiveMaximum(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java index 9e17fda4b956..da5d80c58416 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request for ListConversations method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListConversationsRequest} */ -public final class ListConversationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConversationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListConversationsRequest) ListConversationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConversationsRequest.newBuilder() to construct. private ListConversationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConversationsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,41 +28,34 @@ private ListConversationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConversationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.class, - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.class, com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 @@ -89,32 +64,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 data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of results to return. If unspecified, defaults
    * to 50. Max allowed value is 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,19 +112,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -195,12 +161,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -210,7 +173,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -219,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -237,15 +198,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @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 { @@ -254,12 +216,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -274,7 +233,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -283,15 +241,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -306,15 +263,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -323,7 +281,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +292,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_); } @@ -364,7 +322,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_); @@ -383,19 +342,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.discoveryengine.v1beta.ListConversationsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest other = - (com.google.cloud.discoveryengine.v1beta.ListConversationsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest other = (com.google.cloud.discoveryengine.v1beta.ListConversationsRequest) 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 (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -423,136 +386,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest 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.discoveryengine.v1beta.ListConversationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ListConversationsRequest 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 for ListConversations method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListConversationsRequest} */ - 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.discoveryengine.v1beta.ListConversationsRequest) com.google.cloud.discoveryengine.v1beta.ListConversationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.class, - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.class, com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -566,14 +524,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ListConversationsRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ListConversationsRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.getDefaultInstance(); } @@ -588,17 +545,13 @@ public com.google.cloud.discoveryengine.v1beta.ListConversationsRequest build() @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ListConversationsRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest result = - new com.google.cloud.discoveryengine.v1beta.ListConversationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.ListConversationsRequest result = new com.google.cloud.discoveryengine.v1beta.ListConversationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ListConversationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -621,50 +574,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.ListConversationsRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListConversationsRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListConversationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.ListConversationsRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListConversationsRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.ListConversationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -714,43 +663,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -760,28 +703,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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; @@ -790,24 +728,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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 { @@ -815,41 +750,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string 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() { @@ -859,24 +783,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The data store resource name. Format:
      * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -884,17 +802,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of results to return. If unspecified, defaults
      * to 50. Max allowed value is 1000.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -902,15 +817,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of results to return. If unspecified, defaults
      * to 50. Max allowed value is 1000.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -922,15 +834,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of results to return. If unspecified, defaults
      * to 50. Max allowed value is 1000.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -942,21 +851,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -965,22 +872,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -988,37 +894,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1028,22 +927,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListConversations` call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1053,8 +948,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1064,13 +957,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @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; @@ -1079,8 +972,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1090,14 +981,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @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 { @@ -1105,8 +997,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1116,22 +1006,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1141,7 +1027,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1151,8 +1036,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter to apply on the list results. The supported features are:
      * user_pseudo_id, state.
@@ -1162,14 +1045,12 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1179,8 +1060,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1195,13 +1074,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1210,8 +1089,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1226,14 +1103,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1241,8 +1119,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1257,22 +1133,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1287,7 +1159,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1297,8 +1168,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
@@ -1313,23 +1182,21 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; 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); } @@ -1339,43 +1206,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListConversationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListConversationsRequest) - private static final com.google.cloud.discoveryengine.v1beta.ListConversationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ListConversationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListConversationsRequest(); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ListConversationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,8 +1252,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ListConversationsRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ListConversationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java index 1d1d436133af..8e937a1a4c28 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsRequestOrBuilder.java @@ -1,103 +1,68 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ListConversationsRequestOrBuilder - extends +public interface ListConversationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListConversationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string 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 data store resource name. Format:
    * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of results to return. If unspecified, defaults
    * to 50. Max allowed value is 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListConversations` call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -107,13 +72,10 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter to apply on the list results. The supported features are:
    * user_pseudo_id, state.
@@ -123,14 +85,12 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -145,13 +105,10 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
@@ -166,8 +123,8 @@ public interface ListConversationsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java index d22b94be3338..7771ff00a0c6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response for ListConversations method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListConversationsResponse} */ -public final class ListConversationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConversationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListConversationsResponse) ListConversationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConversationsResponse.newBuilder() to construct. private ListConversationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConversationsResponse() { conversations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListConversationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConversationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.class, - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.Builder.class); + com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.class, com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.Builder.class); } public static final int CONVERSATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List conversations_; /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -77,13 +55,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ @java.lang.Override - public java.util.List - getConversationsList() { + public java.util.List getConversationsList() { return conversations_; } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -91,13 +66,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConversationsOrBuilderList() { return conversations_; } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -109,8 +82,6 @@ public int getConversationsCount() { return conversations_.size(); } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.discoveryengine.v1beta.Conversation getConversations(int return conversations_.get(index); } /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -137,18 +106,14 @@ public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversa } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,29 +122,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * 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 { @@ -188,7 +153,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +164,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 < conversations_.size(); i++) { output.writeMessage(1, conversations_.get(i)); } @@ -217,7 +182,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < conversations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conversations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +196,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.discoveryengine.v1beta.ListConversationsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse other = - (com.google.cloud.discoveryengine.v1beta.ListConversationsResponse) obj; + com.google.cloud.discoveryengine.v1beta.ListConversationsResponse other = (com.google.cloud.discoveryengine.v1beta.ListConversationsResponse) obj; - if (!getConversationsList().equals(other.getConversationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getConversationsList() + .equals(other.getConversationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,138 +230,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse 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.discoveryengine.v1beta.ListConversationsResponse 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.discoveryengine.v1beta.ListConversationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse 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.discoveryengine.v1beta.ListConversationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse 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.discoveryengine.v1beta.ListConversationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse 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.discoveryengine.v1beta.ListConversationsResponse 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.discoveryengine.v1beta.ListConversationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ListConversationsResponse 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 for ListConversations method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListConversationsResponse} */ - 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.discoveryengine.v1beta.ListConversationsResponse) com.google.cloud.discoveryengine.v1beta.ListConversationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.class, - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.Builder.class); + com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.class, com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListConversationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.getDefaultInstance(); } @@ -433,18 +392,14 @@ public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse build() @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse buildPartial() { - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse result = - new com.google.cloud.discoveryengine.v1beta.ListConversationsResponse(this); + com.google.cloud.discoveryengine.v1beta.ListConversationsResponse result = new com.google.cloud.discoveryengine.v1beta.ListConversationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ListConversationsResponse result) { if (conversationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { conversations_ = java.util.Collections.unmodifiableList(conversations_); @@ -456,8 +411,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ListConversationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -468,50 +422,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.ListConversationsResponse) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListConversationsResponse) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListConversationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.ListConversationsResponse other) { - if (other - == com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListConversationsResponse other) { + if (other == com.google.cloud.discoveryengine.v1beta.ListConversationsResponse.getDefaultInstance()) return this; if (conversationsBuilder_ == null) { if (!other.conversations_.isEmpty()) { if (conversations_.isEmpty()) { @@ -530,10 +480,9 @@ public Builder mergeFrom( conversationsBuilder_ = null; conversations_ = other.conversations_; bitField0_ = (bitField0_ & ~0x00000001); - conversationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConversationsFieldBuilder() - : null; + conversationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConversationsFieldBuilder() : null; } else { conversationsBuilder_.addAllMessages(other.conversations_); } @@ -570,33 +519,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1beta.Conversation m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Conversation.parser(), - extensionRegistry); - if (conversationsBuilder_ == null) { - ensureConversationsIsMutable(); - conversations_.add(m); - } else { - conversationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1beta.Conversation m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Conversation.parser(), + extensionRegistry); + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(m); + } else { + conversationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,38 +552,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List conversations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConversationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - conversations_ = - new java.util.ArrayList( - conversations_); + conversations_ = new java.util.ArrayList(conversations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> - conversationsBuilder_; + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> conversationsBuilder_; /** - * - * *
      * All the Conversations for a given data store.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ - public java.util.List - getConversationsList() { + public java.util.List getConversationsList() { if (conversationsBuilder_ == null) { return java.util.Collections.unmodifiableList(conversations_); } else { @@ -645,8 +581,6 @@ private void ensureConversationsIsMutable() { } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -661,8 +595,6 @@ public int getConversationsCount() { } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -677,8 +609,6 @@ public com.google.cloud.discoveryengine.v1beta.Conversation getConversations(int } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -700,8 +630,6 @@ public Builder setConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -720,8 +648,6 @@ public Builder setConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -742,8 +668,6 @@ public Builder addConversations(com.google.cloud.discoveryengine.v1beta.Conversa return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -765,8 +689,6 @@ public Builder addConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -785,8 +707,6 @@ public Builder addConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -805,8 +725,6 @@ public Builder addConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -817,7 +735,8 @@ public Builder addAllConversations( java.lang.Iterable values) { if (conversationsBuilder_ == null) { ensureConversationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conversations_); onChanged(); } else { conversationsBuilder_.addAllMessages(values); @@ -825,8 +744,6 @@ public Builder addAllConversations( return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -844,8 +761,6 @@ public Builder clearConversations() { return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -863,8 +778,6 @@ public Builder removeConversations(int index) { return this; } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -876,8 +789,6 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat return getConversationsFieldBuilder().getBuilder(index); } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -887,22 +798,19 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationsOrBuilder( int index) { if (conversationsBuilder_ == null) { - return conversations_.get(index); - } else { + return conversations_.get(index); } else { return conversationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * All the Conversations for a given data store.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ - public java.util.List - getConversationsOrBuilderList() { + public java.util.List + getConversationsOrBuilderList() { if (conversationsBuilder_ != null) { return conversationsBuilder_.getMessageOrBuilderList(); } else { @@ -910,8 +818,6 @@ public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversa } } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -919,12 +825,10 @@ public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversa * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder addConversationsBuilder() { - return getConversationsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()); + return getConversationsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()); } /** - * - * *
      * All the Conversations for a given data store.
      * 
@@ -933,35 +837,26 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder addConversat */ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder addConversationsBuilder( int index) { - return getConversationsFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()); + return getConversationsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()); } /** - * - * *
      * All the Conversations for a given data store.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ - public java.util.List - getConversationsBuilderList() { + public java.util.List + getConversationsBuilderList() { return getConversationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> getConversationsFieldBuilder() { if (conversationsBuilder_ == null) { - conversationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( + conversationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( conversations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -973,20 +868,18 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder addConversat private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * 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; @@ -995,21 +888,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * 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 { @@ -1017,35 +909,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1055,30 +940,26 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Pagination token, if not returned indicates the last page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1088,43 +969,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListConversationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListConversationsResponse) - private static final com.google.cloud.discoveryengine.v1beta.ListConversationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ListConversationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListConversationsResponse(); } - public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.ListConversationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,8 +1015,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.ListConversationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java index 14e9e8cc5bd9..b4ba924b5147 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListConversationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ListConversationsResponseOrBuilder - extends +public interface ListConversationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListConversationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * All the Conversations for a given data store.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ - java.util.List getConversationsList(); + java.util.List + getConversationsList(); /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -44,8 +25,6 @@ public interface ListConversationsResponseOrBuilder */ com.google.cloud.discoveryengine.v1beta.Conversation getConversations(int index); /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -54,19 +33,15 @@ public interface ListConversationsResponseOrBuilder */ int getConversationsCount(); /** - * - * *
    * All the Conversations for a given data store.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Conversation conversations = 1; */ - java.util.List + java.util.List getConversationsOrBuilderList(); /** - * - * *
    * All the Conversations for a given data store.
    * 
@@ -77,27 +52,22 @@ com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationsOr int index); /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Pagination token, if not returned indicates the last page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java index 9e18e1dc5863..fd8b9bccdf6c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListDocumentsRequest}
  */
-public final class ListDocumentsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListDocumentsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListDocumentsRequest)
     ListDocumentsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListDocumentsRequest.newBuilder() to construct.
   private ListDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListDocumentsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -46,32 +28,28 @@ private ListDocumentsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListDocumentsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.class,
-            com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.class, com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -84,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `PERMISSION_DENIED` error is returned.
    * 
* - * - * string 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 @@ -96,15 +71,14 @@ 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 branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -117,18 +91,17 @@ public java.lang.String getParent() {
    * `PERMISSION_DENIED` error is returned.
    * 
* - * - * string 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 { @@ -139,8 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * to return. If unspecified, defaults to 100. The maximum allowed value is
@@ -150,7 +121,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -159,12 +129,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -179,7 +146,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -188,15 +154,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -211,15 +176,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -228,7 +194,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +205,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_); } @@ -263,7 +229,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_); @@ -276,17 +243,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.discoveryengine.v1beta.ListDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest other = - (com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest) obj; + com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest other = (com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,104 +279,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest 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.discoveryengine.v1beta.ListDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest 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
    * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]
@@ -416,32 +379,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListDocumentsRequest}
    */
-  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.discoveryengine.v1beta.ListDocumentsRequest)
       com.google.cloud.discoveryengine.v1beta.ListDocumentsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.class,
-              com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.class, com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,14 +417,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.getDefaultInstance();
     }
 
@@ -475,17 +438,13 @@ public com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest result =
-          new com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest result = new com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -502,39 +461,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,9 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -584,31 +540,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,13 +570,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -637,16 +586,14 @@ public Builder mergeFrom(
      * `PERMISSION_DENIED` error is returned.
      * 
* - * - * string 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; @@ -655,8 +602,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -669,17 +614,16 @@ public java.lang.String getParent() {
      * `PERMISSION_DENIED` error is returned.
      * 
* - * - * string 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 { @@ -687,8 +631,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -701,25 +643,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `PERMISSION_DENIED` error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -732,10 +668,7 @@ public Builder setParent(java.lang.String value) {
      * `PERMISSION_DENIED` error is returned.
      * 
* - * - * string 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() { @@ -745,8 +678,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent branch resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -759,17 +690,13 @@ public Builder clearParent() {
      * `PERMISSION_DENIED` error is returned.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -777,10 +704,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * to return. If unspecified, defaults to 100. The maximum allowed value is
@@ -790,7 +715,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -798,8 +722,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * to return. If unspecified, defaults to 100. The maximum allowed value is
@@ -809,7 +731,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -821,8 +742,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * to return. If unspecified, defaults to 100. The maximum allowed value is
@@ -832,7 +751,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -844,8 +762,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -860,13 +776,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -875,8 +791,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -891,14 +805,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -906,8 +821,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -922,22 +835,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -952,7 +861,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -962,8 +870,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token
      * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -978,23 +884,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1004,13 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListDocumentsRequest) - private static final com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest(); } @@ -1019,27 +922,27 @@ public static com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1054,4 +957,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java similarity index 75% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java index f84bcd481691..6ac14284d0e9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ListDocumentsRequestOrBuilder - extends +public interface ListDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -38,16 +20,11 @@ public interface ListDocumentsRequestOrBuilder
    * `PERMISSION_DENIED` error is returned.
    * 
* - * - * string 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 branch resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -60,17 +37,13 @@ public interface ListDocumentsRequestOrBuilder
    * `PERMISSION_DENIED` error is returned.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * to return. If unspecified, defaults to 100. The maximum allowed value is
@@ -80,14 +53,11 @@ public interface ListDocumentsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -102,13 +72,10 @@ public interface ListDocumentsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token
    * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token],
@@ -123,8 +90,8 @@ public interface ListDocumentsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java similarity index 72% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java index 3dab4d6057f8..2fdb58690c61 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response message for
  * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListDocumentsResponse}
  */
-public final class ListDocumentsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListDocumentsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListDocumentsResponse)
     ListDocumentsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListDocumentsResponse.newBuilder() to construct.
   private ListDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListDocumentsResponse() {
     documents_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,32 +28,28 @@ private ListDocumentsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListDocumentsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.class,
-            com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.class, com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.Builder.class);
   }
 
   public static final int DOCUMENTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List documents_;
   /**
-   *
-   *
    * 
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -83,8 +61,6 @@ public java.util.List getDocum return documents_; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -92,13 +68,11 @@ public java.util.List getDocum * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDocumentsOrBuilderList() { return documents_; } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -110,8 +84,6 @@ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index) return documents_.get(index); } /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -138,12 +108,9 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -152,7 +119,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -161,15 +127,14 @@ 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; } } /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -178,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,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 < documents_.size(); i++) { output.writeMessage(1, documents_.get(i)); } @@ -224,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < documents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, documents_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +204,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.discoveryengine.v1beta.ListDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse other = - (com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse) obj; + com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse other = (com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,104 +238,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse 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.discoveryengine.v1beta.ListDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse 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
    * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]
@@ -376,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListDocumentsResponse}
    */
-  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.discoveryengine.v1beta.ListDocumentsResponse)
       com.google.cloud.discoveryengine.v1beta.ListDocumentsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.class,
-              com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.class, com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -418,14 +381,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.getDefaultInstance();
     }
 
@@ -440,18 +402,14 @@ public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse result =
-          new com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse(this);
+      com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse result = new com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse result) {
       if (documentsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           documents_ = java.util.Collections.unmodifiableList(documents_);
@@ -463,8 +421,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -475,39 +432,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -515,9 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse.getDefaultInstance()) return this;
       if (documentsBuilder_ == null) {
         if (!other.documents_.isEmpty()) {
           if (documents_.isEmpty()) {
@@ -536,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListDocumentsRe
             documentsBuilder_ = null;
             documents_ = other.documents_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            documentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDocumentsFieldBuilder()
-                    : null;
+            documentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDocumentsFieldBuilder() : null;
           } else {
             documentsBuilder_.addAllMessages(other.documents_);
           }
@@ -576,33 +529,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1beta.Document m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.Document.parser(),
-                        extensionRegistry);
-                if (documentsBuilder_ == null) {
-                  ensureDocumentsIsMutable();
-                  documents_.add(m);
-                } else {
-                  documentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1beta.Document m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.Document.parser(),
+                      extensionRegistry);
+              if (documentsBuilder_ == null) {
+                ensureDocumentsIsMutable();
+                documents_.add(m);
+              } else {
+                documentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -612,29 +562,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List documents_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureDocumentsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        documents_ =
-            new java.util.ArrayList(documents_);
+        documents_ = new java.util.ArrayList(documents_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Document,
-            com.google.cloud.discoveryengine.v1beta.Document.Builder,
-            com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>
-        documentsBuilder_;
+        com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> documentsBuilder_;
 
     /**
-     *
-     *
      * 
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -649,8 +591,6 @@ public java.util.List getDocum } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -665,8 +605,6 @@ public int getDocumentsCount() { } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -681,15 +619,14 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index) } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1beta.Document value) { + public Builder setDocuments( + int index, com.google.cloud.discoveryengine.v1beta.Document value) { if (documentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,8 +640,6 @@ public Builder setDocuments(int index, com.google.cloud.discoveryengine.v1beta.D return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -723,8 +658,6 @@ public Builder setDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -745,15 +678,14 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1beta.Document val return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1beta.Document value) { + public Builder addDocuments( + int index, com.google.cloud.discoveryengine.v1beta.Document value) { if (documentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -767,8 +699,6 @@ public Builder addDocuments(int index, com.google.cloud.discoveryengine.v1beta.D return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -787,8 +717,6 @@ public Builder addDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -807,8 +735,6 @@ public Builder addDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -819,7 +745,8 @@ public Builder addAllDocuments( java.lang.Iterable values) { if (documentsBuilder_ == null) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); onChanged(); } else { documentsBuilder_.addAllMessages(values); @@ -827,8 +754,6 @@ public Builder addAllDocuments( return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -846,8 +771,6 @@ public Builder clearDocuments() { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -865,20 +788,17 @@ public Builder removeDocuments(int index) { return this; } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentsBuilder( + int index) { return getDocumentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -888,22 +808,19 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentsBuil public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder( int index) { if (documentsBuilder_ == null) { - return documents_.get(index); - } else { + return documents_.get(index); } else { return documentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - public java.util.List - getDocumentsOrBuilderList() { + public java.util.List + getDocumentsOrBuilderList() { if (documentsBuilder_ != null) { return documentsBuilder_.getMessageOrBuilderList(); } else { @@ -911,8 +828,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrB } } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
@@ -920,48 +835,42 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrB * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuilder() { - return getDocumentsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); + return getDocumentsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuilder(int index) { - return getDocumentsFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuilder( + int index) { + return getDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()); } /** - * - * *
      * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - public java.util.List - getDocumentsBuilderList() { + public java.util.List + getDocumentsBuilderList() { return getDocumentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> getDocumentsFieldBuilder() { if (documentsBuilder_ == null) { - documentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( - documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( + documents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); documents_ = null; } return documentsBuilder_; @@ -969,8 +878,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -979,13 +886,13 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder addDocumentsBuil
      * 
* * 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; @@ -994,8 +901,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -1004,14 +909,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1019,8 +925,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -1029,22 +933,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -1053,7 +953,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1063,8 +962,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as
      * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -1073,23 +970,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1099,13 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListDocumentsResponse) - private static final com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse(); } @@ -1114,27 +1008,27 @@ public static com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java index 9c8f3e1bbff9..71467b0813c6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListDocumentsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ListDocumentsResponseOrBuilder - extends +public interface ListDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -44,8 +25,6 @@ public interface ListDocumentsResponseOrBuilder */ com.google.cloud.discoveryengine.v1beta.Document getDocuments(int index); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
@@ -54,30 +33,25 @@ public interface ListDocumentsResponseOrBuilder */ int getDocumentsCount(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - java.util.List + java.util.List getDocumentsOrBuilderList(); /** - * - * *
    * The [Document][google.cloud.discoveryengine.v1beta.Document]s.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Document documents = 1; */ - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentsOrBuilder( + int index); /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -86,13 +60,10 @@ public interface ListDocumentsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as
    * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token]
@@ -101,8 +72,8 @@ public interface ListDocumentsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java index 131315376b98..2a8c0813b121 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSchemasRequest}
  */
-public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSchemasRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListSchemasRequest)
     ListSchemasRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSchemasRequest.newBuilder() to construct.
   private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSchemasRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -46,41 +28,34 @@ private ListSchemasRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSchemasRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.class,
-            com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.class, com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -89,32 +64,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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of [Schema][google.cloud.discoveryengine.v1beta.Schema]s
    * to return. The service may return fewer than this value.
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -164,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -173,15 +139,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -193,15 +158,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -210,7 +176,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +187,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_); } @@ -245,7 +211,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_); @@ -258,17 +225,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.discoveryengine.v1beta.ListSchemasRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ListSchemasRequest other = - (com.google.cloud.discoveryengine.v1beta.ListSchemasRequest) obj; + com.google.cloud.discoveryengine.v1beta.ListSchemasRequest other = (com.google.cloud.discoveryengine.v1beta.ListSchemasRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,104 +261,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest 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.discoveryengine.v1beta.ListSchemasRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ListSchemasRequest 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
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -398,32 +361,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSchemasRequest}
    */
-  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.discoveryengine.v1beta.ListSchemasRequest)
       com.google.cloud.discoveryengine.v1beta.ListSchemasRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.class,
-              com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.class, com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -435,9 +399,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor;
     }
 
     @java.lang.Override
@@ -456,11 +420,8 @@ public com.google.cloud.discoveryengine.v1beta.ListSchemasRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ListSchemasRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ListSchemasRequest result =
-          new com.google.cloud.discoveryengine.v1beta.ListSchemasRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.ListSchemasRequest result = new com.google.cloud.discoveryengine.v1beta.ListSchemasRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -482,39 +443,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ListSchemasRe
     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.discoveryengine.v1beta.ListSchemasRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListSchemasRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListSchemasRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -522,8 +482,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListSchemasRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.ListSchemasRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -563,31 +522,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -597,28 +552,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -627,24 +577,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -652,41 +599,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -696,24 +632,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent data store resource name, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -721,10 +651,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of [Schema][google.cloud.discoveryengine.v1beta.Schema]s
      * to return. The service may return fewer than this value.
@@ -736,7 +664,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -744,8 +671,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of [Schema][google.cloud.discoveryengine.v1beta.Schema]s
      * to return. The service may return fewer than this value.
@@ -757,7 +682,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -769,8 +693,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of [Schema][google.cloud.discoveryengine.v1beta.Schema]s
      * to return. The service may return fewer than this value.
@@ -782,7 +704,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -794,8 +715,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -807,13 +726,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -822,8 +741,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -835,14 +752,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -850,8 +768,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -863,22 +779,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -890,7 +802,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -900,8 +811,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -913,23 +822,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -939,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListSchemasRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListSchemasRequest) private static final com.google.cloud.discoveryengine.v1beta.ListSchemasRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListSchemasRequest(); } @@ -953,27 +860,27 @@ public static com.google.cloud.discoveryengine.v1beta.ListSchemasRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -988,4 +895,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ListSchemasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java index 7c92b11501f1..b7b2615c7c8d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ListSchemasRequestOrBuilder - extends +public interface ListSchemasRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListSchemasRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 data store resource name, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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(); /** - * - * *
    * The maximum number of [Schema][google.cloud.discoveryengine.v1beta.Schema]s
    * to return. The service may return fewer than this value.
@@ -68,14 +41,11 @@ public interface ListSchemasRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -87,13 +57,10 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -105,8 +72,8 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java index d3bb493744df..773834fff64d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response message for
  * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSchemasResponse}
  */
-public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSchemasResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListSchemasResponse)
     ListSchemasResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSchemasResponse.newBuilder() to construct.
   private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSchemasResponse() {
     schemas_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,32 +28,28 @@ private ListSchemasResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSchemasResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.class,
-            com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.class, com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.Builder.class);
   }
 
   public static final int SCHEMAS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List schemas_;
   /**
-   *
-   *
    * 
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -83,8 +61,6 @@ public java.util.List getSchemas return schemas_; } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -92,13 +68,11 @@ public java.util.List getSchemas * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSchemasOrBuilderList() { return schemas_; } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -110,8 +84,6 @@ public int getSchemasCount() { return schemas_.size(); } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.discoveryengine.v1beta.Schema getSchemas(int index) { return schemas_.get(index); } /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -132,17 +102,15 @@ public com.google.cloud.discoveryengine.v1beta.Schema getSchemas(int index) { * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuilder( + int index) { return schemas_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -151,7 +119,6 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +127,14 @@ 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; } } /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -177,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -194,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } @@ -223,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < schemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, schemas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -236,16 +204,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.discoveryengine.v1beta.ListSchemasResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.ListSchemasResponse other = - (com.google.cloud.discoveryengine.v1beta.ListSchemasResponse) obj; + com.google.cloud.discoveryengine.v1beta.ListSchemasResponse other = (com.google.cloud.discoveryengine.v1beta.ListSchemasResponse) obj; - if (!getSchemasList().equals(other.getSchemasList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSchemasList() + .equals(other.getSchemasList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,104 +238,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse 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.discoveryengine.v1beta.ListSchemasResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.ListSchemasResponse 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
    * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas]
@@ -375,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListSchemasResponse}
    */
-  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.discoveryengine.v1beta.ListSchemasResponse)
       com.google.cloud.discoveryengine.v1beta.ListSchemasResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.class,
-              com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.class, com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +381,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor;
     }
 
     @java.lang.Override
@@ -438,18 +402,14 @@ public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.ListSchemasResponse result =
-          new com.google.cloud.discoveryengine.v1beta.ListSchemasResponse(this);
+      com.google.cloud.discoveryengine.v1beta.ListSchemasResponse result = new com.google.cloud.discoveryengine.v1beta.ListSchemasResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.ListSchemasResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.ListSchemasResponse result) {
       if (schemasBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           schemas_ = java.util.Collections.unmodifiableList(schemas_);
@@ -472,39 +432,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ListSchemasRe
     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.discoveryengine.v1beta.ListSchemasResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListSchemasResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListSchemasResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListSchemasResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.ListSchemasResponse.getDefaultInstance()) return this;
       if (schemasBuilder_ == null) {
         if (!other.schemas_.isEmpty()) {
           if (schemas_.isEmpty()) {
@@ -532,10 +490,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListSchemasResp
             schemasBuilder_ = null;
             schemas_ = other.schemas_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            schemasBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSchemasFieldBuilder()
-                    : null;
+            schemasBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSchemasFieldBuilder() : null;
           } else {
             schemasBuilder_.addAllMessages(other.schemas_);
           }
@@ -572,32 +529,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1beta.Schema m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.Schema.parser(), extensionRegistry);
-                if (schemasBuilder_ == null) {
-                  ensureSchemasIsMutable();
-                  schemas_.add(m);
-                } else {
-                  schemasBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1beta.Schema m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.Schema.parser(),
+                      extensionRegistry);
+              if (schemasBuilder_ == null) {
+                ensureSchemasIsMutable();
+                schemas_.add(m);
+              } else {
+                schemasBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,29 +562,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List schemas_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSchemasIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        schemas_ =
-            new java.util.ArrayList(schemas_);
+        schemas_ = new java.util.ArrayList(schemas_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Schema,
-            com.google.cloud.discoveryengine.v1beta.Schema.Builder,
-            com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>
-        schemasBuilder_;
+        com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> schemasBuilder_;
 
     /**
-     *
-     *
      * 
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -644,8 +591,6 @@ public java.util.List getSchemas } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -660,8 +605,6 @@ public int getSchemasCount() { } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -676,15 +619,14 @@ public com.google.cloud.discoveryengine.v1beta.Schema getSchemas(int index) { } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public Builder setSchemas(int index, com.google.cloud.discoveryengine.v1beta.Schema value) { + public Builder setSchemas( + int index, com.google.cloud.discoveryengine.v1beta.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,8 +640,6 @@ public Builder setSchemas(int index, com.google.cloud.discoveryengine.v1beta.Sch return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -718,8 +658,6 @@ public Builder setSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -740,15 +678,14 @@ public Builder addSchemas(com.google.cloud.discoveryengine.v1beta.Schema value) return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public Builder addSchemas(int index, com.google.cloud.discoveryengine.v1beta.Schema value) { + public Builder addSchemas( + int index, com.google.cloud.discoveryengine.v1beta.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -762,8 +699,6 @@ public Builder addSchemas(int index, com.google.cloud.discoveryengine.v1beta.Sch return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -782,8 +717,6 @@ public Builder addSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -802,8 +735,6 @@ public Builder addSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -814,7 +745,8 @@ public Builder addAllSchemas( java.lang.Iterable values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); @@ -822,8 +754,6 @@ public Builder addAllSchemas( return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -841,8 +771,6 @@ public Builder clearSchemas() { return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -860,44 +788,39 @@ public Builder removeSchemas(int index) { return this; } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public com.google.cloud.discoveryengine.v1beta.Schema.Builder getSchemasBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.Schema.Builder getSchemasBuilder( + int index) { return getSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuilder( + int index) { if (schemasBuilder_ == null) { - return schemas_.get(index); - } else { + return schemas_.get(index); } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public java.util.List - getSchemasOrBuilderList() { + public java.util.List + getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +828,6 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuild } } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
@@ -914,48 +835,42 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuild * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ public com.google.cloud.discoveryengine.v1beta.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()); + return getSchemasFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()); } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public com.google.cloud.discoveryengine.v1beta.Schema.Builder addSchemasBuilder(int index) { - return getSchemasFieldBuilder() - .addBuilder(index, com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.Schema.Builder addSchemasBuilder( + int index) { + return getSchemasFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()); } /** - * - * *
      * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - public java.util.List - getSchemasBuilderList() { + public java.util.List + getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { - schemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( - schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( + schemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); schemas_ = null; } return schemasBuilder_; @@ -963,8 +878,6 @@ public com.google.cloud.discoveryengine.v1beta.Schema.Builder addSchemasBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -973,13 +886,13 @@ public com.google.cloud.discoveryengine.v1beta.Schema.Builder addSchemasBuilder(
      * 
* * 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; @@ -988,8 +901,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -998,14 +909,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1013,8 +925,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -1023,22 +933,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -1047,7 +953,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1057,8 +962,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as
      * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -1067,23 +970,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1093,12 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListSchemasResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListSchemasResponse) private static final com.google.cloud.discoveryengine.v1beta.ListSchemasResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListSchemasResponse(); } @@ -1107,27 +1008,27 @@ public static com.google.cloud.discoveryengine.v1beta.ListSchemasResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.ListSchemasResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java index 221bfb32e07c..0f3e7bfc4f2e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSchemasResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface ListSchemasResponseOrBuilder - extends +public interface ListSchemasResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListSchemasResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - java.util.List getSchemasList(); + java.util.List + getSchemasList(); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -44,8 +25,6 @@ public interface ListSchemasResponseOrBuilder */ com.google.cloud.discoveryengine.v1beta.Schema getSchemas(int index); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
@@ -54,30 +33,25 @@ public interface ListSchemasResponseOrBuilder */ int getSchemasCount(); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - java.util.List + java.util.List getSchemasOrBuilderList(); /** - * - * *
    * The [Schema][google.cloud.discoveryengine.v1beta.Schema]s.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.Schema schemas = 1; */ - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemasOrBuilder( + int index); /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -86,13 +60,10 @@ public interface ListSchemasResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as
    * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1beta.ListSchemasRequest.page_token]
@@ -101,8 +72,8 @@ public interface ListSchemasResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java index ce593c0aad8e..8dfae6babdf4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfo.java @@ -1,71 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Media-specific user event information.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.MediaInfo} */ -public final class MediaInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MediaInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.MediaInfo) MediaInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MediaInfo.newBuilder() to construct. private MediaInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MediaInfo() {} + private MediaInfo() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MediaInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.MediaInfo.class, - com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.MediaInfo.class, com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder.class); } private int bitField0_; public static final int MEDIA_PROGRESS_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration mediaProgressDuration_; /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -75,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return Whether the mediaProgressDuration field is set. */ @java.lang.Override @@ -83,8 +62,6 @@ public boolean hasMediaProgressDuration() { return mediaProgressDuration_ != null; } /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -94,18 +71,13 @@ public boolean hasMediaProgressDuration() {
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return The mediaProgressDuration. */ @java.lang.Override public com.google.protobuf.Duration getMediaProgressDuration() { - return mediaProgressDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : mediaProgressDuration_; + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; } /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -118,16 +90,12 @@ public com.google.protobuf.Duration getMediaProgressDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder() {
-    return mediaProgressDuration_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : mediaProgressDuration_;
+    return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_;
   }
 
   public static final int MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER = 2;
   private float mediaProgressPercentage_ = 0F;
   /**
-   *
-   *
    * 
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -140,7 +108,6 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
    * 
* * optional float media_progress_percentage = 2; - * * @return Whether the mediaProgressPercentage field is set. */ @java.lang.Override @@ -148,8 +115,6 @@ public boolean hasMediaProgressPercentage() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -162,7 +127,6 @@ public boolean hasMediaProgressPercentage() {
    * 
* * optional float media_progress_percentage = 2; - * * @return The mediaProgressPercentage. */ @java.lang.Override @@ -171,7 +135,6 @@ public float getMediaProgressPercentage() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +146,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 (mediaProgressDuration_ != null) { output.writeMessage(1, getMediaProgressDuration()); } @@ -200,11 +164,12 @@ public int getSerializedSize() { size = 0; if (mediaProgressDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMediaProgressDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMediaProgressDuration()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, mediaProgressPercentage_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, mediaProgressPercentage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,22 +179,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.discoveryengine.v1beta.MediaInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.MediaInfo other = - (com.google.cloud.discoveryengine.v1beta.MediaInfo) obj; + com.google.cloud.discoveryengine.v1beta.MediaInfo other = (com.google.cloud.discoveryengine.v1beta.MediaInfo) obj; if (hasMediaProgressDuration() != other.hasMediaProgressDuration()) return false; if (hasMediaProgressDuration()) { - if (!getMediaProgressDuration().equals(other.getMediaProgressDuration())) return false; + if (!getMediaProgressDuration() + .equals(other.getMediaProgressDuration())) return false; } if (hasMediaProgressPercentage() != other.hasMediaProgressPercentage()) return false; if (hasMediaProgressPercentage()) { if (java.lang.Float.floatToIntBits(getMediaProgressPercentage()) - != java.lang.Float.floatToIntBits(other.getMediaProgressPercentage())) return false; + != java.lang.Float.floatToIntBits( + other.getMediaProgressPercentage())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -248,7 +214,8 @@ public int hashCode() { } if (hasMediaProgressPercentage()) { hash = (37 * hash) + MEDIA_PROGRESS_PERCENTAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMediaProgressPercentage()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMediaProgressPercentage()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -256,135 +223,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.MediaInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.MediaInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.MediaInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.MediaInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo 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.discoveryengine.v1beta.MediaInfo 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; } /** - * - * *
    * Media-specific user event information.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.MediaInfo} */ - 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.discoveryengine.v1beta.MediaInfo) com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.MediaInfo.class, - com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.MediaInfo.class, com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.MediaInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +362,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; } @java.lang.Override @@ -420,11 +383,8 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.MediaInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.MediaInfo result = - new com.google.cloud.discoveryengine.v1beta.MediaInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.MediaInfo result = new com.google.cloud.discoveryengine.v1beta.MediaInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -432,10 +392,9 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfo buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1beta.MediaInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.mediaProgressDuration_ = - mediaProgressDurationBuilder_ == null - ? mediaProgressDuration_ - : mediaProgressDurationBuilder_.build(); + result.mediaProgressDuration_ = mediaProgressDurationBuilder_ == null + ? mediaProgressDuration_ + : mediaProgressDurationBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -449,39 +408,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.MediaInfo res 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.discoveryengine.v1beta.MediaInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.MediaInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.MediaInfo)other); } else { super.mergeFrom(other); return this; @@ -489,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.MediaInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance()) return this; if (other.hasMediaProgressDuration()) { mergeMediaProgressDuration(other.getMediaProgressDuration()); } @@ -523,26 +480,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getMediaProgressDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - mediaProgressPercentage_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMediaProgressDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + mediaProgressPercentage_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,18 +507,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration mediaProgressDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - mediaProgressDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> mediaProgressDurationBuilder_; /** - * - * *
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -573,15 +522,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return Whether the mediaProgressDuration field is set. */ public boolean hasMediaProgressDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -591,21 +537,16 @@ public boolean hasMediaProgressDuration() {
      * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return The mediaProgressDuration. */ public com.google.protobuf.Duration getMediaProgressDuration() { if (mediaProgressDurationBuilder_ == null) { - return mediaProgressDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : mediaProgressDuration_; + return mediaProgressDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_; } else { return mediaProgressDurationBuilder_.getMessage(); } } /** - * - * *
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -630,8 +571,6 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -642,7 +581,8 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration media_progress_duration = 1;
      */
-    public Builder setMediaProgressDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMediaProgressDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (mediaProgressDurationBuilder_ == null) {
         mediaProgressDuration_ = builderForValue.build();
       } else {
@@ -653,8 +593,6 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -667,9 +605,9 @@ public Builder setMediaProgressDuration(com.google.protobuf.Duration.Builder bui
      */
     public Builder mergeMediaProgressDuration(com.google.protobuf.Duration value) {
       if (mediaProgressDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && mediaProgressDuration_ != null
-            && mediaProgressDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          mediaProgressDuration_ != null &&
+          mediaProgressDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getMediaProgressDurationBuilder().mergeFrom(value);
         } else {
           mediaProgressDuration_ = value;
@@ -682,8 +620,6 @@ public Builder mergeMediaProgressDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -705,8 +641,6 @@ public Builder clearMediaProgressDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -723,8 +657,6 @@ public com.google.protobuf.Duration.Builder getMediaProgressDurationBuilder() {
       return getMediaProgressDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -739,14 +671,11 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
       if (mediaProgressDurationBuilder_ != null) {
         return mediaProgressDurationBuilder_.getMessageOrBuilder();
       } else {
-        return mediaProgressDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : mediaProgressDuration_;
+        return mediaProgressDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : mediaProgressDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * The media progress time in seconds, if applicable.
      * For example, if the end user has finished 90 seconds of a playback video,
@@ -758,26 +687,21 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
      * .google.protobuf.Duration media_progress_duration = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getMediaProgressDurationFieldBuilder() {
       if (mediaProgressDurationBuilder_ == null) {
-        mediaProgressDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getMediaProgressDuration(), getParentForChildren(), isClean());
+        mediaProgressDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getMediaProgressDuration(),
+                getParentForChildren(),
+                isClean());
         mediaProgressDuration_ = null;
       }
       return mediaProgressDurationBuilder_;
     }
 
-    private float mediaProgressPercentage_;
+    private float mediaProgressPercentage_ ;
     /**
-     *
-     *
      * 
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -790,7 +714,6 @@ public com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder()
      * 
* * optional float media_progress_percentage = 2; - * * @return Whether the mediaProgressPercentage field is set. */ @java.lang.Override @@ -798,8 +721,6 @@ public boolean hasMediaProgressPercentage() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -812,7 +733,6 @@ public boolean hasMediaProgressPercentage() {
      * 
* * optional float media_progress_percentage = 2; - * * @return The mediaProgressPercentage. */ @java.lang.Override @@ -820,8 +740,6 @@ public float getMediaProgressPercentage() { return mediaProgressPercentage_; } /** - * - * *
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -834,7 +752,6 @@ public float getMediaProgressPercentage() {
      * 
* * optional float media_progress_percentage = 2; - * * @param value The mediaProgressPercentage to set. * @return This builder for chaining. */ @@ -846,8 +763,6 @@ public Builder setMediaProgressPercentage(float value) { return this; } /** - * - * *
      * Media progress should be computed using only the
      * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -860,7 +775,6 @@ public Builder setMediaProgressPercentage(float value) {
      * 
* * optional float media_progress_percentage = 2; - * * @return This builder for chaining. */ public Builder clearMediaProgressPercentage() { @@ -869,9 +783,9 @@ public Builder clearMediaProgressPercentage() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -881,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.MediaInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.MediaInfo) private static final com.google.cloud.discoveryengine.v1beta.MediaInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.MediaInfo(); } @@ -895,27 +809,27 @@ public static com.google.cloud.discoveryengine.v1beta.MediaInfo getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MediaInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +844,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.MediaInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java similarity index 80% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java index 1b04cb3e0dae..a9b4dd25ee1a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/MediaInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface MediaInfoOrBuilder - extends +public interface MediaInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.MediaInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -35,13 +17,10 @@ public interface MediaInfoOrBuilder
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return Whether the mediaProgressDuration field is set. */ boolean hasMediaProgressDuration(); /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -51,13 +30,10 @@ public interface MediaInfoOrBuilder
    * 
* * .google.protobuf.Duration media_progress_duration = 1; - * * @return The mediaProgressDuration. */ com.google.protobuf.Duration getMediaProgressDuration(); /** - * - * *
    * The media progress time in seconds, if applicable.
    * For example, if the end user has finished 90 seconds of a playback video,
@@ -71,8 +47,6 @@ public interface MediaInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getMediaProgressDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -85,13 +59,10 @@ public interface MediaInfoOrBuilder
    * 
* * optional float media_progress_percentage = 2; - * * @return Whether the mediaProgressPercentage field is set. */ boolean hasMediaProgressPercentage(); /** - * - * *
    * Media progress should be computed using only the
    * [media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration]
@@ -104,7 +75,6 @@ public interface MediaInfoOrBuilder
    * 
* * optional float media_progress_percentage = 2; - * * @return The mediaProgressPercentage. */ float getMediaProgressPercentage(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java similarity index 76% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java index fa6ef4bbf373..4244e069612e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Detailed page information.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.PageInfo} */ -public final class PageInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PageInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PageInfo) PageInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PageInfo.newBuilder() to construct. private PageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PageInfo() { pageviewId_ = ""; pageCategory_ = ""; @@ -46,32 +28,28 @@ private PageInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PageInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.PageInfo.class, - com.google.cloud.discoveryengine.v1beta.PageInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.PageInfo.class, com.google.cloud.discoveryengine.v1beta.PageInfo.Builder.class); } public static final int PAGEVIEW_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object pageviewId_ = ""; /** - * - * *
    * A unique ID of a web page view.
    *
@@ -86,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pageview_id = 1; - * * @return The pageviewId. */ @java.lang.Override @@ -95,15 +72,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; } } /** - * - * *
    * A unique ID of a web page view.
    *
@@ -118,15 +94,16 @@ public java.lang.String getPageviewId() {
    * 
* * string pageview_id = 1; - * * @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 { @@ -135,12 +112,9 @@ public com.google.protobuf.ByteString getPageviewIdBytes() { } public static final int PAGE_CATEGORY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageCategory_ = ""; /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -157,7 +131,6 @@ public com.google.protobuf.ByteString getPageviewIdBytes() {
    * 
* * string page_category = 2; - * * @return The pageCategory. */ @java.lang.Override @@ -166,15 +139,14 @@ public java.lang.String getPageCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageCategory_ = s; return s; } } /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -191,15 +163,16 @@ public java.lang.String getPageCategory() {
    * 
* * string page_category = 2; - * * @return The bytes for pageCategory. */ @java.lang.Override - public com.google.protobuf.ByteString getPageCategoryBytes() { + public com.google.protobuf.ByteString + getPageCategoryBytes() { java.lang.Object ref = pageCategory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageCategory_ = b; return b; } else { @@ -208,12 +181,9 @@ public com.google.protobuf.ByteString getPageCategoryBytes() { } public static final int URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -223,7 +193,6 @@ public com.google.protobuf.ByteString getPageCategoryBytes() {
    * 
* * string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -232,15 +201,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; } } /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -250,15 +218,16 @@ public java.lang.String getUri() {
    * 
* * string uri = 3; - * * @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 { @@ -267,12 +236,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int REFERRER_URI_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object referrerUri_ = ""; /** - * - * *
    * The referrer URL of the current page.
    *
@@ -282,7 +248,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * string referrer_uri = 4; - * * @return The referrerUri. */ @java.lang.Override @@ -291,15 +256,14 @@ 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; } } /** - * - * *
    * The referrer URL of the current page.
    *
@@ -309,15 +273,16 @@ public java.lang.String getReferrerUri() {
    * 
* * string referrer_uri = 4; - * * @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 { @@ -326,7 +291,6 @@ public com.google.protobuf.ByteString getReferrerUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +302,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(pageviewId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pageviewId_); } @@ -380,18 +345,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.discoveryengine.v1beta.PageInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.PageInfo other = - (com.google.cloud.discoveryengine.v1beta.PageInfo) obj; - - if (!getPageviewId().equals(other.getPageviewId())) return false; - if (!getPageCategory().equals(other.getPageCategory())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getReferrerUri().equals(other.getReferrerUri())) return false; + com.google.cloud.discoveryengine.v1beta.PageInfo other = (com.google.cloud.discoveryengine.v1beta.PageInfo) obj; + + if (!getPageviewId() + .equals(other.getPageviewId())) return false; + if (!getPageCategory() + .equals(other.getPageCategory())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getReferrerUri() + .equals(other.getReferrerUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -416,136 +384,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.PageInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1beta.PageInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PageInfo 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.discoveryengine.v1beta.PageInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PageInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.PageInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PageInfo 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.discoveryengine.v1beta.PageInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PageInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.PageInfo 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.discoveryengine.v1beta.PageInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PageInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.PageInfo 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.discoveryengine.v1beta.PageInfo 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.discoveryengine.v1beta.PageInfo 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.discoveryengine.v1beta.PageInfo 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 page information.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.PageInfo} */ - 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.discoveryengine.v1beta.PageInfo) com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.PageInfo.class, - com.google.cloud.discoveryengine.v1beta.PageInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.PageInfo.class, com.google.cloud.discoveryengine.v1beta.PageInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.PageInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; } @java.lang.Override @@ -579,11 +543,8 @@ public com.google.cloud.discoveryengine.v1beta.PageInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.PageInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.PageInfo result = - new com.google.cloud.discoveryengine.v1beta.PageInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.PageInfo result = new com.google.cloud.discoveryengine.v1beta.PageInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -608,39 +569,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.PageInfo resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.PageInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.PageInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.PageInfo)other); } else { super.mergeFrom(other); return this; @@ -648,8 +608,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PageInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()) return this; if (!other.getPageviewId().isEmpty()) { pageviewId_ = other.pageviewId_; bitField0_ |= 0x00000001; @@ -696,37 +655,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - pageviewId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageCategory_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - referrerUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + pageviewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + referrerUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -736,13 +690,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object pageviewId_ = ""; /** - * - * *
      * A unique ID of a web page view.
      *
@@ -757,13 +708,13 @@ public Builder mergeFrom(
      * 
* * string pageview_id = 1; - * * @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; @@ -772,8 +723,6 @@ public java.lang.String getPageviewId() { } } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -788,14 +737,15 @@ public java.lang.String getPageviewId() {
      * 
* * string pageview_id = 1; - * * @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 { @@ -803,8 +753,6 @@ public com.google.protobuf.ByteString getPageviewIdBytes() { } } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -819,22 +767,18 @@ public com.google.protobuf.ByteString getPageviewIdBytes() {
      * 
* * string pageview_id = 1; - * * @param value The pageviewId to set. * @return This builder for chaining. */ - public Builder setPageviewId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageviewId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageviewId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -849,7 +793,6 @@ public Builder setPageviewId(java.lang.String value) {
      * 
* * string pageview_id = 1; - * * @return This builder for chaining. */ public Builder clearPageviewId() { @@ -859,8 +802,6 @@ public Builder clearPageviewId() { return this; } /** - * - * *
      * A unique ID of a web page view.
      *
@@ -875,14 +816,12 @@ public Builder clearPageviewId() {
      * 
* * string pageview_id = 1; - * * @param value The bytes for pageviewId to set. * @return This builder for chaining. */ - public Builder setPageviewIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageviewIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageviewId_ = value; bitField0_ |= 0x00000001; @@ -892,8 +831,6 @@ public Builder setPageviewIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageCategory_ = ""; /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -910,13 +847,13 @@ public Builder setPageviewIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_category = 2; - * * @return The pageCategory. */ public java.lang.String getPageCategory() { java.lang.Object ref = pageCategory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageCategory_ = s; return s; @@ -925,8 +862,6 @@ public java.lang.String getPageCategory() { } } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -943,14 +878,15 @@ public java.lang.String getPageCategory() {
      * 
* * string page_category = 2; - * * @return The bytes for pageCategory. */ - public com.google.protobuf.ByteString getPageCategoryBytes() { + public com.google.protobuf.ByteString + getPageCategoryBytes() { java.lang.Object ref = pageCategory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageCategory_ = b; return b; } else { @@ -958,8 +894,6 @@ public com.google.protobuf.ByteString getPageCategoryBytes() { } } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -976,22 +910,18 @@ public com.google.protobuf.ByteString getPageCategoryBytes() {
      * 
* * string page_category = 2; - * * @param value The pageCategory to set. * @return This builder for chaining. */ - public Builder setPageCategory(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageCategory( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageCategory_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -1008,7 +938,6 @@ public Builder setPageCategory(java.lang.String value) {
      * 
* * string page_category = 2; - * * @return This builder for chaining. */ public Builder clearPageCategory() { @@ -1018,8 +947,6 @@ public Builder clearPageCategory() { return this; } /** - * - * *
      * The most specific category associated with a category page.
      *
@@ -1036,14 +963,12 @@ public Builder clearPageCategory() {
      * 
* * string page_category = 2; - * * @param value The bytes for pageCategory to set. * @return This builder for chaining. */ - public Builder setPageCategoryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageCategoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageCategory_ = value; bitField0_ |= 0x00000002; @@ -1053,8 +978,6 @@ public Builder setPageCategoryBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1064,13 +987,13 @@ public Builder setPageCategoryBytes(com.google.protobuf.ByteString value) {
      * 
* * string uri = 3; - * * @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; @@ -1079,8 +1002,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1090,14 +1011,15 @@ public java.lang.String getUri() {
      * 
* * string uri = 3; - * * @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 { @@ -1105,8 +1027,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1116,22 +1036,18 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1141,7 +1057,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1151,8 +1066,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * Complete URL (window.location.href) of the user's current page.
      *
@@ -1162,14 +1075,12 @@ public Builder clearUri() {
      * 
* * string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; @@ -1179,8 +1090,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object referrerUri_ = ""; /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1190,13 +1099,13 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string referrer_uri = 4; - * * @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; @@ -1205,8 +1114,6 @@ public java.lang.String getReferrerUri() { } } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1216,14 +1123,15 @@ public java.lang.String getReferrerUri() {
      * 
* * string referrer_uri = 4; - * * @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 { @@ -1231,8 +1139,6 @@ public com.google.protobuf.ByteString getReferrerUriBytes() { } } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1242,22 +1148,18 @@ public com.google.protobuf.ByteString getReferrerUriBytes() {
      * 
* * string referrer_uri = 4; - * * @param value The referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferrerUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } referrerUri_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1267,7 +1169,6 @@ public Builder setReferrerUri(java.lang.String value) {
      * 
* * string referrer_uri = 4; - * * @return This builder for chaining. */ public Builder clearReferrerUri() { @@ -1277,8 +1178,6 @@ public Builder clearReferrerUri() { return this; } /** - * - * *
      * The referrer URL of the current page.
      *
@@ -1288,23 +1187,21 @@ public Builder clearReferrerUri() {
      * 
* * string referrer_uri = 4; - * * @param value The bytes for referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferrerUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referrerUri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1314,12 +1211,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PageInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PageInfo) private static final com.google.cloud.discoveryengine.v1beta.PageInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PageInfo(); } @@ -1328,27 +1225,27 @@ public static com.google.cloud.discoveryengine.v1beta.PageInfo getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PageInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1363,4 +1260,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.PageInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java similarity index 82% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java index eaf201680c50..5218dd7daa59 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PageInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface PageInfoOrBuilder - extends +public interface PageInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PageInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique ID of a web page view.
    *
@@ -40,13 +22,10 @@ public interface PageInfoOrBuilder
    * 
* * string pageview_id = 1; - * * @return The pageviewId. */ java.lang.String getPageviewId(); /** - * - * *
    * A unique ID of a web page view.
    *
@@ -61,14 +40,12 @@ public interface PageInfoOrBuilder
    * 
* * string pageview_id = 1; - * * @return The bytes for pageviewId. */ - com.google.protobuf.ByteString getPageviewIdBytes(); + com.google.protobuf.ByteString + getPageviewIdBytes(); /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -85,13 +62,10 @@ public interface PageInfoOrBuilder
    * 
* * string page_category = 2; - * * @return The pageCategory. */ java.lang.String getPageCategory(); /** - * - * *
    * The most specific category associated with a category page.
    *
@@ -108,14 +82,12 @@ public interface PageInfoOrBuilder
    * 
* * string page_category = 2; - * * @return The bytes for pageCategory. */ - com.google.protobuf.ByteString getPageCategoryBytes(); + com.google.protobuf.ByteString + getPageCategoryBytes(); /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -125,13 +97,10 @@ public interface PageInfoOrBuilder
    * 
* * string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Complete URL (window.location.href) of the user's current page.
    *
@@ -141,14 +110,12 @@ public interface PageInfoOrBuilder
    * 
* * string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * The referrer URL of the current page.
    *
@@ -158,13 +125,10 @@ public interface PageInfoOrBuilder
    * 
* * string referrer_uri = 4; - * * @return The referrerUri. */ java.lang.String getReferrerUri(); /** - * - * *
    * The referrer URL of the current page.
    *
@@ -174,8 +138,8 @@ public interface PageInfoOrBuilder
    * 
* * string referrer_uri = 4; - * * @return The bytes for referrerUri. */ - com.google.protobuf.ByteString getReferrerUriBytes(); + com.google.protobuf.ByteString + getReferrerUriBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java index 142a151b6453..39d3299ba6b4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Detailed panel information associated with a user event.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.PanelInfo} */ -public final class PanelInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PanelInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PanelInfo) PanelInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PanelInfo.newBuilder() to construct. private PanelInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PanelInfo() { panelId_ = ""; displayName_ = ""; @@ -44,39 +26,34 @@ private PanelInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PanelInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.PanelInfo.class, - com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.PanelInfo.class, com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder.class); } private int bitField0_; public static final int PANEL_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object panelId_ = ""; /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The panelId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getPanelId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); panelId_ = s; return s; } } /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for panelId. */ @java.lang.Override - public com.google.protobuf.ByteString getPanelIdBytes() { + public com.google.protobuf.ByteString + getPanelIdBytes() { java.lang.Object ref = panelId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); panelId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getPanelIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -169,8 +142,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int PANEL_POSITION_FIELD_NUMBER = 4; private int panelPosition_ = 0; /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -179,7 +150,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * optional int32 panel_position = 4; - * * @return Whether the panelPosition field is set. */ @java.lang.Override @@ -187,8 +157,6 @@ public boolean hasPanelPosition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -197,7 +165,6 @@ public boolean hasPanelPosition() {
    * 
* * optional int32 panel_position = 4; - * * @return The panelPosition. */ @java.lang.Override @@ -208,8 +175,6 @@ public int getPanelPosition() { public static final int TOTAL_PANELS_FIELD_NUMBER = 5; private int totalPanels_ = 0; /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -218,7 +183,6 @@ public int getPanelPosition() {
    * 
* * optional int32 total_panels = 5; - * * @return Whether the totalPanels field is set. */ @java.lang.Override @@ -226,8 +190,6 @@ public boolean hasTotalPanels() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -236,7 +198,6 @@ public boolean hasTotalPanels() {
    * 
* * optional int32 total_panels = 5; - * * @return The totalPanels. */ @java.lang.Override @@ -245,7 +206,6 @@ public int getTotalPanels() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +217,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(panelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, panelId_); } @@ -286,10 +247,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, panelPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, panelPosition_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, totalPanels_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, totalPanels_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,23 +262,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.discoveryengine.v1beta.PanelInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.PanelInfo other = - (com.google.cloud.discoveryengine.v1beta.PanelInfo) obj; + com.google.cloud.discoveryengine.v1beta.PanelInfo other = (com.google.cloud.discoveryengine.v1beta.PanelInfo) obj; - if (!getPanelId().equals(other.getPanelId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getPanelId() + .equals(other.getPanelId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasPanelPosition() != other.hasPanelPosition()) return false; if (hasPanelPosition()) { - if (getPanelPosition() != other.getPanelPosition()) return false; + if (getPanelPosition() + != other.getPanelPosition()) return false; } if (hasTotalPanels() != other.hasTotalPanels()) return false; if (hasTotalPanels()) { - if (getTotalPanels() != other.getTotalPanels()) return false; + if (getTotalPanels() + != other.getTotalPanels()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -346,135 +312,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PanelInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.PanelInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PanelInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PanelInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo 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.discoveryengine.v1beta.PanelInfo 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 panel information associated with a user event.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.PanelInfo} */ - 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.discoveryengine.v1beta.PanelInfo) com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.PanelInfo.class, - com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.PanelInfo.class, com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.PanelInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; } @java.lang.Override @@ -508,11 +470,8 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.PanelInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.PanelInfo result = - new com.google.cloud.discoveryengine.v1beta.PanelInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.PanelInfo result = new com.google.cloud.discoveryengine.v1beta.PanelInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -541,39 +500,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.PanelInfo res 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.discoveryengine.v1beta.PanelInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.PanelInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.PanelInfo)other); } else { super.mergeFrom(other); return this; @@ -581,8 +539,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PanelInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance()) return this; if (!other.getPanelId().isEmpty()) { panelId_ = other.panelId_; bitField0_ |= 0x00000001; @@ -625,37 +582,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - panelId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: - { - panelPosition_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - totalPanels_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + panelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: { + panelPosition_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + totalPanels_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,25 +617,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object panelId_ = ""; /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The panelId. */ public java.lang.String getPanelId() { java.lang.Object ref = panelId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); panelId_ = s; return s; @@ -692,21 +641,20 @@ public java.lang.String getPanelId() { } } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for panelId. */ - public com.google.protobuf.ByteString getPanelIdBytes() { + public com.google.protobuf.ByteString + getPanelIdBytes() { java.lang.Object ref = panelId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); panelId_ = b; return b; } else { @@ -714,35 +662,28 @@ public com.google.protobuf.ByteString getPanelIdBytes() { } } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The panelId to set. * @return This builder for chaining. */ - public Builder setPanelId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPanelId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } panelId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPanelId() { @@ -752,21 +693,17 @@ public Builder clearPanelId() { return this; } /** - * - * *
      * Required. The panel ID.
      * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for panelId to set. * @return This builder for chaining. */ - public Builder setPanelIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPanelIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); panelId_ = value; bitField0_ |= 0x00000001; @@ -776,20 +713,18 @@ public Builder setPanelIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -798,21 +733,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -820,35 +754,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -858,21 +785,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The display name of the panel.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -880,10 +803,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private int panelPosition_; + private int panelPosition_ ; /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -892,7 +813,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int32 panel_position = 4; - * * @return Whether the panelPosition field is set. */ @java.lang.Override @@ -900,8 +820,6 @@ public boolean hasPanelPosition() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -910,7 +828,6 @@ public boolean hasPanelPosition() {
      * 
* * optional int32 panel_position = 4; - * * @return The panelPosition. */ @java.lang.Override @@ -918,8 +835,6 @@ public int getPanelPosition() { return panelPosition_; } /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -928,7 +843,6 @@ public int getPanelPosition() {
      * 
* * optional int32 panel_position = 4; - * * @param value The panelPosition to set. * @return This builder for chaining. */ @@ -940,8 +854,6 @@ public Builder setPanelPosition(int value) { return this; } /** - * - * *
      * The ordered position of the panel, if shown to the user with other panels.
      * If set, then
@@ -950,7 +862,6 @@ public Builder setPanelPosition(int value) {
      * 
* * optional int32 panel_position = 4; - * * @return This builder for chaining. */ public Builder clearPanelPosition() { @@ -960,10 +871,8 @@ public Builder clearPanelPosition() { return this; } - private int totalPanels_; + private int totalPanels_ ; /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -972,7 +881,6 @@ public Builder clearPanelPosition() {
      * 
* * optional int32 total_panels = 5; - * * @return Whether the totalPanels field is set. */ @java.lang.Override @@ -980,8 +888,6 @@ public boolean hasTotalPanels() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -990,7 +896,6 @@ public boolean hasTotalPanels() {
      * 
* * optional int32 total_panels = 5; - * * @return The totalPanels. */ @java.lang.Override @@ -998,8 +903,6 @@ public int getTotalPanels() { return totalPanels_; } /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -1008,7 +911,6 @@ public int getTotalPanels() {
      * 
* * optional int32 total_panels = 5; - * * @param value The totalPanels to set. * @return This builder for chaining. */ @@ -1020,8 +922,6 @@ public Builder setTotalPanels(int value) { return this; } /** - * - * *
      * The total number of panels, including this one, shown to the user.
      * Must be set if
@@ -1030,7 +930,6 @@ public Builder setTotalPanels(int value) {
      * 
* * optional int32 total_panels = 5; - * * @return This builder for chaining. */ public Builder clearTotalPanels() { @@ -1039,9 +938,9 @@ public Builder clearTotalPanels() { 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); } @@ -1051,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PanelInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PanelInfo) private static final com.google.cloud.discoveryengine.v1beta.PanelInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PanelInfo(); } @@ -1065,27 +964,27 @@ public static com.google.cloud.discoveryengine.v1beta.PanelInfo getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PanelInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PanelInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.PanelInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java similarity index 74% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java index 959e924f11b0..2086b86275ec 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PanelInfoOrBuilder.java @@ -1,81 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface PanelInfoOrBuilder - extends +public interface PanelInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PanelInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The panelId. */ java.lang.String getPanelId(); /** - * - * *
    * Required. The panel ID.
    * 
* * string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for panelId. */ - com.google.protobuf.ByteString getPanelIdBytes(); + com.google.protobuf.ByteString + getPanelIdBytes(); /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The display name of the panel.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -84,13 +56,10 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 panel_position = 4; - * * @return Whether the panelPosition field is set. */ boolean hasPanelPosition(); /** - * - * *
    * The ordered position of the panel, if shown to the user with other panels.
    * If set, then
@@ -99,14 +68,11 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 panel_position = 4; - * * @return The panelPosition. */ int getPanelPosition(); /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -115,13 +81,10 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 total_panels = 5; - * * @return Whether the totalPanels field is set. */ boolean hasTotalPanels(); /** - * - * *
    * The total number of panels, including this one, shown to the user.
    * Must be set if
@@ -130,7 +93,6 @@ public interface PanelInfoOrBuilder
    * 
* * optional int32 total_panels = 5; - * * @return The totalPanels. */ int getTotalPanels(); diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java new file mode 100644 index 000000000000..219e5685f455 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/purge_config.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class PurgeConfigProto { + private PurgeConfigProto() {} + 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_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_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/discoveryengine/v1beta/pu" + + "rge_config.proto\022#google.cloud.discovery" + + "engine.v1beta\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032\037googl" + + "e/protobuf/timestamp.proto\"|\n\025PurgeDocum" + + "entsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%di" + + "scoveryengine.googleapis.com/Branch\022\024\n\006f" + + "ilter\030\002 \001(\tB\004\342A\001\002\022\r\n\005force\030\003 \001(\010\"q\n\026Purg" + + "eDocumentsResponse\022\023\n\013purge_count\030\001 \001(\003\022" + + "B\n\014purge_sample\030\002 \003(\tB,\372A)\n\'discoveryeng" + + "ine.googleapis.com/Document\"\250\001\n\026PurgeDoc" + + "umentsMetadata\022/\n\013create_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022/\n\013update_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsucc" + + "ess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003B\227" + + "\002\n\'com.google.cloud.discoveryengine.v1be" + + "taB\020PurgeConfigProtoP\001ZQcloud.google.com" + + "/go/discoveryengine/apiv1beta/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" + + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" + + "\002&Google::Cloud::DiscoveryEngine::V1beta" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "Force", }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor, + new java.lang.String[] { "PurgeCount", "PurgeSample", }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor, + new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java index 98b0145b5b58..4dc8197a39fa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/purge_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Metadata related to the progress of the PurgeDocuments operation.
  * This will be returned by the google.longrunning.Operation.metadata field.
@@ -28,50 +11,46 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata}
  */
-public final class PurgeDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PurgeDocumentsMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata)
     PurgeDocumentsMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PurgeDocumentsMetadata.newBuilder() to construct.
   private PurgeDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private PurgeDocumentsMetadata() {}
+  private PurgeDocumentsMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PurgeDocumentsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.class,
-            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.class, com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.Builder.class);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -110,15 +84,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -126,15 +97,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -142,8 +110,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.
@@ -159,14 +125,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int SUCCESS_COUNT_FIELD_NUMBER = 3;
   private long successCount_ = 0L;
   /**
-   *
-   *
    * 
    * Count of entries that were deleted successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -177,14 +140,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 4; private long failureCount_ = 0L; /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -193,7 +153,6 @@ public long getFailureCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -228,16 +188,20 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (successCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, successCount_); } if (failureCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, failureCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,24 +211,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.discoveryengine.v1beta.PurgeDocumentsMetadata)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata other = - (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) obj; + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata other = (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getSuccessCount() != other.getSuccessCount()) return false; - if (getFailureCount() != other.getFailureCount()) return false; + if (getSuccessCount() + != other.getSuccessCount()) return false; + if (getFailureCount() + != other.getFailureCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,113 +252,109 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata 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.discoveryengine.v1beta.PurgeDocumentsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata 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 PurgeDocuments operation.
    * This will be returned by the google.longrunning.Operation.metadata field.
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata}
    */
-  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.discoveryengine.v1beta.PurgeDocumentsMetadata)
       com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.class,
-              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.class, com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,14 +409,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.getDefaultInstance();
     }
 
@@ -467,23 +430,23 @@ public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata result =
-          new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata result = new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.successCount_ = successCount_;
@@ -497,39 +460,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,9 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -578,37 +538,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                successCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                failureCount_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              successCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              failureCount_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -618,52 +577,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -684,15 +629,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -703,8 +647,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -713,9 +655,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -728,8 +670,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -747,8 +687,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -761,8 +699,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -773,14 +709,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.
      * 
@@ -788,17 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -806,49 +736,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -870,8 +787,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.
@@ -879,7 +794,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -890,8 +806,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.
@@ -901,9 +815,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -916,8 +830,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.
@@ -936,8 +848,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -951,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -964,14 +872,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.
@@ -980,32 +885,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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_;
     }
 
-    private long successCount_;
+    private long successCount_ ;
     /**
-     *
-     *
      * 
      * Count of entries that were deleted successfully.
      * 
* * int64 success_count = 3; - * * @return The successCount. */ @java.lang.Override @@ -1013,14 +912,11 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
      * Count of entries that were deleted successfully.
      * 
* * int64 success_count = 3; - * * @param value The successCount to set. * @return This builder for chaining. */ @@ -1032,14 +928,11 @@ public Builder setSuccessCount(long value) { return this; } /** - * - * *
      * Count of entries that were deleted successfully.
      * 
* * int64 success_count = 3; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { @@ -1049,16 +942,13 @@ public Builder clearSuccessCount() { return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return The failureCount. */ @java.lang.Override @@ -1066,14 +956,11 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @param value The failureCount to set. * @return This builder for chaining. */ @@ -1085,14 +972,11 @@ public Builder setFailureCount(long value) { return this; } /** - * - * *
      * Count of entries that encountered errors while processing.
      * 
* * int64 failure_count = 4; - * * @return This builder for chaining. */ public Builder clearFailureCount() { @@ -1101,9 +985,9 @@ public Builder clearFailureCount() { 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); } @@ -1113,43 +997,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) - private static final com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata(); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeDocumentsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,8 +1043,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java similarity index 73% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java index 731a8c54c6e2..8fc85ae8a96c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/purge_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface PurgeDocumentsMetadataOrBuilder - extends +public interface PurgeDocumentsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface PurgeDocumentsMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
@@ -97,27 +65,21 @@ public interface PurgeDocumentsMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Count of entries that were deleted successfully.
    * 
* * int64 success_count = 3; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
    * Count of entries that encountered errors while processing.
    * 
* * int64 failure_count = 4; - * * @return The failureCount. */ long getFailureCount(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java index 0ce0e03b9727..f60bd837ad4d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/purge_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest}
  */
-public final class PurgeDocumentsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PurgeDocumentsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest)
     PurgeDocumentsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PurgeDocumentsRequest.newBuilder() to construct.
   private PurgeDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PurgeDocumentsRequest() {
     parent_ = "";
     filter_ = "";
@@ -46,41 +28,34 @@ private PurgeDocumentsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PurgeDocumentsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.class,
-            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.class, com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 @@ -89,32 +64,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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. Filter matching documents to purge. Only currently supported
    * value is
@@ -136,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -145,15 +114,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. Filter matching documents to purge. Only currently supported
    * value is
@@ -161,15 +129,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 { @@ -180,15 +149,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** - * - * *
    * Actually performs the purge. If `force` is set to false, return the
    * expected purge count without deleting any documents.
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -197,7 +163,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,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_); } @@ -235,7 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,17 +212,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.discoveryengine.v1beta.PurgeDocumentsRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest other = - (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) obj; + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest other = (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,111 +241,106 @@ 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest 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.discoveryengine.v1beta.PurgeDocumentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest 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
    * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
@@ -385,32 +349,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest}
    */
-  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.discoveryengine.v1beta.PurgeDocumentsRequest)
       com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.class,
-              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.class, com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,14 +387,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.getDefaultInstance();
     }
 
@@ -444,17 +408,13 @@ public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest result =
-          new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest result = new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -471,39 +431,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -511,9 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -553,31 +510,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                force_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              force_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -587,28 +540,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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,24 +565,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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 { @@ -642,41 +587,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string 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() { @@ -686,24 +620,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -713,8 +641,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -722,13 +648,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; @@ -737,8 +663,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -746,14 +670,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 { @@ -761,8 +686,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -770,22 +693,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -793,7 +712,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -803,8 +721,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. Filter matching documents to purge. Only currently supported
      * value is
@@ -812,14 +728,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -827,17 +741,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Actually performs the purge. If `force` is set to false, return the
      * expected purge count without deleting any documents.
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -845,15 +756,12 @@ public boolean getForce() { return force_; } /** - * - * *
      * Actually performs the purge. If `force` is set to false, return the
      * expected purge count without deleting any documents.
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ @@ -865,15 +773,12 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * Actually performs the purge. If `force` is set to false, return the
      * expected purge count without deleting any documents.
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -882,9 +787,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -894,13 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) - private static final com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest(); } @@ -909,27 +813,27 @@ public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeDocumentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +848,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java similarity index 59% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java index 9d69b93a225e..d2e034348766 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/purge_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface PurgeDocumentsRequestOrBuilder - extends +public interface PurgeDocumentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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 resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
    * 
* - * - * string 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. Filter matching documents to purge. Only currently supported
    * value is
@@ -64,13 +37,10 @@ public interface PurgeDocumentsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. Filter matching documents to purge. Only currently supported
    * value is
@@ -78,21 +48,18 @@ public interface PurgeDocumentsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Actually performs the purge. If `force` is set to false, return the
    * expected purge count without deleting any documents.
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java index ecdb63ad2c4c..d6bc2be8a32e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/purge_config.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Response message for
  * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
@@ -30,52 +13,48 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse}
  */
-public final class PurgeDocumentsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PurgeDocumentsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse)
     PurgeDocumentsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PurgeDocumentsResponse.newBuilder() to construct.
   private PurgeDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PurgeDocumentsResponse() {
-    purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    purgeSample_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PurgeDocumentsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-        .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.class,
-            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.class, com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.Builder.class);
   }
 
   public static final int PURGE_COUNT_FIELD_NUMBER = 1;
   private long purgeCount_ = 0L;
   /**
-   *
-   *
    * 
    * The total count of documents purged as a result of the operation.
    * 
* * int64 purge_count = 1; - * * @return The purgeCount. */ @java.lang.Override @@ -84,13 +63,10 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -98,15 +74,13 @@ public long getPurgeCount() {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return A list containing the purgeSample. */ - public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + public com.google.protobuf.ProtocolStringList + getPurgeSampleList() { return purgeSample_; } /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -114,15 +88,12 @@ public com.google.protobuf.ProtocolStringList getPurgeSampleList() {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return The count of purgeSample. */ public int getPurgeSampleCount() { return purgeSample_.size(); } /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -130,7 +101,6 @@ public int getPurgeSampleCount() {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The purgeSample at the given index. */ @@ -138,8 +108,6 @@ public java.lang.String getPurgeSample(int index) { return purgeSample_.get(index); } /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -147,16 +115,15 @@ public java.lang.String getPurgeSample(int index) {
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the purgeSample at the given index. */ - public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + public com.google.protobuf.ByteString + getPurgeSampleBytes(int index) { return purgeSample_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,7 +135,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 (purgeCount_ != 0L) { output.writeInt64(1, purgeCount_); } @@ -185,7 +153,8 @@ public int getSerializedSize() { size = 0; if (purgeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, purgeCount_); } { int dataSize = 0; @@ -203,16 +172,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.discoveryengine.v1beta.PurgeDocumentsResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse other = - (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) obj; + com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse other = (com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) obj; - if (getPurgeCount() != other.getPurgeCount()) return false; - if (!getPurgeSampleList().equals(other.getPurgeSampleList())) return false; + if (getPurgeCount() + != other.getPurgeCount()) return false; + if (!getPurgeSampleList() + .equals(other.getPurgeSampleList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +195,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPurgeCount()); if (getPurgeSampleCount() > 0) { hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getPurgeSampleList().hashCode(); @@ -236,104 +207,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse 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.discoveryengine.v1beta.PurgeDocumentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse 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
    * [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
@@ -343,50 +308,51 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse}
    */
-  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.discoveryengine.v1beta.PurgeDocumentsResponse)
       com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.class,
-              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.class, com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       purgeCount_ = 0L;
-      purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      purgeSample_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto
-          .internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.PurgeConfigProto.internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.getDefaultInstance();
     }
 
@@ -401,17 +367,13 @@ public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse result =
-          new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse result = new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.purgeCount_ = purgeCount_;
@@ -426,39 +388,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -466,9 +427,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.getDefaultInstance()) return this;
       if (other.getPurgeCount() != 0L) {
         setPurgeCount(other.getPurgeCount());
       }
@@ -508,26 +467,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                purgeCount_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePurgeSampleIsMutable();
-                purgeSample_.add(s);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              purgeCount_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePurgeSampleIsMutable();
+              purgeSample_.add(s);
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -537,19 +493,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long purgeCount_;
+    private long purgeCount_ ;
     /**
-     *
-     *
      * 
      * The total count of documents purged as a result of the operation.
      * 
* * int64 purge_count = 1; - * * @return The purgeCount. */ @java.lang.Override @@ -557,14 +509,11 @@ public long getPurgeCount() { return purgeCount_; } /** - * - * *
      * The total count of documents purged as a result of the operation.
      * 
* * int64 purge_count = 1; - * * @param value The purgeCount to set. * @return This builder for chaining. */ @@ -576,14 +525,11 @@ public Builder setPurgeCount(long value) { return this; } /** - * - * *
      * The total count of documents purged as a result of the operation.
      * 
* * int64 purge_count = 1; - * * @return This builder for chaining. */ public Builder clearPurgeCount() { @@ -595,7 +541,6 @@ public Builder clearPurgeCount() { private com.google.protobuf.LazyStringArrayList purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePurgeSampleIsMutable() { if (!purgeSample_.isModifiable()) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); @@ -603,8 +548,6 @@ private void ensurePurgeSampleIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -612,16 +555,14 @@ private void ensurePurgeSampleIsMutable() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return A list containing the purgeSample. */ - public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + public com.google.protobuf.ProtocolStringList + getPurgeSampleList() { purgeSample_.makeImmutable(); return purgeSample_; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -629,15 +570,12 @@ public com.google.protobuf.ProtocolStringList getPurgeSampleList() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return The count of purgeSample. */ public int getPurgeSampleCount() { return purgeSample_.size(); } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -645,7 +583,6 @@ public int getPurgeSampleCount() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The purgeSample at the given index. */ @@ -653,8 +590,6 @@ public java.lang.String getPurgeSample(int index) { return purgeSample_.get(index); } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -662,16 +597,14 @@ public java.lang.String getPurgeSample(int index) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the purgeSample at the given index. */ - public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + public com.google.protobuf.ByteString + getPurgeSampleBytes(int index) { return purgeSample_.getByteString(index); } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -679,15 +612,13 @@ public com.google.protobuf.ByteString getPurgeSampleBytes(int index) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The purgeSample to set. * @return This builder for chaining. */ - public Builder setPurgeSample(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPurgeSample( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePurgeSampleIsMutable(); purgeSample_.set(index, value); bitField0_ |= 0x00000002; @@ -695,8 +626,6 @@ public Builder setPurgeSample(int index, java.lang.String value) { return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -704,14 +633,12 @@ public Builder setPurgeSample(int index, java.lang.String value) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param value The purgeSample to add. * @return This builder for chaining. */ - public Builder addPurgeSample(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPurgeSample( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePurgeSampleIsMutable(); purgeSample_.add(value); bitField0_ |= 0x00000002; @@ -719,8 +646,6 @@ public Builder addPurgeSample(java.lang.String value) { return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -728,20 +653,19 @@ public Builder addPurgeSample(java.lang.String value) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param values The purgeSample to add. * @return This builder for chaining. */ - public Builder addAllPurgeSample(java.lang.Iterable values) { + public Builder addAllPurgeSample( + java.lang.Iterable values) { ensurePurgeSampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, purgeSample_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -749,19 +673,16 @@ public Builder addAllPurgeSample(java.lang.Iterable values) {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPurgeSample() { - purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * A sample of document names that will be deleted. Only populated if `force`
      * is set to false. A max of 100 names will be returned and the names are
@@ -769,14 +690,12 @@ public Builder clearPurgeSample() {
      * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the purgeSample to add. * @return This builder for chaining. */ - public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPurgeSampleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePurgeSampleIsMutable(); purgeSample_.add(value); @@ -784,9 +703,9 @@ public Builder addPurgeSampleBytes(com.google.protobuf.ByteString 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); } @@ -796,43 +715,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) - private static final com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse(); } - public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeDocumentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeDocumentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,8 +761,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java index ca1e0e82133b..d28143274f7f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsResponseOrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/purge_config.proto package com.google.cloud.discoveryengine.v1beta; -public interface PurgeDocumentsResponseOrBuilder - extends +public interface PurgeDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The total count of documents purged as a result of the operation.
    * 
* * int64 purge_count = 1; - * * @return The purgeCount. */ long getPurgeCount(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -46,13 +25,11 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return A list containing the purgeSample. */ - java.util.List getPurgeSampleList(); + java.util.List + getPurgeSampleList(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -60,13 +37,10 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @return The count of purgeSample. */ int getPurgeSampleCount(); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -74,14 +48,11 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The purgeSample at the given index. */ java.lang.String getPurgeSample(int index); /** - * - * *
    * A sample of document names that will be deleted. Only populated if `force`
    * is set to false. A max of 100 names will be returned and the names are
@@ -89,9 +60,9 @@ public interface PurgeDocumentsResponseOrBuilder
    * 
* * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the purgeSample at the given index. */ - com.google.protobuf.ByteString getPurgeSampleBytes(int index); + com.google.protobuf.ByteString + getPurgeSampleBytes(int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java similarity index 77% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java index e109722cc534..58ebe39b0274 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/recommendation_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for Recommend method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.RecommendRequest} */ -public final class RecommendRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecommendRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RecommendRequest) RecommendRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecommendRequest.newBuilder() to construct. private RecommendRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecommendRequest() { servingConfig_ = ""; filter_ = ""; @@ -44,45 +26,42 @@ private RecommendRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecommendRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_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 8: return internalGetUserLabels(); 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.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.RecommendRequest.class, - com.google.cloud.discoveryengine.v1beta.RecommendRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.RecommendRequest.class, com.google.cloud.discoveryengine.v1beta.RecommendRequest.Builder.class); } public static final int SERVING_CONFIG_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object servingConfig_ = ""; /** - * - * *
    * Required. Full resource name of the format:
    * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -91,10 +70,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * least one serving config  for it.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ @java.lang.Override @@ -103,15 +79,14 @@ public java.lang.String getServingConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; } } /** - * - * *
    * Required. Full resource name of the format:
    * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -120,18 +95,17 @@ public java.lang.String getServingConfig() {
    * least one serving config  for it.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -142,8 +116,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.UserEvent userEvent_; /** - * - * *
    * Required. Context about the user, what they are looking at and what action
    * they took to trigger the Recommend request. Note that this user event
@@ -163,10 +135,7 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
    * unset.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ @java.lang.Override @@ -174,8 +143,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 Recommend request. Note that this user event
@@ -195,21 +162,14 @@ public boolean hasUserEvent() {
    * unset.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent() { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } /** - * - * *
    * Required. Context about the user, what they are looking at and what action
    * they took to trigger the Recommend request. Note that this user event
@@ -229,22 +189,16 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent() {
    * unset.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder() { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Maximum number of results to return. Set this property
    * to the number of recommendation results needed. If zero, the service will
@@ -253,7 +207,6 @@ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOr
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -262,12 +215,9 @@ public int getPageSize() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter for restricting recommendation results with a length limit of 5,000
    * characters. Currently, only filter expressions on the `filter_tags`
@@ -291,7 +241,6 @@ public int getPageSize() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -300,15 +249,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; } } /** - * - * *
    * Filter for restricting recommendation results with a length limit of 5,000
    * characters. Currently, only filter expressions on the `filter_tags`
@@ -332,15 +280,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @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 { @@ -351,8 +300,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** - * - * *
    * Use validate only mode for this recommendation query. If set to true, a
    * fake model will be used that returns arbitrary Document IDs.
@@ -361,7 +308,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * bool validate_only = 5; - * * @return The validateOnly. */ @java.lang.Override @@ -370,37 +316,32 @@ public boolean getValidateOnly() { } 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.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - @SuppressWarnings("serial") - 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_; } - public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Additional domain specific parameters for the recommendations.
    *
@@ -431,21 +372,20 @@ public int getParamsCount() {
    * map<string, .google.protobuf.Value> params = 6;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -480,8 +420,6 @@ public java.util.Map getParamsMap()
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -512,19 +450,17 @@ public java.util.Map getParamsMap()
    * map<string, .google.protobuf.Value> params = 6;
    */
   @java.lang.Override
-  public /* nullable */ com.google.protobuf.Value getParamsOrDefault(
+  public /* nullable */
+com.google.protobuf.Value getParamsOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetParams().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -555,11 +491,11 @@ public java.util.Map getParamsMap()
    * map<string, .google.protobuf.Value> params = 6;
    */
   @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();
     }
@@ -567,34 +503,32 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) {
   }
 
   public static final int USER_LABELS_FIELD_NUMBER = 8;
-
   private static final class UserLabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto
-                .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_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.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField userLabels_;
-
-  private com.google.protobuf.MapField internalGetUserLabels() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> userLabels_;
+  private com.google.protobuf.MapField
+  internalGetUserLabels() {
     if (userLabels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          UserLabelsDefaultEntryHolder.defaultEntry);
     }
     return userLabels_;
   }
-
   public int getUserLabelsCount() {
     return internalGetUserLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -618,21 +552,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -660,8 +593,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -685,19 +616,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -721,11 +650,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -733,7 +662,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -745,7 +673,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(servingConfig_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_);
     }
@@ -761,10 +690,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (validateOnly_ != false) {
       output.writeBool(5, validateOnly_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 6);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 8);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        6);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetUserLabels(),
+        UserLabelsDefaultEntryHolder.defaultEntry,
+        8);
     getUnknownFields().writeTo(output);
   }
 
@@ -778,36 +715,39 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, servingConfig_);
     }
     if (userEvent_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUserEvent());
     }
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(3, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
     }
     if (validateOnly_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_);
-    }
-    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__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry userLabels__ =
-          UserLabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, userLabels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(5, validateOnly_);
+    }
+    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__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(8, userLabels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -817,24 +757,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.discoveryengine.v1beta.RecommendRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.RecommendRequest other =
-        (com.google.cloud.discoveryengine.v1beta.RecommendRequest) obj;
+    com.google.cloud.discoveryengine.v1beta.RecommendRequest other = (com.google.cloud.discoveryengine.v1beta.RecommendRequest) obj;
 
-    if (!getServingConfig().equals(other.getServingConfig())) return false;
+    if (!getServingConfig()
+        .equals(other.getServingConfig())) return false;
     if (hasUserEvent() != other.hasUserEvent()) return false;
     if (hasUserEvent()) {
-      if (!getUserEvent().equals(other.getUserEvent())) return false;
-    }
-    if (getPageSize() != other.getPageSize()) return false;
-    if (!getFilter().equals(other.getFilter())) return false;
-    if (getValidateOnly() != other.getValidateOnly()) return false;
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
-    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
+      if (!getUserEvent()
+          .equals(other.getUserEvent())) return false;
+    }
+    if (getPageSize()
+        != other.getPageSize()) return false;
+    if (!getFilter()
+        .equals(other.getFilter())) return false;
+    if (getValidateOnly()
+        != other.getValidateOnly()) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
+    if (!internalGetUserLabels().equals(
+        other.internalGetUserLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -857,7 +803,8 @@ public int hashCode() {
     hash = (37 * hash) + FILTER_FIELD_NUMBER;
     hash = (53 * hash) + getFilter().hashCode();
     hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getValidateOnly());
     if (!internalGetParams().getMap().isEmpty()) {
       hash = (37 * hash) + PARAMS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetParams().hashCode();
@@ -872,160 +819,157 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.RecommendRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.RecommendRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.RecommendRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.RecommendRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest 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.discoveryengine.v1beta.RecommendRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.RecommendRequest 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 Recommend method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.RecommendRequest} */ - 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.discoveryengine.v1beta.RecommendRequest) com.google.cloud.discoveryengine.v1beta.RecommendRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_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 8: return internalGetUserLabels(); 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 8: return internalGetMutableUserLabels(); 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.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.RecommendRequest.class, - com.google.cloud.discoveryengine.v1beta.RecommendRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.RecommendRequest.class, com.google.cloud.discoveryengine.v1beta.RecommendRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.RecommendRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1045,9 +989,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor; } @java.lang.Override @@ -1066,11 +1010,8 @@ public com.google.cloud.discoveryengine.v1beta.RecommendRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.RecommendRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.RecommendRequest result = - new com.google.cloud.discoveryengine.v1beta.RecommendRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.RecommendRequest result = new com.google.cloud.discoveryengine.v1beta.RecommendRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1081,7 +1022,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.RecommendRequ result.servingConfig_ = servingConfig_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.userEvent_ = userEventBuilder_ == null ? userEvent_ : userEventBuilder_.build(); + result.userEvent_ = userEventBuilder_ == null + ? userEvent_ + : userEventBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; @@ -1106,39 +1049,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.RecommendRequ 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.discoveryengine.v1beta.RecommendRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.RecommendRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.RecommendRequest)other); } else { super.mergeFrom(other); return this; @@ -1146,8 +1088,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.RecommendRequest other) { - if (other == com.google.cloud.discoveryengine.v1beta.RecommendRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.RecommendRequest.getDefaultInstance()) return this; if (!other.getServingConfig().isEmpty()) { servingConfig_ = other.servingConfig_; bitField0_ |= 0x00000001; @@ -1167,9 +1108,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.RecommendReques if (other.getValidateOnly() != false) { setValidateOnly(other.getValidateOnly()); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); bitField0_ |= 0x00000020; - internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + internalGetMutableUserLabels().mergeFrom( + other.internalGetUserLabels()); bitField0_ |= 0x00000040; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1197,67 +1140,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - servingConfig_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUserEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParams() - .getMutableMap() - .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - com.google.protobuf.MapEntry userLabels__ = - input.readMessage( - UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableUserLabels() - .getMutableMap() - .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + servingConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUserEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParams().getMutableMap().put( + params__.getKey(), params__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + com.google.protobuf.MapEntry + userLabels__ = input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableUserLabels().getMutableMap().put( + userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1267,13 +1200,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object servingConfig_ = ""; /** - * - * *
      * Required. Full resource name of the format:
      * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -1282,16 +1212,14 @@ public Builder mergeFrom(
      * least one serving config  for it.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ public java.lang.String getServingConfig() { java.lang.Object ref = servingConfig_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; @@ -1300,8 +1228,6 @@ public java.lang.String getServingConfig() { } } /** - * - * *
      * Required. Full resource name of the format:
      * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -1310,17 +1236,16 @@ public java.lang.String getServingConfig() {
      * least one serving config  for it.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -1328,8 +1253,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } } /** - * - * *
      * Required. Full resource name of the format:
      * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -1338,25 +1261,19 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
      * least one serving config  for it.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } servingConfig_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Full resource name of the format:
      * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -1365,10 +1282,7 @@ public Builder setServingConfig(java.lang.String value) {
      * least one serving config  for it.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearServingConfig() { @@ -1378,8 +1292,6 @@ public Builder clearServingConfig() { return this; } /** - * - * *
      * Required. Full resource name of the format:
      * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -1388,17 +1300,13 @@ public Builder clearServingConfig() {
      * least one serving config  for it.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingConfig_ = value; bitField0_ |= 0x00000001; @@ -1408,13 +1316,8 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> - userEventBuilder_; + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> userEventBuilder_; /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1434,18 +1337,13 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) {
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1465,24 +1363,17 @@ public boolean hasUserEvent() {
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1beta.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 Recommend request. Note that this user event
@@ -1502,9 +1393,7 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent() {
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent value) { if (userEventBuilder_ == null) { @@ -1520,8 +1409,6 @@ public Builder setUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent va return this; } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1541,9 +1428,7 @@ public Builder setUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent va
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent( com.google.cloud.discoveryengine.v1beta.UserEvent.Builder builderForValue) { @@ -1557,8 +1442,6 @@ public Builder setUserEvent( return this; } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1578,16 +1461,13 @@ public Builder setUserEvent(
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent value) { if (userEventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && userEvent_ != null - && userEvent_ - != com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + userEvent_ != null && + userEvent_ != com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()) { getUserEventBuilder().mergeFrom(value); } else { userEvent_ = value; @@ -1600,8 +1480,6 @@ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent return this; } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1621,9 +1499,7 @@ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvent() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1636,8 +1512,6 @@ public Builder clearUserEvent() { return this; } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1657,9 +1531,7 @@ public Builder clearUserEvent() {
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder getUserEventBuilder() { bitField0_ |= 0x00000002; @@ -1667,8 +1539,6 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder getUserEventBui return getUserEventFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1688,22 +1558,17 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder getUserEventBui
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? + com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } } /** - * - * *
      * Required. Context about the user, what they are looking at and what action
      * they took to trigger the Recommend request. Note that this user event
@@ -1723,31 +1588,24 @@ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOr
      * unset.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder>( - getUserEvent(), getParentForChildren(), isClean()); + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder>( + getUserEvent(), + getParentForChildren(), + isClean()); userEvent_ = null; } return userEventBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of results to return. Set this property
      * to the number of recommendation results needed. If zero, the service will
@@ -1756,7 +1614,6 @@ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOr
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -1764,8 +1621,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of results to return. Set this property
      * to the number of recommendation results needed. If zero, the service will
@@ -1774,7 +1629,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1786,8 +1640,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of results to return. Set this property
      * to the number of recommendation results needed. If zero, the service will
@@ -1796,7 +1648,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1808,8 +1659,6 @@ public Builder clearPageSize() { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter for restricting recommendation results with a length limit of 5,000
      * characters. Currently, only filter expressions on the `filter_tags`
@@ -1833,13 +1682,13 @@ public Builder clearPageSize() {
      * 
* * string filter = 4; - * * @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; @@ -1848,8 +1697,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter for restricting recommendation results with a length limit of 5,000
      * characters. Currently, only filter expressions on the `filter_tags`
@@ -1873,14 +1720,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @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 { @@ -1888,8 +1736,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter for restricting recommendation results with a length limit of 5,000
      * characters. Currently, only filter expressions on the `filter_tags`
@@ -1913,22 +1759,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter for restricting recommendation results with a length limit of 5,000
      * characters. Currently, only filter expressions on the `filter_tags`
@@ -1952,7 +1794,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1962,8 +1803,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter for restricting recommendation results with a length limit of 5,000
      * characters. Currently, only filter expressions on the `filter_tags`
@@ -1987,14 +1826,12 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -2002,10 +1839,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Use validate only mode for this recommendation query. If set to true, a
      * fake model will be used that returns arbitrary Document IDs.
@@ -2014,7 +1849,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validate_only = 5; - * * @return The validateOnly. */ @java.lang.Override @@ -2022,8 +1856,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Use validate only mode for this recommendation query. If set to true, a
      * fake model will be used that returns arbitrary Document IDs.
@@ -2032,7 +1864,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 5; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -2044,8 +1875,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Use validate only mode for this recommendation query. If set to true, a
      * fake model will be used that returns arbitrary Document IDs.
@@ -2054,7 +1883,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 5; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -2064,20 +1892,21 @@ public Builder clearValidateOnly() { 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() { 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() { 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(); @@ -2086,13 +1915,10 @@ public Builder clearValidateOnly() { onChanged(); return params_; } - public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Additional domain specific parameters for the recommendations.
      *
@@ -2123,21 +1949,20 @@ public int getParamsCount() {
      * map<string, .google.protobuf.Value> params = 6;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Additional domain specific parameters for the recommendations.
      *
@@ -2172,8 +1997,6 @@ public java.util.Map getParamsMap()
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain specific parameters for the recommendations.
      *
@@ -2204,19 +2027,17 @@ public java.util.Map getParamsMap()
      * map<string, .google.protobuf.Value> params = 6;
      */
     @java.lang.Override
-    public /* nullable */ com.google.protobuf.Value getParamsOrDefault(
+    public /* nullable */
+com.google.protobuf.Value getParamsOrDefault(
         java.lang.String key,
         /* nullable */
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetParams().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Additional domain specific parameters for the recommendations.
      *
@@ -2247,25 +2068,23 @@ public java.util.Map getParamsMap()
      * map<string, .google.protobuf.Value> params = 6;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearParams() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain specific parameters for the recommendations.
      *
@@ -2295,22 +2114,23 @@ public Builder clearParams() {
      *
      * map<string, .google.protobuf.Value> params = 6;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional domain specific parameters for the recommendations.
      *
@@ -2340,20 +2160,17 @@ public java.util.Map getMutablePara
      *
      * map<string, .google.protobuf.Value> params = 6;
      */
-    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");
-      }
-      internalGetMutableParams().getMutableMap().put(key, value);
+    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"); }
+      internalGetMutableParams().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional domain specific parameters for the recommendations.
      *
@@ -2383,14 +2200,16 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value)
      *
      * map<string, .google.protobuf.Value> params = 6;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+    public Builder putAllParams(
+        java.util.Map values) {
+      internalGetMutableParams().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
-    private com.google.protobuf.MapField userLabels_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> userLabels_;
     private com.google.protobuf.MapField
         internalGetUserLabels() {
       if (userLabels_ == null) {
@@ -2399,12 +2218,11 @@ public Builder putAllParams(java.util.Map
         internalGetMutableUserLabels() {
       if (userLabels_ == null) {
-        userLabels_ =
-            com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry);
+        userLabels_ = com.google.protobuf.MapField.newMapField(
+            UserLabelsDefaultEntryHolder.defaultEntry);
       }
       if (!userLabels_.isMutable()) {
         userLabels_ = userLabels_.copy();
@@ -2413,13 +2231,10 @@ public Builder putAllParams(java.util.Map
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2443,21 +2258,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2485,8 +2299,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2510,19 +2322,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2546,25 +2356,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2587,22 +2395,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00000040;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2625,20 +2434,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -2661,14 +2467,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 8;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000040;
       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);
     }
 
@@ -2678,12 +2486,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RecommendRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RecommendRequest)
   private static final com.google.cloud.discoveryengine.v1beta.RecommendRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RecommendRequest();
   }
@@ -2692,27 +2500,27 @@ public static com.google.cloud.discoveryengine.v1beta.RecommendRequest getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RecommendRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public RecommendRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2727,4 +2535,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1beta.RecommendRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java
similarity index 88%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java
index d5a4d9daf2c0..3cb72590b6b0 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/recommendation_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface RecommendRequestOrBuilder
-    extends
+public interface RecommendRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RecommendRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Full resource name of the format:
    * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -34,16 +16,11 @@ public interface RecommendRequestOrBuilder
    * least one serving config  for it.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ java.lang.String getServingConfig(); /** - * - * *
    * Required. Full resource name of the format:
    * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
@@ -52,17 +29,13 @@ public interface RecommendRequestOrBuilder
    * least one serving config  for it.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ - com.google.protobuf.ByteString getServingConfigBytes(); + com.google.protobuf.ByteString + getServingConfigBytes(); /** - * - * *
    * Required. Context about the user, what they are looking at and what action
    * they took to trigger the Recommend request. Note that this user event
@@ -82,16 +55,11 @@ public interface RecommendRequestOrBuilder
    * unset.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.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 Recommend request. Note that this user event
@@ -111,16 +79,11 @@ public interface RecommendRequestOrBuilder
    * unset.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent(); /** - * - * *
    * Required. Context about the user, what they are looking at and what action
    * they took to trigger the Recommend request. Note that this user event
@@ -140,15 +103,11 @@ public interface RecommendRequestOrBuilder
    * unset.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder(); /** - * - * *
    * Maximum number of results to return. Set this property
    * to the number of recommendation results needed. If zero, the service will
@@ -157,14 +116,11 @@ public interface RecommendRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Filter for restricting recommendation results with a length limit of 5,000
    * characters. Currently, only filter expressions on the `filter_tags`
@@ -188,13 +144,10 @@ public interface RecommendRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter for restricting recommendation results with a length limit of 5,000
    * characters. Currently, only filter expressions on the `filter_tags`
@@ -218,14 +171,12 @@ public interface RecommendRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Use validate only mode for this recommendation query. If set to true, a
    * fake model will be used that returns arbitrary Document IDs.
@@ -234,14 +185,11 @@ public interface RecommendRequestOrBuilder
    * 
* * bool validate_only = 5; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Additional domain specific parameters for the recommendations.
    *
@@ -273,8 +221,6 @@ public interface RecommendRequestOrBuilder
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -304,13 +250,15 @@ public interface RecommendRequestOrBuilder
    *
    * map<string, .google.protobuf.Value> params = 6;
    */
-  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();
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -340,10 +288,9 @@ public interface RecommendRequestOrBuilder
    *
    * map<string, .google.protobuf.Value> params = 6;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -374,13 +321,11 @@ public interface RecommendRequestOrBuilder
    * map<string, .google.protobuf.Value> params = 6;
    */
   /* 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);
   /**
-   *
-   *
    * 
    * Additional domain specific parameters for the recommendations.
    *
@@ -410,11 +355,10 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, .google.protobuf.Value> params = 6;
    */
-  com.google.protobuf.Value getParamsOrThrow(java.lang.String key);
+  com.google.protobuf.Value getParamsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -439,8 +383,6 @@ com.google.protobuf.Value getParamsOrDefault(
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -463,13 +405,15 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -492,10 +436,9 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -519,13 +462,11 @@ com.google.protobuf.Value getParamsOrDefault(
    * map<string, string> user_labels = 8;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -548,5 +489,6 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 8;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java
similarity index 66%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java
index 5d4c32ff1f5f..1f468cd22802 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponse.java
@@ -1,128 +1,96 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/recommendation_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Response message for Recommend method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.RecommendResponse} */ -public final class RecommendResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecommendResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RecommendResponse) RecommendResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecommendResponse.newBuilder() to construct. private RecommendResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecommendResponse() { results_ = java.util.Collections.emptyList(); attributionToken_ = ""; - missingIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecommendResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.class, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.Builder.class); + com.google.cloud.discoveryengine.v1beta.RecommendResponse.class, com.google.cloud.discoveryengine.v1beta.RecommendResponse.Builder.class); } - public interface RecommendationResultOrBuilder - extends + public interface RecommendationResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Resource ID of the recommended Document.
      * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
      * Resource ID of the recommended Document.
      * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
      * Set if `returnDocument` is set to true in
      * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
      * Set if `returnDocument` is set to true in
      * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return The document. */ com.google.cloud.discoveryengine.v1beta.Document getDocument(); /** - * - * *
      * Set if `returnDocument` is set to true in
      * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -133,8 +101,6 @@ public interface RecommendationResultOrBuilder
     com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder();
 
     /**
-     *
-     *
      * 
      * Additional Document metadata / annotations.
      *
@@ -149,8 +115,6 @@ public interface RecommendationResultOrBuilder
      */
     int getMetadataCount();
     /**
-     *
-     *
      * 
      * Additional Document metadata / annotations.
      *
@@ -163,13 +127,15 @@ public interface RecommendationResultOrBuilder
      *
      * map<string, .google.protobuf.Value> metadata = 3;
      */
-    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 Document metadata / annotations.
      *
@@ -182,10 +148,9 @@ public interface RecommendationResultOrBuilder
      *
      * map<string, .google.protobuf.Value> metadata = 3;
      */
-    java.util.Map getMetadataMap();
+    java.util.Map
+    getMetadataMap();
     /**
-     *
-     *
      * 
      * Additional Document metadata / annotations.
      *
@@ -199,13 +164,11 @@ public interface RecommendationResultOrBuilder
      * map<string, .google.protobuf.Value> metadata = 3;
      */
     /* 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 Document metadata / annotations.
      *
@@ -218,79 +181,71 @@ com.google.protobuf.Value getMetadataOrDefault(
      *
      * map<string, .google.protobuf.Value> metadata = 3;
      */
-    com.google.protobuf.Value getMetadataOrThrow(java.lang.String key);
+    com.google.protobuf.Value getMetadataOrThrow(
+        java.lang.String key);
   }
   /**
-   *
-   *
    * 
    * RecommendationResult represents a generic recommendation result with
    * associated metadata.
    * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult} */ - public static final class RecommendationResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RecommendationResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) RecommendationResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecommendationResult.newBuilder() to construct. private RecommendationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecommendationResult() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecommendationResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_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 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.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.class, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - .class); + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.class, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder.class); } public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
      * Resource ID of the recommended Document.
      * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -299,29 +254,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; } } /** - * - * *
      * Resource ID of the recommended Document.
      * 
* * 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 { @@ -332,15 +287,12 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.Document document_; /** - * - * *
      * Set if `returnDocument` is set to true in
      * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return Whether the document field is set. */ @java.lang.Override @@ -348,26 +300,19 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
      * Set if `returnDocument` is set to true in
      * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } /** - * - * *
      * Set if `returnDocument` is set to true in
      * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -377,43 +322,36 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocument() {
      */
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() {
-      return document_ == null
-          ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()
-          : document_;
+      return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_;
     }
 
     public static final int METADATA_FIELD_NUMBER = 3;
-
     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.discoveryengine.v1beta.RecommendationServiceProto
-                          .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_descriptor,
-                      com.google.protobuf.WireFormat.FieldType.STRING,
-                      "",
-                      com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                      com.google.protobuf.Value.getDefaultInstance());
+              .newDefaultInstance(
+                  com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_descriptor, 
+                  com.google.protobuf.WireFormat.FieldType.STRING,
+                  "",
+                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                  com.google.protobuf.Value.getDefaultInstance());
     }
-
     @SuppressWarnings("serial")
-    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_;
     }
-
     public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Additional Document metadata / annotations.
      *
@@ -427,21 +365,20 @@ public int getMetadataCount() {
      * map<string, .google.protobuf.Value> metadata = 3;
      */
     @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 Document metadata / annotations.
      *
@@ -459,8 +396,6 @@ public java.util.Map getMetadataMap
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional Document metadata / annotations.
      *
@@ -474,20 +409,17 @@ public java.util.Map getMetadataMap
      * map<string, .google.protobuf.Value> metadata = 3;
      */
     @java.lang.Override
-    public /* nullable */ com.google.protobuf.Value getMetadataOrDefault(
+    public /* nullable */
+com.google.protobuf.Value getMetadataOrDefault(
         java.lang.String key,
         /* nullable */
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map 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 Document metadata / annotations.
      *
@@ -501,10 +433,9 @@ public java.util.Map getMetadataMap
      * map<string, .google.protobuf.Value> metadata = 3;
      */
     @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)) {
@@ -514,7 +445,6 @@ public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -526,15 +456,20 @@ 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 (document_ != null) {
         output.writeMessage(2, getDocument());
       }
-      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-          output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3);
+      com.google.protobuf.GeneratedMessageV3
+        .serializeStringMapTo(
+          output,
+          internalGetMetadata(),
+          MetadataDefaultEntryHolder.defaultEntry,
+          3);
       getUnknownFields().writeTo(output);
     }
 
@@ -548,17 +483,18 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
       }
       if (document_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument());
-      }
-      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(3, metadata__);
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getDocument());
+      }
+      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(3, metadata__);
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -568,22 +504,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.discoveryengine.v1beta.RecommendResponse.RecommendationResult)) {
+      if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult)) {
         return super.equals(obj);
       }
-      com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult other =
-          (com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) obj;
+      com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult other = (com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) obj;
 
-      if (!getId().equals(other.getId())) return false;
+      if (!getId()
+          .equals(other.getId())) return false;
       if (hasDocument() != other.hasDocument()) return false;
       if (hasDocument()) {
-        if (!getDocument().equals(other.getDocument())) return false;
+        if (!getDocument()
+            .equals(other.getDocument())) return false;
       }
-      if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+      if (!internalGetMetadata().equals(
+          other.internalGetMetadata())) return false;
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
@@ -610,101 +546,90 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult 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.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        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.discoveryengine.v1beta.RecommendResponse.RecommendationResult 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.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        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.discoveryengine.v1beta.RecommendResponse.RecommendationResult 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.discoveryengine.v1beta.RecommendResponse.RecommendationResult prototype) {
+    public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult 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
@@ -714,66 +639,62 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * RecommendationResult represents a generic recommendation result with
      * associated metadata.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult} */ - 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.discoveryengine.v1beta.RecommendResponse.RecommendationResult) com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: 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 3: 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.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .class, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .Builder.class); + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.class, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -789,23 +710,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - build() { - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult result = - buildPartial(); + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult build() { + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -813,26 +730,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - buildPartial() { - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult result = - new com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult buildPartial() { + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult result = new com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.metadata_ = internalGetMetadata(); @@ -844,56 +757,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult other) { - if (other - == com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult other) { + if (other == com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; @@ -902,7 +805,8 @@ public Builder mergeFrom( if (other.hasDocument()) { mergeDocument(other.getDocument()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -930,38 +834,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry - metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -971,25 +870,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
        * Resource ID of the recommended Document.
        * 
* * 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; @@ -998,21 +894,20 @@ public java.lang.String getId() { } } /** - * - * *
        * Resource ID of the recommended Document.
        * 
* * 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 { @@ -1020,35 +915,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
        * Resource ID of the recommended Document.
        * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Resource ID of the recommended Document.
        * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1058,21 +946,17 @@ public Builder clearId() { return this; } /** - * - * *
        * Resource ID of the recommended Document.
        * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -1082,49 +966,36 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> documentBuilder_; /** - * - * *
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
        * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
        * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return The document. */ public com.google.cloud.discoveryengine.v1beta.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1146,8 +1017,6 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document valu
         return this;
       }
       /**
-       *
-       *
        * 
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1167,8 +1036,6 @@ public Builder setDocument(
         return this;
       }
       /**
-       *
-       *
        * 
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1178,10 +1045,9 @@ public Builder setDocument(
        */
       public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document value) {
         if (documentBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && document_ != null
-              && document_
-                  != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            document_ != null &&
+            document_ != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) {
             getDocumentBuilder().mergeFrom(value);
           } else {
             document_ = value;
@@ -1194,8 +1060,6 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document va
         return this;
       }
       /**
-       *
-       *
        * 
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1214,8 +1078,6 @@ public Builder clearDocument() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1229,8 +1091,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuild
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1242,14 +1102,11 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
         if (documentBuilder_ != null) {
           return documentBuilder_.getMessageOrBuilder();
         } else {
-          return document_ == null
-              ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()
-              : document_;
+          return document_ == null ?
+              com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_;
         }
       }
       /**
-       *
-       *
        * 
        * Set if `returnDocument` is set to true in
        * [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
@@ -1258,24 +1115,21 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
        * .google.cloud.discoveryengine.v1beta.Document document = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.discoveryengine.v1beta.Document,
-              com.google.cloud.discoveryengine.v1beta.Document.Builder,
-              com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>
+          com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> 
           getDocumentFieldBuilder() {
         if (documentBuilder_ == null) {
-          documentBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.discoveryengine.v1beta.Document,
-                  com.google.cloud.discoveryengine.v1beta.Document.Builder,
-                  com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>(
-                  getDocument(), getParentForChildren(), isClean());
+          documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>(
+                  getDocument(),
+                  getParentForChildren(),
+                  isClean());
           document_ = null;
         }
         return documentBuilder_;
       }
 
-      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() {
         if (metadata_ == null) {
@@ -1284,12 +1138,11 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
         }
         return metadata_;
       }
-
       private com.google.protobuf.MapField
           internalGetMutableMetadata() {
         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();
@@ -1298,13 +1151,10 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
         onChanged();
         return metadata_;
       }
-
       public int getMetadataCount() {
         return internalGetMetadata().getMap().size();
       }
       /**
-       *
-       *
        * 
        * Additional Document metadata / annotations.
        *
@@ -1318,21 +1168,20 @@ public int getMetadataCount() {
        * map<string, .google.protobuf.Value> metadata = 3;
        */
       @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 Document metadata / annotations.
        *
@@ -1350,8 +1199,6 @@ public java.util.Map getMetadataMap
         return internalGetMetadata().getMap();
       }
       /**
-       *
-       *
        * 
        * Additional Document metadata / annotations.
        *
@@ -1365,20 +1212,17 @@ public java.util.Map getMetadataMap
        * map<string, .google.protobuf.Value> metadata = 3;
        */
       @java.lang.Override
-      public /* nullable */ com.google.protobuf.Value getMetadataOrDefault(
+      public /* nullable */
+com.google.protobuf.Value getMetadataOrDefault(
           java.lang.String key,
           /* nullable */
-          com.google.protobuf.Value defaultValue) {
-        if (key == null) {
-          throw new NullPointerException("map 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 Document metadata / annotations.
        *
@@ -1392,10 +1236,9 @@ public java.util.Map getMetadataMap
        * map<string, .google.protobuf.Value> metadata = 3;
        */
       @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)) {
@@ -1403,15 +1246,13 @@ public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) {
         }
         return map.get(key);
       }
-
       public Builder clearMetadata() {
         bitField0_ = (bitField0_ & ~0x00000004);
-        internalGetMutableMetadata().getMutableMap().clear();
+        internalGetMutableMetadata().getMutableMap()
+            .clear();
         return this;
       }
       /**
-       *
-       *
        * 
        * Additional Document metadata / annotations.
        *
@@ -1424,22 +1265,23 @@ public Builder clearMetadata() {
        *
        * map<string, .google.protobuf.Value> metadata = 3;
        */
-      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() {
         bitField0_ |= 0x00000004;
         return internalGetMutableMetadata().getMutableMap();
       }
       /**
-       *
-       *
        * 
        * Additional Document metadata / annotations.
        *
@@ -1452,20 +1294,17 @@ public java.util.Map getMutableMeta
        *
        * map<string, .google.protobuf.Value> metadata = 3;
        */
-      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");
-        }
-        internalGetMutableMetadata().getMutableMap().put(key, value);
+      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"); }
+        internalGetMutableMetadata().getMutableMap()
+            .put(key, value);
         bitField0_ |= 0x00000004;
         return this;
       }
       /**
-       *
-       *
        * 
        * Additional Document metadata / annotations.
        *
@@ -1480,11 +1319,11 @@ public Builder putMetadata(java.lang.String key, com.google.protobuf.Value value
        */
       public Builder putAllMetadata(
           java.util.Map values) {
-        internalGetMutableMetadata().getMutableMap().putAll(values);
+        internalGetMutableMetadata().getMutableMap()
+            .putAll(values);
         bitField0_ |= 0x00000004;
         return this;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1497,46 +1336,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult)
-    private static final com.google.cloud.discoveryengine.v1beta.RecommendResponse
-            .RecommendationResult
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult();
+      DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult();
     }
 
-    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        getDefaultInstance() {
+    public static com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public RecommendationResult parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public RecommendationResult parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1548,114 +1382,82 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int RESULTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
-  private java.util.List<
-          com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult>
-      results_;
+  private java.util.List results_;
   /**
-   *
-   *
    * 
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult> - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.RecommendResponse - .RecommendationResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getResults( - int index) { + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getResults(int index) { return results_.get(index); } /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder( + int index) { return results_.get(index); } public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object attributionToken_ = ""; /** - * - * *
    * A unique attribution token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -1664,7 +1466,6 @@ public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationR
    * 
* * string attribution_token = 2; - * * @return The attributionToken. */ @java.lang.Override @@ -1673,15 +1474,14 @@ public java.lang.String getAttributionToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; } } /** - * - * *
    * A unique attribution token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -1690,15 +1490,16 @@ public java.lang.String getAttributionToken() {
    * 
* * string attribution_token = 2; - * * @return The bytes for attributionToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -1707,50 +1508,41 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } public static final int MISSING_IDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList missingIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @return A list containing the missingIds. */ - public com.google.protobuf.ProtocolStringList getMissingIdsList() { + public com.google.protobuf.ProtocolStringList + getMissingIdsList() { return missingIds_; } /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @return The count of missingIds. */ public int getMissingIdsCount() { return missingIds_.size(); } /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @param index The index of the element to return. * @return The missingIds at the given index. */ @@ -1758,27 +1550,23 @@ public java.lang.String getMissingIds(int index) { return missingIds_.get(index); } /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the missingIds at the given index. */ - public com.google.protobuf.ByteString getMissingIdsBytes(int index) { + public com.google.protobuf.ByteString + getMissingIdsBytes(int index) { return missingIds_.getByteString(index); } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * True if
    * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only]
@@ -1786,7 +1574,6 @@ public com.google.protobuf.ByteString getMissingIdsBytes(int index) {
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1795,7 +1582,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1807,7 +1593,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)); } @@ -1830,7 +1617,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(attributionToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attributionToken_); @@ -1844,7 +1632,8 @@ public int getSerializedSize() { size += 1 * getMissingIdsList().size(); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1854,18 +1643,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.discoveryengine.v1beta.RecommendResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.RecommendResponse other = - (com.google.cloud.discoveryengine.v1beta.RecommendResponse) obj; + com.google.cloud.discoveryengine.v1beta.RecommendResponse other = (com.google.cloud.discoveryengine.v1beta.RecommendResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getAttributionToken().equals(other.getAttributionToken())) return false; - if (!getMissingIdsList().equals(other.getMissingIdsList())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getMissingIdsList() + .equals(other.getMissingIdsList())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1888,143 +1680,139 @@ public int hashCode() { hash = (53 * hash) + getMissingIdsList().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.RecommendResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.RecommendResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.RecommendResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.RecommendResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse 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.discoveryengine.v1beta.RecommendResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.RecommendResponse 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 Recommend method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.RecommendResponse} */ - 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.discoveryengine.v1beta.RecommendResponse) com.google.cloud.discoveryengine.v1beta.RecommendResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.class, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.Builder.class); + com.google.cloud.discoveryengine.v1beta.RecommendResponse.class, com.google.cloud.discoveryengine.v1beta.RecommendResponse.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.RecommendResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2037,15 +1825,16 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); attributionToken_ = ""; - missingIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); validateOnly_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.RecommendationServiceProto.internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; } @java.lang.Override @@ -2064,18 +1853,14 @@ public com.google.cloud.discoveryengine.v1beta.RecommendResponse build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.RecommendResponse buildPartial() { - com.google.cloud.discoveryengine.v1beta.RecommendResponse result = - new com.google.cloud.discoveryengine.v1beta.RecommendResponse(this); + com.google.cloud.discoveryengine.v1beta.RecommendResponse result = new com.google.cloud.discoveryengine.v1beta.RecommendResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.RecommendResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.RecommendResponse result) { if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -2105,39 +1890,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.RecommendResp 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.discoveryengine.v1beta.RecommendResponse) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.RecommendResponse) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.RecommendResponse)other); } else { super.mergeFrom(other); return this; @@ -2145,8 +1929,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.RecommendResponse other) { - if (other == com.google.cloud.discoveryengine.v1beta.RecommendResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.RecommendResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -2165,10 +1948,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.RecommendRespon 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_); } @@ -2218,47 +2000,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.RecommendResponse - .RecommendationResult.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - attributionToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMissingIdsIsMutable(); - missingIds_.add(s); - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + attributionToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingIdsIsMutable(); + missingIds_.add(s); + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2268,44 +2044,29 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult> - 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.discoveryengine.v1beta.RecommendResponse.RecommendationResult>( - results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder> - resultsBuilder_; + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder> resultsBuilder_; /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult> - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -2313,16 +2074,12 @@ private void ensureResultsIsMutable() { } } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -2332,19 +2089,14 @@ public int getResultsCount() { } } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - getResults(int index) { + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { @@ -2352,20 +2104,15 @@ public int getResultsCount() { } } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder setResults( - int index, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult value) { + int index, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2379,21 +2126,15 @@ public Builder setResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder setResults( - int index, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -2404,19 +2145,14 @@ public Builder setResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public Builder addResults( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult value) { + public Builder addResults(com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2430,20 +2166,15 @@ public Builder addResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder addResults( - int index, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult value) { + int index, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2457,20 +2188,15 @@ public Builder addResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder addResults( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); @@ -2481,21 +2207,15 @@ public Builder addResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder addResults( - int index, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -2506,25 +2226,19 @@ public Builder addResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder addAllResults( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult> - 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); @@ -2532,16 +2246,12 @@ public Builder addAllResults( return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -2554,16 +2264,12 @@ public Builder clearResults() { return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -2576,58 +2282,42 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - getResultsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder getResultsBuilder( + int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.RecommendResponse - .RecommendationResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -2635,76 +2325,52 @@ public Builder removeResults(int index) { } } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.getDefaultInstance()); } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder - addResultsBuilder(int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.getDefaultInstance()); } /** - * - * *
      * A list of recommended Documents. The order represents the ranking (from the
      * most relevant Document to the least).
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder> - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder> + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult, - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult - .Builder, - com.google.cloud.discoveryengine.v1beta.RecommendResponse - .RecommendationResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult.Builder, com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; @@ -2712,8 +2378,6 @@ public Builder removeResults(int index) { private java.lang.Object attributionToken_ = ""; /** - * - * *
      * A unique attribution token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -2722,13 +2386,13 @@ public Builder removeResults(int index) {
      * 
* * string attribution_token = 2; - * * @return The attributionToken. */ public java.lang.String getAttributionToken() { java.lang.Object ref = attributionToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; @@ -2737,8 +2401,6 @@ public java.lang.String getAttributionToken() { } } /** - * - * *
      * A unique attribution token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -2747,14 +2409,15 @@ public java.lang.String getAttributionToken() {
      * 
* * string attribution_token = 2; - * * @return The bytes for attributionToken. */ - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -2762,8 +2425,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } } /** - * - * *
      * A unique attribution token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -2772,22 +2433,18 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
      * 
* * string attribution_token = 2; - * * @param value The attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributionToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A unique attribution token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -2796,7 +2453,6 @@ public Builder setAttributionToken(java.lang.String value) {
      * 
* * string attribution_token = 2; - * * @return This builder for chaining. */ public Builder clearAttributionToken() { @@ -2806,8 +2462,6 @@ public Builder clearAttributionToken() { return this; } /** - * - * *
      * A unique attribution token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -2816,14 +2470,12 @@ public Builder clearAttributionToken() {
      * 
* * string attribution_token = 2; - * * @param value The bytes for attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributionToken_ = value; bitField0_ |= 0x00000002; @@ -2833,7 +2485,6 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList missingIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMissingIdsIsMutable() { if (!missingIds_.isModifiable()) { missingIds_ = new com.google.protobuf.LazyStringArrayList(missingIds_); @@ -2841,46 +2492,38 @@ private void ensureMissingIdsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @return A list containing the missingIds. */ - public com.google.protobuf.ProtocolStringList getMissingIdsList() { + public com.google.protobuf.ProtocolStringList + getMissingIdsList() { missingIds_.makeImmutable(); return missingIds_; } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @return The count of missingIds. */ public int getMissingIdsCount() { return missingIds_.size(); } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @param index The index of the element to return. * @return The missingIds at the given index. */ @@ -2888,39 +2531,33 @@ public java.lang.String getMissingIds(int index) { return missingIds_.get(index); } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the missingIds at the given index. */ - public com.google.protobuf.ByteString getMissingIdsBytes(int index) { + public com.google.protobuf.ByteString + getMissingIdsBytes(int index) { return missingIds_.getByteString(index); } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @param index The index to set the value at. * @param value The missingIds to set. * @return This builder for chaining. */ - public Builder setMissingIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMissingIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMissingIdsIsMutable(); missingIds_.set(index, value); bitField0_ |= 0x00000004; @@ -2928,22 +2565,18 @@ public Builder setMissingIds(int index, java.lang.String value) { return this; } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @param value The missingIds to add. * @return This builder for chaining. */ - public Builder addMissingIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMissingIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMissingIdsIsMutable(); missingIds_.add(value); bitField0_ |= 0x00000004; @@ -2951,61 +2584,53 @@ public Builder addMissingIds(java.lang.String value) { return this; } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @param values The missingIds to add. * @return This builder for chaining. */ - public Builder addAllMissingIds(java.lang.Iterable values) { + public Builder addAllMissingIds( + java.lang.Iterable values) { ensureMissingIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingIds_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @return This builder for chaining. */ public Builder clearMissingIds() { - missingIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + missingIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * IDs of documents in the request that were missing from the default Branch
      * associated with the requested ServingConfig.
      * 
* * repeated string missing_ids = 3; - * * @param value The bytes of the missingIds to add. * @return This builder for chaining. */ - public Builder addMissingIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMissingIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMissingIdsIsMutable(); missingIds_.add(value); @@ -3014,10 +2639,8 @@ public Builder addMissingIdsBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * True if
      * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only]
@@ -3025,7 +2648,6 @@ public Builder addMissingIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -3033,8 +2655,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * True if
      * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only]
@@ -3042,7 +2662,6 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -3054,8 +2673,6 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * True if
      * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only]
@@ -3063,7 +2680,6 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -3072,9 +2688,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3084,12 +2700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RecommendResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RecommendResponse) private static final com.google.cloud.discoveryengine.v1beta.RecommendResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RecommendResponse(); } @@ -3098,27 +2714,27 @@ public static com.google.cloud.discoveryengine.v1beta.RecommendResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecommendResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3133,4 +2749,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.RecommendResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java similarity index 66% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java index c815ce704d46..411d0c901748 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendResponseOrBuilder.java @@ -1,104 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/recommendation_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface RecommendResponseOrBuilder - extends +public interface RecommendResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RecommendResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - java.util.List + java.util.List getResultsList(); /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getResults( - int index); + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult getResults(int index); /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ int getResultsCount(); /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.RecommendResponse - .RecommendationResultOrBuilder> + java.util.List getResultsOrBuilderList(); /** - * - * *
    * A list of recommended Documents. The order represents the ranking (from the
    * most relevant Document to the least).
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1; */ - com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder - getResultsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder( + int index); /** - * - * *
    * A unique attribution token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -107,13 +65,10 @@ com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult g
    * 
* * string attribution_token = 2; - * * @return The attributionToken. */ java.lang.String getAttributionToken(); /** - * - * *
    * A unique attribution token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -122,69 +77,57 @@ com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult g
    * 
* * string attribution_token = 2; - * * @return The bytes for attributionToken. */ - com.google.protobuf.ByteString getAttributionTokenBytes(); + com.google.protobuf.ByteString + getAttributionTokenBytes(); /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @return A list containing the missingIds. */ - java.util.List getMissingIdsList(); + java.util.List + getMissingIdsList(); /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @return The count of missingIds. */ int getMissingIdsCount(); /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @param index The index of the element to return. * @return The missingIds at the given index. */ java.lang.String getMissingIds(int index); /** - * - * *
    * IDs of documents in the request that were missing from the default Branch
    * associated with the requested ServingConfig.
    * 
* * repeated string missing_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the missingIds at the given index. */ - com.google.protobuf.ByteString getMissingIdsBytes(int index); + com.google.protobuf.ByteString + getMissingIdsBytes(int index); /** - * - * *
    * True if
    * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only]
@@ -192,7 +135,6 @@ com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult g
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java new file mode 100644 index 000000000000..bb669509744d --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java @@ -0,0 +1,176 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/recommendation_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class RecommendationServiceProto { + private RecommendationServiceProto() {} + 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_discoveryengine_v1beta_RecommendRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_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 = { + "\n@google/cloud/discoveryengine/v1beta/re" + + "commendation_service.proto\022#google.cloud" + + ".discoveryengine.v1beta\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0322google/cloud/discove" + + "ryengine/v1beta/document.proto\0324google/c" + + "loud/discoveryengine/v1beta/user_event.p" + + "roto\032\034google/protobuf/struct.proto\"\216\004\n\020R" + + "ecommendRequest\022M\n\016serving_config\030\001 \001(\tB" + + "5\342A\001\002\372A.\n,discoveryengine.googleapis.com" + + "/ServingConfig\022H\n\nuser_event\030\002 \001(\0132..goo" + + "gle.cloud.discoveryengine.v1beta.UserEve" + + "ntB\004\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022\016\n\006filter\030\004 " + + "\001(\t\022\025\n\rvalidate_only\030\005 \001(\010\022Q\n\006params\030\006 \003" + + "(\0132A.google.cloud.discoveryengine.v1beta" + + ".RecommendRequest.ParamsEntry\022Z\n\013user_la" + + "bels\030\010 \003(\0132E.google.cloud.discoveryengin" + + "e.v1beta.RecommendRequest.UserLabelsEntr" + + "y\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002" + + " \001(\0132\026.google.protobuf.Value:\0028\001\0321\n\017User" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"\324\003\n\021RecommendResponse\022\\\n\007results\030\001 \003" + + "(\0132K.google.cloud.discoveryengine.v1beta" + + ".RecommendResponse.RecommendationResult\022" + + "\031\n\021attribution_token\030\002 \001(\t\022\023\n\013missing_id" + + "s\030\003 \003(\t\022\025\n\rvalidate_only\030\004 \001(\010\032\231\002\n\024Recom" + + "mendationResult\022\n\n\002id\030\001 \001(\t\022?\n\010document\030" + + "\002 \001(\0132-.google.cloud.discoveryengine.v1b" + + "eta.Document\022k\n\010metadata\030\003 \003(\0132Y.google." + + "cloud.discoveryengine.v1beta.RecommendRe" + + "sponse.RecommendationResult.MetadataEntr" + + "y\032G\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" + + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\272\003\n\025R" + + "ecommendationService\022\314\002\n\tRecommend\0225.goo" + + "gle.cloud.discoveryengine.v1beta.Recomme" + + "ndRequest\0326.google.cloud.discoveryengine" + + ".v1beta.RecommendResponse\"\317\001\202\323\344\223\002\310\001\"W/v1" + + "beta/{serving_config=projects/*/location" + + "s/*/dataStores/*/servingConfigs/*}:recom" + + "mend:\001*Zj\"e/v1beta/{serving_config=proje" + + "cts/*/locations/*/collections/*/dataStor" + + "es/*/servingConfigs/*}:recommend:\001*\032R\312A\036" + + "discoveryengine.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\241\002\n\'com.google.cloud.discoveryengine.v1b" + + "etaB\032RecommendationServiceProtoP\001ZQcloud" + + ".google.com/go/discoveryengine/apiv1beta" + + "/discoveryenginepb;discoveryenginepb\242\002\017D" + + "ISCOVERYENGINE\252\002#Google.Cloud.DiscoveryE" + + "ngine.V1Beta\312\002#Google\\Cloud\\DiscoveryEng" + + "ine\\V1beta\352\002&Google::Cloud::DiscoveryEng" + + "ine::V1betab\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.discoveryengine.v1beta.DocumentProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor, + new java.lang.String[] { "ServingConfig", "UserEvent", "PageSize", "Filter", "ValidateOnly", "Params", "UserLabels", }); + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RecommendRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor, + new java.lang.String[] { "Results", "AttributionToken", "MissingIds", "ValidateOnly", }); + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor, + new java.lang.String[] { "Id", "Document", "Metadata", }); + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RecommendResponse_RecommendationResult_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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.UserEventProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java similarity index 65% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java index 5f3f4bd4f804..dab34384e819 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Reply.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Defines a reply message to user.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Reply} */ -public final class Reply extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Reply extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Reply) ReplyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Reply.newBuilder() to construct. private Reply(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Reply() { reply_ = ""; references_ = java.util.Collections.emptyList(); @@ -44,127 +26,104 @@ private Reply() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Reply(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Reply.class, - com.google.cloud.discoveryengine.v1beta.Reply.Builder.class); + com.google.cloud.discoveryengine.v1beta.Reply.class, com.google.cloud.discoveryengine.v1beta.Reply.Builder.class); } - @java.lang.Deprecated - public interface ReferenceOrBuilder - extends + @java.lang.Deprecated public interface ReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Reply.Reference) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * URI link reference.
      * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
      * URI link reference.
      * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
      * Anchor text.
      * 
* * string anchor_text = 2; - * * @return The anchorText. */ java.lang.String getAnchorText(); /** - * - * *
      * Anchor text.
      * 
* * string anchor_text = 2; - * * @return The bytes for anchorText. */ - com.google.protobuf.ByteString getAnchorTextBytes(); + com.google.protobuf.ByteString + getAnchorTextBytes(); /** - * - * *
      * Anchor text start index.
      * 
* * int32 start = 3; - * * @return The start. */ int getStart(); /** - * - * *
      * Anchor text end index.
      * 
* * int32 end = 4; - * * @return The end. */ int getEnd(); } /** - * - * *
    * Defines reference in reply.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Reply.Reference} */ - @java.lang.Deprecated - public static final class Reference extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated public static final class Reference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Reply.Reference) ReferenceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Reference.newBuilder() to construct. private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Reference() { uri_ = ""; anchorText_ = ""; @@ -172,38 +131,33 @@ private Reference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Reference(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Reply.Reference.class, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder.class); + com.google.cloud.discoveryengine.v1beta.Reply.Reference.class, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
      * URI link reference.
      * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -212,29 +166,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; } } /** - * - * *
      * URI link reference.
      * 
* * string uri = 1; - * * @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 { @@ -243,18 +197,14 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int ANCHOR_TEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object anchorText_ = ""; /** - * - * *
      * Anchor text.
      * 
* * string anchor_text = 2; - * * @return The anchorText. */ @java.lang.Override @@ -263,29 +213,29 @@ public java.lang.String getAnchorText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); anchorText_ = s; return s; } } /** - * - * *
      * Anchor text.
      * 
* * string anchor_text = 2; - * * @return The bytes for anchorText. */ @java.lang.Override - public com.google.protobuf.ByteString getAnchorTextBytes() { + public com.google.protobuf.ByteString + getAnchorTextBytes() { java.lang.Object ref = anchorText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); anchorText_ = b; return b; } else { @@ -296,14 +246,11 @@ public com.google.protobuf.ByteString getAnchorTextBytes() { public static final int START_FIELD_NUMBER = 3; private int start_ = 0; /** - * - * *
      * Anchor text start index.
      * 
* * int32 start = 3; - * * @return The start. */ @java.lang.Override @@ -314,14 +261,11 @@ public int getStart() { public static final int END_FIELD_NUMBER = 4; private int end_ = 0; /** - * - * *
      * Anchor text end index.
      * 
* * int32 end = 4; - * * @return The end. */ @java.lang.Override @@ -330,7 +274,6 @@ public int getEnd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,7 +285,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_); } @@ -371,10 +315,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, anchorText_); } if (start_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, start_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, start_); } if (end_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, end_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, end_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -384,18 +330,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.discoveryengine.v1beta.Reply.Reference)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Reply.Reference other = - (com.google.cloud.discoveryengine.v1beta.Reply.Reference) obj; + com.google.cloud.discoveryengine.v1beta.Reply.Reference other = (com.google.cloud.discoveryengine.v1beta.Reply.Reference) obj; - if (!getUri().equals(other.getUri())) return false; - if (!getAnchorText().equals(other.getAnchorText())) return false; - if (getStart() != other.getStart()) return false; - if (getEnd() != other.getEnd()) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getAnchorText() + .equals(other.getAnchorText())) return false; + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -421,94 +370,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Reply.Reference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Reply.Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Reply.Reference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Reply.Reference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference 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.discoveryengine.v1beta.Reply.Reference prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Reply.Reference 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 @@ -518,41 +462,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Defines reference in reply.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Reply.Reference} */ - 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.discoveryengine.v1beta.Reply.Reference) com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Reply.Reference.class, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder.class); + com.google.cloud.discoveryengine.v1beta.Reply.Reference.class, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.Reply.Reference.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_Reference_descriptor; } @java.lang.Override @@ -586,11 +528,8 @@ public com.google.cloud.discoveryengine.v1beta.Reply.Reference build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Reply.Reference buildPartial() { - com.google.cloud.discoveryengine.v1beta.Reply.Reference result = - new com.google.cloud.discoveryengine.v1beta.Reply.Reference(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.Reply.Reference result = new com.google.cloud.discoveryengine.v1beta.Reply.Reference(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -615,41 +554,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Reply.Referen 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.discoveryengine.v1beta.Reply.Reference) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Reply.Reference) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Reply.Reference)other); } else { super.mergeFrom(other); return this; @@ -657,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Reply.Reference other) { - if (other == com.google.cloud.discoveryengine.v1beta.Reply.Reference.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.Reply.Reference.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -701,37 +636,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - anchorText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - start_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - end_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + anchorText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + start_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + end_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -741,25 +671,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
        * URI link reference.
        * 
* * string uri = 1; - * * @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; @@ -768,21 +695,20 @@ public java.lang.String getUri() { } } /** - * - * *
        * URI link reference.
        * 
* * string uri = 1; - * * @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 { @@ -790,35 +716,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
        * URI link reference.
        * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * URI link reference.
        * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -828,21 +747,17 @@ public Builder clearUri() { return this; } /** - * - * *
        * URI link reference.
        * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -852,20 +767,18 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object anchorText_ = ""; /** - * - * *
        * Anchor text.
        * 
* * string anchor_text = 2; - * * @return The anchorText. */ public java.lang.String getAnchorText() { java.lang.Object ref = anchorText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); anchorText_ = s; return s; @@ -874,21 +787,20 @@ public java.lang.String getAnchorText() { } } /** - * - * *
        * Anchor text.
        * 
* * string anchor_text = 2; - * * @return The bytes for anchorText. */ - public com.google.protobuf.ByteString getAnchorTextBytes() { + public com.google.protobuf.ByteString + getAnchorTextBytes() { java.lang.Object ref = anchorText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); anchorText_ = b; return b; } else { @@ -896,35 +808,28 @@ public com.google.protobuf.ByteString getAnchorTextBytes() { } } /** - * - * *
        * Anchor text.
        * 
* * string anchor_text = 2; - * * @param value The anchorText to set. * @return This builder for chaining. */ - public Builder setAnchorText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAnchorText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } anchorText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Anchor text.
        * 
* * string anchor_text = 2; - * * @return This builder for chaining. */ public Builder clearAnchorText() { @@ -934,21 +839,17 @@ public Builder clearAnchorText() { return this; } /** - * - * *
        * Anchor text.
        * 
* * string anchor_text = 2; - * * @param value The bytes for anchorText to set. * @return This builder for chaining. */ - public Builder setAnchorTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAnchorTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); anchorText_ = value; bitField0_ |= 0x00000002; @@ -956,16 +857,13 @@ public Builder setAnchorTextBytes(com.google.protobuf.ByteString value) { return this; } - private int start_; + private int start_ ; /** - * - * *
        * Anchor text start index.
        * 
* * int32 start = 3; - * * @return The start. */ @java.lang.Override @@ -973,14 +871,11 @@ public int getStart() { return start_; } /** - * - * *
        * Anchor text start index.
        * 
* * int32 start = 3; - * * @param value The start to set. * @return This builder for chaining. */ @@ -992,14 +887,11 @@ public Builder setStart(int value) { return this; } /** - * - * *
        * Anchor text start index.
        * 
* * int32 start = 3; - * * @return This builder for chaining. */ public Builder clearStart() { @@ -1009,16 +901,13 @@ public Builder clearStart() { return this; } - private int end_; + private int end_ ; /** - * - * *
        * Anchor text end index.
        * 
* * int32 end = 4; - * * @return The end. */ @java.lang.Override @@ -1026,14 +915,11 @@ public int getEnd() { return end_; } /** - * - * *
        * Anchor text end index.
        * 
* * int32 end = 4; - * * @param value The end to set. * @return This builder for chaining. */ @@ -1045,14 +931,11 @@ public Builder setEnd(int value) { return this; } /** - * - * *
        * Anchor text end index.
        * 
* * int32 end = 4; - * * @return This builder for chaining. */ public Builder clearEnd() { @@ -1061,7 +944,6 @@ public Builder clearEnd() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1074,12 +956,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Reply.Reference) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Reply.Reference) private static final com.google.cloud.discoveryengine.v1beta.Reply.Reference DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Reply.Reference(); } @@ -1088,28 +970,27 @@ public static com.google.cloud.discoveryengine.v1beta.Reply.Reference getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,60 +1005,55 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Reply.Reference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int REPLY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object reply_ = ""; /** - * - * *
    * DEPRECATED: use `summary` instead.
    * Text reply.
    * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @return The reply. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getReply() { + @java.lang.Deprecated public java.lang.String getReply() { java.lang.Object ref = reply_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reply_ = s; return s; } } /** - * - * *
    * DEPRECATED: use `summary` instead.
    * Text reply.
    * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @return The bytes for reply. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getReplyBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getReplyBytes() { java.lang.Object ref = reply_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reply_ = b; return b; } else { @@ -1186,89 +1062,62 @@ public com.google.protobuf.ByteString getReplyBytes() { } public static final int REFERENCES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List references_; /** - * - * *
    * References in the reply.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List - getReferencesList() { + @java.lang.Deprecated public java.util.List getReferencesList() { return references_; } /** - * - * *
    * References in the reply.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getReferencesOrBuilderList() { return references_; } /** - * - * *
    * References in the reply.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getReferencesCount() { + @java.lang.Deprecated public int getReferencesCount() { return references_.size(); } /** - * - * *
    * References in the reply.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int index) { + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int index) { return references_.get(index); } /** - * - * *
    * References in the reply.
    * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getReferencesOrBuilder( + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getReferencesOrBuilder( int index) { return references_.get(index); } @@ -1276,14 +1125,11 @@ public com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getRefer public static final int SUMMARY_FIELD_NUMBER = 3; private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary_; /** - * - * *
    * Summary based on search results.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - * * @return Whether the summary field is set. */ @java.lang.Override @@ -1291,25 +1137,18 @@ public boolean hasSummary() { return summary_ != null; } /** - * - * *
    * Summary based on search results.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - * * @return The summary. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary() { - return summary_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_; } /** - * - * *
    * Summary based on search results.
    * 
@@ -1317,15 +1156,11 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder - getSummaryOrBuilder() { - return summary_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() - : summary_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { + return summary_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1337,7 +1172,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(reply_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reply_); } @@ -1360,10 +1196,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reply_); } for (int i = 0; i < references_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, references_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, references_.get(i)); } if (summary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSummary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSummary()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1373,19 +1211,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.discoveryengine.v1beta.Reply)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Reply other = - (com.google.cloud.discoveryengine.v1beta.Reply) obj; + com.google.cloud.discoveryengine.v1beta.Reply other = (com.google.cloud.discoveryengine.v1beta.Reply) obj; - if (!getReply().equals(other.getReply())) return false; - if (!getReferencesList().equals(other.getReferencesList())) return false; + if (!getReply() + .equals(other.getReply())) return false; + if (!getReferencesList() + .equals(other.getReferencesList())) return false; if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { - if (!getSummary().equals(other.getSummary())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1413,136 +1253,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.Reply parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1beta.Reply parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Reply 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.discoveryengine.v1beta.Reply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Reply parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Reply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Reply 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.discoveryengine.v1beta.Reply parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Reply 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.discoveryengine.v1beta.Reply parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Reply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Reply 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.discoveryengine.v1beta.Reply 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.discoveryengine.v1beta.Reply 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.discoveryengine.v1beta.Reply 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; } /** - * - * *
    * Defines a reply message to user.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Reply} */ - 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.discoveryengine.v1beta.Reply) com.google.cloud.discoveryengine.v1beta.ReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Reply.class, - com.google.cloud.discoveryengine.v1beta.Reply.Builder.class); + com.google.cloud.discoveryengine.v1beta.Reply.class, com.google.cloud.discoveryengine.v1beta.Reply.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.Reply.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1564,9 +1400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_Reply_descriptor; } @java.lang.Override @@ -1585,12 +1421,9 @@ public com.google.cloud.discoveryengine.v1beta.Reply build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Reply buildPartial() { - com.google.cloud.discoveryengine.v1beta.Reply result = - new com.google.cloud.discoveryengine.v1beta.Reply(this); + com.google.cloud.discoveryengine.v1beta.Reply result = new com.google.cloud.discoveryengine.v1beta.Reply(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1613,7 +1446,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Reply result) result.reply_ = reply_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build(); + result.summary_ = summaryBuilder_ == null + ? summary_ + : summaryBuilder_.build(); } } @@ -1621,39 +1456,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Reply result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.Reply) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Reply) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Reply)other); } else { super.mergeFrom(other); return this; @@ -1685,10 +1519,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Reply other) { referencesBuilder_ = null; references_ = other.references_; bitField0_ = (bitField0_ & ~0x00000002); - referencesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReferencesFieldBuilder() - : null; + referencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReferencesFieldBuilder() : null; } else { referencesBuilder_.addAllMessages(other.references_); } @@ -1723,39 +1556,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - reply_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1beta.Reply.Reference m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Reply.Reference.parser(), - extensionRegistry); - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.add(m); - } else { - referencesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - input.readMessage(getSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + reply_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1beta.Reply.Reference m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Reply.Reference.parser(), + extensionRegistry); + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(m); + } else { + referencesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + input.readMessage( + getSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1765,29 +1596,25 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object reply_ = ""; /** - * - * *
      * DEPRECATED: use `summary` instead.
      * Text reply.
      * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @return The reply. */ - @java.lang.Deprecated - public java.lang.String getReply() { + @java.lang.Deprecated public java.lang.String getReply() { java.lang.Object ref = reply_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reply_ = s; return s; @@ -1796,25 +1623,23 @@ public java.lang.String getReply() { } } /** - * - * *
      * DEPRECATED: use `summary` instead.
      * Text reply.
      * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @return The bytes for reply. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getReplyBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getReplyBytes() { java.lang.Object ref = reply_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reply_ = b; return b; } else { @@ -1822,71 +1647,57 @@ public com.google.protobuf.ByteString getReplyBytes() { } } /** - * - * *
      * DEPRECATED: use `summary` instead.
      * Text reply.
      * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @param value The reply to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setReply(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setReply( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reply_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * DEPRECATED: use `summary` instead.
      * Text reply.
      * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearReply() { + @java.lang.Deprecated public Builder clearReply() { reply_ = getDefaultInstance().getReply(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * DEPRECATED: use `summary` instead.
      * Text reply.
      * 
* * string reply = 1 [deprecated = true]; - * - * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. See - * google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 * @param value The bytes for reply to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setReplyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setReplyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reply_ = value; bitField0_ |= 0x00000001; @@ -1895,37 +1706,25 @@ public Builder setReplyBytes(com.google.protobuf.ByteString value) { } private java.util.List references_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReferencesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - references_ = - new java.util.ArrayList( - references_); + references_ = new java.util.ArrayList(references_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply.Reference, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder, - com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder> - referencesBuilder_; + com.google.cloud.discoveryengine.v1beta.Reply.Reference, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder, com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder> referencesBuilder_; /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getReferencesList() { + @java.lang.Deprecated public java.util.List getReferencesList() { if (referencesBuilder_ == null) { return java.util.Collections.unmodifiableList(references_); } else { @@ -1933,18 +1732,13 @@ private void ensureReferencesIsMutable() { } } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public int getReferencesCount() { + @java.lang.Deprecated public int getReferencesCount() { if (referencesBuilder_ == null) { return references_.size(); } else { @@ -1952,18 +1746,13 @@ public int getReferencesCount() { } } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int index) { + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int index) { if (referencesBuilder_ == null) { return references_.get(index); } else { @@ -1971,18 +1760,13 @@ public com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int } } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setReferences( + @java.lang.Deprecated public Builder setReferences( int index, com.google.cloud.discoveryengine.v1beta.Reply.Reference value) { if (referencesBuilder_ == null) { if (value == null) { @@ -1997,20 +1781,14 @@ public Builder setReferences( return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setReferences( - int index, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder builderForValue) { + @java.lang.Deprecated public Builder setReferences( + int index, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder builderForValue) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.set(index, builderForValue.build()); @@ -2021,18 +1799,13 @@ public Builder setReferences( return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addReferences(com.google.cloud.discoveryengine.v1beta.Reply.Reference value) { + @java.lang.Deprecated public Builder addReferences(com.google.cloud.discoveryengine.v1beta.Reply.Reference value) { if (referencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2046,18 +1819,13 @@ public Builder addReferences(com.google.cloud.discoveryengine.v1beta.Reply.Refer return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addReferences( + @java.lang.Deprecated public Builder addReferences( int index, com.google.cloud.discoveryengine.v1beta.Reply.Reference value) { if (referencesBuilder_ == null) { if (value == null) { @@ -2072,18 +1840,13 @@ public Builder addReferences( return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addReferences( + @java.lang.Deprecated public Builder addReferences( com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder builderForValue) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); @@ -2095,20 +1858,14 @@ public Builder addReferences( return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addReferences( - int index, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder builderForValue) { + @java.lang.Deprecated public Builder addReferences( + int index, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder builderForValue) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.add(index, builderForValue.build()); @@ -2119,23 +1876,18 @@ public Builder addReferences( return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllReferences( - java.lang.Iterable - values) { + @java.lang.Deprecated public Builder addAllReferences( + java.lang.Iterable values) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, references_); onChanged(); } else { referencesBuilder_.addAllMessages(values); @@ -2143,18 +1895,13 @@ public Builder addAllReferences( return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearReferences() { + @java.lang.Deprecated public Builder clearReferences() { if (referencesBuilder_ == null) { references_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); @@ -2165,18 +1912,13 @@ public Builder clearReferences() { return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeReferences(int index) { + @java.lang.Deprecated public Builder removeReferences(int index) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.remove(index); @@ -2187,56 +1929,39 @@ public Builder removeReferences(int index) { return this; } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder getReferencesBuilder( + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder getReferencesBuilder( int index) { return getReferencesFieldBuilder().getBuilder(index); } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getReferencesOrBuilder( + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getReferencesOrBuilder( int index) { if (referencesBuilder_ == null) { - return references_.get(index); - } else { + return references_.get(index); } else { return referencesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder> - getReferencesOrBuilderList() { + @java.lang.Deprecated public java.util.List + getReferencesOrBuilderList() { if (referencesBuilder_ != null) { return referencesBuilder_.getMessageOrBuilderList(); } else { @@ -2244,68 +1969,49 @@ public com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getRefer } } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder addReferencesBuilder() { - return getReferencesFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Reply.Reference.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder addReferencesBuilder() { + return getReferencesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.Reply.Reference.getDefaultInstance()); } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder addReferencesBuilder( + @java.lang.Deprecated public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder addReferencesBuilder( int index) { - return getReferencesFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.Reply.Reference.getDefaultInstance()); + return getReferencesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Reply.Reference.getDefaultInstance()); } /** - * - * *
      * References in the reply.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; - * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getReferencesBuilderList() { + @java.lang.Deprecated public java.util.List + getReferencesBuilderList() { return getReferencesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply.Reference, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder, - com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder> + com.google.cloud.discoveryengine.v1beta.Reply.Reference, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder, com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder> getReferencesFieldBuilder() { if (referencesBuilder_ == null) { - referencesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Reply.Reference, - com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder, - com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder>( - references_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Reply.Reference, com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder, com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder>( + references_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); references_ = null; } return referencesBuilder_; @@ -2313,55 +2019,41 @@ public com.google.cloud.discoveryengine.v1beta.Reply.Reference.Builder addRefere private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> - summaryBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> summaryBuilder_; /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - * * @return Whether the summary field is set. */ public boolean hasSummary() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; - * * @return The summary. */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary() { if (summaryBuilder_ == null) { - return summary_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_; } else { return summaryBuilder_.getMessage(); } } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; */ - public Builder setSummary( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) { + public Builder setSummary(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) { if (summaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2375,8 +2067,6 @@ public Builder setSummary( return this; } /** - * - * *
      * Summary based on search results.
      * 
@@ -2395,22 +2085,17 @@ public Builder setSummary( return this; } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; */ - public Builder mergeSummary( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) { + public Builder mergeSummary(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) { if (summaryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && summary_ != null - && summary_ - != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + summary_ != null && + summary_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance()) { getSummaryBuilder().mergeFrom(value); } else { summary_ = value; @@ -2423,8 +2108,6 @@ public Builder mergeSummary( return this; } /** - * - * *
      * Summary based on search results.
      * 
@@ -2442,42 +2125,33 @@ public Builder clearSummary() { return this; } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder - getSummaryBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder getSummaryBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSummaryFieldBuilder().getBuilder(); } /** - * - * *
      * Summary based on search results.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder - getSummaryOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() { if (summaryBuilder_ != null) { return summaryBuilder_.getMessageOrBuilder(); } else { - return summary_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_; } } /** - * - * *
      * Summary based on search results.
      * 
@@ -2485,24 +2159,21 @@ public Builder clearSummary() { * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> getSummaryFieldBuilder() { if (summaryBuilder_ == null) { - summaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder>( - getSummary(), getParentForChildren(), isClean()); + summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder>( + getSummary(), + getParentForChildren(), + isClean()); summary_ = null; } return summaryBuilder_; } - @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); } @@ -2512,12 +2183,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Reply) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Reply) private static final com.google.cloud.discoveryengine.v1beta.Reply DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Reply(); } @@ -2526,27 +2197,27 @@ public static com.google.cloud.discoveryengine.v1beta.Reply getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2561,4 +2232,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Reply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java new file mode 100644 index 000000000000..27b084108cd0 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ReplyOrBuilder.java @@ -0,0 +1,106 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/conversation.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface ReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Reply) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DEPRECATED: use `summary` instead.
+   * Text reply.
+   * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @return The reply. + */ + @java.lang.Deprecated java.lang.String getReply(); + /** + *
+   * DEPRECATED: use `summary` instead.
+   * Text reply.
+   * 
+ * + * string reply = 1 [deprecated = true]; + * @deprecated google.cloud.discoveryengine.v1beta.Reply.reply is deprecated. + * See google/cloud/discoveryengine/v1beta/conversation.proto;l=95 + * @return The bytes for reply. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getReplyBytes(); + + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getReferencesList(); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.cloud.discoveryengine.v1beta.Reply.Reference getReferences(int index); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated int getReferencesCount(); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getReferencesOrBuilderList(); + /** + *
+   * References in the reply.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1beta.Reply.Reference references = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.cloud.discoveryengine.v1beta.Reply.ReferenceOrBuilder getReferencesOrBuilder( + int index); + + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; + * @return Whether the summary field is set. + */ + boolean hasSummary(); + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; + * @return The summary. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary(); + /** + *
+   * Summary based on search results.
+   * 
+ * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 3; + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java similarity index 71% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java index a1a27bf246b5..bc55c26951b6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Schema.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Defines the structure and layout of a type of document data.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Schema} */ -public final class Schema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Schema) SchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Schema() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schema(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaProto - .internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaProto.internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaProto - .internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaProto.internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Schema.class, - com.google.cloud.discoveryengine.v1beta.Schema.Builder.class); + com.google.cloud.discoveryengine.v1beta.Schema.class, com.google.cloud.discoveryengine.v1beta.Schema.Builder.class); } private int schemaCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object schema_; - public enum SchemaCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRUCT_SCHEMA(2), JSON_SCHEMA(3), SCHEMA_NOT_SET(0); private final int value; - private SchemaCase(int value) { this.value = value; } @@ -91,36 +68,30 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 2: - return STRUCT_SCHEMA; - case 3: - return JSON_SCHEMA; - case 0: - return SCHEMA_NOT_SET; - default: - return null; + case 2: return STRUCT_SCHEMA; + case 3: return JSON_SCHEMA; + case 0: return SCHEMA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public static final int STRUCT_SCHEMA_FIELD_NUMBER = 2; /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return Whether the structSchema field is set. */ @java.lang.Override @@ -128,26 +99,21 @@ public boolean hasStructSchema() { return schemaCase_ == 2; } /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return The structSchema. */ @java.lang.Override public com.google.protobuf.Struct getStructSchema() { if (schemaCase_ == 2) { - return (com.google.protobuf.Struct) schema_; + return (com.google.protobuf.Struct) schema_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** - * - * *
    * The structured representation of the schema.
    * 
@@ -157,35 +123,29 @@ public com.google.protobuf.Struct getStructSchema() { @java.lang.Override public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { if (schemaCase_ == 2) { - return (com.google.protobuf.Struct) schema_; + return (com.google.protobuf.Struct) schema_; } return com.google.protobuf.Struct.getDefaultInstance(); } public static final int JSON_SCHEMA_FIELD_NUMBER = 3; /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return Whether the jsonSchema field is set. */ public boolean hasJsonSchema() { return schemaCase_ == 3; } /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The jsonSchema. */ public java.lang.String getJsonSchema() { @@ -196,7 +156,8 @@ public java.lang.String getJsonSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (schemaCase_ == 3) { schema_ = s; @@ -205,24 +166,23 @@ public java.lang.String getJsonSchema() { } } /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The bytes for jsonSchema. */ - public com.google.protobuf.ByteString getJsonSchemaBytes() { + public com.google.protobuf.ByteString + getJsonSchemaBytes() { java.lang.Object ref = ""; if (schemaCase_ == 3) { ref = schema_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (schemaCase_ == 3) { schema_ = b; } @@ -233,12 +193,9 @@ public com.google.protobuf.ByteString getJsonSchemaBytes() { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -248,7 +205,6 @@ public com.google.protobuf.ByteString getJsonSchemaBytes() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -257,15 +213,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; } } /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -275,15 +230,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -292,7 +248,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,7 +259,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_); } @@ -327,9 +283,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (schemaCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Struct) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Struct) schema_); } if (schemaCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); @@ -342,22 +297,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.discoveryengine.v1beta.Schema)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Schema other = - (com.google.cloud.discoveryengine.v1beta.Schema) obj; + com.google.cloud.discoveryengine.v1beta.Schema other = (com.google.cloud.discoveryengine.v1beta.Schema) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 2: - if (!getStructSchema().equals(other.getStructSchema())) return false; + if (!getStructSchema() + .equals(other.getStructSchema())) return false; break; case 3: - if (!getJsonSchema().equals(other.getJsonSchema())) return false; + if (!getJsonSchema() + .equals(other.getJsonSchema())) return false; break; case 0: default: @@ -392,136 +349,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.Schema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1beta.Schema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Schema 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.discoveryengine.v1beta.Schema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Schema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Schema 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.discoveryengine.v1beta.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Schema 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.discoveryengine.v1beta.Schema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.Schema 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.discoveryengine.v1beta.Schema 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.discoveryengine.v1beta.Schema 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.discoveryengine.v1beta.Schema 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; } /** - * - * *
    * Defines the structure and layout of a type of document data.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.Schema} */ - 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.discoveryengine.v1beta.Schema) com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaProto - .internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaProto.internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaProto - .internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaProto.internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Schema.class, - com.google.cloud.discoveryengine.v1beta.Schema.Builder.class); + com.google.cloud.discoveryengine.v1beta.Schema.class, com.google.cloud.discoveryengine.v1beta.Schema.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.Schema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SchemaProto - .internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SchemaProto.internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor; } @java.lang.Override @@ -557,11 +510,8 @@ public com.google.cloud.discoveryengine.v1beta.Schema build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Schema buildPartial() { - com.google.cloud.discoveryengine.v1beta.Schema result = - new com.google.cloud.discoveryengine.v1beta.Schema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.Schema result = new com.google.cloud.discoveryengine.v1beta.Schema(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -577,7 +527,8 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Schema result private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Schema result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 2 && structSchemaBuilder_ != null) { + if (schemaCase_ == 2 && + structSchemaBuilder_ != null) { result.schema_ = structSchemaBuilder_.build(); } } @@ -586,39 +537,38 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Schema r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.Schema) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Schema) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Schema)other); } else { super.mergeFrom(other); return this; @@ -633,22 +583,19 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Schema other) { onChanged(); } switch (other.getSchemaCase()) { - case STRUCT_SCHEMA: - { - mergeStructSchema(other.getStructSchema()); - break; - } - case JSON_SCHEMA: - { - schemaCase_ = 3; - schema_ = other.schema_; - onChanged(); - break; - } - case SCHEMA_NOT_SET: - { - break; - } + case STRUCT_SCHEMA: { + mergeStructSchema(other.getStructSchema()); + break; + } + case JSON_SCHEMA: { + schemaCase_ = 3; + schema_ = other.schema_; + onChanged(); + break; + } + case SCHEMA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -676,32 +623,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - input.readMessage(getStructSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 2; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - schemaCase_ = 3; - schema_ = s; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + input.readMessage( + getStructSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 2; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + schemaCase_ = 3; + schema_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,12 +656,12 @@ public Builder mergeFrom( } // finally return this; } - private int schemaCase_ = 0; private java.lang.Object schema_; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public Builder clearSchema() { @@ -729,19 +674,13 @@ public Builder clearSchema() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structSchemaBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structSchemaBuilder_; /** - * - * *
      * The structured representation of the schema.
      * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return Whether the structSchema field is set. */ @java.lang.Override @@ -749,14 +688,11 @@ public boolean hasStructSchema() { return schemaCase_ == 2; } /** - * - * *
      * The structured representation of the schema.
      * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return The structSchema. */ @java.lang.Override @@ -774,8 +710,6 @@ public com.google.protobuf.Struct getStructSchema() { } } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -796,15 +730,14 @@ public Builder setStructSchema(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * The structured representation of the schema.
      * 
* * .google.protobuf.Struct struct_schema = 2; */ - public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setStructSchema( + com.google.protobuf.Struct.Builder builderForValue) { if (structSchemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -815,8 +748,6 @@ public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValu return this; } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -825,11 +756,10 @@ public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValu */ public Builder mergeStructSchema(com.google.protobuf.Struct value) { if (structSchemaBuilder_ == null) { - if (schemaCase_ == 2 && schema_ != com.google.protobuf.Struct.getDefaultInstance()) { - schema_ = - com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 2 && + schema_ != com.google.protobuf.Struct.getDefaultInstance()) { + schema_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -845,8 +775,6 @@ public Builder mergeStructSchema(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -870,8 +798,6 @@ public Builder clearStructSchema() { return this; } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -882,8 +808,6 @@ public com.google.protobuf.Struct.Builder getStructSchemaBuilder() { return getStructSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -902,8 +826,6 @@ public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { } } /** - * - * *
      * The structured representation of the schema.
      * 
@@ -911,20 +833,17 @@ public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { * .google.protobuf.Struct struct_schema = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getStructSchemaFieldBuilder() { if (structSchemaBuilder_ == null) { if (!(schemaCase_ == 2)) { schema_ = com.google.protobuf.Struct.getDefaultInstance(); } - structSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) schema_, getParentForChildren(), isClean()); + structSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) schema_, + getParentForChildren(), + isClean()); schema_ = null; } schemaCase_ = 2; @@ -933,14 +852,11 @@ public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder() { } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return Whether the jsonSchema field is set. */ @java.lang.Override @@ -948,14 +864,11 @@ public boolean hasJsonSchema() { return schemaCase_ == 3; } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return The jsonSchema. */ @java.lang.Override @@ -965,7 +878,8 @@ public java.lang.String getJsonSchema() { ref = schema_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (schemaCase_ == 3) { schema_ = s; @@ -976,25 +890,24 @@ public java.lang.String getJsonSchema() { } } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return The bytes for jsonSchema. */ @java.lang.Override - public com.google.protobuf.ByteString getJsonSchemaBytes() { + public com.google.protobuf.ByteString + getJsonSchemaBytes() { java.lang.Object ref = ""; if (schemaCase_ == 3) { ref = schema_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (schemaCase_ == 3) { schema_ = b; } @@ -1004,35 +917,28 @@ public com.google.protobuf.ByteString getJsonSchemaBytes() { } } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @param value The jsonSchema to set. * @return This builder for chaining. */ - public Builder setJsonSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaCase_ = 3; schema_ = value; onChanged(); return this; } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @return This builder for chaining. */ public Builder clearJsonSchema() { @@ -1044,21 +950,17 @@ public Builder clearJsonSchema() { return this; } /** - * - * *
      * The JSON representation of the schema.
      * 
* * string json_schema = 3; - * * @param value The bytes for jsonSchema to set. * @return This builder for chaining. */ - public Builder setJsonSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJsonSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaCase_ = 3; schema_ = value; @@ -1068,8 +970,6 @@ public Builder setJsonSchemaBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1079,13 +979,13 @@ public Builder setJsonSchemaBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1094,8 +994,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1105,14 +1003,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1120,8 +1019,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1131,22 +1028,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1156,7 +1049,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1166,8 +1058,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The full resource name of the schema, in the format of
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -1177,23 +1067,21 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1203,12 +1091,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Schema) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Schema) private static final com.google.cloud.discoveryengine.v1beta.Schema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Schema(); } @@ -1217,27 +1105,27 @@ public static com.google.cloud.discoveryengine.v1beta.Schema getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1252,4 +1140,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java similarity index 74% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java index 2553b3163638..d3a6fb3a3382 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema.proto package com.google.cloud.discoveryengine.v1beta; -public interface SchemaOrBuilder - extends +public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Schema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return Whether the structSchema field is set. */ boolean hasStructSchema(); /** - * - * *
    * The structured representation of the schema.
    * 
* * .google.protobuf.Struct struct_schema = 2; - * * @return The structSchema. */ com.google.protobuf.Struct getStructSchema(); /** - * - * *
    * The structured representation of the schema.
    * 
@@ -59,45 +35,35 @@ public interface SchemaOrBuilder com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder(); /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return Whether the jsonSchema field is set. */ boolean hasJsonSchema(); /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The jsonSchema. */ java.lang.String getJsonSchema(); /** - * - * *
    * The JSON representation of the schema.
    * 
* * string json_schema = 3; - * * @return The bytes for jsonSchema. */ - com.google.protobuf.ByteString getJsonSchemaBytes(); + com.google.protobuf.ByteString + getJsonSchemaBytes(); /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -107,13 +73,10 @@ public interface SchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The full resource name of the schema, in the format of
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
@@ -123,10 +86,10 @@ public interface SchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); com.google.cloud.discoveryengine.v1beta.Schema.SchemaCase getSchemaCase(); } diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java new file mode 100644 index 000000000000..be8f4b3ac9a7 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaProto.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/schema.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class SchemaProto { + private SchemaProto() {} + 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_discoveryengine_v1beta_Schema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/discoveryengine/v1beta/sc" + + "hema.proto\022#google.cloud.discoveryengine" + + ".v1beta\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\034google/prot" + + "obuf/struct.proto\"\332\002\n\006Schema\0220\n\rstruct_s" + + "chema\030\002 \001(\0132\027.google.protobuf.StructH\000\022\025" + + "\n\013json_schema\030\003 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\005:\350\001\352A\344\001\n%discoveryengine.googleapis.com" + + "/Schema\022Pprojects/{project}/locations/{l" + + "ocation}/dataStores/{data_store}/schemas" + + "/{schema}\022iprojects/{project}/locations/" + + "{location}/collections/{collection}/data" + + "Stores/{data_store}/schemas/{schema}B\010\n\006" + + "schemaB\222\002\n\'com.google.cloud.discoveryeng" + + "ine.v1betaB\013SchemaProtoP\001ZQcloud.google." + + "com/go/discoveryengine/apiv1beta/discove" + + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" + + "ENGINE\252\002#Google.Cloud.DiscoveryEngine.V1" + + "Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1be" + + "ta\352\002&Google::Cloud::DiscoveryEngine::V1b" + + "etab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Schema_descriptor, + new java.lang.String[] { "StructSchema", "JsonSchema", "Name", "Schema", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java new file mode 100644 index 000000000000..7685631f501f --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java @@ -0,0 +1,249 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/schema_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class SchemaServiceProto { + private SchemaServiceProto() {} + 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_discoveryengine_v1beta_GetSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateSchemaMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteSchemaMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1beta/sc" + + "hema_service.proto\022#google.cloud.discove" + + "ryengine.v1beta\032\034google/api/annotations." + + "proto\032\027google/api/client.proto\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\0320google/cloud/discoveryengine" + + "/v1beta/schema.proto\032#google/longrunning" + + "/operations.proto\032\033google/protobuf/empty" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "P\n\020GetSchemaRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372" + + "A\'\n%discoveryengine.googleapis.com/Schem" + + "a\"~\n\022ListSchemasRequest\022A\n\006parent\030\001 \001(\tB" + + "1\342A\001\002\372A*\n(discoveryengine.googleapis.com" + + "/DataStore\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"l\n\023ListSchemasResponse\022<\n\007sche" + + "mas\030\001 \003(\0132+.google.cloud.discoveryengine" + + ".v1beta.Schema\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\264\001\n\023CreateSchemaRequest\022A\n\006parent\030\001 \001(\tB" + + "1\342A\001\002\372A*\n(discoveryengine.googleapis.com" + + "/DataStore\022A\n\006schema\030\002 \001(\0132+.google.clou" + + "d.discoveryengine.v1beta.SchemaB\004\342A\001\002\022\027\n" + + "\tschema_id\030\003 \001(\tB\004\342A\001\002\"o\n\023UpdateSchemaRe" + + "quest\022A\n\006schema\030\001 \001(\0132+.google.cloud.dis" + + "coveryengine.v1beta.SchemaB\004\342A\001\002\022\025\n\rallo" + + "w_missing\030\003 \001(\010\"S\n\023DeleteSchemaRequest\022<" + + "\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.g" + + "oogleapis.com/Schema\"x\n\024CreateSchemaMeta" + + "data\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\"x\n\024UpdateSchemaMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\"x\n\024DeleteSchema" + + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp2\211\016\n\rSchemaSer" + + "vice\022\214\002\n\tGetSchema\0225.google.cloud.discov" + + "eryengine.v1beta.GetSchemaRequest\032+.goog" + + "le.cloud.discoveryengine.v1beta.Schema\"\232" + + "\001\332A\004name\202\323\344\223\002\214\001\022 * Detailed search information. *
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchInfo} */ -public final class SearchInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchInfo) SearchInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchInfo.newBuilder() to construct. private SearchInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchInfo() { searchQuery_ = ""; orderBy_ = ""; @@ -44,33 +26,29 @@ private SearchInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchInfo.class, - com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchInfo.class, com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder.class); } private int bitField0_; public static final int SEARCH_QUERY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object searchQuery_ = ""; /** - * - * *
    * The user's search query.
    *
@@ -90,7 +68,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string search_query = 1; - * * @return The searchQuery. */ @java.lang.Override @@ -99,15 +76,14 @@ 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; } } /** - * - * *
    * The user's search query.
    *
@@ -127,15 +103,16 @@ public java.lang.String getSearchQuery() {
    * 
* * 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 { @@ -144,12 +121,9 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -165,7 +139,6 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
    * 
* * string order_by = 2; - * * @return The orderBy. */ @java.lang.Override @@ -174,15 +147,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -198,15 +170,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 2; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -217,8 +190,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int OFFSET_FIELD_NUMBER = 3; private int offset_ = 0; /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -234,7 +205,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * optional int32 offset = 3; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -242,8 +212,6 @@ public boolean hasOffset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -259,7 +227,6 @@ public boolean hasOffset() {
    * 
* * optional int32 offset = 3; - * * @return The offset. */ @java.lang.Override @@ -268,7 +235,6 @@ public int getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +246,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_); } @@ -306,7 +273,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderBy_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,19 +284,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.discoveryengine.v1beta.SearchInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchInfo other = - (com.google.cloud.discoveryengine.v1beta.SearchInfo) obj; + com.google.cloud.discoveryengine.v1beta.SearchInfo other = (com.google.cloud.discoveryengine.v1beta.SearchInfo) obj; - if (!getSearchQuery().equals(other.getSearchQuery())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getSearchQuery() + .equals(other.getSearchQuery())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -355,135 +325,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo 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.discoveryengine.v1beta.SearchInfo 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 search information.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchInfo} */ - 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.discoveryengine.v1beta.SearchInfo) com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchInfo.class, - com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchInfo.class, com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.SearchInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; } @java.lang.Override @@ -516,11 +482,8 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchInfo result = - new com.google.cloud.discoveryengine.v1beta.SearchInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.SearchInfo result = new com.google.cloud.discoveryengine.v1beta.SearchInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -545,39 +508,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchInfo re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchInfo)other); } else { super.mergeFrom(other); return this; @@ -585,8 +547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()) return this; if (!other.getSearchQuery().isEmpty()) { searchQuery_ = other.searchQuery_; bitField0_ |= 0x00000001; @@ -626,31 +587,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - searchQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - offset_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + searchQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + offset_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,13 +617,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object searchQuery_ = ""; /** - * - * *
      * The user's search query.
      *
@@ -686,13 +640,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -701,8 +655,6 @@ public java.lang.String getSearchQuery() { } } /** - * - * *
      * The user's search query.
      *
@@ -722,14 +674,15 @@ public java.lang.String getSearchQuery() {
      * 
* * 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 { @@ -737,8 +690,6 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { } } /** - * - * *
      * The user's search query.
      *
@@ -758,22 +709,18 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
      * 
* * string search_query = 1; - * * @param value The searchQuery to set. * @return This builder for chaining. */ - public Builder setSearchQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } searchQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The user's search query.
      *
@@ -793,7 +740,6 @@ public Builder setSearchQuery(java.lang.String value) {
      * 
* * string search_query = 1; - * * @return This builder for chaining. */ public Builder clearSearchQuery() { @@ -803,8 +749,6 @@ public Builder clearSearchQuery() { return this; } /** - * - * *
      * The user's search query.
      *
@@ -824,14 +768,12 @@ public Builder clearSearchQuery() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); searchQuery_ = value; bitField0_ |= 0x00000001; @@ -841,8 +783,6 @@ public Builder setSearchQueryBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -858,13 +798,13 @@ public Builder setSearchQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 2; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -873,8 +813,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -890,14 +828,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 2; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -905,8 +844,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -922,22 +859,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 2; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -953,7 +886,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 2; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -963,8 +895,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * The order in which products are returned, if applicable.
      *
@@ -980,14 +910,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 2; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000002; @@ -995,10 +923,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private int offset_; + private int offset_ ; /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1014,7 +940,6 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int32 offset = 3; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -1022,8 +947,6 @@ public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1039,7 +962,6 @@ public boolean hasOffset() {
      * 
* * optional int32 offset = 3; - * * @return The offset. */ @java.lang.Override @@ -1047,8 +969,6 @@ public int getOffset() { return offset_; } /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1064,7 +984,6 @@ public int getOffset() {
      * 
* * optional int32 offset = 3; - * * @param value The offset to set. * @return This builder for chaining. */ @@ -1076,8 +995,6 @@ public Builder setOffset(int value) { return this; } /** - * - * *
      * An integer that specifies the current offset for pagination (the 0-indexed
      * starting location, amongst the products deemed by the API as relevant).
@@ -1093,7 +1010,6 @@ public Builder setOffset(int value) {
      * 
* * optional int32 offset = 3; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -1102,9 +1018,9 @@ public Builder clearOffset() { 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); } @@ -1114,12 +1030,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchInfo) private static final com.google.cloud.discoveryengine.v1beta.SearchInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchInfo(); } @@ -1128,27 +1044,27 @@ public static com.google.cloud.discoveryengine.v1beta.SearchInfo getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,4 +1079,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.SearchInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java similarity index 84% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java index 0c8c65f215e7..a7fe548be480 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface SearchInfoOrBuilder - extends +public interface SearchInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user's search query.
    *
@@ -45,13 +27,10 @@ public interface SearchInfoOrBuilder
    * 
* * string search_query = 1; - * * @return The searchQuery. */ java.lang.String getSearchQuery(); /** - * - * *
    * The user's search query.
    *
@@ -71,14 +50,12 @@ public interface SearchInfoOrBuilder
    * 
* * string search_query = 1; - * * @return The bytes for searchQuery. */ - com.google.protobuf.ByteString getSearchQueryBytes(); + com.google.protobuf.ByteString + getSearchQueryBytes(); /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -94,13 +71,10 @@ public interface SearchInfoOrBuilder
    * 
* * string order_by = 2; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * The order in which products are returned, if applicable.
    *
@@ -116,14 +90,12 @@ public interface SearchInfoOrBuilder
    * 
* * string order_by = 2; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -139,13 +111,10 @@ public interface SearchInfoOrBuilder
    * 
* * optional int32 offset = 3; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
    * An integer that specifies the current offset for pagination (the 0-indexed
    * starting location, amongst the products deemed by the API as relevant).
@@ -161,7 +130,6 @@ public interface SearchInfoOrBuilder
    * 
* * optional int32 offset = 3; - * * @return The offset. */ int getOffset(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java similarity index 70% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java index 418a72255be8..8efe72f189d8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for
  * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest}
  */
-public final class SearchRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SearchRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest)
     SearchRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SearchRequest.newBuilder() to construct.
   private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SearchRequest() {
     servingConfig_ = "";
     branch_ = "";
@@ -53,140 +35,124 @@ private SearchRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SearchRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_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 11:
         return internalGetParams();
       case 22:
         return internalGetUserLabels();
       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.discoveryengine.v1beta.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.class,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.SearchRequest.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder.class);
   }
 
-  public interface ImageQueryOrBuilder
-      extends
+  public interface ImageQueryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return Whether the imageBytes field is set. */ boolean hasImageBytes(); /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The imageBytes. */ java.lang.String getImageBytes(); /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The bytes for imageBytes. */ - com.google.protobuf.ByteString getImageBytesBytes(); + com.google.protobuf.ByteString + getImageBytesBytes(); com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.ImageCase getImageCase(); } /** - * - * *
    * Specifies the image query input.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery} */ - public static final class ImageQuery extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ImageQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) ImageQueryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageQuery.newBuilder() to construct. private ImageQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageQuery() {} + private ImageQuery() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder.class); } private int imageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object image_; - public enum ImageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_BYTES(1), IMAGE_NOT_SET(0); private final int value; - private ImageCase(int value) { this.value = value; } @@ -202,50 +168,42 @@ public static ImageCase valueOf(int value) { public static ImageCase forNumber(int value) { switch (value) { - case 1: - return IMAGE_BYTES; - case 0: - return IMAGE_NOT_SET; - default: - return null; + case 1: return IMAGE_BYTES; + case 0: return IMAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ImageCase getImageCase() { - return ImageCase.forNumber(imageCase_); + public ImageCase + getImageCase() { + return ImageCase.forNumber( + imageCase_); } public static final int IMAGE_BYTES_FIELD_NUMBER = 1; /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return Whether the imageBytes field is set. */ public boolean hasImageBytes() { return imageCase_ == 1; } /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The imageBytes. */ public java.lang.String getImageBytes() { @@ -256,7 +214,8 @@ public java.lang.String getImageBytes() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (imageCase_ == 1) { image_ = s; @@ -265,25 +224,24 @@ public java.lang.String getImageBytes() { } } /** - * - * *
      * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
      * BMP.
      * 
* * string image_bytes = 1; - * * @return The bytes for imageBytes. */ - public com.google.protobuf.ByteString getImageBytesBytes() { + public com.google.protobuf.ByteString + getImageBytesBytes() { java.lang.Object ref = ""; if (imageCase_ == 1) { ref = image_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (imageCase_ == 1) { image_ = b; } @@ -294,7 +252,6 @@ public com.google.protobuf.ByteString getImageBytesBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,7 +263,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 (imageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -330,18 +288,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.discoveryengine.v1beta.SearchRequest.ImageQuery)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) obj; if (!getImageCase().equals(other.getImageCase())) return false; switch (imageCase_) { case 1: - if (!getImageBytes().equals(other.getImageBytes())) return false; + if (!getImageBytes() + .equals(other.getImageBytes())) return false; break; case 0: default: @@ -371,95 +329,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery 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.discoveryengine.v1beta.SearchRequest.ImageQuery 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.discoveryengine.v1beta.SearchRequest.ImageQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery 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.discoveryengine.v1beta.SearchRequest.ImageQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery 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.discoveryengine.v1beta.SearchRequest.ImageQuery - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery 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.discoveryengine.v1beta.SearchRequest.ImageQuery 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.discoveryengine.v1beta.SearchRequest.ImageQuery prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery 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 @@ -469,42 +421,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specifies the image query input.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery} */ - 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.discoveryengine.v1beta.SearchRequest.ImageQuery) com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -515,16 +464,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance(); } @java.lang.Override @@ -538,23 +485,18 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery build() @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery result) { result.imageCase_ = imageCase_; result.image_ = this.image_; } @@ -563,65 +505,56 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance()) return this; switch (other.getImageCase()) { - case IMAGE_BYTES: - { - imageCase_ = 1; - image_ = other.image_; - onChanged(); - break; - } - case IMAGE_NOT_SET: - { - break; - } + case IMAGE_BYTES: { + imageCase_ = 1; + image_ = other.image_; + onChanged(); + break; + } + case IMAGE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -649,20 +582,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - imageCase_ = 1; - image_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 1; + image_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -672,12 +603,12 @@ public Builder mergeFrom( } // finally return this; } - private int imageCase_ = 0; private java.lang.Object image_; - - public ImageCase getImageCase() { - return ImageCase.forNumber(imageCase_); + public ImageCase + getImageCase() { + return ImageCase.forNumber( + imageCase_); } public Builder clearImage() { @@ -690,15 +621,12 @@ public Builder clearImage() { private int bitField0_; /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return Whether the imageBytes field is set. */ @java.lang.Override @@ -706,15 +634,12 @@ public boolean hasImageBytes() { return imageCase_ == 1; } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return The imageBytes. */ @java.lang.Override @@ -724,7 +649,8 @@ public java.lang.String getImageBytes() { ref = image_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (imageCase_ == 1) { image_ = s; @@ -735,26 +661,25 @@ public java.lang.String getImageBytes() { } } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return The bytes for imageBytes. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytesBytes() { + public com.google.protobuf.ByteString + getImageBytesBytes() { java.lang.Object ref = ""; if (imageCase_ == 1) { ref = image_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (imageCase_ == 1) { image_ = b; } @@ -764,37 +689,30 @@ public com.google.protobuf.ByteString getImageBytesBytes() { } } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @param value The imageBytes to set. * @return This builder for chaining. */ - public Builder setImageBytes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } imageCase_ = 1; image_ = value; onChanged(); return this; } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @return This builder for chaining. */ public Builder clearImageBytes() { @@ -806,29 +724,24 @@ public Builder clearImageBytes() { return this; } /** - * - * *
        * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and
        * BMP.
        * 
* * string image_bytes = 1; - * * @param value The bytes for imageBytes to set. * @return This builder for chaining. */ - public Builder setImageBytesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); imageCase_ = 1; image_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -841,44 +754,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -890,62 +800,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FacetSpecOrBuilder - extends + public interface FacetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the facetKey field is set. */ boolean hasFacetKey(); /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The facetKey. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getFacetKey(); /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder(); /** - * - * *
      * Maximum of facet values that should be returned for this facet. If
      * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -955,14 +847,11 @@ public interface FacetSpecOrBuilder
      * 
* * int32 limit = 2; - * * @return The limit. */ int getLimit(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -995,13 +884,11 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @return A list containing the excludedFilterKeys. */ - java.util.List getExcludedFilterKeysList(); + java.util.List + getExcludedFilterKeysList(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -1034,13 +921,10 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @return The count of excludedFilterKeys. */ int getExcludedFilterKeysCount(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -1073,14 +957,11 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the element to return. * @return The excludedFilterKeys at the given index. */ java.lang.String getExcludedFilterKeys(int index); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -1113,15 +994,13 @@ public interface FacetSpecOrBuilder
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the value to return. * @return The bytes of the excludedFilterKeys at the given index. */ - com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index); + com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index); /** - * - * *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined automatically.
@@ -1154,63 +1033,56 @@ public interface FacetSpecOrBuilder
      * 
* * bool enable_dynamic_position = 4; - * * @return The enableDynamicPosition. */ boolean getEnableDynamicPosition(); } /** - * - * *
    * A facet specification to perform faceted search.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec} */ - public static final class FacetSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FacetSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) FacetSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FacetSpec.newBuilder() to construct. private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FacetSpec() { - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FacetSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder.class); } - public interface FacetKeyOrBuilder - extends + public interface FacetKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -1218,13 +1090,10 @@ public interface FacetKeyOrBuilder
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -1232,14 +1101,12 @@ public interface FacetKeyOrBuilder
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1248,10 +1115,9 @@ public interface FacetKeyOrBuilder
        *
        * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
        */
-      java.util.List getIntervalsList();
+      java.util.List 
+          getIntervalsList();
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1262,8 +1128,6 @@ public interface FacetKeyOrBuilder
        */
       com.google.cloud.discoveryengine.v1beta.Interval getIntervals(int index);
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1274,8 +1138,6 @@ public interface FacetKeyOrBuilder
        */
       int getIntervalsCount();
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1284,11 +1146,9 @@ public interface FacetKeyOrBuilder
        *
        * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
        */
-      java.util.List
+      java.util.List 
           getIntervalsOrBuilderList();
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1297,11 +1157,10 @@ public interface FacetKeyOrBuilder
        *
        * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
        */
-      com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrBuilder(int index);
+      com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrBuilder(
+          int index);
 
       /**
-       *
-       *
        * 
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1312,13 +1171,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @return A list containing the restrictedValues. */ - java.util.List getRestrictedValuesList(); + java.util.List + getRestrictedValuesList(); /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1329,13 +1186,10 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @return The count of restrictedValues. */ int getRestrictedValuesCount(); /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1346,14 +1200,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the element to return. * @return The restrictedValues at the given index. */ java.lang.String getRestrictedValues(int index); /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1364,15 +1215,13 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the value to return. * @return The bytes of the restrictedValues at the given index. */ - com.google.protobuf.ByteString getRestrictedValuesBytes(int index); + com.google.protobuf.ByteString + getRestrictedValuesBytes(int index); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1382,13 +1231,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @return A list containing the prefixes. */ - java.util.List getPrefixesList(); + java.util.List + getPrefixesList(); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1398,13 +1245,10 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @return The count of prefixes. */ int getPrefixesCount(); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1414,14 +1258,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ java.lang.String getPrefixes(int index); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1431,15 +1272,13 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string prefixes = 4; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - com.google.protobuf.ByteString getPrefixesBytes(int index); + com.google.protobuf.ByteString + getPrefixesBytes(int index); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1449,13 +1288,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @return A list containing the contains. */ - java.util.List getContainsList(); + java.util.List + getContainsList(); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1465,13 +1302,10 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @return The count of contains. */ int getContainsCount(); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1481,14 +1315,11 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @param index The index of the element to return. * @return The contains at the given index. */ java.lang.String getContains(int index); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1498,29 +1329,24 @@ public interface FacetKeyOrBuilder
        * 
* * repeated string contains = 5; - * * @param index The index of the value to return. * @return The bytes of the contains at the given index. */ - com.google.protobuf.ByteString getContainsBytes(int index); + com.google.protobuf.ByteString + getContainsBytes(int index); /** - * - * *
        * True to make facet keys case insensitive when getting faceting
        * values with prefixes or contains; false otherwise.
        * 
* * bool case_insensitive = 6; - * * @return The caseInsensitive. */ boolean getCaseInsensitive(); /** - * - * *
        * The order in which documents are returned.
        *
@@ -1542,13 +1368,10 @@ public interface FacetKeyOrBuilder
        * 
* * string order_by = 7; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
        * The order in which documents are returned.
        *
@@ -1570,68 +1393,63 @@ public interface FacetKeyOrBuilder
        * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } /** - * - * *
      * Specifies how a facet is computed.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey} */ - public static final class FacetKey extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FacetKey extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) FacetKeyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FacetKey.newBuilder() to construct. private FacetKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FacetKey() { key_ = ""; intervals_ = java.util.Collections.emptyList(); - restrictedValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); orderBy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FacetKey(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -1639,7 +1457,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ @java.lang.Override @@ -1648,15 +1465,14 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
        * Required. Supported textual and numerical facet keys in
        * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -1664,15 +1480,16 @@ public java.lang.String getKey() {
        * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -1681,12 +1498,9 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int INTERVALS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List intervals_; /** - * - * *
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1700,8 +1514,6 @@ public java.util.List getInter
         return intervals_;
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1711,13 +1523,11 @@ public java.util.List getInter
        * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
        */
       @java.lang.Override
-      public java.util.List
+      public java.util.List 
           getIntervalsOrBuilderList() {
         return intervals_;
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1731,8 +1541,6 @@ public int getIntervalsCount() {
         return intervals_.size();
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1746,8 +1554,6 @@ public com.google.cloud.discoveryengine.v1beta.Interval getIntervals(int index)
         return intervals_.get(index);
       }
       /**
-       *
-       *
        * 
        * Set only if values should be bucketed into intervals. Must be set
        * for facets with numerical values. Must not be set for facet with text
@@ -1763,13 +1569,10 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrB
       }
 
       public static final int RESTRICTED_VALUES_FIELD_NUMBER = 3;
-
       @SuppressWarnings("serial")
       private com.google.protobuf.LazyStringArrayList restrictedValues_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
       /**
-       *
-       *
        * 
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1780,15 +1583,13 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrB
        * 
* * repeated string restricted_values = 3; - * * @return A list containing the restrictedValues. */ - public com.google.protobuf.ProtocolStringList getRestrictedValuesList() { + public com.google.protobuf.ProtocolStringList + getRestrictedValuesList() { return restrictedValues_; } /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1799,15 +1600,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedValuesList() {
        * 
* * repeated string restricted_values = 3; - * * @return The count of restrictedValues. */ public int getRestrictedValuesCount() { return restrictedValues_.size(); } /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1818,7 +1616,6 @@ public int getRestrictedValuesCount() {
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the element to return. * @return The restrictedValues at the given index. */ @@ -1826,8 +1623,6 @@ public java.lang.String getRestrictedValues(int index) { return restrictedValues_.get(index); } /** - * - * *
        * Only get facet for the given restricted values. Only supported on
        * textual fields. For example, suppose "category" has three values
@@ -1838,22 +1633,19 @@ public java.lang.String getRestrictedValues(int index) {
        * 
* * repeated string restricted_values = 3; - * * @param index The index of the value to return. * @return The bytes of the restrictedValues at the given index. */ - public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { + public com.google.protobuf.ByteString + getRestrictedValuesBytes(int index) { return restrictedValues_.getByteString(index); } public static final int PREFIXES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1863,15 +1655,13 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) {
        * 
* * repeated string prefixes = 4; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { return prefixes_; } /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1881,15 +1671,12 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() {
        * 
* * repeated string prefixes = 4; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1899,7 +1686,6 @@ public int getPrefixesCount() {
        * 
* * repeated string prefixes = 4; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -1907,8 +1693,6 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
        * Only get facet values that start with the given string prefix. For
        * example, suppose "category" has three values "Action > 2022",
@@ -1918,22 +1702,19 @@ public java.lang.String getPrefixes(int index) {
        * 
* * repeated string prefixes = 4; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } public static final int CONTAINS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1943,15 +1724,13 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) {
        * 
* * repeated string contains = 5; - * * @return A list containing the contains. */ - public com.google.protobuf.ProtocolStringList getContainsList() { + public com.google.protobuf.ProtocolStringList + getContainsList() { return contains_; } /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1961,15 +1740,12 @@ public com.google.protobuf.ProtocolStringList getContainsList() {
        * 
* * repeated string contains = 5; - * * @return The count of contains. */ public int getContainsCount() { return contains_.size(); } /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1979,7 +1755,6 @@ public int getContainsCount() {
        * 
* * repeated string contains = 5; - * * @param index The index of the element to return. * @return The contains at the given index. */ @@ -1987,8 +1762,6 @@ public java.lang.String getContains(int index) { return contains_.get(index); } /** - * - * *
        * Only get facet values that contains the given strings. For example,
        * suppose "category" has three values "Action > 2022",
@@ -1998,26 +1771,23 @@ public java.lang.String getContains(int index) {
        * 
* * repeated string contains = 5; - * * @param index The index of the value to return. * @return The bytes of the contains at the given index. */ - public com.google.protobuf.ByteString getContainsBytes(int index) { + public com.google.protobuf.ByteString + getContainsBytes(int index) { return contains_.getByteString(index); } public static final int CASE_INSENSITIVE_FIELD_NUMBER = 6; private boolean caseInsensitive_ = false; /** - * - * *
        * True to make facet keys case insensitive when getting faceting
        * values with prefixes or contains; false otherwise.
        * 
* * bool case_insensitive = 6; - * * @return The caseInsensitive. */ @java.lang.Override @@ -2026,12 +1796,9 @@ public boolean getCaseInsensitive() { } public static final int ORDER_BY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
        * The order in which documents are returned.
        *
@@ -2053,7 +1820,6 @@ public boolean getCaseInsensitive() {
        * 
* * string order_by = 7; - * * @return The orderBy. */ @java.lang.Override @@ -2062,15 +1828,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
        * The order in which documents are returned.
        *
@@ -2092,15 +1857,16 @@ public java.lang.String getOrderBy() {
        * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -2109,7 +1875,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2121,7 +1886,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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -2129,8 +1895,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, intervals_.get(i)); } for (int i = 0; i < restrictedValues_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, restrictedValues_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, restrictedValues_.getRaw(i)); } for (int i = 0; i < prefixes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, prefixes_.getRaw(i)); @@ -2157,7 +1922,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } for (int i = 0; i < intervals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, intervals_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, intervals_.get(i)); } { int dataSize = 0; @@ -2184,7 +1950,8 @@ public int getSerializedSize() { size += 1 * getContainsList().size(); } if (caseInsensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, caseInsensitive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, caseInsensitive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, orderBy_); @@ -2197,22 +1964,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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getIntervalsList().equals(other.getIntervalsList())) return false; - if (!getRestrictedValuesList().equals(other.getRestrictedValuesList())) return false; - if (!getPrefixesList().equals(other.getPrefixesList())) return false; - if (!getContainsList().equals(other.getContainsList())) return false; - if (getCaseInsensitive() != other.getCaseInsensitive()) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getIntervalsList() + .equals(other.getIntervalsList())) return false; + if (!getRestrictedValuesList() + .equals(other.getRestrictedValuesList())) return false; + if (!getPrefixesList() + .equals(other.getPrefixesList())) return false; + if (!getContainsList() + .equals(other.getContainsList())) return false; + if (getCaseInsensitive() + != other.getCaseInsensitive()) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2243,7 +2015,8 @@ public int hashCode() { hash = (53 * hash) + getContainsList().hashCode(); } hash = (37 * hash) + CASE_INSENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseInsensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaseInsensitive()); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2251,103 +2024,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - 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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - 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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey 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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey 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 @@ -2357,43 +2117,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specifies how a facet is computed.
        * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey} */ - 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.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2406,31 +2162,31 @@ public Builder clear() { intervalsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); - restrictedValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); caseInsensitive_ = false; orderBy_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2438,20 +2194,15 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey(this); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result) { if (intervalsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { intervals_ = java.util.Collections.unmodifiableList(intervals_); @@ -2463,8 +2214,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -2493,54 +2243,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -2564,10 +2306,9 @@ public Builder mergeFrom( intervalsBuilder_ = null; intervals_ = other.intervals_; bitField0_ = (bitField0_ & ~0x00000002); - intervalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIntervalsFieldBuilder() - : null; + intervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntervalsFieldBuilder() : null; } else { intervalsBuilder_.addAllMessages(other.intervals_); } @@ -2637,66 +2378,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1beta.Interval m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Interval.parser(), - extensionRegistry); - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - intervals_.add(m); - } else { - intervalsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRestrictedValuesIsMutable(); - restrictedValues_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrefixesIsMutable(); - prefixes_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureContainsIsMutable(); - contains_.add(s); - break; - } // case 42 - case 48: - { - caseInsensitive_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1beta.Interval m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Interval.parser(), + extensionRegistry); + if (intervalsBuilder_ == null) { + ensureIntervalsIsMutable(); + intervals_.add(m); + } else { + intervalsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedValuesIsMutable(); + restrictedValues_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrefixesIsMutable(); + prefixes_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureContainsIsMutable(); + contains_.add(s); + break; + } // case 42 + case 48: { + caseInsensitive_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2706,13 +2439,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -2720,13 +2450,13 @@ public Builder mergeFrom(
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -2735,8 +2465,6 @@ public java.lang.String getKey() { } } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -2744,14 +2472,15 @@ public java.lang.String getKey() {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2759,8 +2488,6 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -2768,22 +2495,18 @@ public com.google.protobuf.ByteString getKeyBytes() {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -2791,7 +2514,6 @@ public Builder setKey(java.lang.String value) {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -2801,8 +2523,6 @@ public Builder clearKey() { return this; } /** - * - * *
          * Required. Supported textual and numerical facet keys in
          * [Document][google.cloud.discoveryengine.v1beta.Document] object, over
@@ -2810,14 +2530,12 @@ public Builder clearKey() {
          * 
* * string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -2826,26 +2544,18 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { } private java.util.List intervals_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIntervalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - intervals_ = - new java.util.ArrayList( - intervals_); + intervals_ = new java.util.ArrayList(intervals_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Interval, - com.google.cloud.discoveryengine.v1beta.Interval.Builder, - com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder> - intervalsBuilder_; + com.google.cloud.discoveryengine.v1beta.Interval, com.google.cloud.discoveryengine.v1beta.Interval.Builder, com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder> intervalsBuilder_; /** - * - * *
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2862,8 +2572,6 @@ public java.util.List getInter
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2880,8 +2588,6 @@ public int getIntervalsCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2898,8 +2604,6 @@ public com.google.cloud.discoveryengine.v1beta.Interval getIntervals(int index)
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2923,8 +2627,6 @@ public Builder setIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2945,8 +2647,6 @@ public Builder setIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2969,8 +2669,6 @@ public Builder addIntervals(com.google.cloud.discoveryengine.v1beta.Interval val
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -2994,8 +2692,6 @@ public Builder addIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3016,8 +2712,6 @@ public Builder addIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3038,8 +2732,6 @@ public Builder addIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3052,7 +2744,8 @@ public Builder addAllIntervals(
             java.lang.Iterable values) {
           if (intervalsBuilder_ == null) {
             ensureIntervalsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intervals_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(
+                values, intervals_);
             onChanged();
           } else {
             intervalsBuilder_.addAllMessages(values);
@@ -3060,8 +2753,6 @@ public Builder addAllIntervals(
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3081,8 +2772,6 @@ public Builder clearIntervals() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3102,8 +2791,6 @@ public Builder removeIntervals(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3117,8 +2804,6 @@ public com.google.cloud.discoveryengine.v1beta.Interval.Builder getIntervalsBuil
           return getIntervalsFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3130,14 +2815,11 @@ public com.google.cloud.discoveryengine.v1beta.Interval.Builder getIntervalsBuil
         public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrBuilder(
             int index) {
           if (intervalsBuilder_ == null) {
-            return intervals_.get(index);
-          } else {
+            return intervals_.get(index);  } else {
             return intervalsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3146,8 +2828,8 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrB
          *
          * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
          */
-        public java.util.List
-            getIntervalsOrBuilderList() {
+        public java.util.List 
+             getIntervalsOrBuilderList() {
           if (intervalsBuilder_ != null) {
             return intervalsBuilder_.getMessageOrBuilderList();
           } else {
@@ -3155,8 +2837,6 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrB
           }
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3166,12 +2846,10 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalsOrB
          * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
          */
         public com.google.cloud.discoveryengine.v1beta.Interval.Builder addIntervalsBuilder() {
-          return getIntervalsFieldBuilder()
-              .addBuilder(com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance());
+          return getIntervalsFieldBuilder().addBuilder(
+              com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3182,13 +2860,10 @@ public com.google.cloud.discoveryengine.v1beta.Interval.Builder addIntervalsBuil
          */
         public com.google.cloud.discoveryengine.v1beta.Interval.Builder addIntervalsBuilder(
             int index) {
-          return getIntervalsFieldBuilder()
-              .addBuilder(
-                  index, com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance());
+          return getIntervalsFieldBuilder().addBuilder(
+              index, com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Set only if values should be bucketed into intervals. Must be set
          * for facets with numerical values. Must not be set for facet with text
@@ -3197,22 +2872,16 @@ public com.google.cloud.discoveryengine.v1beta.Interval.Builder addIntervalsBuil
          *
          * repeated .google.cloud.discoveryengine.v1beta.Interval intervals = 2;
          */
-        public java.util.List
-            getIntervalsBuilderList() {
+        public java.util.List 
+             getIntervalsBuilderList() {
           return getIntervalsFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.Interval,
-                com.google.cloud.discoveryengine.v1beta.Interval.Builder,
-                com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder>
+            com.google.cloud.discoveryengine.v1beta.Interval, com.google.cloud.discoveryengine.v1beta.Interval.Builder, com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder> 
             getIntervalsFieldBuilder() {
           if (intervalsBuilder_ == null) {
-            intervalsBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.cloud.discoveryengine.v1beta.Interval,
-                    com.google.cloud.discoveryengine.v1beta.Interval.Builder,
-                    com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder>(
+            intervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.discoveryengine.v1beta.Interval, com.google.cloud.discoveryengine.v1beta.Interval.Builder, com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder>(
                     intervals_,
                     ((bitField0_ & 0x00000002) != 0),
                     getParentForChildren(),
@@ -3224,7 +2893,6 @@ public com.google.cloud.discoveryengine.v1beta.Interval.Builder addIntervalsBuil
 
         private com.google.protobuf.LazyStringArrayList restrictedValues_ =
             com.google.protobuf.LazyStringArrayList.emptyList();
-
         private void ensureRestrictedValuesIsMutable() {
           if (!restrictedValues_.isModifiable()) {
             restrictedValues_ = new com.google.protobuf.LazyStringArrayList(restrictedValues_);
@@ -3232,8 +2900,6 @@ private void ensureRestrictedValuesIsMutable() {
           bitField0_ |= 0x00000004;
         }
         /**
-         *
-         *
          * 
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3244,16 +2910,14 @@ private void ensureRestrictedValuesIsMutable() {
          * 
* * repeated string restricted_values = 3; - * * @return A list containing the restrictedValues. */ - public com.google.protobuf.ProtocolStringList getRestrictedValuesList() { + public com.google.protobuf.ProtocolStringList + getRestrictedValuesList() { restrictedValues_.makeImmutable(); return restrictedValues_; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3264,15 +2928,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedValuesList() {
          * 
* * repeated string restricted_values = 3; - * * @return The count of restrictedValues. */ public int getRestrictedValuesCount() { return restrictedValues_.size(); } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3283,7 +2944,6 @@ public int getRestrictedValuesCount() {
          * 
* * repeated string restricted_values = 3; - * * @param index The index of the element to return. * @return The restrictedValues at the given index. */ @@ -3291,8 +2951,6 @@ public java.lang.String getRestrictedValues(int index) { return restrictedValues_.get(index); } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3303,16 +2961,14 @@ public java.lang.String getRestrictedValues(int index) {
          * 
* * repeated string restricted_values = 3; - * * @param index The index of the value to return. * @return The bytes of the restrictedValues at the given index. */ - public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { + public com.google.protobuf.ByteString + getRestrictedValuesBytes(int index) { return restrictedValues_.getByteString(index); } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3323,15 +2979,13 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) {
          * 
* * repeated string restricted_values = 3; - * * @param index The index to set the value at. * @param value The restrictedValues to set. * @return This builder for chaining. */ - public Builder setRestrictedValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRestrictedValues( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRestrictedValuesIsMutable(); restrictedValues_.set(index, value); bitField0_ |= 0x00000004; @@ -3339,8 +2993,6 @@ public Builder setRestrictedValues(int index, java.lang.String value) { return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3351,14 +3003,12 @@ public Builder setRestrictedValues(int index, java.lang.String value) {
          * 
* * repeated string restricted_values = 3; - * * @param value The restrictedValues to add. * @return This builder for chaining. */ - public Builder addRestrictedValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRestrictedValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRestrictedValuesIsMutable(); restrictedValues_.add(value); bitField0_ |= 0x00000004; @@ -3366,8 +3016,6 @@ public Builder addRestrictedValues(java.lang.String value) { return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3378,20 +3026,19 @@ public Builder addRestrictedValues(java.lang.String value) {
          * 
* * repeated string restricted_values = 3; - * * @param values The restrictedValues to add. * @return This builder for chaining. */ - public Builder addAllRestrictedValues(java.lang.Iterable values) { + public Builder addAllRestrictedValues( + java.lang.Iterable values) { ensureRestrictedValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedValues_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3402,19 +3049,16 @@ public Builder addAllRestrictedValues(java.lang.Iterable value
          * 
* * repeated string restricted_values = 3; - * * @return This builder for chaining. */ public Builder clearRestrictedValues() { - restrictedValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + restrictedValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
          * Only get facet for the given restricted values. Only supported on
          * textual fields. For example, suppose "category" has three values
@@ -3425,14 +3069,12 @@ public Builder clearRestrictedValues() {
          * 
* * repeated string restricted_values = 3; - * * @param value The bytes of the restrictedValues to add. * @return This builder for chaining. */ - public Builder addRestrictedValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRestrictedValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRestrictedValuesIsMutable(); restrictedValues_.add(value); @@ -3443,7 +3085,6 @@ public Builder addRestrictedValuesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePrefixesIsMutable() { if (!prefixes_.isModifiable()) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); @@ -3451,8 +3092,6 @@ private void ensurePrefixesIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3462,16 +3101,14 @@ private void ensurePrefixesIsMutable() {
          * 
* * repeated string prefixes = 4; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { prefixes_.makeImmutable(); return prefixes_; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3481,15 +3118,12 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() {
          * 
* * repeated string prefixes = 4; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3499,7 +3133,6 @@ public int getPrefixesCount() {
          * 
* * repeated string prefixes = 4; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -3507,8 +3140,6 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3518,16 +3149,14 @@ public java.lang.String getPrefixes(int index) {
          * 
* * repeated string prefixes = 4; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3537,15 +3166,13 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) {
          * 
* * repeated string prefixes = 4; - * * @param index The index to set the value at. * @param value The prefixes to set. * @return This builder for chaining. */ - public Builder setPrefixes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.set(index, value); bitField0_ |= 0x00000008; @@ -3553,8 +3180,6 @@ public Builder setPrefixes(int index, java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3564,14 +3189,12 @@ public Builder setPrefixes(int index, java.lang.String value) {
          * 
* * repeated string prefixes = 4; - * * @param value The prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.add(value); bitField0_ |= 0x00000008; @@ -3579,8 +3202,6 @@ public Builder addPrefixes(java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3590,20 +3211,19 @@ public Builder addPrefixes(java.lang.String value) {
          * 
* * repeated string prefixes = 4; - * * @param values The prefixes to add. * @return This builder for chaining. */ - public Builder addAllPrefixes(java.lang.Iterable values) { + public Builder addAllPrefixes( + java.lang.Iterable values) { ensurePrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prefixes_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3613,19 +3233,16 @@ public Builder addAllPrefixes(java.lang.Iterable values) {
          * 
* * repeated string prefixes = 4; - * * @return This builder for chaining. */ public Builder clearPrefixes() { - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
          * Only get facet values that start with the given string prefix. For
          * example, suppose "category" has three values "Action > 2022",
@@ -3635,14 +3252,12 @@ public Builder clearPrefixes() {
          * 
* * repeated string prefixes = 4; - * * @param value The bytes of the prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePrefixesIsMutable(); prefixes_.add(value); @@ -3653,7 +3268,6 @@ public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureContainsIsMutable() { if (!contains_.isModifiable()) { contains_ = new com.google.protobuf.LazyStringArrayList(contains_); @@ -3661,8 +3275,6 @@ private void ensureContainsIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3672,16 +3284,14 @@ private void ensureContainsIsMutable() {
          * 
* * repeated string contains = 5; - * * @return A list containing the contains. */ - public com.google.protobuf.ProtocolStringList getContainsList() { + public com.google.protobuf.ProtocolStringList + getContainsList() { contains_.makeImmutable(); return contains_; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3691,15 +3301,12 @@ public com.google.protobuf.ProtocolStringList getContainsList() {
          * 
* * repeated string contains = 5; - * * @return The count of contains. */ public int getContainsCount() { return contains_.size(); } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3709,7 +3316,6 @@ public int getContainsCount() {
          * 
* * repeated string contains = 5; - * * @param index The index of the element to return. * @return The contains at the given index. */ @@ -3717,8 +3323,6 @@ public java.lang.String getContains(int index) { return contains_.get(index); } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3728,16 +3332,14 @@ public java.lang.String getContains(int index) {
          * 
* * repeated string contains = 5; - * * @param index The index of the value to return. * @return The bytes of the contains at the given index. */ - public com.google.protobuf.ByteString getContainsBytes(int index) { + public com.google.protobuf.ByteString + getContainsBytes(int index) { return contains_.getByteString(index); } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3747,15 +3349,13 @@ public com.google.protobuf.ByteString getContainsBytes(int index) {
          * 
* * repeated string contains = 5; - * * @param index The index to set the value at. * @param value The contains to set. * @return This builder for chaining. */ - public Builder setContains(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContains( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContainsIsMutable(); contains_.set(index, value); bitField0_ |= 0x00000010; @@ -3763,8 +3363,6 @@ public Builder setContains(int index, java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3774,14 +3372,12 @@ public Builder setContains(int index, java.lang.String value) {
          * 
* * repeated string contains = 5; - * * @param value The contains to add. * @return This builder for chaining. */ - public Builder addContains(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContains( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureContainsIsMutable(); contains_.add(value); bitField0_ |= 0x00000010; @@ -3789,8 +3385,6 @@ public Builder addContains(java.lang.String value) { return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3800,20 +3394,19 @@ public Builder addContains(java.lang.String value) {
          * 
* * repeated string contains = 5; - * * @param values The contains to add. * @return This builder for chaining. */ - public Builder addAllContains(java.lang.Iterable values) { + public Builder addAllContains( + java.lang.Iterable values) { ensureContainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contains_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3823,19 +3416,16 @@ public Builder addAllContains(java.lang.Iterable values) {
          * 
* * repeated string contains = 5; - * * @return This builder for chaining. */ public Builder clearContains() { - contains_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + contains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
          * Only get facet values that contains the given strings. For example,
          * suppose "category" has three values "Action > 2022",
@@ -3845,14 +3435,12 @@ public Builder clearContains() {
          * 
* * repeated string contains = 5; - * * @param value The bytes of the contains to add. * @return This builder for chaining. */ - public Builder addContainsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addContainsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContainsIsMutable(); contains_.add(value); @@ -3861,17 +3449,14 @@ public Builder addContainsBytes(com.google.protobuf.ByteString value) { return this; } - private boolean caseInsensitive_; + private boolean caseInsensitive_ ; /** - * - * *
          * True to make facet keys case insensitive when getting faceting
          * values with prefixes or contains; false otherwise.
          * 
* * bool case_insensitive = 6; - * * @return The caseInsensitive. */ @java.lang.Override @@ -3879,15 +3464,12 @@ public boolean getCaseInsensitive() { return caseInsensitive_; } /** - * - * *
          * True to make facet keys case insensitive when getting faceting
          * values with prefixes or contains; false otherwise.
          * 
* * bool case_insensitive = 6; - * * @param value The caseInsensitive to set. * @return This builder for chaining. */ @@ -3899,15 +3481,12 @@ public Builder setCaseInsensitive(boolean value) { return this; } /** - * - * *
          * True to make facet keys case insensitive when getting faceting
          * values with prefixes or contains; false otherwise.
          * 
* * bool case_insensitive = 6; - * * @return This builder for chaining. */ public Builder clearCaseInsensitive() { @@ -3919,8 +3498,6 @@ public Builder clearCaseInsensitive() { private java.lang.Object orderBy_ = ""; /** - * - * *
          * The order in which documents are returned.
          *
@@ -3942,13 +3519,13 @@ public Builder clearCaseInsensitive() {
          * 
* * string order_by = 7; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -3957,8 +3534,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
          * The order in which documents are returned.
          *
@@ -3980,14 +3555,15 @@ public java.lang.String getOrderBy() {
          * 
* * string order_by = 7; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -3995,8 +3571,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
          * The order in which documents are returned.
          *
@@ -4018,22 +3592,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
          * 
* * string order_by = 7; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
          * The order in which documents are returned.
          *
@@ -4055,7 +3625,6 @@ public Builder setOrderBy(java.lang.String value) {
          * 
* * string order_by = 7; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -4065,8 +3634,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
          * The order in which documents are returned.
          *
@@ -4088,21 +3655,18 @@ public Builder clearOrderBy() {
          * 
* * string order_by = 7; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4115,45 +3679,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FacetKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4165,25 +3725,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int FACET_KEY_FIELD_NUMBER = 1; private com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facetKey_; /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the facetKey field is set. */ @java.lang.Override @@ -4191,50 +3746,32 @@ public boolean hasFacetKey() { return facetKey_ != null; } /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The facetKey. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getFacetKey() { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + return facetKey_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } /** - * - * *
      * Required. The facet key specification.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder() { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder() { + return facetKey_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } public static final int LIMIT_FIELD_NUMBER = 2; private int limit_ = 0; /** - * - * *
      * Maximum of facet values that should be returned for this facet. If
      * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -4244,7 +3781,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey
      * 
* * int32 limit = 2; - * * @return The limit. */ @java.lang.Override @@ -4253,13 +3789,10 @@ public int getLimit() { } public static final int EXCLUDED_FILTER_KEYS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4292,15 +3825,13 @@ public int getLimit() {
      * 
* * repeated string excluded_filter_keys = 3; - * * @return A list containing the excludedFilterKeys. */ - public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() { + public com.google.protobuf.ProtocolStringList + getExcludedFilterKeysList() { return excludedFilterKeys_; } /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4333,15 +3864,12 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
      * 
* * repeated string excluded_filter_keys = 3; - * * @return The count of excludedFilterKeys. */ public int getExcludedFilterKeysCount() { return excludedFilterKeys_.size(); } /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4374,7 +3902,6 @@ public int getExcludedFilterKeysCount() {
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the element to return. * @return The excludedFilterKeys at the given index. */ @@ -4382,8 +3909,6 @@ public java.lang.String getExcludedFilterKeys(int index) { return excludedFilterKeys_.get(index); } /** - * - * *
      * List of keys to exclude when faceting.
      *
@@ -4416,19 +3941,17 @@ public java.lang.String getExcludedFilterKeys(int index) {
      * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the value to return. * @return The bytes of the excludedFilterKeys at the given index. */ - public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { + public com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index) { return excludedFilterKeys_.getByteString(index); } public static final int ENABLE_DYNAMIC_POSITION_FIELD_NUMBER = 4; private boolean enableDynamicPosition_ = false; /** - * - * *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined automatically.
@@ -4461,7 +3984,6 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
      * 
* * bool enable_dynamic_position = 4; - * * @return The enableDynamicPosition. */ @java.lang.Override @@ -4470,7 +3992,6 @@ public boolean getEnableDynamicPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4482,7 +4003,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 (facetKey_ != null) { output.writeMessage(1, getFacetKey()); } @@ -4490,8 +4012,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32(2, limit_); } for (int i = 0; i < excludedFilterKeys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, excludedFilterKeys_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludedFilterKeys_.getRaw(i)); } if (enableDynamicPosition_ != false) { output.writeBool(4, enableDynamicPosition_); @@ -4506,10 +4027,12 @@ public int getSerializedSize() { size = 0; if (facetKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFacetKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFacetKey()); } if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, limit_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, limit_); } { int dataSize = 0; @@ -4520,7 +4043,8 @@ public int getSerializedSize() { size += 1 * getExcludedFilterKeysList().size(); } if (enableDynamicPosition_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableDynamicPosition_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableDynamicPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4530,21 +4054,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.discoveryengine.v1beta.SearchRequest.FacetSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) obj; if (hasFacetKey() != other.hasFacetKey()) return false; if (hasFacetKey()) { - if (!getFacetKey().equals(other.getFacetKey())) return false; - } - if (getLimit() != other.getLimit()) return false; - if (!getExcludedFilterKeysList().equals(other.getExcludedFilterKeysList())) return false; - if (getEnableDynamicPosition() != other.getEnableDynamicPosition()) return false; + if (!getFacetKey() + .equals(other.getFacetKey())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getExcludedFilterKeysList() + .equals(other.getExcludedFilterKeysList())) return false; + if (getEnableDynamicPosition() + != other.getEnableDynamicPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4567,102 +4094,97 @@ public int hashCode() { hash = (53 * hash) + getExcludedFilterKeysList().hashCode(); } hash = (37 * hash) + ENABLE_DYNAMIC_POSITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDynamicPosition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDynamicPosition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec 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.discoveryengine.v1beta.SearchRequest.FacetSpec 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.discoveryengine.v1beta.SearchRequest.FacetSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec 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.discoveryengine.v1beta.SearchRequest.FacetSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec 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.discoveryengine.v1beta.SearchRequest.FacetSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec 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.discoveryengine.v1beta.SearchRequest.FacetSpec 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.discoveryengine.v1beta.SearchRequest.FacetSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec 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 @@ -4672,42 +4194,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A facet specification to perform faceted search.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec} */ - 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.discoveryengine.v1beta.SearchRequest.FacetSpec) com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4718,20 +4237,20 @@ public Builder clear() { facetKeyBuilder_ = null; } limit_ = 0; - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); enableDynamicPosition_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance(); } @@ -4746,20 +4265,18 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.facetKey_ = facetKeyBuilder_ == null ? facetKey_ : facetKeyBuilder_.build(); + result.facetKey_ = facetKeyBuilder_ == null + ? facetKey_ + : facetKeyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.limit_ = limit_; @@ -4777,52 +4294,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()) return this; if (other.hasFacetKey()) { mergeFacetKey(other.getFacetKey()); } @@ -4868,38 +4379,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getFacetKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - limit_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExcludedFilterKeysIsMutable(); - excludedFilterKeys_.add(s); - break; - } // case 26 - case 32: - { - enableDynamicPosition_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getFacetKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + limit_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedFilterKeysIsMutable(); + excludedFilterKeys_.add(s); + break; + } // case 26 + case 32: { + enableDynamicPosition_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4909,68 +4417,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facetKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder> - facetKeyBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder> facetKeyBuilder_; /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the facetKey field is set. */ public boolean hasFacetKey() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The facetKey. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - getFacetKey() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getFacetKey() { if (facetKeyBuilder_ == null) { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + return facetKey_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } else { return facetKeyBuilder_.getMessage(); } } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFacetKey( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey value) { + public Builder setFacetKey(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey value) { if (facetKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4984,19 +4469,14 @@ public Builder setFacetKey( return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFacetKey( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder builderForValue) { if (facetKeyBuilder_ == null) { facetKey_ = builderForValue.build(); } else { @@ -5007,24 +4487,17 @@ public Builder setFacetKey( return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeFacetKey( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey value) { + public Builder mergeFacetKey(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey value) { if (facetKeyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && facetKey_ != null - && facetKey_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + facetKey_ != null && + facetKey_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance()) { getFacetKeyBuilder().mergeFrom(value); } else { facetKey_ = value; @@ -5037,15 +4510,11 @@ public Builder mergeFacetKey( return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFacetKey() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5058,76 +4527,55 @@ public Builder clearFacetKey() { return this; } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder - getFacetKeyBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder getFacetKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFacetKeyFieldBuilder().getBuilder(); } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder getFacetKeyOrBuilder() { if (facetKeyBuilder_ != null) { return facetKeyBuilder_.getMessageOrBuilder(); } else { - return facetKey_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey - .getDefaultInstance() - : facetKey_; + return facetKey_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.getDefaultInstance() : facetKey_; } } /** - * - * *
        * Required. The facet key specification.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder> getFacetKeyFieldBuilder() { if (facetKeyBuilder_ == null) { - facetKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec - .FacetKeyOrBuilder>(getFacetKey(), getParentForChildren(), isClean()); + facetKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder>( + getFacetKey(), + getParentForChildren(), + isClean()); facetKey_ = null; } return facetKeyBuilder_; } - private int limit_; + private int limit_ ; /** - * - * *
        * Maximum of facet values that should be returned for this facet. If
        * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -5137,7 +4585,6 @@ public Builder clearFacetKey() {
        * 
* * int32 limit = 2; - * * @return The limit. */ @java.lang.Override @@ -5145,8 +4592,6 @@ public int getLimit() { return limit_; } /** - * - * *
        * Maximum of facet values that should be returned for this facet. If
        * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -5156,7 +4601,6 @@ public int getLimit() {
        * 
* * int32 limit = 2; - * * @param value The limit to set. * @return This builder for chaining. */ @@ -5168,8 +4612,6 @@ public Builder setLimit(int value) { return this; } /** - * - * *
        * Maximum of facet values that should be returned for this facet. If
        * unspecified, defaults to 20. The maximum allowed value is 300. Values
@@ -5179,7 +4621,6 @@ public Builder setLimit(int value) {
        * 
* * int32 limit = 2; - * * @return This builder for chaining. */ public Builder clearLimit() { @@ -5191,7 +4632,6 @@ public Builder clearLimit() { private com.google.protobuf.LazyStringArrayList excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExcludedFilterKeysIsMutable() { if (!excludedFilterKeys_.isModifiable()) { excludedFilterKeys_ = new com.google.protobuf.LazyStringArrayList(excludedFilterKeys_); @@ -5199,8 +4639,6 @@ private void ensureExcludedFilterKeysIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5233,16 +4671,14 @@ private void ensureExcludedFilterKeysIsMutable() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @return A list containing the excludedFilterKeys. */ - public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() { + public com.google.protobuf.ProtocolStringList + getExcludedFilterKeysList() { excludedFilterKeys_.makeImmutable(); return excludedFilterKeys_; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5275,15 +4711,12 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @return The count of excludedFilterKeys. */ public int getExcludedFilterKeysCount() { return excludedFilterKeys_.size(); } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5316,7 +4749,6 @@ public int getExcludedFilterKeysCount() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the element to return. * @return The excludedFilterKeys at the given index. */ @@ -5324,8 +4756,6 @@ public java.lang.String getExcludedFilterKeys(int index) { return excludedFilterKeys_.get(index); } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5358,16 +4788,14 @@ public java.lang.String getExcludedFilterKeys(int index) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index of the value to return. * @return The bytes of the excludedFilterKeys at the given index. */ - public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { + public com.google.protobuf.ByteString + getExcludedFilterKeysBytes(int index) { return excludedFilterKeys_.getByteString(index); } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5400,15 +4828,13 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param index The index to set the value at. * @param value The excludedFilterKeys to set. * @return This builder for chaining. */ - public Builder setExcludedFilterKeys(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExcludedFilterKeys( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExcludedFilterKeysIsMutable(); excludedFilterKeys_.set(index, value); bitField0_ |= 0x00000004; @@ -5416,8 +4842,6 @@ public Builder setExcludedFilterKeys(int index, java.lang.String value) { return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5450,14 +4874,12 @@ public Builder setExcludedFilterKeys(int index, java.lang.String value) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param value The excludedFilterKeys to add. * @return This builder for chaining. */ - public Builder addExcludedFilterKeys(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExcludedFilterKeys( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExcludedFilterKeysIsMutable(); excludedFilterKeys_.add(value); bitField0_ |= 0x00000004; @@ -5465,8 +4887,6 @@ public Builder addExcludedFilterKeys(java.lang.String value) { return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5499,20 +4919,19 @@ public Builder addExcludedFilterKeys(java.lang.String value) {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param values The excludedFilterKeys to add. * @return This builder for chaining. */ - public Builder addAllExcludedFilterKeys(java.lang.Iterable values) { + public Builder addAllExcludedFilterKeys( + java.lang.Iterable values) { ensureExcludedFilterKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedFilterKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, excludedFilterKeys_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5545,19 +4964,16 @@ public Builder addAllExcludedFilterKeys(java.lang.Iterable val
        * 
* * repeated string excluded_filter_keys = 3; - * * @return This builder for chaining. */ public Builder clearExcludedFilterKeys() { - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + excludedFilterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
        * List of keys to exclude when faceting.
        *
@@ -5590,14 +5006,12 @@ public Builder clearExcludedFilterKeys() {
        * 
* * repeated string excluded_filter_keys = 3; - * * @param value The bytes of the excludedFilterKeys to add. * @return This builder for chaining. */ - public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExcludedFilterKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExcludedFilterKeysIsMutable(); excludedFilterKeys_.add(value); @@ -5606,10 +5020,8 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) return this; } - private boolean enableDynamicPosition_; + private boolean enableDynamicPosition_ ; /** - * - * *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined automatically.
@@ -5642,7 +5054,6 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value)
        * 
* * bool enable_dynamic_position = 4; - * * @return The enableDynamicPosition. */ @java.lang.Override @@ -5650,8 +5061,6 @@ public boolean getEnableDynamicPosition() { return enableDynamicPosition_; } /** - * - * *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined automatically.
@@ -5684,7 +5093,6 @@ public boolean getEnableDynamicPosition() {
        * 
* * bool enable_dynamic_position = 4; - * * @param value The enableDynamicPosition to set. * @return This builder for chaining. */ @@ -5696,8 +5104,6 @@ public Builder setEnableDynamicPosition(boolean value) { return this; } /** - * - * *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined automatically.
@@ -5730,7 +5136,6 @@ public Builder setEnableDynamicPosition(boolean value) {
        * 
* * bool enable_dynamic_position = 4; - * * @return This builder for chaining. */ public Builder clearEnableDynamicPosition() { @@ -5739,7 +5144,6 @@ public Builder clearEnableDynamicPosition() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5752,44 +5156,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FacetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5801,20 +5202,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BoostSpecOrBuilder - extends + public interface BoostSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5822,16 +5220,11 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec> + java.util.List getConditionBoostSpecsList(); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5839,15 +5232,10 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - getConditionBoostSpecs(int index); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5855,14 +5243,10 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ int getConditionBoostSpecsCount(); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5870,18 +5254,11 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> + java.util.List getConditionBoostSpecsOrBuilderList(); /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -5889,65 +5266,56 @@ public interface BoostSpecOrBuilder
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder - getConditionBoostSpecsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index); } /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec} */ - public static final class BoostSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BoostSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) BoostSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoostSpec.newBuilder() to construct. private BoostSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoostSpec() { conditionBoostSpecs_ = 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 BoostSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder.class); } - public interface ConditionBoostSpecOrBuilder - extends + public interface ConditionBoostSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -5963,13 +5331,10 @@ public interface ConditionBoostSpecOrBuilder
        * 
* * string condition = 1; - * * @return The condition. */ java.lang.String getCondition(); /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -5985,14 +5350,12 @@ public interface ConditionBoostSpecOrBuilder
        * 
* * string condition = 1; - * * @return The bytes for condition. */ - com.google.protobuf.ByteString getConditionBytes(); + com.google.protobuf.ByteString + getConditionBytes(); /** - * - * *
        * Strength of the condition boost, which should be in [-1, 1]. Negative
        * boost means demotion. Default is 0.0.
@@ -6014,65 +5377,54 @@ public interface ConditionBoostSpecOrBuilder
        * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
      * Boost applies to documents which match a condition.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec} */ - public static final class ConditionBoostSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConditionBoostSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) ConditionBoostSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConditionBoostSpec.newBuilder() to construct. private ConditionBoostSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConditionBoostSpec() { condition_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConditionBoostSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder.class); } public static final int CONDITION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -6088,7 +5440,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * string condition = 1; - * * @return The condition. */ @java.lang.Override @@ -6097,15 +5448,14 @@ public java.lang.String getCondition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; } } /** - * - * *
        * An expression which specifies a boost condition. The syntax and
        * supported fields are the same as a filter expression. See
@@ -6121,15 +5471,16 @@ public java.lang.String getCondition() {
        * 
* * string condition = 1; - * * @return The bytes for condition. */ @java.lang.Override - public com.google.protobuf.ByteString getConditionBytes() { + public com.google.protobuf.ByteString + getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); condition_ = b; return b; } else { @@ -6140,8 +5491,6 @@ public com.google.protobuf.ByteString getConditionBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
        * Strength of the condition boost, which should be in [-1, 1]. Negative
        * boost means demotion. Default is 0.0.
@@ -6163,7 +5512,6 @@ public com.google.protobuf.ByteString getConditionBytes() {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -6172,7 +5520,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6184,7 +5531,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(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } @@ -6204,7 +5552,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6214,20 +5563,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.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) - obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) obj; - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6242,122 +5589,97 @@ public int hashCode() { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - 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.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - 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.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec 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 @@ -6367,46 +5689,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Boost applies to documents which match a condition.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec} */ - 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.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6417,23 +5732,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6441,22 +5752,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.condition_ = condition_; @@ -6470,57 +5773,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()) return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; bitField0_ |= 0x00000001; @@ -6555,25 +5847,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - boost_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6583,13 +5872,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object condition_ = ""; /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6605,13 +5891,13 @@ public Builder mergeFrom(
          * 
* * string condition = 1; - * * @return The condition. */ public java.lang.String getCondition() { java.lang.Object ref = condition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; @@ -6620,8 +5906,6 @@ public java.lang.String getCondition() { } } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6637,14 +5921,15 @@ public java.lang.String getCondition() {
          * 
* * string condition = 1; - * * @return The bytes for condition. */ - public com.google.protobuf.ByteString getConditionBytes() { + public com.google.protobuf.ByteString + getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); condition_ = b; return b; } else { @@ -6652,8 +5937,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6669,22 +5952,18 @@ public com.google.protobuf.ByteString getConditionBytes() {
          * 
* * string condition = 1; - * * @param value The condition to set. * @return This builder for chaining. */ - public Builder setCondition(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCondition( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } condition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6700,7 +5979,6 @@ public Builder setCondition(java.lang.String value) {
          * 
* * string condition = 1; - * * @return This builder for chaining. */ public Builder clearCondition() { @@ -6710,8 +5988,6 @@ public Builder clearCondition() { return this; } /** - * - * *
          * An expression which specifies a boost condition. The syntax and
          * supported fields are the same as a filter expression. See
@@ -6727,14 +6003,12 @@ public Builder clearCondition() {
          * 
* * string condition = 1; - * * @param value The bytes for condition to set. * @return This builder for chaining. */ - public Builder setConditionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); condition_ = value; bitField0_ |= 0x00000001; @@ -6742,10 +6016,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { return this; } - private float boost_; + private float boost_ ; /** - * - * *
          * Strength of the condition boost, which should be in [-1, 1]. Negative
          * boost means demotion. Default is 0.0.
@@ -6767,7 +6039,6 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
          * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -6775,8 +6046,6 @@ public float getBoost() { return boost_; } /** - * - * *
          * Strength of the condition boost, which should be in [-1, 1]. Negative
          * boost means demotion. Default is 0.0.
@@ -6798,7 +6067,6 @@ public float getBoost() {
          * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ @@ -6810,8 +6078,6 @@ public Builder setBoost(float value) { return this; } /** - * - * *
          * Strength of the condition boost, which should be in [-1, 1]. Negative
          * boost means demotion. Default is 0.0.
@@ -6833,7 +6099,6 @@ public Builder setBoost(float value) {
          * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -6842,7 +6107,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6855,48 +6119,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConditionBoostSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionBoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6908,21 +6165,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CONDITION_BOOST_SPECS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec> - conditionBoostSpecs_; + private java.util.List conditionBoostSpecs_; /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6930,19 +6182,13 @@ public com.google.protobuf.Parser getParserForType() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec> - getConditionBoostSpecsList() { + public java.util.List getConditionBoostSpecsList() { return conditionBoostSpecs_; } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6950,21 +6196,14 @@ public com.google.protobuf.Parser getParserForType() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> + public java.util.List getConditionBoostSpecsOrBuilderList() { return conditionBoostSpecs_; } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6972,17 +6211,13 @@ public com.google.protobuf.Parser getParserForType() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override public int getConditionBoostSpecsCount() { return conditionBoostSpecs_.size(); } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -6990,18 +6225,13 @@ public int getConditionBoostSpecsCount() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - getConditionBoostSpecs(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index) { return conditionBoostSpecs_.get(index); } /** - * - * *
      * Condition boost specifications. If a document matches multiple conditions
      * in the specifictions, boost scores from these specifications are all
@@ -7009,19 +6239,15 @@ public int getConditionBoostSpecsCount() {
      * specifications is 20.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder - getConditionBoostSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index) { return conditionBoostSpecs_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7033,7 +6259,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 < conditionBoostSpecs_.size(); i++) { output.writeMessage(1, conditionBoostSpecs_.get(i)); } @@ -7047,9 +6274,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < conditionBoostSpecs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, conditionBoostSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conditionBoostSpecs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7059,15 +6285,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.discoveryengine.v1beta.SearchRequest.BoostSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) obj; - if (!getConditionBoostSpecsList().equals(other.getConditionBoostSpecsList())) return false; + if (!getConditionBoostSpecsList() + .equals(other.getConditionBoostSpecsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7089,95 +6315,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec 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.discoveryengine.v1beta.SearchRequest.BoostSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec 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 @@ -7187,42 +6407,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec} */ - 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.discoveryengine.v1beta.SearchRequest.BoostSpec) com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -7238,14 +6455,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance(); } @@ -7260,18 +6476,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec(this); + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec result) { if (conditionBoostSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { conditionBoostSpecs_ = java.util.Collections.unmodifiableList(conditionBoostSpecs_); @@ -7283,8 +6495,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec result) { int from_bitField0_ = bitField0_; } @@ -7292,52 +6503,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, 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.discoveryengine.v1beta.SearchRequest.BoostSpec) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance()) return this; if (conditionBoostSpecsBuilder_ == null) { if (!other.conditionBoostSpecs_.isEmpty()) { if (conditionBoostSpecs_.isEmpty()) { @@ -7356,10 +6561,9 @@ public Builder mergeFrom( conditionBoostSpecsBuilder_ = null; conditionBoostSpecs_ = other.conditionBoostSpecs_; bitField0_ = (bitField0_ & ~0x00000001); - conditionBoostSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConditionBoostSpecsFieldBuilder() - : null; + conditionBoostSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionBoostSpecsFieldBuilder() : null; } else { conditionBoostSpecsBuilder_.addAllMessages(other.conditionBoostSpecs_); } @@ -7391,29 +6595,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec.parser(), - extensionRegistry); - if (conditionBoostSpecsBuilder_ == null) { - ensureConditionBoostSpecsIsMutable(); - conditionBoostSpecs_.add(m); - } else { - conditionBoostSpecsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.parser(), + extensionRegistry); + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(m); + } else { + conditionBoostSpecsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7423,34 +6623,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec> - conditionBoostSpecs_ = java.util.Collections.emptyList(); - + private java.util.List conditionBoostSpecs_ = + java.util.Collections.emptyList(); private void ensureConditionBoostSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - conditionBoostSpecs_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec>(conditionBoostSpecs_); + conditionBoostSpecs_ = new java.util.ArrayList(conditionBoostSpecs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> - conditionBoostSpecsBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> conditionBoostSpecsBuilder_; /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7458,13 +6645,9 @@ private void ensureConditionBoostSpecsIsMutable() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec> - getConditionBoostSpecsList() { + public java.util.List getConditionBoostSpecsList() { if (conditionBoostSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditionBoostSpecs_); } else { @@ -7472,8 +6655,6 @@ private void ensureConditionBoostSpecsIsMutable() { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7481,9 +6662,7 @@ private void ensureConditionBoostSpecsIsMutable() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public int getConditionBoostSpecsCount() { if (conditionBoostSpecsBuilder_ == null) { @@ -7493,8 +6672,6 @@ public int getConditionBoostSpecsCount() { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7502,12 +6679,9 @@ public int getConditionBoostSpecsCount() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - getConditionBoostSpecs(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index) { if (conditionBoostSpecsBuilder_ == null) { return conditionBoostSpecs_.get(index); } else { @@ -7515,8 +6689,6 @@ public int getConditionBoostSpecsCount() { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7524,14 +6696,10 @@ public int getConditionBoostSpecsCount() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder setConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec value) { if (conditionBoostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7545,8 +6713,6 @@ public Builder setConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7554,14 +6720,10 @@ public Builder setConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder setConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); conditionBoostSpecs_.set(index, builderForValue.build()); @@ -7572,8 +6734,6 @@ public Builder setConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7581,13 +6741,9 @@ public Builder setConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public Builder addConditionBoostSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - value) { + public Builder addConditionBoostSpecs(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec value) { if (conditionBoostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7601,8 +6757,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7610,14 +6764,10 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec value) { if (conditionBoostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7631,8 +6781,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7640,13 +6788,10 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addConditionBoostSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); conditionBoostSpecs_.add(builderForValue.build()); @@ -7657,8 +6802,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7666,14 +6809,10 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addConditionBoostSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); conditionBoostSpecs_.add(index, builderForValue.build()); @@ -7684,8 +6823,6 @@ public Builder addConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7693,19 +6830,14 @@ public Builder addConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder addAllConditionBoostSpecs( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec> - values) { + java.lang.Iterable values) { if (conditionBoostSpecsBuilder_ == null) { ensureConditionBoostSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditionBoostSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditionBoostSpecs_); onChanged(); } else { conditionBoostSpecsBuilder_.addAllMessages(values); @@ -7713,8 +6845,6 @@ public Builder addAllConditionBoostSpecs( return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7722,9 +6852,7 @@ public Builder addAllConditionBoostSpecs(
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder clearConditionBoostSpecs() { if (conditionBoostSpecsBuilder_ == null) { @@ -7737,8 +6865,6 @@ public Builder clearConditionBoostSpecs() { return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7746,9 +6872,7 @@ public Builder clearConditionBoostSpecs() {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ public Builder removeConditionBoostSpecs(int index) { if (conditionBoostSpecsBuilder_ == null) { @@ -7761,8 +6885,6 @@ public Builder removeConditionBoostSpecs(int index) { return this; } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7770,18 +6892,13 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder - getConditionBoostSpecsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder( + int index) { return getConditionBoostSpecsFieldBuilder().getBuilder(index); } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7789,22 +6906,16 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder - getConditionBoostSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder( + int index) { if (conditionBoostSpecsBuilder_ == null) { - return conditionBoostSpecs_.get(index); - } else { + return conditionBoostSpecs_.get(index); } else { return conditionBoostSpecsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7812,15 +6923,10 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> - getConditionBoostSpecsOrBuilderList() { + public java.util.List + getConditionBoostSpecsOrBuilderList() { if (conditionBoostSpecsBuilder_ != null) { return conditionBoostSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -7828,8 +6934,6 @@ public Builder removeConditionBoostSpecs(int index) { } } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7837,21 +6941,13 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder - addConditionBoostSpecsBuilder() { - return getConditionBoostSpecsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder() { + return getConditionBoostSpecsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()); } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7859,22 +6955,14 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder - addConditionBoostSpecsBuilder(int index) { - return getConditionBoostSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder( + int index) { + return getConditionBoostSpecsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.getDefaultInstance()); } /** - * - * *
        * Condition boost specifications. If a document matches multiple conditions
        * in the specifictions, boost scores from these specifications are all
@@ -7882,33 +6970,18 @@ public Builder removeConditionBoostSpecs(int index) {
        * specifications is 20.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder> - getConditionBoostSpecsBuilderList() { + public java.util.List + getConditionBoostSpecsBuilderList() { return getConditionBoostSpecsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsFieldBuilder() { if (conditionBoostSpecsBuilder_ == null) { - conditionBoostSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .ConditionBoostSpecOrBuilder>( + conditionBoostSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder>( conditionBoostSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -7917,7 +6990,6 @@ public Builder removeConditionBoostSpecs(int index) { } return conditionBoostSpecsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7930,44 +7002,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoostSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7979,52 +7048,38 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface QueryExpansionSpecOrBuilder - extends + public interface QueryExpansionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The enum numeric value on the wire for condition. */ int getConditionValue(); /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The condition. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - getCondition(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition getCondition(); /** - * - * *
      * Whether to pin unexpanded results. If this field is set to true,
      * unexpanded products are always at the top of the search results, followed
@@ -8032,14 +7087,11 @@ public interface QueryExpansionSpecOrBuilder
      * 
* * bool pin_unexpanded_results = 2; - * * @return The pinUnexpandedResults. */ boolean getPinUnexpandedResults(); } /** - * - * *
    * Specification to determine under which conditions query expansion should
    * occur.
@@ -8047,56 +7099,49 @@ public interface QueryExpansionSpecOrBuilder
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec}
    */
-  public static final class QueryExpansionSpec extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class QueryExpansionSpec extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec)
       QueryExpansionSpecOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use QueryExpansionSpec.newBuilder() to construct.
     private QueryExpansionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private QueryExpansionSpec() {
       condition_ = 0;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new QueryExpansionSpec();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.class,
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder
-                  .class);
+              com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * Enum describing under which condition query expansion should occur.
      * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition} + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition} */ - public enum Condition implements com.google.protobuf.ProtocolMessageEnum { + public enum Condition + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified query expansion condition. In this case, server behavior
        * defaults to
@@ -8107,8 +7152,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       CONDITION_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Disabled query expansion. Only the exact search query is used, even if
        * [SearchResponse.total_size][google.cloud.discoveryengine.v1beta.SearchResponse.total_size]
@@ -8119,8 +7162,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       DISABLED(1),
       /**
-       *
-       *
        * 
        * Automatic query expansion built by the Search API.
        * 
@@ -8132,8 +7173,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified query expansion condition. In this case, server behavior
        * defaults to
@@ -8144,8 +7183,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CONDITION_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Disabled query expansion. Only the exact search query is used, even if
        * [SearchResponse.total_size][google.cloud.discoveryengine.v1beta.SearchResponse.total_size]
@@ -8156,8 +7193,6 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int DISABLED_VALUE = 1;
       /**
-       *
-       *
        * 
        * Automatic query expansion built by the Search API.
        * 
@@ -8166,6 +7201,7 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUTO_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -8190,52 +7226,49 @@ public static Condition valueOf(int value) { */ public static Condition forNumber(int value) { switch (value) { - case 0: - return CONDITION_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return AUTO; - default: - return null; + case 0: return CONDITION_UNSPECIFIED; + case 1: return DISABLED; + case 2: return AUTO; + 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< + Condition> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Condition findValueByNumber(int number) { + return Condition.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Condition findValueByNumber(int number) { - return Condition.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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDescriptor().getEnumTypes().get(0); } private static final Condition[] VALUES = values(); - public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Condition 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; @@ -8255,54 +7288,34 @@ private Condition(int value) { public static final int CONDITION_FIELD_NUMBER = 1; private int condition_ = 0; /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The enum numeric value on the wire for condition. */ - @java.lang.Override - public int getConditionValue() { + @java.lang.Override public int getConditionValue() { return condition_; } /** - * - * *
      * The condition under which query expansion should occur. Default to
      * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The condition. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - .forNumber(condition_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition getCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition result = com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.forNumber(condition_); + return result == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.UNRECOGNIZED : result; } public static final int PIN_UNEXPANDED_RESULTS_FIELD_NUMBER = 2; private boolean pinUnexpandedResults_ = false; /** - * - * *
      * Whether to pin unexpanded results. If this field is set to true,
      * unexpanded products are always at the top of the search results, followed
@@ -8310,7 +7323,6 @@ public int getConditionValue() {
      * 
* * bool pin_unexpanded_results = 2; - * * @return The pinUnexpandedResults. */ @java.lang.Override @@ -8319,7 +7331,6 @@ public boolean getPinUnexpandedResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8331,11 +7342,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (condition_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (condition_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.CONDITION_UNSPECIFIED.getNumber()) { output.writeEnum(1, condition_); } if (pinUnexpandedResults_ != false) { @@ -8350,14 +7359,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (condition_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); + if (condition_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.CONDITION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, condition_); } if (pinUnexpandedResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, pinUnexpandedResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, pinUnexpandedResults_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8367,17 +7375,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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) obj; if (condition_ != other.condition_) return false; - if (getPinUnexpandedResults() != other.getPinUnexpandedResults()) return false; + if (getPinUnexpandedResults() + != other.getPinUnexpandedResults()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8392,107 +7399,97 @@ public int hashCode() { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + condition_; hash = (37 * hash) + PIN_UNEXPANDED_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPinUnexpandedResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPinUnexpandedResults()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - 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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - 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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec 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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec 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 @@ -8502,8 +7499,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specification to determine under which conditions query expansion should
      * occur.
@@ -8511,35 +7506,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec}
      */
-    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.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec)
         com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.class,
-                com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder
-                    .class);
+                com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8550,22 +7543,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
-          getDefaultInstanceForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
-            .getDefaultInstance();
+      public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec getDefaultInstanceForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec build() {
-        com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec result =
-            buildPartial();
+        com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8573,19 +7563,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
-          buildPartial() {
-        com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec result =
-            new com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec buildPartial() {
+        com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec result) {
+      private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.condition_ = condition_;
@@ -8599,54 +7584,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) {
-          return mergeFrom(
-              (com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) other);
+        if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) {
+          return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec other) {
-        if (other
-            == com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec other) {
+        if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance()) return this;
         if (other.condition_ != 0) {
           setConditionValue(other.getConditionValue());
         }
@@ -8679,25 +7656,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  condition_ = input.readEnum();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  pinUnexpandedResults_ = input.readBool();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                condition_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                pinUnexpandedResults_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8707,40 +7681,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private int condition_ = 0;
       /**
-       *
-       *
        * 
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The enum numeric value on the wire for condition. */ - @java.lang.Override - public int getConditionValue() { + @java.lang.Override public int getConditionValue() { return condition_; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @param value The enum numeric value on the wire for condition to set. * @return This builder for chaining. */ @@ -8751,48 +7713,30 @@ public Builder setConditionValue(int value) { return this; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return The condition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - .forNumber(condition_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - .UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition getCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition result = com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.forNumber(condition_); + return result == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.UNRECOGNIZED : result; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @param value The condition to set. * @return This builder for chaining. */ - public Builder setCondition( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition - value) { + public Builder setCondition(com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition value) { if (value == null) { throw new NullPointerException(); } @@ -8802,17 +7746,12 @@ public Builder setCondition( return this; } /** - * - * *
        * The condition under which query expansion should occur. Default to
        * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition condition = 1; * @return This builder for chaining. */ public Builder clearCondition() { @@ -8822,10 +7761,8 @@ public Builder clearCondition() { return this; } - private boolean pinUnexpandedResults_; + private boolean pinUnexpandedResults_ ; /** - * - * *
        * Whether to pin unexpanded results. If this field is set to true,
        * unexpanded products are always at the top of the search results, followed
@@ -8833,7 +7770,6 @@ public Builder clearCondition() {
        * 
* * bool pin_unexpanded_results = 2; - * * @return The pinUnexpandedResults. */ @java.lang.Override @@ -8841,8 +7777,6 @@ public boolean getPinUnexpandedResults() { return pinUnexpandedResults_; } /** - * - * *
        * Whether to pin unexpanded results. If this field is set to true,
        * unexpanded products are always at the top of the search results, followed
@@ -8850,7 +7784,6 @@ public boolean getPinUnexpandedResults() {
        * 
* * bool pin_unexpanded_results = 2; - * * @param value The pinUnexpandedResults to set. * @return This builder for chaining. */ @@ -8862,8 +7795,6 @@ public Builder setPinUnexpandedResults(boolean value) { return this; } /** - * - * *
        * Whether to pin unexpanded results. If this field is set to true,
        * unexpanded products are always at the top of the search results, followed
@@ -8871,7 +7802,6 @@ public Builder setPinUnexpandedResults(boolean value) {
        * 
* * bool pin_unexpanded_results = 2; - * * @return This builder for chaining. */ public Builder clearPinUnexpandedResults() { @@ -8880,7 +7810,6 @@ public Builder clearPinUnexpandedResults() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8893,45 +7822,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryExpansionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExpansionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8943,107 +7868,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SpellCorrectionSpecOrBuilder - extends + public interface SpellCorrectionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * *
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The mode. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode getMode(); } /** - * - * *
    * The specification for query spell correction.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec} */ - public static final class SpellCorrectionSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SpellCorrectionSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) SpellCorrectionSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpellCorrectionSpec.newBuilder() to construct. private SpellCorrectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpellCorrectionSpec() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpellCorrectionSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder.class); } /** - * - * *
      * Enum describing under which mode spell correction should occur.
      * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode} + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified spell correction mode. In this case, server behavior
        * defaults to
@@ -9054,8 +7961,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       MODE_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Search API will try to find a spell suggestion if there
        * is any and put in the
@@ -9067,8 +7972,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       SUGGESTION_ONLY(1),
       /**
-       *
-       *
        * 
        * Automatic spell correction built by the Search API. Search will
        * be based on the corrected query if found.
@@ -9081,8 +7984,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified spell correction mode. In this case, server behavior
        * defaults to
@@ -9093,8 +7994,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int MODE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Search API will try to find a spell suggestion if there
        * is any and put in the
@@ -9106,8 +8005,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int SUGGESTION_ONLY_VALUE = 1;
       /**
-       *
-       *
        * 
        * Automatic spell correction built by the Search API. Search will
        * be based on the corrected query if found.
@@ -9117,6 +8014,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int AUTO_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -9141,52 +8039,49 @@ public static Mode valueOf(int value) {
        */
       public static Mode forNumber(int value) {
         switch (value) {
-          case 0:
-            return MODE_UNSPECIFIED;
-          case 1:
-            return SUGGESTION_ONLY;
-          case 2:
-            return AUTO;
-          default:
-            return null;
+          case 0: return MODE_UNSPECIFIED;
+          case 1: return SUGGESTION_ONLY;
+          case 2: return AUTO;
+          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<
+          Mode> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Mode findValueByNumber(int number) {
+                return Mode.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Mode findValueByNumber(int number) {
-              return Mode.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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec
-            .getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final Mode[] VALUES = values();
 
-      public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Mode 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;
@@ -9206,51 +8101,34 @@ private Mode(int value) {
     public static final int MODE_FIELD_NUMBER = 1;
     private int mode_ = 0;
     /**
-     *
-     *
      * 
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
      * The mode under which spell correction should take effect to
      * replace the original search query. Default to
      * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The mode. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - getMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.forNumber( - mode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode result = com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.forNumber(mode_); + return result == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9262,11 +8140,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - .MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } getUnknownFields().writeTo(output); @@ -9278,11 +8154,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - .MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + if (mode_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9292,14 +8166,12 @@ 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) obj; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -9320,101 +8192,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec 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 @@ -9424,43 +8285,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The specification for query spell correction.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec} */ - 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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -9470,22 +8327,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9493,19 +8347,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mode_ = mode_; @@ -9516,54 +8365,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } @@ -9593,19 +8434,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9615,40 +8454,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int mode_ = 0; /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -9658,48 +8487,33 @@ public Builder setModeValue(int value) { onChanged(); return this; } - /** - * - * + /** *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - getMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - .forNumber(mode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode - .UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode result = com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.forNumber(mode_); + return result == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.UNRECOGNIZED : result; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMode( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode value) { + public Builder setMode(com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode value) { if (value == null) { throw new NullPointerException(); } @@ -9709,17 +8523,13 @@ public Builder setMode( return this; } /** - * - * *
        * The mode under which spell correction should take effect to
        * replace the original search query. Default to
        * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
        * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode mode = 1; * @return This builder for chaining. */ public Builder clearMode() { @@ -9728,7 +8538,6 @@ public Builder clearMode() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9741,45 +8550,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpellCorrectionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpellCorrectionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9791,207 +8596,150 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContentSearchSpecOrBuilder - extends + public interface ContentSearchSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return Whether the snippetSpec field is set. */ boolean hasSnippetSpec(); /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return The snippetSpec. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec(); /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder - getSnippetSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder(); /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return Whether the summarySpec field is set. */ boolean hasSummarySpec(); /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return The summarySpec. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec(); /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder - getSummarySpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder(); /** - * - * *
      * If there is no extractive_content_spec provided, there will be no
      * extractive answer in the search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; * @return Whether the extractiveContentSpec field is set. */ boolean hasExtractiveContentSpec(); /** - * - * *
      * If there is no extractive_content_spec provided, there will be no
      * extractive answer in the search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; * @return The extractiveContentSpec. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec - getExtractiveContentSpec(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec(); /** - * - * *
      * If there is no extractive_content_spec provided, there will be no
      * extractive answer in the search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder(); } /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec} */ - public static final class ContentSearchSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ContentSearchSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) ContentSearchSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContentSearchSpec.newBuilder() to construct. private ContentSearchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ContentSearchSpec() {} + private ContentSearchSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContentSearchSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder.class); } - public interface SnippetSpecOrBuilder - extends + public interface SnippetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * [DEPRECATED] This field is deprecated. To control snippet return, use
        * `return_snippet` field. For backwards compatibility, we will return
@@ -9999,36 +8747,26 @@ public interface SnippetSpecOrBuilder
        * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 * @return The maxSnippetCount. */ - @java.lang.Deprecated - int getMaxSnippetCount(); + @java.lang.Deprecated int getMaxSnippetCount(); /** - * - * *
        * [DEPRECATED] This field is deprecated and will have no affect on the
        * snippet.
        * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 * @return The referenceOnly. */ - @java.lang.Deprecated - boolean getReferenceOnly(); + @java.lang.Deprecated boolean getReferenceOnly(); /** - * - * *
        * If `true`, then return snippet. If no snippet can be generated, we
        * return "No snippet is available for this page." A `snippet_status` with
@@ -10036,61 +8774,52 @@ public interface SnippetSpecOrBuilder
        * 
* * bool return_snippet = 3; - * * @return The returnSnippet. */ boolean getReturnSnippet(); } /** - * - * *
      * A specification for configuring snippets in a search response.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec} */ - public static final class SnippetSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SnippetSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) SnippetSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnippetSpec.newBuilder() to construct. private SnippetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SnippetSpec() {} + private SnippetSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SnippetSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder.class); } public static final int MAX_SNIPPET_COUNT_FIELD_NUMBER = 1; private int maxSnippetCount_ = 0; /** - * - * *
        * [DEPRECATED] This field is deprecated. To control snippet return, use
        * `return_snippet` field. For backwards compatibility, we will return
@@ -10098,46 +8827,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 * @return The maxSnippetCount. */ @java.lang.Override - @java.lang.Deprecated - public int getMaxSnippetCount() { + @java.lang.Deprecated public int getMaxSnippetCount() { return maxSnippetCount_; } public static final int REFERENCE_ONLY_FIELD_NUMBER = 2; private boolean referenceOnly_ = false; /** - * - * *
        * [DEPRECATED] This field is deprecated and will have no affect on the
        * snippet.
        * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 * @return The referenceOnly. */ @java.lang.Override - @java.lang.Deprecated - public boolean getReferenceOnly() { + @java.lang.Deprecated public boolean getReferenceOnly() { return referenceOnly_; } public static final int RETURN_SNIPPET_FIELD_NUMBER = 3; private boolean returnSnippet_ = false; /** - * - * *
        * If `true`, then return snippet. If no snippet can be generated, we
        * return "No snippet is available for this page." A `snippet_status` with
@@ -10145,7 +8864,6 @@ public boolean getReferenceOnly() {
        * 
* * bool return_snippet = 3; - * * @return The returnSnippet. */ @java.lang.Override @@ -10154,7 +8872,6 @@ public boolean getReturnSnippet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10166,7 +8883,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 (maxSnippetCount_ != 0) { output.writeInt32(1, maxSnippetCount_); } @@ -10186,13 +8904,16 @@ public int getSerializedSize() { size = 0; if (maxSnippetCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxSnippetCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxSnippetCount_); } if (referenceOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, referenceOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, referenceOnly_); } if (returnSnippet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, returnSnippet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, returnSnippet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10202,20 +8923,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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) - obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) obj; - if (getMaxSnippetCount() != other.getMaxSnippetCount()) return false; - if (getReferenceOnly() != other.getReferenceOnly()) return false; - if (getReturnSnippet() != other.getReturnSnippet()) return false; + if (getMaxSnippetCount() + != other.getMaxSnippetCount()) return false; + if (getReferenceOnly() + != other.getReferenceOnly()) return false; + if (getReturnSnippet() + != other.getReturnSnippet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10230,124 +8950,100 @@ public int hashCode() { hash = (37 * hash) + MAX_SNIPPET_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxSnippetCount(); hash = (37 * hash) + REFERENCE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferenceOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReferenceOnly()); hash = (37 * hash) + RETURN_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnSnippet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnSnippet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec 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 @@ -10357,46 +9053,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A specification for configuring snippets in a search response.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec} */ - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -10408,23 +9097,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10432,22 +9117,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxSnippetCount_ = maxSnippetCount_; @@ -10464,58 +9141,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance()) return this; if (other.getMaxSnippetCount() != 0) { setMaxSnippetCount(other.getMaxSnippetCount()); } @@ -10551,31 +9216,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - maxSnippetCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - referenceOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - returnSnippet_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + maxSnippetCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + referenceOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + returnSnippet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10585,13 +9246,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int maxSnippetCount_; + private int maxSnippetCount_ ; /** - * - * *
          * [DEPRECATED] This field is deprecated. To control snippet return, use
          * `return_snippet` field. For backwards compatibility, we will return
@@ -10599,20 +9257,15 @@ public Builder mergeFrom(
          * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 * @return The maxSnippetCount. */ @java.lang.Override - @java.lang.Deprecated - public int getMaxSnippetCount() { + @java.lang.Deprecated public int getMaxSnippetCount() { return maxSnippetCount_; } /** - * - * *
          * [DEPRECATED] This field is deprecated. To control snippet return, use
          * `return_snippet` field. For backwards compatibility, we will return
@@ -10620,15 +9273,12 @@ public int getMaxSnippetCount() {
          * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setMaxSnippetCount(int value) { + @java.lang.Deprecated public Builder setMaxSnippetCount(int value) { maxSnippetCount_ = value; bitField0_ |= 0x00000001; @@ -10636,8 +9286,6 @@ public Builder setMaxSnippetCount(int value) { return this; } /** - * - * *
          * [DEPRECATED] This field is deprecated. To control snippet return, use
          * `return_snippet` field. For backwards compatibility, we will return
@@ -10645,59 +9293,46 @@ public Builder setMaxSnippetCount(int value) {
          * 
* * int32 max_snippet_count = 1 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=304 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearMaxSnippetCount() { + @java.lang.Deprecated public Builder clearMaxSnippetCount() { bitField0_ = (bitField0_ & ~0x00000001); maxSnippetCount_ = 0; onChanged(); return this; } - private boolean referenceOnly_; + private boolean referenceOnly_ ; /** - * - * *
          * [DEPRECATED] This field is deprecated and will have no affect on the
          * snippet.
          * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 * @return The referenceOnly. */ @java.lang.Override - @java.lang.Deprecated - public boolean getReferenceOnly() { + @java.lang.Deprecated public boolean getReferenceOnly() { return referenceOnly_; } /** - * - * *
          * [DEPRECATED] This field is deprecated and will have no affect on the
          * snippet.
          * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 * @param value The referenceOnly to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setReferenceOnly(boolean value) { + @java.lang.Deprecated public Builder setReferenceOnly(boolean value) { referenceOnly_ = value; bitField0_ |= 0x00000002; @@ -10705,32 +9340,25 @@ public Builder setReferenceOnly(boolean value) { return this; } /** - * - * *
          * [DEPRECATED] This field is deprecated and will have no affect on the
          * snippet.
          * 
* * bool reference_only = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * @deprecated google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only is deprecated. + * See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearReferenceOnly() { + @java.lang.Deprecated public Builder clearReferenceOnly() { bitField0_ = (bitField0_ & ~0x00000002); referenceOnly_ = false; onChanged(); return this; } - private boolean returnSnippet_; + private boolean returnSnippet_ ; /** - * - * *
          * If `true`, then return snippet. If no snippet can be generated, we
          * return "No snippet is available for this page." A `snippet_status` with
@@ -10738,7 +9366,6 @@ public Builder clearReferenceOnly() {
          * 
* * bool return_snippet = 3; - * * @return The returnSnippet. */ @java.lang.Override @@ -10746,8 +9373,6 @@ public boolean getReturnSnippet() { return returnSnippet_; } /** - * - * *
          * If `true`, then return snippet. If no snippet can be generated, we
          * return "No snippet is available for this page." A `snippet_status` with
@@ -10755,7 +9380,6 @@ public boolean getReturnSnippet() {
          * 
* * bool return_snippet = 3; - * * @param value The returnSnippet to set. * @return This builder for chaining. */ @@ -10767,8 +9391,6 @@ public Builder setReturnSnippet(boolean value) { return this; } /** - * - * *
          * If `true`, then return snippet. If no snippet can be generated, we
          * return "No snippet is available for this page." A `snippet_status` with
@@ -10776,7 +9398,6 @@ public Builder setReturnSnippet(boolean value) {
          * 
* * bool return_snippet = 3; - * * @return This builder for chaining. */ public Builder clearReturnSnippet() { @@ -10785,7 +9406,6 @@ public Builder clearReturnSnippet() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10798,48 +9418,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnippetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnippetSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10851,20 +9464,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SummarySpecOrBuilder - extends + public interface SummarySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The number of top results to generate the summary from. If the number
        * of results returned is less than `summaryResultCount`, the summary is
@@ -10874,14 +9484,11 @@ public interface SummarySpecOrBuilder
        * 
* * int32 summary_result_count = 1; - * * @return The summaryResultCount. */ int getSummaryResultCount(); /** - * - * *
        * Specifies whether to include citations in the summary. The default
        * value is `false`.
@@ -10903,14 +9510,11 @@ public interface SummarySpecOrBuilder
        * 
* * bool include_citations = 2; - * * @return The includeCitations. */ boolean getIncludeCitations(); /** - * - * *
        * Specifies whether to filter out adversarial queries. The default value
        * is `false`.
@@ -10925,14 +9529,11 @@ public interface SummarySpecOrBuilder
        * 
* * bool ignore_adversarial_query = 3; - * * @return The ignoreAdversarialQuery. */ boolean getIgnoreAdversarialQuery(); /** - * - * *
        * Specifies whether to filter out queries that are not summary-seeking.
        * The default value is `false`.
@@ -10948,91 +9549,76 @@ public interface SummarySpecOrBuilder
        * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return The ignoreNonSummarySeekingQuery. */ boolean getIgnoreNonSummarySeekingQuery(); /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } /** - * - * *
      * A specification for configuring a summary returned in a search
      * response.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec} */ - public static final class SummarySpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SummarySpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) SummarySpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SummarySpec.newBuilder() to construct. private SummarySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SummarySpec() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SummarySpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder.class); } public static final int SUMMARY_RESULT_COUNT_FIELD_NUMBER = 1; private int summaryResultCount_ = 0; /** - * - * *
        * The number of top results to generate the summary from. If the number
        * of results returned is less than `summaryResultCount`, the summary is
@@ -11042,7 +9628,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * int32 summary_result_count = 1; - * * @return The summaryResultCount. */ @java.lang.Override @@ -11053,8 +9638,6 @@ public int getSummaryResultCount() { public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 2; private boolean includeCitations_ = false; /** - * - * *
        * Specifies whether to include citations in the summary. The default
        * value is `false`.
@@ -11076,7 +9659,6 @@ public int getSummaryResultCount() {
        * 
* * bool include_citations = 2; - * * @return The includeCitations. */ @java.lang.Override @@ -11087,8 +9669,6 @@ public boolean getIncludeCitations() { public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 3; private boolean ignoreAdversarialQuery_ = false; /** - * - * *
        * Specifies whether to filter out adversarial queries. The default value
        * is `false`.
@@ -11103,7 +9683,6 @@ public boolean getIncludeCitations() {
        * 
* * bool ignore_adversarial_query = 3; - * * @return The ignoreAdversarialQuery. */ @java.lang.Override @@ -11114,8 +9693,6 @@ public boolean getIgnoreAdversarialQuery() { public static final int IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER = 4; private boolean ignoreNonSummarySeekingQuery_ = false; /** - * - * *
        * Specifies whether to filter out queries that are not summary-seeking.
        * The default value is `false`.
@@ -11131,7 +9708,6 @@ public boolean getIgnoreAdversarialQuery() {
        * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return The ignoreNonSummarySeekingQuery. */ @java.lang.Override @@ -11140,19 +9716,15 @@ public boolean getIgnoreNonSummarySeekingQuery() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @return The languageCode. */ @java.lang.Override @@ -11161,30 +9733,30 @@ 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; } } /** - * - * *
        * Language code for Summary. Use language tags defined by
        * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
        * 
* * string language_code = 6; - * * @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 { @@ -11193,7 +9765,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11205,7 +9776,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 (summaryResultCount_ != 0) { output.writeInt32(1, summaryResultCount_); } @@ -11231,18 +9803,20 @@ public int getSerializedSize() { size = 0; if (summaryResultCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, summaryResultCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, summaryResultCount_); } if (includeCitations_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeCitations_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeCitations_); } if (ignoreAdversarialQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreAdversarialQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, ignoreAdversarialQuery_); } if (ignoreNonSummarySeekingQuery_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 4, ignoreNonSummarySeekingQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, ignoreNonSummarySeekingQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -11255,23 +9829,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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) - obj; - - if (getSummaryResultCount() != other.getSummaryResultCount()) return false; - if (getIncludeCitations() != other.getIncludeCitations()) return false; - if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; - if (getIgnoreNonSummarySeekingQuery() != other.getIgnoreNonSummarySeekingQuery()) - return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) obj; + + if (getSummaryResultCount() + != other.getSummaryResultCount()) return false; + if (getIncludeCitations() + != other.getIncludeCitations()) return false; + if (getIgnoreAdversarialQuery() + != other.getIgnoreAdversarialQuery()) return false; + if (getIgnoreNonSummarySeekingQuery() + != other.getIgnoreNonSummarySeekingQuery()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11286,13 +9860,14 @@ public int hashCode() { hash = (37 * hash) + SUMMARY_RESULT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getSummaryResultCount(); hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCitations()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeCitations()); hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreAdversarialQuery()); hash = (37 * hash) + IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getIgnoreNonSummarySeekingQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreNonSummarySeekingQuery()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -11300,116 +9875,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec 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 @@ -11419,47 +9968,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A specification for configuring a summary returned in a search
        * response.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec} */ - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -11473,23 +10015,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11497,22 +10035,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.summaryResultCount_ = summaryResultCount_; @@ -11535,58 +10065,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) return this; if (other.getSummaryResultCount() != 0) { setSummaryResultCount(other.getSummaryResultCount()); } @@ -11630,43 +10148,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - summaryResultCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - includeCitations_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ignoreAdversarialQuery_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ignoreNonSummarySeekingQuery_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 50: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + summaryResultCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + includeCitations_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ignoreAdversarialQuery_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ignoreNonSummarySeekingQuery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11676,13 +10188,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int summaryResultCount_; + private int summaryResultCount_ ; /** - * - * *
          * The number of top results to generate the summary from. If the number
          * of results returned is less than `summaryResultCount`, the summary is
@@ -11692,7 +10201,6 @@ public Builder mergeFrom(
          * 
* * int32 summary_result_count = 1; - * * @return The summaryResultCount. */ @java.lang.Override @@ -11700,8 +10208,6 @@ public int getSummaryResultCount() { return summaryResultCount_; } /** - * - * *
          * The number of top results to generate the summary from. If the number
          * of results returned is less than `summaryResultCount`, the summary is
@@ -11711,7 +10217,6 @@ public int getSummaryResultCount() {
          * 
* * int32 summary_result_count = 1; - * * @param value The summaryResultCount to set. * @return This builder for chaining. */ @@ -11723,8 +10228,6 @@ public Builder setSummaryResultCount(int value) { return this; } /** - * - * *
          * The number of top results to generate the summary from. If the number
          * of results returned is less than `summaryResultCount`, the summary is
@@ -11734,7 +10237,6 @@ public Builder setSummaryResultCount(int value) {
          * 
* * int32 summary_result_count = 1; - * * @return This builder for chaining. */ public Builder clearSummaryResultCount() { @@ -11744,10 +10246,8 @@ public Builder clearSummaryResultCount() { return this; } - private boolean includeCitations_; + private boolean includeCitations_ ; /** - * - * *
          * Specifies whether to include citations in the summary. The default
          * value is `false`.
@@ -11769,7 +10269,6 @@ public Builder clearSummaryResultCount() {
          * 
* * bool include_citations = 2; - * * @return The includeCitations. */ @java.lang.Override @@ -11777,8 +10276,6 @@ public boolean getIncludeCitations() { return includeCitations_; } /** - * - * *
          * Specifies whether to include citations in the summary. The default
          * value is `false`.
@@ -11800,7 +10297,6 @@ public boolean getIncludeCitations() {
          * 
* * bool include_citations = 2; - * * @param value The includeCitations to set. * @return This builder for chaining. */ @@ -11812,8 +10308,6 @@ public Builder setIncludeCitations(boolean value) { return this; } /** - * - * *
          * Specifies whether to include citations in the summary. The default
          * value is `false`.
@@ -11835,7 +10329,6 @@ public Builder setIncludeCitations(boolean value) {
          * 
* * bool include_citations = 2; - * * @return This builder for chaining. */ public Builder clearIncludeCitations() { @@ -11845,10 +10338,8 @@ public Builder clearIncludeCitations() { return this; } - private boolean ignoreAdversarialQuery_; + private boolean ignoreAdversarialQuery_ ; /** - * - * *
          * Specifies whether to filter out adversarial queries. The default value
          * is `false`.
@@ -11863,7 +10354,6 @@ public Builder clearIncludeCitations() {
          * 
* * bool ignore_adversarial_query = 3; - * * @return The ignoreAdversarialQuery. */ @java.lang.Override @@ -11871,8 +10361,6 @@ public boolean getIgnoreAdversarialQuery() { return ignoreAdversarialQuery_; } /** - * - * *
          * Specifies whether to filter out adversarial queries. The default value
          * is `false`.
@@ -11887,7 +10375,6 @@ public boolean getIgnoreAdversarialQuery() {
          * 
* * bool ignore_adversarial_query = 3; - * * @param value The ignoreAdversarialQuery to set. * @return This builder for chaining. */ @@ -11899,8 +10386,6 @@ public Builder setIgnoreAdversarialQuery(boolean value) { return this; } /** - * - * *
          * Specifies whether to filter out adversarial queries. The default value
          * is `false`.
@@ -11915,7 +10400,6 @@ public Builder setIgnoreAdversarialQuery(boolean value) {
          * 
* * bool ignore_adversarial_query = 3; - * * @return This builder for chaining. */ public Builder clearIgnoreAdversarialQuery() { @@ -11925,10 +10409,8 @@ public Builder clearIgnoreAdversarialQuery() { return this; } - private boolean ignoreNonSummarySeekingQuery_; + private boolean ignoreNonSummarySeekingQuery_ ; /** - * - * *
          * Specifies whether to filter out queries that are not summary-seeking.
          * The default value is `false`.
@@ -11944,7 +10426,6 @@ public Builder clearIgnoreAdversarialQuery() {
          * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return The ignoreNonSummarySeekingQuery. */ @java.lang.Override @@ -11952,8 +10433,6 @@ public boolean getIgnoreNonSummarySeekingQuery() { return ignoreNonSummarySeekingQuery_; } /** - * - * *
          * Specifies whether to filter out queries that are not summary-seeking.
          * The default value is `false`.
@@ -11969,7 +10448,6 @@ public boolean getIgnoreNonSummarySeekingQuery() {
          * 
* * bool ignore_non_summary_seeking_query = 4; - * * @param value The ignoreNonSummarySeekingQuery to set. * @return This builder for chaining. */ @@ -11981,8 +10459,6 @@ public Builder setIgnoreNonSummarySeekingQuery(boolean value) { return this; } /** - * - * *
          * Specifies whether to filter out queries that are not summary-seeking.
          * The default value is `false`.
@@ -11998,7 +10474,6 @@ public Builder setIgnoreNonSummarySeekingQuery(boolean value) {
          * 
* * bool ignore_non_summary_seeking_query = 4; - * * @return This builder for chaining. */ public Builder clearIgnoreNonSummarySeekingQuery() { @@ -12010,21 +10485,19 @@ public Builder clearIgnoreNonSummarySeekingQuery() { private java.lang.Object languageCode_ = ""; /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @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; @@ -12033,22 +10506,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @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 { @@ -12056,37 +10528,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -12096,29 +10561,24 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
          * Language code for Summary. Use language tags defined by
          * [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
          * 
* * string language_code = 6; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12131,48 +10591,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SummarySpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12184,20 +10637,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ExtractiveContentSpecOrBuilder - extends + public interface ExtractiveContentSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The maximum number of extractive answers returned in each search
        * result.
@@ -12215,14 +10665,11 @@ public interface ExtractiveContentSpecOrBuilder
        * 
* * int32 max_extractive_answer_count = 1; - * * @return The maxExtractiveAnswerCount. */ int getMaxExtractiveAnswerCount(); /** - * - * *
        * The max number of extractive segments returned in each search result.
        * Only applied if the
@@ -12244,28 +10691,22 @@ public interface ExtractiveContentSpecOrBuilder
        * 
* * int32 max_extractive_segment_count = 2; - * * @return The maxExtractiveSegmentCount. */ int getMaxExtractiveSegmentCount(); /** - * - * *
        * Specifies whether to return the confidence score from the extractive
        * segments in each search result. The default value is `false`.
        * 
* * bool return_extractive_segment_score = 3; - * * @return The returnExtractiveSegmentScore. */ boolean getReturnExtractiveSegmentScore(); /** - * - * *
        * Specifies whether to also include the adjacent from each selected
        * segments.
@@ -12274,76 +10715,64 @@ public interface ExtractiveContentSpecOrBuilder
        * 
* * int32 num_previous_segments = 4; - * * @return The numPreviousSegments. */ int getNumPreviousSegments(); /** - * - * *
        * Return at most `num_next_segments` segments after each selected
        * segments.
        * 
* * int32 num_next_segments = 5; - * * @return The numNextSegments. */ int getNumNextSegments(); } /** - * - * *
      * A specification for configuring the extractive content in a search
      * response.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} */ - public static final class ExtractiveContentSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ExtractiveContentSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) ExtractiveContentSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExtractiveContentSpec.newBuilder() to construct. private ExtractiveContentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExtractiveContentSpec() {} + private ExtractiveContentSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExtractiveContentSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder.class); } public static final int MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER = 1; private int maxExtractiveAnswerCount_ = 0; /** - * - * *
        * The maximum number of extractive answers returned in each search
        * result.
@@ -12361,7 +10790,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * int32 max_extractive_answer_count = 1; - * * @return The maxExtractiveAnswerCount. */ @java.lang.Override @@ -12372,8 +10800,6 @@ public int getMaxExtractiveAnswerCount() { public static final int MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER = 2; private int maxExtractiveSegmentCount_ = 0; /** - * - * *
        * The max number of extractive segments returned in each search result.
        * Only applied if the
@@ -12395,7 +10821,6 @@ public int getMaxExtractiveAnswerCount() {
        * 
* * int32 max_extractive_segment_count = 2; - * * @return The maxExtractiveSegmentCount. */ @java.lang.Override @@ -12406,15 +10831,12 @@ public int getMaxExtractiveSegmentCount() { public static final int RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER = 3; private boolean returnExtractiveSegmentScore_ = false; /** - * - * *
        * Specifies whether to return the confidence score from the extractive
        * segments in each search result. The default value is `false`.
        * 
* * bool return_extractive_segment_score = 3; - * * @return The returnExtractiveSegmentScore. */ @java.lang.Override @@ -12425,8 +10847,6 @@ public boolean getReturnExtractiveSegmentScore() { public static final int NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER = 4; private int numPreviousSegments_ = 0; /** - * - * *
        * Specifies whether to also include the adjacent from each selected
        * segments.
@@ -12435,7 +10855,6 @@ public boolean getReturnExtractiveSegmentScore() {
        * 
* * int32 num_previous_segments = 4; - * * @return The numPreviousSegments. */ @java.lang.Override @@ -12446,15 +10865,12 @@ public int getNumPreviousSegments() { public static final int NUM_NEXT_SEGMENTS_FIELD_NUMBER = 5; private int numNextSegments_ = 0; /** - * - * *
        * Return at most `num_next_segments` segments after each selected
        * segments.
        * 
* * int32 num_next_segments = 5; - * * @return The numNextSegments. */ @java.lang.Override @@ -12463,7 +10879,6 @@ public int getNumNextSegments() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12475,7 +10890,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 (maxExtractiveAnswerCount_ != 0) { output.writeInt32(1, maxExtractiveAnswerCount_); } @@ -12501,23 +10917,24 @@ public int getSerializedSize() { size = 0; if (maxExtractiveAnswerCount_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxExtractiveAnswerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxExtractiveAnswerCount_); } if (maxExtractiveSegmentCount_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxExtractiveSegmentCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxExtractiveSegmentCount_); } if (returnExtractiveSegmentScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, returnExtractiveSegmentScore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, returnExtractiveSegmentScore_); } if (numPreviousSegments_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numPreviousSegments_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, numPreviousSegments_); } if (numNextSegments_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, numNextSegments_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, numNextSegments_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12527,27 +10944,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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec) - obj; - - if (getMaxExtractiveAnswerCount() != other.getMaxExtractiveAnswerCount()) return false; - if (getMaxExtractiveSegmentCount() != other.getMaxExtractiveSegmentCount()) return false; - if (getReturnExtractiveSegmentScore() != other.getReturnExtractiveSegmentScore()) - return false; - if (getNumPreviousSegments() != other.getNumPreviousSegments()) return false; - if (getNumNextSegments() != other.getNumNextSegments()) return false; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) obj; + + if (getMaxExtractiveAnswerCount() + != other.getMaxExtractiveAnswerCount()) return false; + if (getMaxExtractiveSegmentCount() + != other.getMaxExtractiveSegmentCount()) return false; + if (getReturnExtractiveSegmentScore() + != other.getReturnExtractiveSegmentScore()) return false; + if (getNumPreviousSegments() + != other.getNumPreviousSegments()) return false; + if (getNumNextSegments() + != other.getNumNextSegments()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12564,9 +10977,8 @@ public int hashCode() { hash = (37 * hash) + MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxExtractiveSegmentCount(); hash = (37 * hash) + RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getReturnExtractiveSegmentScore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnExtractiveSegmentScore()); hash = (37 * hash) + NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getNumPreviousSegments(); hash = (37 * hash) + NUM_NEXT_SEGMENTS_FIELD_NUMBER; @@ -12576,117 +10988,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec 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 @@ -12696,47 +11081,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A specification for configuring the extractive content in a search
        * response.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} */ - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -12750,26 +11128,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -12777,25 +11148,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxExtractiveAnswerCount_ = maxExtractiveAnswerCount_; @@ -12818,60 +11178,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance()) return this; if (other.getMaxExtractiveAnswerCount() != 0) { setMaxExtractiveAnswerCount(other.getMaxExtractiveAnswerCount()); } @@ -12913,43 +11259,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - maxExtractiveAnswerCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - maxExtractiveSegmentCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - returnExtractiveSegmentScore_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - numPreviousSegments_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - numNextSegments_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + maxExtractiveAnswerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + maxExtractiveSegmentCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + returnExtractiveSegmentScore_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + numPreviousSegments_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + numNextSegments_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12959,13 +11299,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int maxExtractiveAnswerCount_; + private int maxExtractiveAnswerCount_ ; /** - * - * *
          * The maximum number of extractive answers returned in each search
          * result.
@@ -12983,7 +11320,6 @@ public Builder mergeFrom(
          * 
* * int32 max_extractive_answer_count = 1; - * * @return The maxExtractiveAnswerCount. */ @java.lang.Override @@ -12991,8 +11327,6 @@ public int getMaxExtractiveAnswerCount() { return maxExtractiveAnswerCount_; } /** - * - * *
          * The maximum number of extractive answers returned in each search
          * result.
@@ -13010,7 +11344,6 @@ public int getMaxExtractiveAnswerCount() {
          * 
* * int32 max_extractive_answer_count = 1; - * * @param value The maxExtractiveAnswerCount to set. * @return This builder for chaining. */ @@ -13022,8 +11355,6 @@ public Builder setMaxExtractiveAnswerCount(int value) { return this; } /** - * - * *
          * The maximum number of extractive answers returned in each search
          * result.
@@ -13041,7 +11372,6 @@ public Builder setMaxExtractiveAnswerCount(int value) {
          * 
* * int32 max_extractive_answer_count = 1; - * * @return This builder for chaining. */ public Builder clearMaxExtractiveAnswerCount() { @@ -13051,10 +11381,8 @@ public Builder clearMaxExtractiveAnswerCount() { return this; } - private int maxExtractiveSegmentCount_; + private int maxExtractiveSegmentCount_ ; /** - * - * *
          * The max number of extractive segments returned in each search result.
          * Only applied if the
@@ -13076,7 +11404,6 @@ public Builder clearMaxExtractiveAnswerCount() {
          * 
* * int32 max_extractive_segment_count = 2; - * * @return The maxExtractiveSegmentCount. */ @java.lang.Override @@ -13084,8 +11411,6 @@ public int getMaxExtractiveSegmentCount() { return maxExtractiveSegmentCount_; } /** - * - * *
          * The max number of extractive segments returned in each search result.
          * Only applied if the
@@ -13107,7 +11432,6 @@ public int getMaxExtractiveSegmentCount() {
          * 
* * int32 max_extractive_segment_count = 2; - * * @param value The maxExtractiveSegmentCount to set. * @return This builder for chaining. */ @@ -13119,8 +11443,6 @@ public Builder setMaxExtractiveSegmentCount(int value) { return this; } /** - * - * *
          * The max number of extractive segments returned in each search result.
          * Only applied if the
@@ -13142,7 +11464,6 @@ public Builder setMaxExtractiveSegmentCount(int value) {
          * 
* * int32 max_extractive_segment_count = 2; - * * @return This builder for chaining. */ public Builder clearMaxExtractiveSegmentCount() { @@ -13152,17 +11473,14 @@ public Builder clearMaxExtractiveSegmentCount() { return this; } - private boolean returnExtractiveSegmentScore_; + private boolean returnExtractiveSegmentScore_ ; /** - * - * *
          * Specifies whether to return the confidence score from the extractive
          * segments in each search result. The default value is `false`.
          * 
* * bool return_extractive_segment_score = 3; - * * @return The returnExtractiveSegmentScore. */ @java.lang.Override @@ -13170,15 +11488,12 @@ public boolean getReturnExtractiveSegmentScore() { return returnExtractiveSegmentScore_; } /** - * - * *
          * Specifies whether to return the confidence score from the extractive
          * segments in each search result. The default value is `false`.
          * 
* * bool return_extractive_segment_score = 3; - * * @param value The returnExtractiveSegmentScore to set. * @return This builder for chaining. */ @@ -13190,15 +11505,12 @@ public Builder setReturnExtractiveSegmentScore(boolean value) { return this; } /** - * - * *
          * Specifies whether to return the confidence score from the extractive
          * segments in each search result. The default value is `false`.
          * 
* * bool return_extractive_segment_score = 3; - * * @return This builder for chaining. */ public Builder clearReturnExtractiveSegmentScore() { @@ -13208,10 +11520,8 @@ public Builder clearReturnExtractiveSegmentScore() { return this; } - private int numPreviousSegments_; + private int numPreviousSegments_ ; /** - * - * *
          * Specifies whether to also include the adjacent from each selected
          * segments.
@@ -13220,7 +11530,6 @@ public Builder clearReturnExtractiveSegmentScore() {
          * 
* * int32 num_previous_segments = 4; - * * @return The numPreviousSegments. */ @java.lang.Override @@ -13228,8 +11537,6 @@ public int getNumPreviousSegments() { return numPreviousSegments_; } /** - * - * *
          * Specifies whether to also include the adjacent from each selected
          * segments.
@@ -13238,7 +11545,6 @@ public int getNumPreviousSegments() {
          * 
* * int32 num_previous_segments = 4; - * * @param value The numPreviousSegments to set. * @return This builder for chaining. */ @@ -13250,8 +11556,6 @@ public Builder setNumPreviousSegments(int value) { return this; } /** - * - * *
          * Specifies whether to also include the adjacent from each selected
          * segments.
@@ -13260,7 +11564,6 @@ public Builder setNumPreviousSegments(int value) {
          * 
* * int32 num_previous_segments = 4; - * * @return This builder for chaining. */ public Builder clearNumPreviousSegments() { @@ -13270,17 +11573,14 @@ public Builder clearNumPreviousSegments() { return this; } - private int numNextSegments_; + private int numNextSegments_ ; /** - * - * *
          * Return at most `num_next_segments` segments after each selected
          * segments.
          * 
* * int32 num_next_segments = 5; - * * @return The numNextSegments. */ @java.lang.Override @@ -13288,15 +11588,12 @@ public int getNumNextSegments() { return numNextSegments_; } /** - * - * *
          * Return at most `num_next_segments` segments after each selected
          * segments.
          * 
* * int32 num_next_segments = 5; - * * @param value The numNextSegments to set. * @return This builder for chaining. */ @@ -13308,15 +11605,12 @@ public Builder setNumNextSegments(int value) { return this; } /** - * - * *
          * Return at most `num_next_segments` segments after each selected
          * segments.
          * 
* * int32 num_next_segments = 5; - * * @return This builder for chaining. */ public Builder clearNumNextSegments() { @@ -13325,7 +11619,6 @@ public Builder clearNumNextSegments() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13338,48 +11631,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtractiveContentSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtractiveContentSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13391,28 +11677,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippetSpec_; /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return Whether the snippetSpec field is set. */ @java.lang.Override @@ -13420,64 +11699,40 @@ public boolean hasSnippetSpec() { return snippetSpec_ != null; } /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return The snippetSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec() { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } /** - * - * *
      * If `snippetSpec` is not specified, snippets are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder() { + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return Whether the summarySpec field is set. */ @java.lang.Override @@ -13485,65 +11740,40 @@ public boolean hasSummarySpec() { return summarySpec_ != null; } /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return The summarySpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } /** - * - * *
      * If `summarySpec` is not specified, summaries are not included in the
      * search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - extractiveContentSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractiveContentSpec_; /** - * - * *
      * If there is no extractive_content_spec provided, there will be no
      * extractive answer in the search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; * @return Whether the extractiveContentSpec field is set. */ @java.lang.Override @@ -13551,52 +11781,32 @@ public boolean hasExtractiveContentSpec() { return extractiveContentSpec_ != null; } /** - * - * *
      * If there is no extractive_content_spec provided, there will be no
      * extractive answer in the search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; * @return The extractiveContentSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getExtractiveContentSpec() { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec() { + return extractiveContentSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; } /** - * - * *
      * If there is no extractive_content_spec provided, there will be no
      * extractive answer in the search response.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder() { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder() { + return extractiveContentSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13608,7 +11818,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 (snippetSpec_ != null) { output.writeMessage(1, getSnippetSpec()); } @@ -13628,14 +11839,16 @@ public int getSerializedSize() { size = 0; if (snippetSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnippetSpec()); } if (summarySpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSummarySpec()); } if (extractiveContentSpec_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExtractiveContentSpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13645,26 +11858,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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj; if (hasSnippetSpec() != other.hasSnippetSpec()) return false; if (hasSnippetSpec()) { - if (!getSnippetSpec().equals(other.getSnippetSpec())) return false; + if (!getSnippetSpec() + .equals(other.getSnippetSpec())) return false; } if (hasSummarySpec() != other.hasSummarySpec()) return false; if (hasSummarySpec()) { - if (!getSummarySpec().equals(other.getSummarySpec())) return false; + if (!getSummarySpec() + .equals(other.getSummarySpec())) return false; } if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false; if (hasExtractiveContentSpec()) { - if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false; + if (!getExtractiveContentSpec() + .equals(other.getExtractiveContentSpec())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -13695,95 +11909,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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 @@ -13793,43 +12001,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec} */ - 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -13853,22 +12057,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13876,33 +12077,29 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec b } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snippetSpec_ = - snippetSpecBuilder_ == null ? snippetSpec_ : snippetSpecBuilder_.build(); + result.snippetSpec_ = snippetSpecBuilder_ == null + ? snippetSpec_ + : snippetSpecBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.summarySpec_ = - summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build(); + result.summarySpec_ = summarySpecBuilder_ == null + ? summarySpec_ + : summarySpecBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.extractiveContentSpec_ = - extractiveContentSpecBuilder_ == null - ? extractiveContentSpec_ - : extractiveContentSpecBuilder_.build(); + result.extractiveContentSpec_ = extractiveContentSpecBuilder_ == null + ? extractiveContentSpec_ + : extractiveContentSpecBuilder_.build(); } } @@ -13910,54 +12107,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance()) return this; if (other.hasSnippetSpec()) { mergeSnippetSpec(other.getSnippetSpec()); } @@ -13993,32 +12182,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSnippetSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSummarySpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getExtractiveContentSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSnippetSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSummarySpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getExtractiveContentSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14028,75 +12218,48 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippetSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> - snippetSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder> snippetSpecBuilder_; /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return Whether the snippetSpec field is set. */ public boolean hasSnippetSpec() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * @return The snippetSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec() { if (snippetSpecBuilder_ == null) { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + return snippetSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } else { return snippetSpecBuilder_.getMessage(); } } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - value) { + public Builder setSnippetSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec value) { if (snippetSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14110,21 +12273,15 @@ public Builder setSnippetSpec( return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue) { if (snippetSpecBuilder_ == null) { snippetSpec_ = builderForValue.build(); } else { @@ -14135,26 +12292,18 @@ public Builder setSnippetSpec( return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public Builder mergeSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - value) { + public Builder mergeSnippetSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec value) { if (snippetSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snippetSpec_ != null - && snippetSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + snippetSpec_ != null && + snippetSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance()) { getSnippetSpecBuilder().mergeFrom(value); } else { snippetSpec_ = value; @@ -14167,16 +12316,12 @@ public Builder mergeSnippetSpec( return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ public Builder clearSnippetSpec() { bitField0_ = (bitField0_ & ~0x00000001); @@ -14189,147 +12334,96 @@ public Builder clearSnippetSpec() { return this; } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder - getSnippetSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder getSnippetSpecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSnippetSpecFieldBuilder().getBuilder(); } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder() { if (snippetSpecBuilder_ != null) { return snippetSpecBuilder_.getMessageOrBuilder(); } else { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + return snippetSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.getDefaultInstance() : snippetSpec_; } } /** - * - * *
        * If `snippetSpec` is not specified, snippets are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder> getSnippetSpecFieldBuilder() { if (snippetSpecBuilder_ == null) { - snippetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder>(getSnippetSpec(), getParentForChildren(), isClean()); + snippetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder>( + getSnippetSpec(), + getParentForChildren(), + isClean()); snippetSpec_ = null; } return snippetSpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summarySpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> - summarySpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> summarySpecBuilder_; /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return Whether the summarySpec field is set. */ public boolean hasSummarySpec() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; * @return The summarySpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec() { if (summarySpecBuilder_ == null) { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } else { return summarySpecBuilder_.getMessage(); } } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - value) { + public Builder setSummarySpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14343,21 +12437,15 @@ public Builder setSummarySpec( return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue) { if (summarySpecBuilder_ == null) { summarySpec_ = builderForValue.build(); } else { @@ -14368,26 +12456,18 @@ public Builder setSummarySpec( return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public Builder mergeSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - value) { + public Builder mergeSummarySpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec value) { if (summarySpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && summarySpec_ != null - && summarySpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + summarySpec_ != null && + summarySpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance()) { getSummarySpecBuilder().mergeFrom(value); } else { summarySpec_ = value; @@ -14400,16 +12480,12 @@ public Builder mergeSummarySpec( return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ public Builder clearSummarySpec() { bitField0_ = (bitField0_ & ~0x00000002); @@ -14422,151 +12498,96 @@ public Builder clearSummarySpec() { return this; } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - getSummarySpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSummarySpecFieldBuilder().getBuilder(); } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder() { if (summarySpecBuilder_ != null) { return summarySpecBuilder_.getMessageOrBuilder(); } else { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + return summarySpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.getDefaultInstance() : summarySpec_; } } /** - * - * *
        * If `summarySpec` is not specified, summaries are not included in the
        * search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder> getSummarySpecFieldBuilder() { if (summarySpecBuilder_ == null) { - summarySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); + summarySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder>( + getSummarySpec(), + getParentForChildren(), + isClean()); summarySpec_ = null; } return summarySpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - extractiveContentSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractiveContentSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder> - extractiveContentSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder> extractiveContentSpecBuilder_; /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; * @return Whether the extractiveContentSpec field is set. */ public boolean hasExtractiveContentSpec() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; * @return The extractiveContentSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getExtractiveContentSpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec() { if (extractiveContentSpecBuilder_ == null) { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; + return extractiveContentSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; } else { return extractiveContentSpecBuilder_.getMessage(); } } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ - public Builder setExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - value) { + public Builder setExtractiveContentSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec value) { if (extractiveContentSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14580,21 +12601,15 @@ public Builder setExtractiveContentSpec( return this; } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ public Builder setExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder builderForValue) { if (extractiveContentSpecBuilder_ == null) { extractiveContentSpec_ = builderForValue.build(); } else { @@ -14605,27 +12620,18 @@ public Builder setExtractiveContentSpec( return this; } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ - public Builder mergeExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - value) { + public Builder mergeExtractiveContentSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec value) { if (extractiveContentSpecBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && extractiveContentSpec_ != null - && extractiveContentSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + extractiveContentSpec_ != null && + extractiveContentSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance()) { getExtractiveContentSpecBuilder().mergeFrom(value); } else { extractiveContentSpec_ = value; @@ -14638,16 +12644,12 @@ public Builder mergeExtractiveContentSpec( return this; } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ public Builder clearExtractiveContentSpec() { bitField0_ = (bitField0_ & ~0x00000004); @@ -14660,83 +12662,55 @@ public Builder clearExtractiveContentSpec() { return this; } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder - getExtractiveContentSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder getExtractiveContentSpecBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExtractiveContentSpecFieldBuilder().getBuilder(); } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder() { if (extractiveContentSpecBuilder_ != null) { return extractiveContentSpecBuilder_.getMessageOrBuilder(); } else { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; + return extractiveContentSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.getDefaultInstance() : extractiveContentSpec_; } } /** - * - * *
        * If there is no extractive_content_spec provided, there will be no
        * extractive answer in the search response.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder> getExtractiveContentSpecFieldBuilder() { if (extractiveContentSpecBuilder_ == null) { - extractiveContentSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder>( - getExtractiveContentSpec(), getParentForChildren(), isClean()); + extractiveContentSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder>( + getExtractiveContentSpec(), + getParentForChildren(), + isClean()); extractiveContentSpec_ = null; } return extractiveContentSpecBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14749,45 +12723,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentSearchSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentSearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14799,89 +12769,61 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EmbeddingSpecOrBuilder - extends + public interface EmbeddingSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + java.util.List getEmbeddingVectorsList(); /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index); /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ int getEmbeddingVectorsCount(); /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> + java.util.List getEmbeddingVectorsOrBuilderList(); /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder( + int index); } /** - * - * *
    * The specification that uses customized query embedding vector to do
    * semantic document retrieval.
@@ -14889,129 +12831,108 @@ public interface EmbeddingSpecOrBuilder
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec}
    */
-  public static final class EmbeddingSpec extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class EmbeddingSpec extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)
       EmbeddingSpecOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use EmbeddingSpec.newBuilder() to construct.
     private EmbeddingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private EmbeddingSpec() {
       embeddingVectors_ = 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 EmbeddingSpec();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class,
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class);
     }
 
-    public interface EmbeddingVectorOrBuilder
-        extends
+    public interface EmbeddingVectorOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Embedding field path in schema.
        * 
* * string field_path = 1; - * * @return The fieldPath. */ java.lang.String getFieldPath(); /** - * - * *
        * Embedding field path in schema.
        * 
* * string field_path = 1; - * * @return The bytes for fieldPath. */ - com.google.protobuf.ByteString getFieldPathBytes(); + com.google.protobuf.ByteString + getFieldPathBytes(); /** - * - * *
        * Query embedding vector.
        * 
* * repeated float vector = 2; - * * @return A list containing the vector. */ java.util.List getVectorList(); /** - * - * *
        * Query embedding vector.
        * 
* * repeated float vector = 2; - * * @return The count of vector. */ int getVectorCount(); /** - * - * *
        * Query embedding vector.
        * 
* * repeated float vector = 2; - * * @param index The index of the element to return. * @return The vector at the given index. */ float getVector(int index); } /** - * - * *
      * Embedding vector.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} */ - public static final class EmbeddingVector extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class EmbeddingVector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) EmbeddingVectorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EmbeddingVector.newBuilder() to construct. private EmbeddingVector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EmbeddingVector() { fieldPath_ = ""; vector_ = emptyFloatList(); @@ -15019,40 +12940,33 @@ private EmbeddingVector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EmbeddingVector(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder.class); } public static final int FIELD_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object fieldPath_ = ""; /** - * - * *
        * Embedding field path in schema.
        * 
* * string field_path = 1; - * * @return The fieldPath. */ @java.lang.Override @@ -15061,29 +12975,29 @@ public java.lang.String getFieldPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; } } /** - * - * *
        * Embedding field path in schema.
        * 
* * string field_path = 1; - * * @return The bytes for fieldPath. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldPathBytes() { + public com.google.protobuf.ByteString + getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldPath_ = b; return b; } else { @@ -15092,58 +13006,47 @@ public com.google.protobuf.ByteString getFieldPathBytes() { } public static final int VECTOR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList vector_; /** - * - * *
        * Query embedding vector.
        * 
* * repeated float vector = 2; - * * @return A list containing the vector. */ @java.lang.Override - public java.util.List getVectorList() { + public java.util.List + getVectorList() { return vector_; } /** - * - * *
        * Query embedding vector.
        * 
* * repeated float vector = 2; - * * @return The count of vector. */ public int getVectorCount() { return vector_.size(); } /** - * - * *
        * Query embedding vector.
        * 
* * repeated float vector = 2; - * * @param index The index of the element to return. * @return The vector at the given index. */ public float getVector(int index) { return vector_.getFloat(index); } - private int vectorMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15155,7 +13058,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); @@ -15185,7 +13089,8 @@ public int getSerializedSize() { size += dataSize; if (!getVectorList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } vectorMemoizedSerializedSize = dataSize; } @@ -15197,19 +13102,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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) obj; - if (!getFieldPath().equals(other.getFieldPath())) return false; - if (!getVectorList().equals(other.getVectorList())) return false; + if (!getFieldPath() + .equals(other.getFieldPath())) return false; + if (!getVectorList() + .equals(other.getVectorList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15232,116 +13135,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector 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 @@ -15351,46 +13228,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Embedding vector.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} */ - 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -15401,23 +13271,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15425,23 +13291,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector(this); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector result) { if (((bitField0_ & 0x00000002) != 0)) { vector_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); @@ -15449,9 +13307,7 @@ private void buildPartialRepeatedFields( result.vector_ = vector_; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldPath_ = fieldPath_; @@ -15462,58 +13318,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance()) return this; if (!other.getFieldPath().isEmpty()) { fieldPath_ = other.fieldPath_; bitField0_ |= 0x00000001; @@ -15555,37 +13399,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - float v = input.readFloat(); - ensureVectorIsMutable(); - vector_.addFloat(v); - break; - } // case 21 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureVectorIsMutable(); - while (input.getBytesUntilLimit() > 0) { - vector_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureVectorIsMutable(); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -15595,25 +13435,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object fieldPath_ = ""; /** - * - * *
          * Embedding field path in schema.
          * 
* * string field_path = 1; - * * @return The fieldPath. */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; @@ -15622,21 +13459,20 @@ public java.lang.String getFieldPath() { } } /** - * - * *
          * Embedding field path in schema.
          * 
* * string field_path = 1; - * * @return The bytes for fieldPath. */ - public com.google.protobuf.ByteString getFieldPathBytes() { + public com.google.protobuf.ByteString + getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldPath_ = b; return b; } else { @@ -15644,35 +13480,28 @@ public com.google.protobuf.ByteString getFieldPathBytes() { } } /** - * - * *
          * Embedding field path in schema.
          * 
* * string field_path = 1; - * * @param value The fieldPath to set. * @return This builder for chaining. */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fieldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Embedding field path in schema.
          * 
* * string field_path = 1; - * * @return This builder for chaining. */ public Builder clearFieldPath() { @@ -15682,21 +13511,17 @@ public Builder clearFieldPath() { return this; } /** - * - * *
          * Embedding field path in schema.
          * 
* * string field_path = 1; - * * @param value The bytes for fieldPath to set. * @return This builder for chaining. */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldPath_ = value; bitField0_ |= 0x00000001; @@ -15705,7 +13530,6 @@ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); - private void ensureVectorIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { vector_ = mutableCopy(vector_); @@ -15713,44 +13537,35 @@ private void ensureVectorIsMutable() { } } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @return A list containing the vector. */ - public java.util.List getVectorList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(vector_) - : vector_; + public java.util.List + getVectorList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(vector_) : vector_; } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @return The count of vector. */ public int getVectorCount() { return vector_.size(); } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @param index The index of the element to return. * @return The vector at the given index. */ @@ -15758,19 +13573,17 @@ public float getVector(int index) { return vector_.getFloat(index); } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @param index The index to set the value at. * @param value The vector to set. * @return This builder for chaining. */ - public Builder setVector(int index, float value) { + public Builder setVector( + int index, float value) { ensureVectorIsMutable(); vector_.setFloat(index, value); @@ -15778,14 +13591,11 @@ public Builder setVector(int index, float value) { return this; } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @param value The vector to add. * @return This builder for chaining. */ @@ -15797,32 +13607,28 @@ public Builder addVector(float value) { return this; } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @param values The vector to add. * @return This builder for chaining. */ - public Builder addAllVector(java.lang.Iterable values) { + public Builder addAllVector( + java.lang.Iterable values) { ensureVectorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vector_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vector_); onChanged(); return this; } /** - * - * *
          * Query embedding vector.
          * 
* * repeated float vector = 2; - * * @return This builder for chaining. */ public Builder clearVector() { @@ -15831,7 +13637,6 @@ public Builder clearVector() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15844,48 +13649,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmbeddingVector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingVector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -15897,105 +13695,74 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int EMBEDDING_VECTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - embeddingVectors_; + private java.util.List embeddingVectors_; /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList() { + public java.util.List getEmbeddingVectorsList() { return embeddingVectors_; } /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> + public java.util.List getEmbeddingVectorsOrBuilderList() { return embeddingVectors_; } /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ @java.lang.Override public int getEmbeddingVectorsCount() { return embeddingVectors_.size(); } /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index) { return embeddingVectors_.get(index); } /** - * - * *
      * The embedding vector used for retrieval. Limit to 1.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder( + int index) { return embeddingVectors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16007,7 +13774,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 < embeddingVectors_.size(); i++) { output.writeMessage(1, embeddingVectors_.get(i)); } @@ -16021,8 +13789,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < embeddingVectors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, embeddingVectors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, embeddingVectors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16032,15 +13800,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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) obj; - if (!getEmbeddingVectorsList().equals(other.getEmbeddingVectorsList())) return false; + if (!getEmbeddingVectorsList() + .equals(other.getEmbeddingVectorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16062,95 +13830,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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 @@ -16160,8 +13922,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The specification that uses customized query embedding vector to do
      * semantic document retrieval.
@@ -16169,34 +13929,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec}
      */
-    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.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)
         com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class,
-                com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class);
+                com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -16212,16 +13971,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-          getDefaultInstanceForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-            .getDefaultInstance();
+      public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getDefaultInstanceForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -16235,18 +13992,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec buildPartial() {
-        com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result =
-            new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(this);
+        com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) {
+      private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) {
         if (embeddingVectorsBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             embeddingVectors_ = java.util.Collections.unmodifiableList(embeddingVectors_);
@@ -16258,8 +14011,7 @@ private void buildPartialRepeatedFields(
         }
       }
 
-      private void buildPartial0(
-          com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) {
+      private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) {
         int from_bitField0_ = bitField0_;
       }
 
@@ -16267,53 +14019,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) {
-          return mergeFrom(
-              (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) other);
+          return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other) {
-        if (other
-            == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other) {
+        if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance()) return this;
         if (embeddingVectorsBuilder_ == null) {
           if (!other.embeddingVectors_.isEmpty()) {
             if (embeddingVectors_.isEmpty()) {
@@ -16332,10 +14077,9 @@ public Builder mergeFrom(
               embeddingVectorsBuilder_ = null;
               embeddingVectors_ = other.embeddingVectors_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              embeddingVectorsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getEmbeddingVectorsFieldBuilder()
-                      : null;
+              embeddingVectorsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getEmbeddingVectorsFieldBuilder() : null;
             } else {
               embeddingVectorsBuilder_.addAllMessages(other.embeddingVectors_);
             }
@@ -16367,30 +14111,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-                          .EmbeddingVector
-                      m =
-                          input.readMessage(
-                              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-                                  .EmbeddingVector.parser(),
-                              extensionRegistry);
-                  if (embeddingVectorsBuilder_ == null) {
-                    ensureEmbeddingVectorsIsMutable();
-                    embeddingVectors_.add(m);
-                  } else {
-                    embeddingVectorsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector m =
+                    input.readMessage(
+                        com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.parser(),
+                        extensionRegistry);
+                if (embeddingVectorsBuilder_ == null) {
+                  ensureEmbeddingVectorsIsMutable();
+                  embeddingVectors_.add(m);
+                } else {
+                  embeddingVectorsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -16400,45 +14139,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List<
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector>
-          embeddingVectors_ = java.util.Collections.emptyList();
-
+      private java.util.List embeddingVectors_ =
+        java.util.Collections.emptyList();
       private void ensureEmbeddingVectorsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          embeddingVectors_ =
-              new java.util.ArrayList<
-                  com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-                      .EmbeddingVector>(embeddingVectors_);
+          embeddingVectors_ = new java.util.ArrayList(embeddingVectors_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector,
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector
-                  .Builder,
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
-                  .EmbeddingVectorOrBuilder>
-          embeddingVectorsBuilder_;
+          com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder> embeddingVectorsBuilder_;
 
       /**
-       *
-       *
        * 
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList() { + public java.util.List getEmbeddingVectorsList() { if (embeddingVectorsBuilder_ == null) { return java.util.Collections.unmodifiableList(embeddingVectors_); } else { @@ -16446,15 +14168,11 @@ private void ensureEmbeddingVectorsIsMutable() { } } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public int getEmbeddingVectorsCount() { if (embeddingVectorsBuilder_ == null) { @@ -16464,18 +14182,13 @@ public int getEmbeddingVectorsCount() { } } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index) { if (embeddingVectorsBuilder_ == null) { return embeddingVectors_.get(index); } else { @@ -16483,20 +14196,14 @@ public int getEmbeddingVectorsCount() { } } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder setEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector value) { if (embeddingVectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16510,21 +14217,14 @@ public Builder setEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder setEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue) { if (embeddingVectorsBuilder_ == null) { ensureEmbeddingVectorsIsMutable(); embeddingVectors_.set(index, builderForValue.build()); @@ -16535,19 +14235,13 @@ public Builder setEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public Builder addEmbeddingVectors( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { + public Builder addEmbeddingVectors(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector value) { if (embeddingVectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16561,20 +14255,14 @@ public Builder addEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder addEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector value) { if (embeddingVectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16588,20 +14276,14 @@ public Builder addEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder addEmbeddingVectors( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue) { if (embeddingVectorsBuilder_ == null) { ensureEmbeddingVectorsIsMutable(); embeddingVectors_.add(builderForValue.build()); @@ -16612,21 +14294,14 @@ public Builder addEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder addEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue) { if (embeddingVectorsBuilder_ == null) { ensureEmbeddingVectorsIsMutable(); embeddingVectors_.add(index, builderForValue.build()); @@ -16637,25 +14312,18 @@ public Builder addEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder addAllEmbeddingVectors( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector> - values) { + java.lang.Iterable values) { if (embeddingVectorsBuilder_ == null) { ensureEmbeddingVectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, embeddingVectors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, embeddingVectors_); onChanged(); } else { embeddingVectorsBuilder_.addAllMessages(values); @@ -16663,15 +14331,11 @@ public Builder addAllEmbeddingVectors( return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder clearEmbeddingVectors() { if (embeddingVectorsBuilder_ == null) { @@ -16684,15 +14348,11 @@ public Builder clearEmbeddingVectors() { return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ public Builder removeEmbeddingVectors(int index) { if (embeddingVectorsBuilder_ == null) { @@ -16705,57 +14365,39 @@ public Builder removeEmbeddingVectors(int index) { return this; } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - getEmbeddingVectorsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder getEmbeddingVectorsBuilder( + int index) { return getEmbeddingVectorsFieldBuilder().getBuilder(index); } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder( + int index) { if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.get(index); - } else { + return embeddingVectors_.get(index); } else { return embeddingVectorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList() { + public java.util.List + getEmbeddingVectorsOrBuilderList() { if (embeddingVectorsBuilder_ != null) { return embeddingVectorsBuilder_.getMessageOrBuilderList(); } else { @@ -16763,78 +14405,45 @@ public Builder removeEmbeddingVectors(int index) { } } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - addEmbeddingVectorsBuilder() { - return getEmbeddingVectorsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder addEmbeddingVectorsBuilder() { + return getEmbeddingVectorsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance()); } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - addEmbeddingVectorsBuilder(int index) { - return getEmbeddingVectorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder addEmbeddingVectorsBuilder( + int index) { + return getEmbeddingVectorsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.getDefaultInstance()); } /** - * - * *
        * The embedding vector used for retrieval. Limit to 1.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder> - getEmbeddingVectorsBuilderList() { + public java.util.List + getEmbeddingVectorsBuilderList() { return getEmbeddingVectorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder> getEmbeddingVectorsFieldBuilder() { if (embeddingVectorsBuilder_ == null) { - embeddingVectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder>( + embeddingVectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder>( embeddingVectors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -16843,7 +14452,6 @@ public Builder removeEmbeddingVectors(int index) { } return embeddingVectorsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16856,44 +14464,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmbeddingSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16905,19 +14510,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SERVING_CONFIG_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object servingConfig_ = ""; /** - * - * *
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -16925,10 +14527,7 @@ public com.google.protobuf.Parser getParserForType() {
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ @java.lang.Override @@ -16937,15 +14536,14 @@ public java.lang.String getServingConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -16953,18 +14551,17 @@ public java.lang.String getServingConfig() {
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -16973,12 +14570,9 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } public static final int BRANCH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object branch_ = ""; /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -16988,7 +14582,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The branch. */ @java.lang.Override @@ -16997,15 +14590,14 @@ public java.lang.String getBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); branch_ = s; return s; } } /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -17015,15 +14607,16 @@ public java.lang.String getBranch() {
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for branch. */ @java.lang.Override - public com.google.protobuf.ByteString getBranchBytes() { + public com.google.protobuf.ByteString + getBranchBytes() { java.lang.Object ref = branch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); branch_ = b; return b; } else { @@ -17032,18 +14625,14 @@ public com.google.protobuf.ByteString getBranchBytes() { } public static final int QUERY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The query. */ @java.lang.Override @@ -17052,29 +14641,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -17085,14 +14674,11 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int IMAGE_QUERY_FIELD_NUMBER = 19; private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * * @return Whether the imageQuery field is set. */ @java.lang.Override @@ -17100,25 +14686,18 @@ public boolean hasImageQuery() { return imageQuery_ != null; } /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * * @return The imageQuery. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } /** - * - * *
    * Raw image query.
    * 
@@ -17126,18 +14705,13 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImage * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder() { + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * to return. If unspecified, defaults to a reasonable value. The maximum
@@ -17147,7 +14721,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImage
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -17156,12 +14729,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -17174,7 +14744,6 @@ public int getPageSize() {
    * 
* * string page_token = 5; - * * @return The pageToken. */ @java.lang.Override @@ -17183,15 +14752,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -17204,15 +14772,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 5; - * * @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 { @@ -17223,8 +14792,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int OFFSET_FIELD_NUMBER = 6; private int offset_ = 0; /** - * - * *
    * A 0-indexed integer that specifies the current offset (that is, starting
    * result location, amongst the
@@ -17237,7 +14804,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 offset = 6; - * * @return The offset. */ @java.lang.Override @@ -17246,12 +14812,9 @@ public int getOffset() { } public static final int FILTER_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -17261,7 +14824,6 @@ public int getOffset() {
    * 
* * string filter = 7; - * * @return The filter. */ @java.lang.Override @@ -17270,15 +14832,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; } } /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -17288,15 +14849,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 7; - * * @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 { @@ -17305,12 +14867,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -17321,7 +14880,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 8; - * * @return The orderBy. */ @java.lang.Override @@ -17330,15 +14888,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -17349,15 +14906,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -17368,8 +14926,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int USER_INFO_FIELD_NUMBER = 21; private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -17378,7 +14934,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -17386,8 +14941,6 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -17396,18 +14949,13 @@ public boolean hasUserInfo() {
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * * @return The userInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -17419,19 +14967,13 @@ public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() {
-    return userInfo_ == null
-        ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()
-        : userInfo_;
+    return userInfo_ == null ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_;
   }
 
   public static final int FACET_SPECS_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      facetSpecs_;
+  private java.util.List facetSpecs_;
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -17439,17 +14981,13 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ @java.lang.Override - public java.util.List - getFacetSpecsList() { + public java.util.List getFacetSpecsList() { return facetSpecs_; } /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -17457,18 +14995,14 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> + public java.util.List getFacetSpecsOrBuilderList() { return facetSpecs_; } /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -17476,16 +15010,13 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ @java.lang.Override public int getFacetSpecsCount() { return facetSpecs_.size(); } /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -17493,16 +15024,13 @@ public int getFacetSpecsCount() {
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs(int index) { return facetSpecs_.get(index); } /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -17510,26 +15038,22 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetS
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder - getFacetSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( + int index) { return facetSpecs_.get(index); } public static final int BOOST_SPEC_FIELD_NUMBER = 10; private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * * @return Whether the boostSpec field is set. */ @java.lang.Override @@ -17537,25 +15061,18 @@ public boolean hasBoostSpec() { return boostSpec_ != null; } /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * * @return The boostSpec. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } /** - * - * *
    * Boost specification to boost certain documents.
    * 
@@ -17563,45 +15080,37 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostS * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } public static final int PARAMS_FIELD_NUMBER = 11; - 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.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - @SuppressWarnings("serial") - 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_; } - public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * Additional search parameters.
    *
@@ -17617,21 +15126,20 @@ public int getParamsCount() {
    * map<string, .google.protobuf.Value> params = 11;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -17651,8 +15159,6 @@ public java.util.Map getParamsMap()
     return internalGetParams().getMap();
   }
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -17668,19 +15174,17 @@ public java.util.Map getParamsMap()
    * map<string, .google.protobuf.Value> params = 11;
    */
   @java.lang.Override
-  public /* nullable */ com.google.protobuf.Value getParamsOrDefault(
+  public /* nullable */
+com.google.protobuf.Value getParamsOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetParams().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -17696,11 +15200,11 @@ public java.util.Map getParamsMap()
    * map<string, .google.protobuf.Value> params = 11;
    */
   @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();
     }
@@ -17708,20 +15212,14 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) {
   }
 
   public static final int QUERY_EXPANSION_SPEC_FIELD_NUMBER = 13;
-  private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
-      queryExpansionSpec_;
+  private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec queryExpansionSpec_;
   /**
-   *
-   *
    * 
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return Whether the queryExpansionSpec field is set. */ @java.lang.Override @@ -17729,63 +15227,40 @@ public boolean hasQueryExpansionSpec() { return queryExpansionSpec_ != null; } /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return The queryExpansionSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - getQueryExpansionSpec() { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec getQueryExpansionSpec() { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder() { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder() { + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } public static final int SPELL_CORRECTION_SPEC_FIELD_NUMBER = 14; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - spellCorrectionSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spellCorrectionSpec_; /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return Whether the spellCorrectionSpec field is set. */ @java.lang.Override @@ -17793,55 +15268,35 @@ public boolean hasSpellCorrectionSpec() { return spellCorrectionSpec_ != null; } /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return The spellCorrectionSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec() { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec() { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder() { + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17860,7 +15315,6 @@ public boolean hasSpellCorrectionSpec() {
    * 
* * string user_pseudo_id = 15; - * * @return The userPseudoId. */ @java.lang.Override @@ -17869,15 +15323,14 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -17896,15 +15349,16 @@ public java.lang.String getUserPseudoId() {
    * 
* * string user_pseudo_id = 15; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -17913,19 +15367,13 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER = 24; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - contentSearchSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec contentSearchSpec_; /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return Whether the contentSearchSpec field is set. */ @java.lang.Override @@ -17933,51 +15381,32 @@ public boolean hasContentSearchSpec() { return contentSearchSpec_ != null; } /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return The contentSearchSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getContentSearchSpec() { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec getContentSearchSpec() { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder() { + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } public static final int EMBEDDING_SPEC_FIELD_NUMBER = 23; private com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embeddingSpec_; /** - * - * *
    * Uses the provided embedding to do additional semantic document retrieval.
    * The retrieval is based on the dot product of
@@ -17989,9 +15418,7 @@ public boolean hasContentSearchSpec() {
    * provided, it will use [ServingConfig.embedding_config.field_paths][].
    * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; * @return Whether the embeddingSpec field is set. */ @java.lang.Override @@ -17999,8 +15426,6 @@ public boolean hasEmbeddingSpec() { return embeddingSpec_ != null; } /** - * - * *
    * Uses the provided embedding to do additional semantic document retrieval.
    * The retrieval is based on the dot product of
@@ -18012,20 +15437,14 @@ public boolean hasEmbeddingSpec() {
    * provided, it will use [ServingConfig.embedding_config.field_paths][].
    * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; * @return The embeddingSpec. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec() { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() - : embeddingSpec_; + return embeddingSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; } /** - * - * *
    * Uses the provided embedding to do additional semantic document retrieval.
    * The retrieval is based on the dot product of
@@ -18037,24 +15456,17 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEm
    * provided, it will use [ServingConfig.embedding_config.field_paths][].
    * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder - getEmbeddingSpecOrBuilder() { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() - : embeddingSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder getEmbeddingSpecOrBuilder() { + return embeddingSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; } public static final int RANKING_EXPRESSION_FIELD_NUMBER = 26; - @SuppressWarnings("serial") private volatile java.lang.Object rankingExpression_ = ""; /** - * - * *
    * The ranking expression controls the customized ranking on retrieval
    * documents. This overrides [ServingConfig.ranking_expression][].
@@ -18078,7 +15490,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEm
    * 
* * string ranking_expression = 26; - * * @return The rankingExpression. */ @java.lang.Override @@ -18087,15 +15498,14 @@ public java.lang.String getRankingExpression() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rankingExpression_ = s; return s; } } /** - * - * *
    * The ranking expression controls the customized ranking on retrieval
    * documents. This overrides [ServingConfig.ranking_expression][].
@@ -18119,15 +15529,16 @@ public java.lang.String getRankingExpression() {
    * 
* * string ranking_expression = 26; - * * @return The bytes for rankingExpression. */ @java.lang.Override - public com.google.protobuf.ByteString getRankingExpressionBytes() { + public com.google.protobuf.ByteString + getRankingExpressionBytes() { java.lang.Object ref = rankingExpression_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rankingExpression_ = b; return b; } else { @@ -18138,15 +15549,12 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { public static final int SAFE_SEARCH_FIELD_NUMBER = 20; private boolean safeSearch_ = false; /** - * - * *
    * Whether to turn on safe search. This is only supported for
    * website search.
    * 
* * bool safe_search = 20; - * * @return The safeSearch. */ @java.lang.Override @@ -18155,34 +15563,32 @@ public boolean getSafeSearch() { } public static final int USER_LABELS_FIELD_NUMBER = 22; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_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.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -18206,21 +15612,20 @@ public int getUserLabelsCount() {
    * map<string, string> user_labels = 22;
    */
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -18248,8 +15653,6 @@ public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -18273,19 +15676,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 22;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getUserLabelsOrDefault(
+  public /* nullable */
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -18309,11 +15710,11 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 22;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -18321,7 +15722,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -18333,7 +15733,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(servingConfig_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_);
     }
@@ -18364,8 +15765,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (boostSpec_ != null) {
       output.writeMessage(10, getBoostSpec());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 11);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetParams(),
+        ParamsDefaultEntryHolder.defaultEntry,
+        11);
     if (queryExpansionSpec_ != null) {
       output.writeMessage(13, getQueryExpansionSpec());
     }
@@ -18384,8 +15789,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (userInfo_ != null) {
       output.writeMessage(21, getUserInfo());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 22);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetUserLabels(),
+        UserLabelsDefaultEntryHolder.defaultEntry,
+        22);
     if (embeddingSpec_ != null) {
       output.writeMessage(23, getEmbeddingSpec());
     }
@@ -18414,13 +15823,15 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_);
     }
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(4, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_);
     }
     if (offset_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(6, offset_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_);
@@ -18429,55 +15840,63 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_);
     }
     for (int i = 0; i < facetSpecs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, facetSpecs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, facetSpecs_.get(i));
     }
     if (boostSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getBoostSpec());
-    }
-    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(11, params__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getBoostSpec());
+    }
+    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(11, params__);
     }
     if (queryExpansionSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getQueryExpansionSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(13, getQueryExpansionSpec());
     }
     if (spellCorrectionSpec_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSpellCorrectionSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getSpellCorrectionSpec());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPseudoId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, userPseudoId_);
     }
     if (imageQuery_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getImageQuery());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, getImageQuery());
     }
     if (safeSearch_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, safeSearch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(20, safeSearch_);
     }
     if (userInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUserInfo());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetUserLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry userLabels__ =
-          UserLabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, userLabels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getUserInfo());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetUserLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(22, userLabels__);
     }
     if (embeddingSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEmbeddingSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(23, getEmbeddingSpec());
     }
     if (contentSearchSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getContentSearchSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(24, getContentSearchSpec());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, rankingExpression_);
@@ -18490,56 +15909,76 @@ 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.discoveryengine.v1beta.SearchRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.SearchRequest other =
-        (com.google.cloud.discoveryengine.v1beta.SearchRequest) obj;
+    com.google.cloud.discoveryengine.v1beta.SearchRequest other = (com.google.cloud.discoveryengine.v1beta.SearchRequest) obj;
 
-    if (!getServingConfig().equals(other.getServingConfig())) return false;
-    if (!getBranch().equals(other.getBranch())) return false;
-    if (!getQuery().equals(other.getQuery())) return false;
+    if (!getServingConfig()
+        .equals(other.getServingConfig())) return false;
+    if (!getBranch()
+        .equals(other.getBranch())) return false;
+    if (!getQuery()
+        .equals(other.getQuery())) return false;
     if (hasImageQuery() != other.hasImageQuery()) return false;
     if (hasImageQuery()) {
-      if (!getImageQuery().equals(other.getImageQuery())) return false;
-    }
-    if (getPageSize() != other.getPageSize()) return false;
-    if (!getPageToken().equals(other.getPageToken())) return false;
-    if (getOffset() != other.getOffset()) return false;
-    if (!getFilter().equals(other.getFilter())) return false;
-    if (!getOrderBy().equals(other.getOrderBy())) return false;
+      if (!getImageQuery()
+          .equals(other.getImageQuery())) return false;
+    }
+    if (getPageSize()
+        != other.getPageSize()) return false;
+    if (!getPageToken()
+        .equals(other.getPageToken())) return false;
+    if (getOffset()
+        != other.getOffset()) return false;
+    if (!getFilter()
+        .equals(other.getFilter())) return false;
+    if (!getOrderBy()
+        .equals(other.getOrderBy())) 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 (!getFacetSpecsList().equals(other.getFacetSpecsList())) return false;
+    if (!getFacetSpecsList()
+        .equals(other.getFacetSpecsList())) return false;
     if (hasBoostSpec() != other.hasBoostSpec()) return false;
     if (hasBoostSpec()) {
-      if (!getBoostSpec().equals(other.getBoostSpec())) return false;
+      if (!getBoostSpec()
+          .equals(other.getBoostSpec())) return false;
     }
-    if (!internalGetParams().equals(other.internalGetParams())) return false;
+    if (!internalGetParams().equals(
+        other.internalGetParams())) return false;
     if (hasQueryExpansionSpec() != other.hasQueryExpansionSpec()) return false;
     if (hasQueryExpansionSpec()) {
-      if (!getQueryExpansionSpec().equals(other.getQueryExpansionSpec())) return false;
+      if (!getQueryExpansionSpec()
+          .equals(other.getQueryExpansionSpec())) return false;
     }
     if (hasSpellCorrectionSpec() != other.hasSpellCorrectionSpec()) return false;
     if (hasSpellCorrectionSpec()) {
-      if (!getSpellCorrectionSpec().equals(other.getSpellCorrectionSpec())) return false;
+      if (!getSpellCorrectionSpec()
+          .equals(other.getSpellCorrectionSpec())) return false;
     }
-    if (!getUserPseudoId().equals(other.getUserPseudoId())) return false;
+    if (!getUserPseudoId()
+        .equals(other.getUserPseudoId())) return false;
     if (hasContentSearchSpec() != other.hasContentSearchSpec()) return false;
     if (hasContentSearchSpec()) {
-      if (!getContentSearchSpec().equals(other.getContentSearchSpec())) return false;
+      if (!getContentSearchSpec()
+          .equals(other.getContentSearchSpec())) return false;
     }
     if (hasEmbeddingSpec() != other.hasEmbeddingSpec()) return false;
     if (hasEmbeddingSpec()) {
-      if (!getEmbeddingSpec().equals(other.getEmbeddingSpec())) return false;
-    }
-    if (!getRankingExpression().equals(other.getRankingExpression())) return false;
-    if (getSafeSearch() != other.getSafeSearch()) return false;
-    if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false;
+      if (!getEmbeddingSpec()
+          .equals(other.getEmbeddingSpec())) return false;
+    }
+    if (!getRankingExpression()
+        .equals(other.getRankingExpression())) return false;
+    if (getSafeSearch()
+        != other.getSafeSearch()) return false;
+    if (!internalGetUserLabels().equals(
+        other.internalGetUserLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -18608,7 +16047,8 @@ public int hashCode() {
     hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER;
     hash = (53 * hash) + getRankingExpression().hashCode();
     hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getSafeSearch());
     if (!internalGetUserLabels().getMap().isEmpty()) {
       hash = (37 * hash) + USER_LABELS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetUserLabels().hashCode();
@@ -18619,104 +16059,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest 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.discoveryengine.v1beta.SearchRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchRequest 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
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -18725,56 +16159,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest}
    */
-  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.discoveryengine.v1beta.SearchRequest)
       com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 11:
           return internalGetParams();
         case 22:
           return internalGetUserLabels();
         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 11:
           return internalGetMutableParams();
         case 22:
           return internalGetMutableUserLabels();
         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.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.class,
-              com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.SearchRequest.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -18838,9 +16275,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor;
     }
 
     @java.lang.Override
@@ -18859,18 +16296,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.SearchRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.SearchRequest result =
-          new com.google.cloud.discoveryengine.v1beta.SearchRequest(this);
+      com.google.cloud.discoveryengine.v1beta.SearchRequest result = new com.google.cloud.discoveryengine.v1beta.SearchRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.SearchRequest result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchRequest result) {
       if (facetSpecsBuilder_ == null) {
         if (((bitField0_ & 0x00000400) != 0)) {
           facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_);
@@ -18894,7 +16327,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest
         result.query_ = query_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.imageQuery_ = imageQueryBuilder_ == null ? imageQuery_ : imageQueryBuilder_.build();
+        result.imageQuery_ = imageQueryBuilder_ == null
+            ? imageQuery_
+            : imageQueryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.pageSize_ = pageSize_;
@@ -18912,39 +16347,41 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest
         result.orderBy_ = orderBy_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build();
+        result.userInfo_ = userInfoBuilder_ == null
+            ? userInfo_
+            : userInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build();
+        result.boostSpec_ = boostSpecBuilder_ == null
+            ? boostSpec_
+            : boostSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
         result.params_ = internalGetParams();
         result.params_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.queryExpansionSpec_ =
-            queryExpansionSpecBuilder_ == null
-                ? queryExpansionSpec_
-                : queryExpansionSpecBuilder_.build();
+        result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null
+            ? queryExpansionSpec_
+            : queryExpansionSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.spellCorrectionSpec_ =
-            spellCorrectionSpecBuilder_ == null
-                ? spellCorrectionSpec_
-                : spellCorrectionSpecBuilder_.build();
+        result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null
+            ? spellCorrectionSpec_
+            : spellCorrectionSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
         result.userPseudoId_ = userPseudoId_;
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.contentSearchSpec_ =
-            contentSearchSpecBuilder_ == null
-                ? contentSearchSpec_
-                : contentSearchSpecBuilder_.build();
+        result.contentSearchSpec_ = contentSearchSpecBuilder_ == null
+            ? contentSearchSpec_
+            : contentSearchSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
-        result.embeddingSpec_ =
-            embeddingSpecBuilder_ == null ? embeddingSpec_ : embeddingSpecBuilder_.build();
+        result.embeddingSpec_ = embeddingSpecBuilder_ == null
+            ? embeddingSpec_
+            : embeddingSpecBuilder_.build();
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
         result.rankingExpression_ = rankingExpression_;
@@ -18962,39 +16399,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest
     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.discoveryengine.v1beta.SearchRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -19002,8 +16438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance()) return this;
       if (!other.getServingConfig().isEmpty()) {
         servingConfig_ = other.servingConfig_;
         bitField0_ |= 0x00000001;
@@ -19064,10 +16499,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o
             facetSpecsBuilder_ = null;
             facetSpecs_ = other.facetSpecs_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            facetSpecsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFacetSpecsFieldBuilder()
-                    : null;
+            facetSpecsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFacetSpecsFieldBuilder() : null;
           } else {
             facetSpecsBuilder_.addAllMessages(other.facetSpecs_);
           }
@@ -19076,7 +16510,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o
       if (other.hasBoostSpec()) {
         mergeBoostSpec(other.getBoostSpec());
       }
-      internalGetMutableParams().mergeFrom(other.internalGetParams());
+      internalGetMutableParams().mergeFrom(
+          other.internalGetParams());
       bitField0_ |= 0x00001000;
       if (other.hasQueryExpansionSpec()) {
         mergeQueryExpansionSpec(other.getQueryExpansionSpec());
@@ -19103,7 +16538,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest o
       if (other.getSafeSearch() != false) {
         setSafeSearch(other.getSafeSearch());
       }
-      internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels());
+      internalGetMutableUserLabels().mergeFrom(
+          other.internalGetUserLabels());
       bitField0_ |= 0x00100000;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -19131,162 +16567,147 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                servingConfig_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                branch_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                query_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 32
-            case 42:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 42
-            case 48:
-              {
-                offset_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 48
-            case 58:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.parser(),
-                        extensionRegistry);
-                if (facetSpecsBuilder_ == null) {
-                  ensureFacetSpecsIsMutable();
-                  facetSpecs_.add(m);
-                } else {
-                  facetSpecsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.protobuf.MapEntry params__ =
-                    input.readMessage(
-                        ParamsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableParams()
-                    .getMutableMap()
-                    .put(params__.getKey(), params__.getValue());
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 90
-            case 106:
-              {
-                input.readMessage(
-                    getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(
-                    getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 122:
-              {
-                userPseudoId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 122
-            case 154:
-              {
-                input.readMessage(getImageQueryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 154
-            case 160:
-              {
-                safeSearch_ = input.readBool();
-                bitField0_ |= 0x00080000;
-                break;
-              } // case 160
-            case 170:
-              {
-                input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 170
-            case 178:
-              {
-                com.google.protobuf.MapEntry userLabels__ =
-                    input.readMessage(
-                        UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableUserLabels()
-                    .getMutableMap()
-                    .put(userLabels__.getKey(), userLabels__.getValue());
-                bitField0_ |= 0x00100000;
-                break;
-              } // case 178
-            case 186:
-              {
-                input.readMessage(getEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 186
-            case 194:
-              {
-                input.readMessage(
-                    getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 194
-            case 210:
-              {
-                rankingExpression_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 210
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              servingConfig_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              branch_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              query_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 32
+            case 42: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 42
+            case 48: {
+              offset_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 48
+            case 58: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.parser(),
+                      extensionRegistry);
+              if (facetSpecsBuilder_ == null) {
+                ensureFacetSpecsIsMutable();
+                facetSpecs_.add(m);
+              } else {
+                facetSpecsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getBoostSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 82
+            case 90: {
+              com.google.protobuf.MapEntry
+              params__ = input.readMessage(
+                  ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableParams().getMutableMap().put(
+                  params__.getKey(), params__.getValue());
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 90
+            case 106: {
+              input.readMessage(
+                  getQueryExpansionSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getSpellCorrectionSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 122: {
+              userPseudoId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 122
+            case 154: {
+              input.readMessage(
+                  getImageQueryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 154
+            case 160: {
+              safeSearch_ = input.readBool();
+              bitField0_ |= 0x00080000;
+              break;
+            } // case 160
+            case 170: {
+              input.readMessage(
+                  getUserInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 170
+            case 178: {
+              com.google.protobuf.MapEntry
+              userLabels__ = input.readMessage(
+                  UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableUserLabels().getMutableMap().put(
+                  userLabels__.getKey(), userLabels__.getValue());
+              bitField0_ |= 0x00100000;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getEmbeddingSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 186
+            case 194: {
+              input.readMessage(
+                  getContentSearchSpecFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 194
+            case 210: {
+              rankingExpression_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 210
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -19296,13 +16717,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object servingConfig_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -19310,16 +16728,14 @@ public Builder mergeFrom(
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ public java.lang.String getServingConfig() { java.lang.Object ref = servingConfig_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servingConfig_ = s; return s; @@ -19328,8 +16744,6 @@ public java.lang.String getServingConfig() { } } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -19337,17 +16751,16 @@ public java.lang.String getServingConfig() {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ - public com.google.protobuf.ByteString getServingConfigBytes() { + public com.google.protobuf.ByteString + getServingConfigBytes() { java.lang.Object ref = servingConfig_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servingConfig_ = b; return b; } else { @@ -19355,8 +16768,6 @@ public com.google.protobuf.ByteString getServingConfigBytes() { } } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -19364,25 +16775,19 @@ public com.google.protobuf.ByteString getServingConfigBytes() {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } servingConfig_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -19390,10 +16795,7 @@ public Builder setServingConfig(java.lang.String value) {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearServingConfig() { @@ -19403,8 +16805,6 @@ public Builder clearServingConfig() { return this; } /** - * - * *
      * Required. The resource name of the Search serving config, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -19412,17 +16812,13 @@ public Builder clearServingConfig() {
      * of models used to make the search.
      * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for servingConfig to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servingConfig_ = value; bitField0_ |= 0x00000001; @@ -19432,8 +16828,6 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { private java.lang.Object branch_ = ""; /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -19443,13 +16837,13 @@ public Builder setServingConfigBytes(com.google.protobuf.ByteString value) {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The branch. */ public java.lang.String getBranch() { java.lang.Object ref = branch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); branch_ = s; return s; @@ -19458,8 +16852,6 @@ public java.lang.String getBranch() { } } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -19469,14 +16861,15 @@ public java.lang.String getBranch() {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for branch. */ - public com.google.protobuf.ByteString getBranchBytes() { + public com.google.protobuf.ByteString + getBranchBytes() { java.lang.Object ref = branch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); branch_ = b; return b; } else { @@ -19484,8 +16877,6 @@ public com.google.protobuf.ByteString getBranchBytes() { } } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -19495,22 +16886,18 @@ public com.google.protobuf.ByteString getBranchBytes() {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @param value The branch to set. * @return This builder for chaining. */ - public Builder setBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBranch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } branch_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -19520,7 +16907,6 @@ public Builder setBranch(java.lang.String value) {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearBranch() { @@ -19530,8 +16916,6 @@ public Builder clearBranch() { return this; } /** - * - * *
      * The branch resource name, such as
      * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -19541,14 +16925,12 @@ public Builder clearBranch() {
      * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for branch to set. * @return This builder for chaining. */ - public Builder setBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); branch_ = value; bitField0_ |= 0x00000002; @@ -19558,20 +16940,18 @@ public Builder setBranchBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -19580,21 +16960,20 @@ public java.lang.String getQuery() { } } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -19602,35 +16981,28 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @return This builder for chaining. */ public Builder clearQuery() { @@ -19640,21 +17012,17 @@ public Builder clearQuery() { return this; } /** - * - * *
      * Raw search query.
      * 
* * string query = 3; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000004; @@ -19664,55 +17032,41 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> - imageQueryBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> imageQueryBuilder_; /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * * @return Whether the imageQuery field is set. */ public boolean hasImageQuery() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * * @return The imageQuery. */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { if (imageQueryBuilder_ == null) { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return imageQuery_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } else { return imageQueryBuilder_.getMessage(); } } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { + public Builder setImageQuery(com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { if (imageQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19726,8 +17080,6 @@ public Builder setImageQuery( return this; } /** - * - * *
      * Raw image query.
      * 
@@ -19746,22 +17098,17 @@ public Builder setImageQuery( return this; } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - public Builder mergeImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { + public Builder mergeImageQuery(com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { if (imageQueryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && imageQuery_ != null - && imageQuery_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + imageQuery_ != null && + imageQuery_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance()) { getImageQueryBuilder().mergeFrom(value); } else { imageQuery_ = value; @@ -19774,8 +17121,6 @@ public Builder mergeImageQuery( return this; } /** - * - * *
      * Raw image query.
      * 
@@ -19793,42 +17138,33 @@ public Builder clearImageQuery() { return this; } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder - getImageQueryBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder getImageQueryBuilder() { bitField0_ |= 0x00000008; onChanged(); return getImageQueryFieldBuilder().getBuilder(); } /** - * - * *
      * Raw image query.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder() { if (imageQueryBuilder_ != null) { return imageQueryBuilder_.getMessageOrBuilder(); } else { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return imageQuery_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() : imageQuery_; } } /** - * - * *
      * Raw image query.
      * 
@@ -19836,26 +17172,21 @@ public Builder clearImageQuery() { * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> getImageQueryFieldBuilder() { if (imageQueryBuilder_ == null) { - imageQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder>( - getImageQuery(), getParentForChildren(), isClean()); + imageQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder>( + getImageQuery(), + getParentForChildren(), + isClean()); imageQuery_ = null; } return imageQueryBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * to return. If unspecified, defaults to a reasonable value. The maximum
@@ -19865,7 +17196,6 @@ public Builder clearImageQuery() {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -19873,8 +17203,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * to return. If unspecified, defaults to a reasonable value. The maximum
@@ -19884,7 +17212,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -19896,8 +17223,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * to return. If unspecified, defaults to a reasonable value. The maximum
@@ -19907,7 +17232,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -19919,8 +17243,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -19933,13 +17255,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 5; - * * @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; @@ -19948,8 +17270,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -19962,14 +17282,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5; - * * @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 { @@ -19977,8 +17298,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -19991,22 +17310,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 5; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -20019,7 +17334,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 5; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -20029,8 +17343,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token received from a previous
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -20043,14 +17355,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 5; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000020; @@ -20058,10 +17368,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int offset_; + private int offset_ ; /** - * - * *
      * A 0-indexed integer that specifies the current offset (that is, starting
      * result location, amongst the
@@ -20074,7 +17382,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 offset = 6; - * * @return The offset. */ @java.lang.Override @@ -20082,8 +17389,6 @@ public int getOffset() { return offset_; } /** - * - * *
      * A 0-indexed integer that specifies the current offset (that is, starting
      * result location, amongst the
@@ -20096,7 +17401,6 @@ public int getOffset() {
      * 
* * int32 offset = 6; - * * @param value The offset to set. * @return This builder for chaining. */ @@ -20108,8 +17412,6 @@ public Builder setOffset(int value) { return this; } /** - * - * *
      * A 0-indexed integer that specifies the current offset (that is, starting
      * result location, amongst the
@@ -20122,7 +17424,6 @@ public Builder setOffset(int value) {
      * 
* * int32 offset = 6; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -20134,8 +17435,6 @@ public Builder clearOffset() { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -20145,13 +17444,13 @@ public Builder clearOffset() {
      * 
* * string filter = 7; - * * @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; @@ -20160,8 +17459,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -20171,14 +17468,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7; - * * @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 { @@ -20186,8 +17484,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -20197,22 +17493,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 7; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -20222,7 +17514,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 7; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -20232,8 +17523,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered. Filter
@@ -20243,14 +17532,12 @@ public Builder clearFilter() {
      * 
* * string filter = 7; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000080; @@ -20260,8 +17547,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -20272,13 +17557,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 8; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -20287,8 +17572,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -20299,14 +17582,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -20314,8 +17598,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -20326,22 +17608,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 8; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -20352,7 +17630,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 8; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -20362,8 +17639,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * The order in which documents are returned. Documents can be ordered by
      * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -20374,14 +17649,12 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 8; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000100; @@ -20391,13 +17664,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> - userInfoBuilder_; + com.google.cloud.discoveryengine.v1beta.UserInfo, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> userInfoBuilder_; /** - * - * *
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20406,15 +17674,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20423,21 +17688,16 @@ public boolean hasUserInfo() {
      * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * * @return The userInfo. */ public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20461,8 +17721,6 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20484,8 +17742,6 @@ public Builder setUserInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20497,9 +17753,9 @@ public Builder setUserInfo(
      */
     public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) {
       if (userInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && userInfo_ != null
-            && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          userInfo_ != null &&
+          userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) {
           getUserInfoBuilder().mergeFrom(value);
         } else {
           userInfo_ = value;
@@ -20512,8 +17768,6 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20534,8 +17788,6 @@ public Builder clearUserInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20551,8 +17803,6 @@ public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuild
       return getUserInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20566,14 +17816,11 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
       if (userInfoBuilder_ != null) {
         return userInfoBuilder_.getMessageOrBuilder();
       } else {
-        return userInfo_ == null
-            ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()
-            : userInfo_;
+        return userInfo_ == null ?
+            com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * Information about the end user.
      * Highly recommended for analytics.
@@ -20584,43 +17831,32 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
      * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.UserInfo,
-            com.google.cloud.discoveryengine.v1beta.UserInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.UserInfo, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> 
         getUserInfoFieldBuilder() {
       if (userInfoBuilder_ == null) {
-        userInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.UserInfo,
-                com.google.cloud.discoveryengine.v1beta.UserInfo.Builder,
-                com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>(
-                getUserInfo(), getParentForChildren(), isClean());
+        userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.UserInfo, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>(
+                getUserInfo(),
+                getParentForChildren(),
+                isClean());
         userInfo_ = null;
       }
       return userInfoBuilder_;
     }
 
-    private java.util.List
-        facetSpecs_ = java.util.Collections.emptyList();
-
+    private java.util.List facetSpecs_ =
+      java.util.Collections.emptyList();
     private void ensureFacetSpecsIsMutable() {
       if (!((bitField0_ & 0x00000400) != 0)) {
-        facetSpecs_ =
-            new java.util.ArrayList<
-                com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec>(facetSpecs_);
+        facetSpecs_ = new java.util.ArrayList(facetSpecs_);
         bitField0_ |= 0x00000400;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>
-        facetSpecsBuilder_;
+        com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> facetSpecsBuilder_;
 
     /**
-     *
-     *
      * 
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20628,11 +17864,9 @@ private void ensureFacetSpecsIsMutable() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public java.util.List - getFacetSpecsList() { + public java.util.List getFacetSpecsList() { if (facetSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(facetSpecs_); } else { @@ -20640,8 +17874,6 @@ private void ensureFacetSpecsIsMutable() { } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20649,8 +17881,7 @@ private void ensureFacetSpecsIsMutable() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public int getFacetSpecsCount() { if (facetSpecsBuilder_ == null) { @@ -20660,8 +17891,6 @@ public int getFacetSpecsCount() { } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20669,11 +17898,9 @@ public int getFacetSpecsCount() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs( - int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs(int index) { if (facetSpecsBuilder_ == null) { return facetSpecs_.get(index); } else { @@ -20681,8 +17908,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetS } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20690,8 +17915,7 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetS
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder setFacetSpecs( int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { @@ -20708,8 +17932,6 @@ public Builder setFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20717,12 +17939,10 @@ public Builder setFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder setFacetSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { if (facetSpecsBuilder_ == null) { ensureFacetSpecsIsMutable(); facetSpecs_.set(index, builderForValue.build()); @@ -20733,8 +17953,6 @@ public Builder setFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20742,11 +17960,9 @@ public Builder setFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public Builder addFacetSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { + public Builder addFacetSpecs(com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { if (facetSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -20760,8 +17976,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20769,8 +17983,7 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addFacetSpecs( int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { @@ -20787,8 +18000,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20796,8 +18007,7 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addFacetSpecs( com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { @@ -20811,8 +18021,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20820,12 +18028,10 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addFacetSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { if (facetSpecsBuilder_ == null) { ensureFacetSpecsIsMutable(); facetSpecs_.add(index, builderForValue.build()); @@ -20836,8 +18042,6 @@ public Builder addFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20845,16 +18049,14 @@ public Builder addFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder addAllFacetSpecs( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec> - values) { + java.lang.Iterable values) { if (facetSpecsBuilder_ == null) { ensureFacetSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetSpecs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facetSpecs_); onChanged(); } else { facetSpecsBuilder_.addAllMessages(values); @@ -20862,8 +18064,6 @@ public Builder addAllFacetSpecs( return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20871,8 +18071,7 @@ public Builder addAllFacetSpecs(
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { @@ -20885,8 +18084,6 @@ public Builder clearFacetSpecs() { return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20894,8 +18091,7 @@ public Builder clearFacetSpecs() {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ public Builder removeFacetSpecs(int index) { if (facetSpecsBuilder_ == null) { @@ -20908,8 +18104,6 @@ public Builder removeFacetSpecs(int index) { return this; } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20917,16 +18111,13 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder - getFacetSpecsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder getFacetSpecsBuilder( + int index) { return getFacetSpecsFieldBuilder().getBuilder(index); } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20934,20 +18125,16 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder - getFacetSpecsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( + int index) { if (facetSpecsBuilder_ == null) { - return facetSpecs_.get(index); - } else { + return facetSpecs_.get(index); } else { return facetSpecsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20955,12 +18142,10 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> - getFacetSpecsOrBuilderList() { + public java.util.List + getFacetSpecsOrBuilderList() { if (facetSpecsBuilder_ != null) { return facetSpecsBuilder_.getMessageOrBuilderList(); } else { @@ -20968,8 +18153,6 @@ public Builder removeFacetSpecs(int index) { } } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20977,18 +18160,13 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder - addFacetSpecsBuilder() { - return getFacetSpecsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder addFacetSpecsBuilder() { + return getFacetSpecsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -20996,19 +18174,14 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder - addFacetSpecsBuilder(int index) { - return getFacetSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder addFacetSpecsBuilder( + int index) { + return getFacetSpecsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); } /** - * - * *
      * Facet specifications for faceted search. If empty, no facets are returned.
      *
@@ -21016,26 +18189,22 @@ public Builder removeFacetSpecs(int index) {
      * error is returned.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - public java.util.List - getFacetSpecsBuilderList() { + public java.util.List + getFacetSpecsBuilderList() { return getFacetSpecsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> getFacetSpecsFieldBuilder() { if (facetSpecsBuilder_ == null) { - facetSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + facetSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>( + facetSpecs_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -21043,55 +18212,41 @@ public Builder removeFacetSpecs(int index) { private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> - boostSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> boostSpecBuilder_; /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * * @return The boostSpec. */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { if (boostSpecBuilder_ == null) { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return boostSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } else { return boostSpecBuilder_.getMessage(); } } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + public Builder setBoostSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21105,8 +18260,6 @@ public Builder setBoostSpec( return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -21125,22 +18278,17 @@ public Builder setBoostSpec( return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder mergeBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + public Builder mergeBoostSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && boostSpec_ != null - && boostSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + boostSpec_ != null && + boostSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance()) { getBoostSpecBuilder().mergeFrom(value); } else { boostSpec_ = value; @@ -21153,8 +18301,6 @@ public Builder mergeBoostSpec( return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -21172,42 +18318,33 @@ public Builder clearBoostSpec() { return this; } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder - getBoostSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { bitField0_ |= 0x00000800; onChanged(); return getBoostSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Boost specification to boost certain documents.
      * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { if (boostSpecBuilder_ != null) { return boostSpecBuilder_.getMessageOrBuilder(); } else { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return boostSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() : boostSpec_; } } /** - * - * *
      * Boost specification to boost certain documents.
      * 
@@ -21215,36 +18352,34 @@ public Builder clearBoostSpec() { * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> getBoostSpecFieldBuilder() { if (boostSpecBuilder_ == null) { - boostSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( - getBoostSpec(), getParentForChildren(), isClean()); + boostSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), + getParentForChildren(), + isClean()); boostSpec_ = null; } return boostSpecBuilder_; } - 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() { 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() { 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(); @@ -21253,13 +18388,10 @@ public Builder clearBoostSpec() { onChanged(); return params_; } - public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * Additional search parameters.
      *
@@ -21275,21 +18407,20 @@ public int getParamsCount() {
      * map<string, .google.protobuf.Value> params = 11;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -21309,8 +18440,6 @@ public java.util.Map getParamsMap()
       return internalGetParams().getMap();
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -21326,19 +18455,17 @@ public java.util.Map getParamsMap()
      * map<string, .google.protobuf.Value> params = 11;
      */
     @java.lang.Override
-    public /* nullable */ com.google.protobuf.Value getParamsOrDefault(
+    public /* nullable */
+com.google.protobuf.Value getParamsOrDefault(
         java.lang.String key,
         /* nullable */
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetParams().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -21354,25 +18481,23 @@ public java.util.Map getParamsMap()
      * map<string, .google.protobuf.Value> params = 11;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearParams() {
       bitField0_ = (bitField0_ & ~0x00001000);
-      internalGetMutableParams().getMutableMap().clear();
+      internalGetMutableParams().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -21387,22 +18512,23 @@ public Builder clearParams() {
      *
      * map<string, .google.protobuf.Value> params = 11;
      */
-    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() {
       bitField0_ |= 0x00001000;
       return internalGetMutableParams().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -21417,20 +18543,17 @@ public java.util.Map getMutablePara
      *
      * map<string, .google.protobuf.Value> params = 11;
      */
-    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");
-      }
-      internalGetMutableParams().getMutableMap().put(key, value);
+    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"); }
+      internalGetMutableParams().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00001000;
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional search parameters.
      *
@@ -21445,75 +18568,54 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value)
      *
      * map<string, .google.protobuf.Value> params = 11;
      */
-    public Builder putAllParams(java.util.Map values) {
-      internalGetMutableParams().getMutableMap().putAll(values);
+    public Builder putAllParams(
+        java.util.Map values) {
+      internalGetMutableParams().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00001000;
       return this;
     }
 
-    private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec
-        queryExpansionSpec_;
+    private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec queryExpansionSpec_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder,
-            com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder>
-        queryExpansionSpecBuilder_;
+        com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> queryExpansionSpecBuilder_;
     /**
-     *
-     *
      * 
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return Whether the queryExpansionSpec field is set. */ public boolean hasQueryExpansionSpec() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return The queryExpansionSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - getQueryExpansionSpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec getQueryExpansionSpec() { if (queryExpansionSpecBuilder_ == null) { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + return queryExpansionSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } else { return queryExpansionSpecBuilder_.getMessage(); } } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public Builder setQueryExpansionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { + public Builder setQueryExpansionSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { if (queryExpansionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21527,20 +18629,15 @@ public Builder setQueryExpansionSpec( return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ public Builder setQueryExpansionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder builderForValue) { if (queryExpansionSpecBuilder_ == null) { queryExpansionSpec_ = builderForValue.build(); } else { @@ -21551,25 +18648,18 @@ public Builder setQueryExpansionSpec( return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public Builder mergeQueryExpansionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { + public Builder mergeQueryExpansionSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { if (queryExpansionSpecBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && queryExpansionSpec_ != null - && queryExpansionSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + queryExpansionSpec_ != null && + queryExpansionSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance()) { getQueryExpansionSpecBuilder().mergeFrom(value); } else { queryExpansionSpec_ = value; @@ -21582,16 +18672,12 @@ public Builder mergeQueryExpansionSpec( return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ public Builder clearQueryExpansionSpec() { bitField0_ = (bitField0_ & ~0x00002000); @@ -21604,138 +18690,96 @@ public Builder clearQueryExpansionSpec() { return this; } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder - getQueryExpansionSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { bitField0_ |= 0x00002000; onChanged(); return getQueryExpansionSpecFieldBuilder().getBuilder(); } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder() { if (queryExpansionSpecBuilder_ != null) { return queryExpansionSpecBuilder_.getMessageOrBuilder(); } else { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + return queryExpansionSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.getDefaultInstance() : queryExpansionSpec_; } } /** - * - * *
      * The query expansion specification that specifies the conditions under which
      * query expansion occurs.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> getQueryExpansionSpecFieldBuilder() { if (queryExpansionSpecBuilder_ == null) { - queryExpansionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder>( - getQueryExpansionSpec(), getParentForChildren(), isClean()); + queryExpansionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder>( + getQueryExpansionSpec(), + getParentForChildren(), + isClean()); queryExpansionSpec_ = null; } return queryExpansionSpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - spellCorrectionSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spellCorrectionSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> - spellCorrectionSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> spellCorrectionSpecBuilder_; /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return The spellCorrectionSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec() { if (spellCorrectionSpecBuilder_ == null) { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + return spellCorrectionSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } else { return spellCorrectionSpecBuilder_.getMessage(); } } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { + public Builder setSpellCorrectionSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21749,20 +18793,15 @@ public Builder setSpellCorrectionSpec( return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder builderForValue) { if (spellCorrectionSpecBuilder_ == null) { spellCorrectionSpec_ = builderForValue.build(); } else { @@ -21773,25 +18812,18 @@ public Builder setSpellCorrectionSpec( return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public Builder mergeSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { + public Builder mergeSpellCorrectionSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && spellCorrectionSpec_ != null - && spellCorrectionSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + spellCorrectionSpec_ != null && + spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance()) { getSpellCorrectionSpecBuilder().mergeFrom(value); } else { spellCorrectionSpec_ = value; @@ -21804,16 +18836,12 @@ public Builder mergeSpellCorrectionSpec( return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ public Builder clearSpellCorrectionSpec() { bitField0_ = (bitField0_ & ~0x00004000); @@ -21826,70 +18854,51 @@ public Builder clearSpellCorrectionSpec() { return this; } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder - getSpellCorrectionSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { bitField0_ |= 0x00004000; onChanged(); return getSpellCorrectionSpecFieldBuilder().getBuilder(); } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder() { if (spellCorrectionSpecBuilder_ != null) { return spellCorrectionSpecBuilder_.getMessageOrBuilder(); } else { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + return spellCorrectionSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.getDefaultInstance() : spellCorrectionSpec_; } } /** - * - * *
      * The spell correction specification that specifies the mode under
      * which spell correction takes effect.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> getSpellCorrectionSpecFieldBuilder() { if (spellCorrectionSpecBuilder_ == null) { - spellCorrectionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder>( - getSpellCorrectionSpec(), getParentForChildren(), isClean()); + spellCorrectionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder>( + getSpellCorrectionSpec(), + getParentForChildren(), + isClean()); spellCorrectionSpec_ = null; } return spellCorrectionSpecBuilder_; @@ -21897,8 +18906,6 @@ public Builder clearSpellCorrectionSpec() { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -21917,13 +18924,13 @@ public Builder clearSpellCorrectionSpec() {
      * 
* * string user_pseudo_id = 15; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -21932,8 +18939,6 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -21952,14 +18957,15 @@ public java.lang.String getUserPseudoId() {
      * 
* * string user_pseudo_id = 15; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -21967,8 +18973,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -21987,22 +18991,18 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * 
* * string user_pseudo_id = 15; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -22021,7 +19021,6 @@ public Builder setUserPseudoId(java.lang.String value) {
      * 
* * string user_pseudo_id = 15; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -22031,8 +19030,6 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * A unique identifier for tracking visitors. For example, this could be
      * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -22051,14 +19048,12 @@ public Builder clearUserPseudoId() {
      * 
* * string user_pseudo_id = 15; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00008000; @@ -22066,66 +19061,43 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - contentSearchSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec contentSearchSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> - contentSearchSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> contentSearchSpecBuilder_; /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return Whether the contentSearchSpec field is set. */ public boolean hasContentSearchSpec() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return The contentSearchSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getContentSearchSpec() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec getContentSearchSpec() { if (contentSearchSpecBuilder_ == null) { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + return contentSearchSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } else { return contentSearchSpecBuilder_.getMessage(); } } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { + public Builder setContentSearchSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22139,19 +19111,14 @@ public Builder setContentSearchSpec( return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder builderForValue) { if (contentSearchSpecBuilder_ == null) { contentSearchSpec_ = builderForValue.build(); } else { @@ -22162,24 +19129,17 @@ public Builder setContentSearchSpec( return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public Builder mergeContentSearchSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { + public Builder mergeContentSearchSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && contentSearchSpec_ != null - && contentSearchSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + contentSearchSpec_ != null && + contentSearchSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance()) { getContentSearchSpecBuilder().mergeFrom(value); } else { contentSearchSpec_ = value; @@ -22192,15 +19152,11 @@ public Builder mergeContentSearchSpec( return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ public Builder clearContentSearchSpec() { bitField0_ = (bitField0_ & ~0x00010000); @@ -22213,67 +19169,48 @@ public Builder clearContentSearchSpec() { return this; } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - getContentSearchSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { bitField0_ |= 0x00010000; onChanged(); return getContentSearchSpecFieldBuilder().getBuilder(); } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder() { if (contentSearchSpecBuilder_ != null) { return contentSearchSpecBuilder_.getMessageOrBuilder(); } else { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + return contentSearchSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.getDefaultInstance() : contentSearchSpec_; } } /** - * - * *
      * A specification for configuring the behavior of content search.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> getContentSearchSpecFieldBuilder() { if (contentSearchSpecBuilder_ == null) { - contentSearchSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder>( - getContentSearchSpec(), getParentForChildren(), isClean()); + contentSearchSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder>( + getContentSearchSpec(), + getParentForChildren(), + isClean()); contentSearchSpec_ = null; } return contentSearchSpecBuilder_; @@ -22281,13 +19218,8 @@ public Builder clearContentSearchSpec() { private com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embeddingSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> - embeddingSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> embeddingSpecBuilder_; /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22299,17 +19231,13 @@ public Builder clearContentSearchSpec() {
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; * @return Whether the embeddingSpec field is set. */ public boolean hasEmbeddingSpec() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22321,24 +19249,17 @@ public boolean hasEmbeddingSpec() {
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; * @return The embeddingSpec. */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec() { if (embeddingSpecBuilder_ == null) { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .getDefaultInstance() - : embeddingSpec_; + return embeddingSpec_ == null ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; } else { return embeddingSpecBuilder_.getMessage(); } } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22350,11 +19271,9 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEm
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ - public Builder setEmbeddingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { + public Builder setEmbeddingSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { if (embeddingSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22368,8 +19287,6 @@ public Builder setEmbeddingSpec( return this; } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22381,12 +19298,10 @@ public Builder setEmbeddingSpec(
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ public Builder setEmbeddingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder builderForValue) { if (embeddingSpecBuilder_ == null) { embeddingSpec_ = builderForValue.build(); } else { @@ -22397,8 +19312,6 @@ public Builder setEmbeddingSpec( return this; } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22410,17 +19323,13 @@ public Builder setEmbeddingSpec(
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ - public Builder mergeEmbeddingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { + public Builder mergeEmbeddingSpec(com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { if (embeddingSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && embeddingSpec_ != null - && embeddingSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) && + embeddingSpec_ != null && + embeddingSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance()) { getEmbeddingSpecBuilder().mergeFrom(value); } else { embeddingSpec_ = value; @@ -22433,8 +19342,6 @@ public Builder mergeEmbeddingSpec( return this; } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22446,8 +19353,7 @@ public Builder mergeEmbeddingSpec(
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ public Builder clearEmbeddingSpec() { bitField0_ = (bitField0_ & ~0x00020000); @@ -22460,8 +19366,6 @@ public Builder clearEmbeddingSpec() { return this; } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22473,18 +19377,14 @@ public Builder clearEmbeddingSpec() {
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder - getEmbeddingSpecBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder getEmbeddingSpecBuilder() { bitField0_ |= 0x00020000; onChanged(); return getEmbeddingSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22496,23 +19396,17 @@ public Builder clearEmbeddingSpec() {
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder - getEmbeddingSpecOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder getEmbeddingSpecOrBuilder() { if (embeddingSpecBuilder_ != null) { return embeddingSpecBuilder_.getMessageOrBuilder(); } else { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .getDefaultInstance() - : embeddingSpec_; + return embeddingSpec_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() : embeddingSpec_; } } /** - * - * *
      * Uses the provided embedding to do additional semantic document retrieval.
      * The retrieval is based on the dot product of
@@ -22524,21 +19418,17 @@ public Builder clearEmbeddingSpec() {
      * provided, it will use [ServingConfig.embedding_config.field_paths][].
      * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> getEmbeddingSpecFieldBuilder() { if (embeddingSpecBuilder_ == null) { - embeddingSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder>( - getEmbeddingSpec(), getParentForChildren(), isClean()); + embeddingSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder>( + getEmbeddingSpec(), + getParentForChildren(), + isClean()); embeddingSpec_ = null; } return embeddingSpecBuilder_; @@ -22546,8 +19436,6 @@ public Builder clearEmbeddingSpec() { private java.lang.Object rankingExpression_ = ""; /** - * - * *
      * The ranking expression controls the customized ranking on retrieval
      * documents. This overrides [ServingConfig.ranking_expression][].
@@ -22571,13 +19459,13 @@ public Builder clearEmbeddingSpec() {
      * 
* * string ranking_expression = 26; - * * @return The rankingExpression. */ public java.lang.String getRankingExpression() { java.lang.Object ref = rankingExpression_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rankingExpression_ = s; return s; @@ -22586,8 +19474,6 @@ public java.lang.String getRankingExpression() { } } /** - * - * *
      * The ranking expression controls the customized ranking on retrieval
      * documents. This overrides [ServingConfig.ranking_expression][].
@@ -22611,14 +19497,15 @@ public java.lang.String getRankingExpression() {
      * 
* * string ranking_expression = 26; - * * @return The bytes for rankingExpression. */ - public com.google.protobuf.ByteString getRankingExpressionBytes() { + public com.google.protobuf.ByteString + getRankingExpressionBytes() { java.lang.Object ref = rankingExpression_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rankingExpression_ = b; return b; } else { @@ -22626,8 +19513,6 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { } } /** - * - * *
      * The ranking expression controls the customized ranking on retrieval
      * documents. This overrides [ServingConfig.ranking_expression][].
@@ -22651,22 +19536,18 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() {
      * 
* * string ranking_expression = 26; - * * @param value The rankingExpression to set. * @return This builder for chaining. */ - public Builder setRankingExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRankingExpression( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rankingExpression_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** - * - * *
      * The ranking expression controls the customized ranking on retrieval
      * documents. This overrides [ServingConfig.ranking_expression][].
@@ -22690,7 +19571,6 @@ public Builder setRankingExpression(java.lang.String value) {
      * 
* * string ranking_expression = 26; - * * @return This builder for chaining. */ public Builder clearRankingExpression() { @@ -22700,8 +19580,6 @@ public Builder clearRankingExpression() { return this; } /** - * - * *
      * The ranking expression controls the customized ranking on retrieval
      * documents. This overrides [ServingConfig.ranking_expression][].
@@ -22725,14 +19603,12 @@ public Builder clearRankingExpression() {
      * 
* * string ranking_expression = 26; - * * @param value The bytes for rankingExpression to set. * @return This builder for chaining. */ - public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRankingExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rankingExpression_ = value; bitField0_ |= 0x00040000; @@ -22740,17 +19616,14 @@ public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { return this; } - private boolean safeSearch_; + private boolean safeSearch_ ; /** - * - * *
      * Whether to turn on safe search. This is only supported for
      * website search.
      * 
* * bool safe_search = 20; - * * @return The safeSearch. */ @java.lang.Override @@ -22758,15 +19631,12 @@ public boolean getSafeSearch() { return safeSearch_; } /** - * - * *
      * Whether to turn on safe search. This is only supported for
      * website search.
      * 
* * bool safe_search = 20; - * * @param value The safeSearch to set. * @return This builder for chaining. */ @@ -22778,15 +19648,12 @@ public Builder setSafeSearch(boolean value) { return this; } /** - * - * *
      * Whether to turn on safe search. This is only supported for
      * website search.
      * 
* * bool safe_search = 20; - * * @return This builder for chaining. */ public Builder clearSafeSearch() { @@ -22796,8 +19663,8 @@ public Builder clearSafeSearch() { return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { @@ -22806,12 +19673,11 @@ public Builder clearSafeSearch() { } return userLabels_; } - private com.google.protobuf.MapField internalGetMutableUserLabels() { if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -22820,13 +19686,10 @@ public Builder clearSafeSearch() { onChanged(); return userLabels_; } - public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -22850,21 +19713,20 @@ public int getUserLabelsCount() {
      * map<string, string> user_labels = 22;
      */
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -22892,8 +19754,6 @@ public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -22917,19 +19777,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 22;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getUserLabelsOrDefault(
+    public /* nullable */
+java.lang.String getUserLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -22953,25 +19811,23 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 22;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearUserLabels() {
       bitField0_ = (bitField0_ & ~0x00100000);
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -22994,22 +19850,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 22;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+        getMutableUserLabels() {
       bitField0_ |= 0x00100000;
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -23032,20 +19889,17 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 22;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00100000;
       return this;
     }
     /**
-     *
-     *
      * 
      * The user labels applied to a resource must meet the following requirements:
      *
@@ -23068,14 +19922,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 22;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00100000;
       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);
     }
 
@@ -23085,12 +19941,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest)
   private static final com.google.cloud.discoveryengine.v1beta.SearchRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest();
   }
@@ -23099,27 +19955,27 @@ public static com.google.cloud.discoveryengine.v1beta.SearchRequest getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SearchRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SearchRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -23134,4 +19990,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1beta.SearchRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java
similarity index 85%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java
index f046080cb796..b67dc5461aad 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/search_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface SearchRequestOrBuilder
-    extends
+public interface SearchRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -33,16 +15,11 @@ public interface SearchRequestOrBuilder
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The servingConfig. */ java.lang.String getServingConfig(); /** - * - * *
    * Required. The resource name of the Search serving config, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
@@ -50,17 +27,13 @@ public interface SearchRequestOrBuilder
    * of models used to make the search.
    * 
* - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for servingConfig. */ - com.google.protobuf.ByteString getServingConfigBytes(); + com.google.protobuf.ByteString + getServingConfigBytes(); /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -70,13 +43,10 @@ public interface SearchRequestOrBuilder
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The branch. */ java.lang.String getBranch(); /** - * - * *
    * The branch resource name, such as
    * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
@@ -86,75 +56,59 @@ public interface SearchRequestOrBuilder
    * 
* * string branch = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for branch. */ - com.google.protobuf.ByteString getBranchBytes(); + com.google.protobuf.ByteString + getBranchBytes(); /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
    * Raw search query.
    * 
* * string query = 3; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * * @return Whether the imageQuery field is set. */ boolean hasImageQuery(); /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * * @return The imageQuery. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery(); /** - * - * *
    * Raw image query.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder getImageQueryOrBuilder(); /** - * - * *
    * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * to return. If unspecified, defaults to a reasonable value. The maximum
@@ -164,14 +118,11 @@ public interface SearchRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -184,13 +135,10 @@ public interface SearchRequestOrBuilder
    * 
* * string page_token = 5; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token received from a previous
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -203,14 +151,12 @@ public interface SearchRequestOrBuilder
    * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A 0-indexed integer that specifies the current offset (that is, starting
    * result location, amongst the
@@ -223,14 +169,11 @@ public interface SearchRequestOrBuilder
    * 
* * int32 offset = 6; - * * @return The offset. */ int getOffset(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -240,13 +183,10 @@ public interface SearchRequestOrBuilder
    * 
* * string filter = 7; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered. Filter
@@ -256,14 +196,12 @@ public interface SearchRequestOrBuilder
    * 
* * string filter = 7; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -274,13 +212,10 @@ public interface SearchRequestOrBuilder
    * 
* * string order_by = 8; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * The order in which documents are returned. Documents can be ordered by
    * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
@@ -291,14 +226,12 @@ public interface SearchRequestOrBuilder
    * 
* * string order_by = 8; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -307,13 +240,10 @@ public interface SearchRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -322,13 +252,10 @@ public interface SearchRequestOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * * @return The userInfo. */ com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo(); /** - * - * *
    * Information about the end user.
    * Highly recommended for analytics.
@@ -341,8 +268,6 @@ public interface SearchRequestOrBuilder
   com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -350,14 +275,11 @@ public interface SearchRequestOrBuilder
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - java.util.List + java.util.List getFacetSpecsList(); /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -365,13 +287,10 @@ public interface SearchRequestOrBuilder
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs(int index); /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -379,13 +298,10 @@ public interface SearchRequestOrBuilder
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ int getFacetSpecsCount(); /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -393,14 +309,11 @@ public interface SearchRequestOrBuilder
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ - java.util.List + java.util.List getFacetSpecsOrBuilderList(); /** - * - * *
    * Facet specifications for faceted search. If empty, no facets are returned.
    *
@@ -408,39 +321,30 @@ public interface SearchRequestOrBuilder
    * error is returned.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; */ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFacetSpecsOrBuilder( int index); /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * * @return Whether the boostSpec field is set. */ boolean hasBoostSpec(); /** - * - * *
    * Boost specification to boost certain documents.
    * 
* * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * * @return The boostSpec. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec(); /** - * - * *
    * Boost specification to boost certain documents.
    * 
@@ -450,8 +354,6 @@ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFace com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); /** - * - * *
    * Additional search parameters.
    *
@@ -468,8 +370,6 @@ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFace
    */
   int getParamsCount();
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -484,13 +384,15 @@ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFace
    *
    * map<string, .google.protobuf.Value> params = 11;
    */
-  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();
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -505,10 +407,9 @@ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFace
    *
    * map<string, .google.protobuf.Value> params = 11;
    */
-  java.util.Map getParamsMap();
+  java.util.Map
+  getParamsMap();
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -524,13 +425,11 @@ com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder getFace
    * map<string, .google.protobuf.Value> params = 11;
    */
   /* 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);
   /**
-   *
-   *
    * 
    * Additional search parameters.
    *
@@ -545,102 +444,70 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, .google.protobuf.Value> params = 11;
    */
-  com.google.protobuf.Value getParamsOrThrow(java.lang.String key);
+  com.google.protobuf.Value getParamsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return Whether the queryExpansionSpec field is set. */ boolean hasQueryExpansionSpec(); /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; * @return The queryExpansionSpec. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec getQueryExpansionSpec(); /** - * - * *
    * The query expansion specification that specifies the conditions under which
    * query expansion occurs.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder getQueryExpansionSpecOrBuilder(); /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return Whether the spellCorrectionSpec field is set. */ boolean hasSpellCorrectionSpec(); /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * @return The spellCorrectionSpec. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec getSpellCorrectionSpec(); /** - * - * *
    * The spell correction specification that specifies the mode under
    * which spell correction takes effect.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder getSpellCorrectionSpecOrBuilder(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -659,13 +526,10 @@ com.google.protobuf.Value getParamsOrDefault(
    * 
* * string user_pseudo_id = 15; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * A unique identifier for tracking visitors. For example, this could be
    * implemented with an HTTP cookie, which should be able to uniquely identify
@@ -684,56 +548,39 @@ com.google.protobuf.Value getParamsOrDefault(
    * 
* * string user_pseudo_id = 15; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return Whether the contentSearchSpec field is set. */ boolean hasContentSearchSpec(); /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * @return The contentSearchSpec. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec getContentSearchSpec(); /** - * - * *
    * A specification for configuring the behavior of content search.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder(); /** - * - * *
    * Uses the provided embedding to do additional semantic document retrieval.
    * The retrieval is based on the dot product of
@@ -745,15 +592,11 @@ com.google.protobuf.Value getParamsOrDefault(
    * provided, it will use [ServingConfig.embedding_config.field_paths][].
    * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; * @return Whether the embeddingSpec field is set. */ boolean hasEmbeddingSpec(); /** - * - * *
    * Uses the provided embedding to do additional semantic document retrieval.
    * The retrieval is based on the dot product of
@@ -765,15 +608,11 @@ com.google.protobuf.Value getParamsOrDefault(
    * provided, it will use [ServingConfig.embedding_config.field_paths][].
    * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; * @return The embeddingSpec. */ com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec(); /** - * - * *
    * Uses the provided embedding to do additional semantic document retrieval.
    * The retrieval is based on the dot product of
@@ -785,15 +624,11 @@ com.google.protobuf.Value getParamsOrDefault(
    * provided, it will use [ServingConfig.embedding_config.field_paths][].
    * 
* - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder - getEmbeddingSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder getEmbeddingSpecOrBuilder(); /** - * - * *
    * The ranking expression controls the customized ranking on retrieval
    * documents. This overrides [ServingConfig.ranking_expression][].
@@ -817,13 +652,10 @@ com.google.protobuf.Value getParamsOrDefault(
    * 
* * string ranking_expression = 26; - * * @return The rankingExpression. */ java.lang.String getRankingExpression(); /** - * - * *
    * The ranking expression controls the customized ranking on retrieval
    * documents. This overrides [ServingConfig.ranking_expression][].
@@ -847,28 +679,23 @@ com.google.protobuf.Value getParamsOrDefault(
    * 
* * string ranking_expression = 26; - * * @return The bytes for rankingExpression. */ - com.google.protobuf.ByteString getRankingExpressionBytes(); + com.google.protobuf.ByteString + getRankingExpressionBytes(); /** - * - * *
    * Whether to turn on safe search. This is only supported for
    * website search.
    * 
* * bool safe_search = 20; - * * @return The safeSearch. */ boolean getSafeSearch(); /** - * - * *
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -893,8 +720,6 @@ com.google.protobuf.Value getParamsOrDefault(
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -917,13 +742,15 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, string> user_labels = 22;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -946,10 +773,9 @@ com.google.protobuf.Value getParamsOrDefault(
    *
    * map<string, string> user_labels = 22;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -973,13 +799,11 @@ com.google.protobuf.Value getParamsOrDefault(
    * map<string, string> user_labels = 22;
    */
   /* nullable */
-  java.lang.String getUserLabelsOrDefault(
+java.lang.String getUserLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The user labels applied to a resource must meet the following requirements:
    *
@@ -1002,5 +826,6 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 22;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
similarity index 66%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
index aea48c73aee3..eb0a700f4077 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/search_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Response message for
  * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse}
  */
-public final class SearchResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SearchResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse)
     SearchResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SearchResponse.newBuilder() to construct.
   private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SearchResponse() {
     results_ = java.util.Collections.emptyList();
     facets_ = java.util.Collections.emptyList();
@@ -46,91 +28,77 @@ private SearchResponse() {
     redirectUri_ = "";
     nextPageToken_ = "";
     correctedQuery_ = "";
-    appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    appliedControls_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SearchResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.class,
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.SearchResponse.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Builder.class);
   }
 
-  public interface SearchResultOrBuilder
-      extends
+  public interface SearchResultOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1beta.Document].
      * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
      * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1beta.Document].
      * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return The document. */ com.google.cloud.discoveryengine.v1beta.Document getDocument(); /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
@@ -141,139 +109,121 @@ public interface SearchResultOrBuilder
     com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder();
 
     /**
-     *
-     *
      * 
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ int getModelScoresCount(); /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + */ + boolean containsModelScores( + java.lang.String key); + /** + * Use {@link #getModelScoresMap()} instead. */ - boolean containsModelScores(java.lang.String key); - /** Use {@link #getModelScoresMap()} instead. */ @java.lang.Deprecated java.util.Map - getModelScores(); + getModelScores(); /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ java.util.Map - getModelScoresMap(); + getModelScoresMap(); /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ /* nullable */ - com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( +com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.discoveryengine.v1beta.DoubleList defaultValue); +com.google.cloud.discoveryengine.v1beta.DoubleList defaultValue); /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ - com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow(java.lang.String key); + com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( + java.lang.String key); } /** - * - * *
    * Represents the search results.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult} */ - public static final class SearchResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SearchResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) SearchResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchResult.newBuilder() to construct. private SearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchResult() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModelScores(); 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.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder.class); } public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
      * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1beta.Document].
      * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -282,30 +232,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; } } /** - * - * *
      * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
      * searched [Document][google.cloud.discoveryengine.v1beta.Document].
      * 
* * 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 { @@ -316,15 +266,12 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.Document document_; /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return Whether the document field is set. */ @java.lang.Override @@ -332,26 +279,19 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
      * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } /** - * - * *
      * The document data snippet in the search response. Only fields that are
      * marked as retrievable are populated.
@@ -361,124 +301,96 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocument() {
      */
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() {
-      return document_ == null
-          ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()
-          : document_;
+      return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_;
     }
 
     public static final int MODEL_SCORES_FIELD_NUMBER = 4;
-
     private static final class ModelScoresDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList>
-          defaultEntry =
+          java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList> defaultEntry =
               com.google.protobuf.MapEntry
-                  .
-                      newDefaultInstance(
-                          com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-                              .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor,
-                          com.google.protobuf.WireFormat.FieldType.STRING,
-                          "",
-                          com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                          com.google.cloud.discoveryengine.v1beta.DoubleList.getDefaultInstance());
+              .newDefaultInstance(
+                  com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor, 
+                  com.google.protobuf.WireFormat.FieldType.STRING,
+                  "",
+                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                  com.google.cloud.discoveryengine.v1beta.DoubleList.getDefaultInstance());
     }
-
     @SuppressWarnings("serial")
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList>
-        modelScores_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList>
-        internalGetModelScores() {
+        java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList> modelScores_;
+    private com.google.protobuf.MapField
+    internalGetModelScores() {
       if (modelScores_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             ModelScoresDefaultEntryHolder.defaultEntry);
       }
       return modelScores_;
     }
-
     public int getModelScoresCount() {
       return internalGetModelScores().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override - public boolean containsModelScores(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsModelScores( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetModelScores().getMap().containsKey(key); } - /** Use {@link #getModelScoresMap()} instead. */ + /** + * Use {@link #getModelScoresMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getModelScores() { + public java.util.Map getModelScores() { return getModelScoresMap(); } /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override - public java.util.Map - getModelScoresMap() { + public java.util.Map getModelScoresMap() { return internalGetModelScores().getMap(); } /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1beta.DoubleList - getModelScoresOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1beta.DoubleList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1beta.DoubleList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetModelScores().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Google provided available scores.
      * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetModelScores().getMap(); if (!map.containsKey(key)) { @@ -488,7 +400,6 @@ public com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,15 +411,20 @@ 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 (document_ != null) { output.writeMessage(2, getDocument()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetModelScores(), ModelScoresDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetModelScores(), + ModelScoresDefaultEntryHolder.defaultEntry, + 4); getUnknownFields().writeTo(output); } @@ -522,19 +438,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument()); - } - for (java.util.Map.Entry - entry : internalGetModelScores().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList> - modelScores__ = - ModelScoresDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, modelScores__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); + } + for (java.util.Map.Entry entry + : internalGetModelScores().getMap().entrySet()) { + com.google.protobuf.MapEntry + modelScores__ = ModelScoresDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, modelScores__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -544,20 +459,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.discoveryengine.v1beta.SearchResponse.SearchResult)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) obj; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } - if (!internalGetModelScores().equals(other.internalGetModelScores())) return false; + if (!internalGetModelScores().equals( + other.internalGetModelScores())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -585,95 +502,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult 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.discoveryengine.v1beta.SearchResponse.SearchResult 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.discoveryengine.v1beta.SearchResponse.SearchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult 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.discoveryengine.v1beta.SearchResponse.SearchResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult 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.discoveryengine.v1beta.SearchResponse.SearchResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult 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.discoveryengine.v1beta.SearchResponse.SearchResult 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.discoveryengine.v1beta.SearchResponse.SearchResult prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult 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 @@ -683,62 +594,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents the search results.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult} */ - 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.discoveryengine.v1beta.SearchResponse.SearchResult) com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetModelScores(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableModelScores(); 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.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -754,16 +664,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.getDefaultInstance(); } @java.lang.Override @@ -777,23 +685,21 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult build @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult result = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); + result.document_ = documentBuilder_ == null + ? document_ + : documentBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.modelScores_ = internalGetModelScores(); @@ -805,53 +711,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; @@ -860,7 +759,8 @@ public Builder mergeFrom( if (other.hasDocument()) { mergeDocument(other.getDocument()); } - internalGetMutableModelScores().mergeFrom(other.internalGetModelScores()); + internalGetMutableModelScores().mergeFrom( + other.internalGetModelScores()); bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -888,39 +788,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList> - modelScores__ = - input.readMessage( - ModelScoresDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableModelScores() - .getMutableMap() - .put(modelScores__.getKey(), modelScores__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDocumentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + com.google.protobuf.MapEntry + modelScores__ = input.readMessage( + ModelScoresDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableModelScores().getMutableMap().put( + modelScores__.getKey(), modelScores__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -930,26 +824,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1beta.Document].
        * 
* * 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; @@ -958,22 +849,21 @@ public java.lang.String getId() { } } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1beta.Document].
        * 
* * 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 { @@ -981,37 +871,30 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1beta.Document].
        * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1beta.Document].
        * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1021,22 +904,18 @@ public Builder clearId() { return this; } /** - * - * *
        * [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
        * searched [Document][google.cloud.discoveryengine.v1beta.Document].
        * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -1046,49 +925,36 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> documentBuilder_; /** - * - * *
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
        * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
        * 
* * .google.cloud.discoveryengine.v1beta.Document document = 2; - * * @return The document. */ public com.google.cloud.discoveryengine.v1beta.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1110,8 +976,6 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document valu
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1131,8 +995,6 @@ public Builder setDocument(
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1142,10 +1004,9 @@ public Builder setDocument(
        */
       public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document value) {
         if (documentBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && document_ != null
-              && document_
-                  != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            document_ != null &&
+            document_ != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) {
             getDocumentBuilder().mergeFrom(value);
           } else {
             document_ = value;
@@ -1158,8 +1019,6 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document va
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1178,8 +1037,6 @@ public Builder clearDocument() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1193,8 +1050,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuild
         return getDocumentFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1206,14 +1061,11 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
         if (documentBuilder_ != null) {
           return documentBuilder_.getMessageOrBuilder();
         } else {
-          return document_ == null
-              ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()
-              : document_;
+          return document_ == null ?
+              com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_;
         }
       }
       /**
-       *
-       *
        * 
        * The document data snippet in the search response. Only fields that are
        * marked as retrievable are populated.
@@ -1222,28 +1074,22 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
        * .google.cloud.discoveryengine.v1beta.Document document = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.discoveryengine.v1beta.Document,
-              com.google.cloud.discoveryengine.v1beta.Document.Builder,
-              com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>
+          com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> 
           getDocumentFieldBuilder() {
         if (documentBuilder_ == null) {
-          documentBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.discoveryengine.v1beta.Document,
-                  com.google.cloud.discoveryengine.v1beta.Document.Builder,
-                  com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>(
-                  getDocument(), getParentForChildren(), isClean());
+          documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>(
+                  getDocument(),
+                  getParentForChildren(),
+                  isClean());
           document_ = null;
         }
         return documentBuilder_;
       }
 
       private com.google.protobuf.MapField<
-              java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList>
-          modelScores_;
-
-      private com.google.protobuf.MapField<
-              java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList>
+          java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList> modelScores_;
+      private com.google.protobuf.MapField
           internalGetModelScores() {
         if (modelScores_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
@@ -1251,13 +1097,11 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
         }
         return modelScores_;
       }
-
-      private com.google.protobuf.MapField<
-              java.lang.String, com.google.cloud.discoveryengine.v1beta.DoubleList>
+      private com.google.protobuf.MapField
           internalGetMutableModelScores() {
         if (modelScores_ == null) {
-          modelScores_ =
-              com.google.protobuf.MapField.newMapField(ModelScoresDefaultEntryHolder.defaultEntry);
+          modelScores_ = com.google.protobuf.MapField.newMapField(
+              ModelScoresDefaultEntryHolder.defaultEntry);
         }
         if (!modelScores_.isMutable()) {
           modelScores_ = modelScores_.copy();
@@ -1266,88 +1110,70 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
         onChanged();
         return modelScores_;
       }
-
       public int getModelScoresCount() {
         return internalGetModelScores().getMap().size();
       }
       /**
-       *
-       *
        * 
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override - public boolean containsModelScores(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsModelScores( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetModelScores().getMap().containsKey(key); } - /** Use {@link #getModelScoresMap()} instead. */ + /** + * Use {@link #getModelScoresMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getModelScores() { + public java.util.Map getModelScores() { return getModelScoresMap(); } /** - * - * *
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override - public java.util.Map - getModelScoresMap() { + public java.util.Map getModelScoresMap() { return internalGetModelScores().getMap(); } /** - * - * *
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1beta.DoubleList - getModelScoresOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1beta.DoubleList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1beta.DoubleList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetModelScores().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetModelScores().getMap(); if (!map.containsKey(key)) { @@ -1355,30 +1181,29 @@ public com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( } return map.get(key); } - public Builder clearModelScores() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableModelScores().getMutableMap().clear(); + internalGetMutableModelScores().getMutableMap() + .clear(); return this; } /** - * - * *
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ - public Builder removeModelScores(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableModelScores().getMutableMap().remove(key); + public Builder removeModelScores( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableModelScores().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableModelScores() { @@ -1386,45 +1211,36 @@ public Builder removeModelScores(java.lang.String key) { return internalGetMutableModelScores().getMutableMap(); } /** - * - * *
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ public Builder putModelScores( - java.lang.String key, com.google.cloud.discoveryengine.v1beta.DoubleList value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableModelScores().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.discoveryengine.v1beta.DoubleList value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableModelScores().getMutableMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
        * Google provided available scores.
        * 
* - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; - * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; */ public Builder putAllModelScores( - java.util.Map - values) { - internalGetMutableModelScores().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableModelScores().getMutableMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1437,44 +1253,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1486,142 +1299,108 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FacetOrBuilder - extends + public interface FacetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Facet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - java.util.List + java.util.List getValuesList(); /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getValues(int index); /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ int getValuesCount(); /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> + java.util.List getValuesOrBuilderList(); /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder - getValuesOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index); /** - * - * *
      * Whether the facet is dynamically generated.
      * 
* * bool dynamic_facet = 3; - * * @return The dynamicFacet. */ boolean getDynamicFacet(); } /** - * - * *
    * A facet result.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Facet} */ - public static final class Facet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Facet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Facet) FacetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Facet.newBuilder() to construct. private Facet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Facet() { key_ = ""; values_ = java.util.Collections.emptyList(); @@ -1629,70 +1408,58 @@ private Facet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Facet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder.class); } - public interface FacetValueOrBuilder - extends + public interface FacetValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1700,13 +1467,10 @@ public interface FacetValueOrBuilder
        * 
* * .google.cloud.discoveryengine.v1beta.Interval interval = 2; - * * @return Whether the interval field is set. */ boolean hasInterval(); /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1714,13 +1478,10 @@ public interface FacetValueOrBuilder
        * 
* * .google.cloud.discoveryengine.v1beta.Interval interval = 2; - * * @return The interval. */ com.google.cloud.discoveryengine.v1beta.Interval getInterval(); /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1732,78 +1493,66 @@ public interface FacetValueOrBuilder
       com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalOrBuilder();
 
       /**
-       *
-       *
        * 
        * Number of items that have this facet value.
        * 
* * int64 count = 3; - * * @return The count. */ long getCount(); - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.FacetValueCase - getFacetValueCase(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.FacetValueCase getFacetValueCase(); } /** - * - * *
      * A facet value which contains value names and their count.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue} */ - public static final class FacetValue extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FacetValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) FacetValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FacetValue.newBuilder() to construct. private FacetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FacetValue() {} + private FacetValue() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FacetValue(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder.class); } private int facetValueCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object facetValue_; - public enum FacetValueCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE(1), INTERVAL(2), FACETVALUE_NOT_SET(0); private final int value; - private FacetValueCase(int value) { this.value = value; } @@ -1819,50 +1568,41 @@ public static FacetValueCase valueOf(int value) { public static FacetValueCase forNumber(int value) { switch (value) { - case 1: - return VALUE; - case 2: - return INTERVAL; - case 0: - return FACETVALUE_NOT_SET; - default: - return null; + case 1: return VALUE; + case 2: return INTERVAL; + case 0: return FACETVALUE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FacetValueCase getFacetValueCase() { - return FacetValueCase.forNumber(facetValueCase_); + public FacetValueCase + getFacetValueCase() { + return FacetValueCase.forNumber( + facetValueCase_); } public static final int VALUE_FIELD_NUMBER = 1; /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return Whether the value field is set. */ public boolean hasValue() { return facetValueCase_ == 1; } /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { @@ -1873,7 +1613,8 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (facetValueCase_ == 1) { facetValue_ = s; @@ -1882,24 +1623,23 @@ public java.lang.String getValue() { } } /** - * - * *
        * Text value of a facet, such as "Black" for facet "colors".
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = ""; if (facetValueCase_ == 1) { ref = facetValue_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (facetValueCase_ == 1) { facetValue_ = b; } @@ -1911,8 +1651,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int INTERVAL_FIELD_NUMBER = 2; /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1920,7 +1658,6 @@ public com.google.protobuf.ByteString getValueBytes() {
        * 
* * .google.cloud.discoveryengine.v1beta.Interval interval = 2; - * * @return Whether the interval field is set. */ @java.lang.Override @@ -1928,8 +1665,6 @@ public boolean hasInterval() { return facetValueCase_ == 2; } /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1937,19 +1672,16 @@ public boolean hasInterval() {
        * 
* * .google.cloud.discoveryengine.v1beta.Interval interval = 2; - * * @return The interval. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Interval getInterval() { if (facetValueCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_; + return (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_; } return com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance(); } /** - * - * *
        * Interval value for a facet, such as [10, 20) for facet "price". It
        * matches
@@ -1961,7 +1693,7 @@ public com.google.cloud.discoveryengine.v1beta.Interval getInterval() {
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalOrBuilder() {
         if (facetValueCase_ == 2) {
-          return (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_;
+           return (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_;
         }
         return com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance();
       }
@@ -1969,14 +1701,11 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalOrBu
       public static final int COUNT_FIELD_NUMBER = 3;
       private long count_ = 0L;
       /**
-       *
-       *
        * 
        * Number of items that have this facet value.
        * 
* * int64 count = 3; - * * @return The count. */ @java.lang.Override @@ -1985,7 +1714,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1997,7 +1725,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 (facetValueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, facetValue_); } @@ -2020,12 +1749,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, facetValue_); } if (facetValueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, count_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2035,23 +1764,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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) obj; - if (getCount() != other.getCount()) return false; + if (getCount() + != other.getCount()) return false; if (!getFacetValueCase().equals(other.getFacetValueCase())) return false; switch (facetValueCase_) { case 1: - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; break; case 2: - if (!getInterval().equals(other.getInterval())) return false; + if (!getInterval() + .equals(other.getInterval())) return false; break; case 0: default: @@ -2068,7 +1798,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); switch (facetValueCase_) { case 1: hash = (37 * hash) + VALUE_FIELD_NUMBER; @@ -2086,103 +1817,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue 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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - 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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue 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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - 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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue 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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue 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 @@ -2192,43 +1910,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A facet value which contains value names and their count.
        * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue} */ - 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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2243,22 +1957,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue build() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result = - buildPartial(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2266,31 +1977,26 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue b } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.count_ = count_; } } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result) { + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue result) { result.facetValueCase_ = facetValueCase_; result.facetValue_ = this.facetValue_; - if (facetValueCase_ == 2 && intervalBuilder_ != null) { + if (facetValueCase_ == 2 && + intervalBuilder_ != null) { result.facetValue_ = intervalBuilder_.build(); } } @@ -2299,74 +2005,63 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } switch (other.getFacetValueCase()) { - case VALUE: - { - facetValueCase_ = 1; - facetValue_ = other.facetValue_; - onChanged(); - break; - } - case INTERVAL: - { - mergeInterval(other.getInterval()); - break; - } - case FACETVALUE_NOT_SET: - { - break; - } + case VALUE: { + facetValueCase_ = 1; + facetValue_ = other.facetValue_; + onChanged(); + break; + } + case INTERVAL: { + mergeInterval(other.getInterval()); + break; + } + case FACETVALUE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2394,32 +2089,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - facetValueCase_ = 1; - facetValue_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); - facetValueCase_ = 2; - break; - } // case 18 - case 24: - { - count_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + facetValueCase_ = 1; + facetValue_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getIntervalFieldBuilder().getBuilder(), + extensionRegistry); + facetValueCase_ = 2; + break; + } // case 18 + case 24: { + count_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2429,12 +2122,12 @@ public Builder mergeFrom( } // finally return this; } - private int facetValueCase_ = 0; private java.lang.Object facetValue_; - - public FacetValueCase getFacetValueCase() { - return FacetValueCase.forNumber(facetValueCase_); + public FacetValueCase + getFacetValueCase() { + return FacetValueCase.forNumber( + facetValueCase_); } public Builder clearFacetValue() { @@ -2447,14 +2140,11 @@ public Builder clearFacetValue() { private int bitField0_; /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return Whether the value field is set. */ @java.lang.Override @@ -2462,14 +2152,11 @@ public boolean hasValue() { return facetValueCase_ == 1; } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -2479,7 +2166,8 @@ public java.lang.String getValue() { ref = facetValue_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (facetValueCase_ == 1) { facetValue_ = s; @@ -2490,25 +2178,24 @@ public java.lang.String getValue() { } } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = ""; if (facetValueCase_ == 1) { ref = facetValue_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (facetValueCase_ == 1) { facetValue_ = b; } @@ -2518,35 +2205,28 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } facetValueCase_ = 1; facetValue_ = value; onChanged(); return this; } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -2558,21 +2238,17 @@ public Builder clearValue() { return this; } /** - * - * *
          * Text value of a facet, such as "Black" for facet "colors".
          * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); facetValueCase_ = 1; facetValue_ = value; @@ -2581,13 +2257,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Interval, - com.google.cloud.discoveryengine.v1beta.Interval.Builder, - com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder> - intervalBuilder_; + com.google.cloud.discoveryengine.v1beta.Interval, com.google.cloud.discoveryengine.v1beta.Interval.Builder, com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder> intervalBuilder_; /** - * - * *
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2595,7 +2266,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
          * 
* * .google.cloud.discoveryengine.v1beta.Interval interval = 2; - * * @return Whether the interval field is set. */ @java.lang.Override @@ -2603,8 +2273,6 @@ public boolean hasInterval() { return facetValueCase_ == 2; } /** - * - * *
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2612,7 +2280,6 @@ public boolean hasInterval() {
          * 
* * .google.cloud.discoveryengine.v1beta.Interval interval = 2; - * * @return The interval. */ @java.lang.Override @@ -2630,8 +2297,6 @@ public com.google.cloud.discoveryengine.v1beta.Interval getInterval() { } } /** - * - * *
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2654,8 +2319,6 @@ public Builder setInterval(com.google.cloud.discoveryengine.v1beta.Interval valu
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2676,8 +2339,6 @@ public Builder setInterval(
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2688,14 +2349,10 @@ public Builder setInterval(
          */
         public Builder mergeInterval(com.google.cloud.discoveryengine.v1beta.Interval value) {
           if (intervalBuilder_ == null) {
-            if (facetValueCase_ == 2
-                && facetValue_
-                    != com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance()) {
-              facetValue_ =
-                  com.google.cloud.discoveryengine.v1beta.Interval.newBuilder(
-                          (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_)
-                      .mergeFrom(value)
-                      .buildPartial();
+            if (facetValueCase_ == 2 &&
+                facetValue_ != com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance()) {
+              facetValue_ = com.google.cloud.discoveryengine.v1beta.Interval.newBuilder((com.google.cloud.discoveryengine.v1beta.Interval) facetValue_)
+                  .mergeFrom(value).buildPartial();
             } else {
               facetValue_ = value;
             }
@@ -2711,8 +2368,6 @@ public Builder mergeInterval(com.google.cloud.discoveryengine.v1beta.Interval va
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2738,8 +2393,6 @@ public Builder clearInterval() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2752,8 +2405,6 @@ public com.google.cloud.discoveryengine.v1beta.Interval.Builder getIntervalBuild
           return getIntervalFieldBuilder().getBuilder();
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2774,8 +2425,6 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalOrBu
           }
         }
         /**
-         *
-         *
          * 
          * Interval value for a facet, such as [10, 20) for facet "price". It
          * matches
@@ -2785,19 +2434,14 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalOrBu
          * .google.cloud.discoveryengine.v1beta.Interval interval = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.Interval,
-                com.google.cloud.discoveryengine.v1beta.Interval.Builder,
-                com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder>
+            com.google.cloud.discoveryengine.v1beta.Interval, com.google.cloud.discoveryengine.v1beta.Interval.Builder, com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder> 
             getIntervalFieldBuilder() {
           if (intervalBuilder_ == null) {
             if (!(facetValueCase_ == 2)) {
               facetValue_ = com.google.cloud.discoveryengine.v1beta.Interval.getDefaultInstance();
             }
-            intervalBuilder_ =
-                new com.google.protobuf.SingleFieldBuilderV3<
-                    com.google.cloud.discoveryengine.v1beta.Interval,
-                    com.google.cloud.discoveryengine.v1beta.Interval.Builder,
-                    com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder>(
+            intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.discoveryengine.v1beta.Interval, com.google.cloud.discoveryengine.v1beta.Interval.Builder, com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder>(
                     (com.google.cloud.discoveryengine.v1beta.Interval) facetValue_,
                     getParentForChildren(),
                     isClean());
@@ -2808,16 +2452,13 @@ public com.google.cloud.discoveryengine.v1beta.IntervalOrBuilder getIntervalOrBu
           return intervalBuilder_;
         }
 
-        private long count_;
+        private long count_ ;
         /**
-         *
-         *
          * 
          * Number of items that have this facet value.
          * 
* * int64 count = 3; - * * @return The count. */ @java.lang.Override @@ -2825,14 +2466,11 @@ public long getCount() { return count_; } /** - * - * *
          * Number of items that have this facet value.
          * 
* * int64 count = 3; - * * @param value The count to set. * @return This builder for chaining. */ @@ -2844,14 +2482,11 @@ public Builder setCount(long value) { return this; } /** - * - * *
          * Number of items that have this facet value.
          * 
* * int64 count = 3; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -2860,7 +2495,6 @@ public Builder clearCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2873,45 +2507,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FacetValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2923,26 +2553,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The key. */ @java.lang.Override @@ -2951,30 +2577,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * The key for this facet. E.g., "colors" or "price". It matches
      * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
      * 
* * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2983,103 +2609,74 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int VALUES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List - values_; + private java.util.List values_; /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public java.util.List - getValuesList() { + public java.util.List getValuesList() { return values_; } /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> + public java.util.List getValuesOrBuilderList() { return values_; } /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getValues( - int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getValues(int index) { return values_.get(index); } /** - * - * *
      * The facet values for this field.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder - getValuesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index) { return values_.get(index); } public static final int DYNAMIC_FACET_FIELD_NUMBER = 3; private boolean dynamicFacet_ = false; /** - * - * *
      * Whether the facet is dynamically generated.
      * 
* * bool dynamic_facet = 3; - * * @return The dynamicFacet. */ @java.lang.Override @@ -3088,7 +2685,6 @@ public boolean getDynamicFacet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3100,7 +2696,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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -3123,10 +2720,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, values_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, values_.get(i)); } if (dynamicFacet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dynamicFacet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, dynamicFacet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3136,17 +2735,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.discoveryengine.v1beta.SearchResponse.Facet)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (getDynamicFacet() != other.getDynamicFacet()) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (getDynamicFacet() + != other.getDynamicFacet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3165,101 +2766,97 @@ public int hashCode() { hash = (53 * hash) + getValuesList().hashCode(); } hash = (37 * hash) + DYNAMIC_FACET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDynamicFacet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDynamicFacet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet 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.discoveryengine.v1beta.SearchResponse.Facet prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet 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 @@ -3269,41 +2866,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A facet result.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Facet} */ - 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.discoveryengine.v1beta.SearchResponse.Facet) com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3321,14 +2916,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance(); } @@ -3343,18 +2937,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet result = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet(this); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -3366,8 +2956,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -3381,41 +2970,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.discoveryengine.v1beta.SearchResponse.Facet) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet)other); } else { super.mergeFrom(other); return this; @@ -3423,9 +3009,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -3449,10 +3033,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse. valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -3487,40 +3070,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - .parser(), - extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - dynamicFacet_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + dynamicFacet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3530,26 +3108,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -3558,22 +3133,21 @@ public java.lang.String getKey() { } } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -3581,37 +3155,30 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -3621,22 +3188,18 @@ public Builder clearKey() { return this; } /** - * - * *
        * The key for this facet. E.g., "colors" or "price". It matches
        * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
        * 
* * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -3644,38 +3207,26 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue> - values_ = java.util.Collections.emptyList(); - + private java.util.List values_ = + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - values_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue>(values_); + values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> - valuesBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> valuesBuilder_; /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public java.util.List - getValuesList() { + public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { @@ -3683,15 +3234,11 @@ private void ensureValuesIsMutable() { } } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public int getValuesCount() { if (valuesBuilder_ == null) { @@ -3701,18 +3248,13 @@ public int getValuesCount() { } } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getValues( - int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { @@ -3720,19 +3262,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue g } } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder setValues( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3746,20 +3283,14 @@ public Builder setValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder setValues( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); @@ -3770,18 +3301,13 @@ public Builder setValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public Builder addValues( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue value) { + public Builder addValues(com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3795,19 +3321,14 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder addValues( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3821,19 +3342,14 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder addValues( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -3844,20 +3360,14 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder addValues( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); @@ -3868,23 +3378,18 @@ public Builder addValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder addAllValues( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue> - values) { + java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -3892,15 +3397,11 @@ public Builder addAllValues( return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder clearValues() { if (valuesBuilder_ == null) { @@ -3913,15 +3414,11 @@ public Builder clearValues() { return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { @@ -3934,54 +3431,39 @@ public Builder removeValues(int index) { return this; } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - getValuesBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder getValuesBuilder( + int index) { return getValuesFieldBuilder().getBuilder(index); } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder - getValuesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder getValuesOrBuilder( + int index) { if (valuesBuilder_ == null) { - return values_.get(index); - } else { + return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> - getValuesOrBuilderList() { + public java.util.List + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -3989,86 +3471,61 @@ public Builder removeValues(int index) { } } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.getDefaultInstance()); } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder - addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.getDefaultInstance()); } /** - * - * *
        * The facet values for this field.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue values = 2; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder> - getValuesBuilderList() { + public java.util.List + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder>( - values_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValueOrBuilder>( + values_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; } - private boolean dynamicFacet_; + private boolean dynamicFacet_ ; /** - * - * *
        * Whether the facet is dynamically generated.
        * 
* * bool dynamic_facet = 3; - * * @return The dynamicFacet. */ @java.lang.Override @@ -4076,14 +3533,11 @@ public boolean getDynamicFacet() { return dynamicFacet_; } /** - * - * *
        * Whether the facet is dynamically generated.
        * 
* * bool dynamic_facet = 3; - * * @param value The dynamicFacet to set. * @return This builder for chaining. */ @@ -4095,14 +3549,11 @@ public Builder setDynamicFacet(boolean value) { return this; } /** - * - * *
        * Whether the facet is dynamically generated.
        * 
* * bool dynamic_facet = 3; - * * @return This builder for chaining. */ public Builder clearDynamicFacet() { @@ -4111,7 +3562,6 @@ public Builder clearDynamicFacet() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4124,44 +3574,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Facet) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Facet) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Facet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Facet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4173,142 +3620,102 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GuidedSearchResultOrBuilder - extends + public interface GuidedSearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute> + java.util.List getRefinementAttributesList(); /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute - getRefinementAttributes(int index); + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index); /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ int getRefinementAttributesCount(); /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder> + java.util.List getRefinementAttributesOrBuilderList(); /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder - getRefinementAttributesOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder( + int index); /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @return A list containing the followUpQuestions. */ - java.util.List getFollowUpQuestionsList(); + java.util.List + getFollowUpQuestionsList(); /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @return The count of followUpQuestions. */ int getFollowUpQuestionsCount(); /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @param index The index of the element to return. * @return The followUpQuestions at the given index. */ java.lang.String getFollowUpQuestions(int index); /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @param index The index of the value to return. * @return The bytes of the followUpQuestions at the given index. */ - com.google.protobuf.ByteString getFollowUpQuestionsBytes(int index); + com.google.protobuf.ByteString + getFollowUpQuestionsBytes(int index); } /** - * - * *
    * Guided search result. The guided search helps user to refine the search
    * results and narrow down to the real needs from a broaded search results.
@@ -4316,118 +3723,101 @@ public interface GuidedSearchResultOrBuilder
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult}
    */
-  public static final class GuidedSearchResult extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GuidedSearchResult extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult)
       GuidedSearchResultOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GuidedSearchResult.newBuilder() to construct.
     private GuidedSearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GuidedSearchResult() {
       refinementAttributes_ = java.util.Collections.emptyList();
-      followUpQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      followUpQuestions_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GuidedSearchResult();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.class,
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder
-                  .class);
+              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder.class);
     }
 
-    public interface RefinementAttributeOrBuilder
-        extends
+    public interface RefinementAttributeOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Attribute key used to refine the results e.g. 'movie_type'.
        * 
* * string attribute_key = 1; - * * @return The attributeKey. */ java.lang.String getAttributeKey(); /** - * - * *
        * Attribute key used to refine the results e.g. 'movie_type'.
        * 
* * string attribute_key = 1; - * * @return The bytes for attributeKey. */ - com.google.protobuf.ByteString getAttributeKeyBytes(); + com.google.protobuf.ByteString + getAttributeKeyBytes(); /** - * - * *
        * Attribute value used to refine the results e.g. 'drama'.
        * 
* * string attribute_value = 2; - * * @return The attributeValue. */ java.lang.String getAttributeValue(); /** - * - * *
        * Attribute value used to refine the results e.g. 'drama'.
        * 
* * string attribute_value = 2; - * * @return The bytes for attributeValue. */ - com.google.protobuf.ByteString getAttributeValueBytes(); + com.google.protobuf.ByteString + getAttributeValueBytes(); } /** - * - * *
      * Useful attribute for search result refinements.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute} */ - public static final class RefinementAttribute extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RefinementAttribute extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute) RefinementAttributeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RefinementAttribute.newBuilder() to construct. private RefinementAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RefinementAttribute() { attributeKey_ = ""; attributeValue_ = ""; @@ -4435,40 +3825,33 @@ private RefinementAttribute() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RefinementAttribute(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder.class); } public static final int ATTRIBUTE_KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object attributeKey_ = ""; /** - * - * *
        * Attribute key used to refine the results e.g. 'movie_type'.
        * 
* * string attribute_key = 1; - * * @return The attributeKey. */ @java.lang.Override @@ -4477,29 +3860,29 @@ public java.lang.String getAttributeKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributeKey_ = s; return s; } } /** - * - * *
        * Attribute key used to refine the results e.g. 'movie_type'.
        * 
* * string attribute_key = 1; - * * @return The bytes for attributeKey. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributeKeyBytes() { + public com.google.protobuf.ByteString + getAttributeKeyBytes() { java.lang.Object ref = attributeKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributeKey_ = b; return b; } else { @@ -4508,18 +3891,14 @@ public com.google.protobuf.ByteString getAttributeKeyBytes() { } public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object attributeValue_ = ""; /** - * - * *
        * Attribute value used to refine the results e.g. 'drama'.
        * 
* * string attribute_value = 2; - * * @return The attributeValue. */ @java.lang.Override @@ -4528,29 +3907,29 @@ public java.lang.String getAttributeValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributeValue_ = s; return s; } } /** - * - * *
        * Attribute value used to refine the results e.g. 'drama'.
        * 
* * string attribute_value = 2; - * * @return The bytes for attributeValue. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributeValueBytes() { + public com.google.protobuf.ByteString + getAttributeValueBytes() { java.lang.Object ref = attributeValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributeValue_ = b; return b; } else { @@ -4559,7 +3938,6 @@ public com.google.protobuf.ByteString getAttributeValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4571,7 +3949,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(attributeKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeKey_); } @@ -4601,23 +3980,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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute) - obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute) obj; - if (!getAttributeKey().equals(other.getAttributeKey())) return false; - if (!getAttributeValue().equals(other.getAttributeValue())) return false; + if (!getAttributeKey() + .equals(other.getAttributeKey())) return false; + if (!getAttributeValue() + .equals(other.getAttributeValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4638,117 +4011,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute 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 @@ -4758,46 +4104,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Useful attribute for search result refinements.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute} */ - 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute) - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4808,26 +4147,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - build() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4835,25 +4167,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - result = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.attributeKey_ = attributeKey_; @@ -4867,60 +4188,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance()) return this; if (!other.getAttributeKey().isEmpty()) { attributeKey_ = other.attributeKey_; bitField0_ |= 0x00000001; @@ -4957,25 +4264,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - attributeKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - attributeValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + attributeKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + attributeValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4985,25 +4289,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object attributeKey_ = ""; /** - * - * *
          * Attribute key used to refine the results e.g. 'movie_type'.
          * 
* * string attribute_key = 1; - * * @return The attributeKey. */ public java.lang.String getAttributeKey() { java.lang.Object ref = attributeKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributeKey_ = s; return s; @@ -5012,21 +4313,20 @@ public java.lang.String getAttributeKey() { } } /** - * - * *
          * Attribute key used to refine the results e.g. 'movie_type'.
          * 
* * string attribute_key = 1; - * * @return The bytes for attributeKey. */ - public com.google.protobuf.ByteString getAttributeKeyBytes() { + public com.google.protobuf.ByteString + getAttributeKeyBytes() { java.lang.Object ref = attributeKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributeKey_ = b; return b; } else { @@ -5034,35 +4334,28 @@ public com.google.protobuf.ByteString getAttributeKeyBytes() { } } /** - * - * *
          * Attribute key used to refine the results e.g. 'movie_type'.
          * 
* * string attribute_key = 1; - * * @param value The attributeKey to set. * @return This builder for chaining. */ - public Builder setAttributeKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributeKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributeKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Attribute key used to refine the results e.g. 'movie_type'.
          * 
* * string attribute_key = 1; - * * @return This builder for chaining. */ public Builder clearAttributeKey() { @@ -5072,21 +4365,17 @@ public Builder clearAttributeKey() { return this; } /** - * - * *
          * Attribute key used to refine the results e.g. 'movie_type'.
          * 
* * string attribute_key = 1; - * * @param value The bytes for attributeKey to set. * @return This builder for chaining. */ - public Builder setAttributeKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributeKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributeKey_ = value; bitField0_ |= 0x00000001; @@ -5096,20 +4385,18 @@ public Builder setAttributeKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object attributeValue_ = ""; /** - * - * *
          * Attribute value used to refine the results e.g. 'drama'.
          * 
* * string attribute_value = 2; - * * @return The attributeValue. */ public java.lang.String getAttributeValue() { java.lang.Object ref = attributeValue_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributeValue_ = s; return s; @@ -5118,21 +4405,20 @@ public java.lang.String getAttributeValue() { } } /** - * - * *
          * Attribute value used to refine the results e.g. 'drama'.
          * 
* * string attribute_value = 2; - * * @return The bytes for attributeValue. */ - public com.google.protobuf.ByteString getAttributeValueBytes() { + public com.google.protobuf.ByteString + getAttributeValueBytes() { java.lang.Object ref = attributeValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributeValue_ = b; return b; } else { @@ -5140,35 +4426,28 @@ public com.google.protobuf.ByteString getAttributeValueBytes() { } } /** - * - * *
          * Attribute value used to refine the results e.g. 'drama'.
          * 
* * string attribute_value = 2; - * * @param value The attributeValue to set. * @return This builder for chaining. */ - public Builder setAttributeValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributeValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributeValue_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Attribute value used to refine the results e.g. 'drama'.
          * 
* * string attribute_value = 2; - * * @return This builder for chaining. */ public Builder clearAttributeValue() { @@ -5178,28 +4457,23 @@ public Builder clearAttributeValue() { return this; } /** - * - * *
          * Attribute value used to refine the results e.g. 'drama'.
          * 
* * string attribute_value = 2; - * * @param value The bytes for attributeValue to set. * @return This builder for chaining. */ - public Builder setAttributeValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributeValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributeValue_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5212,48 +4486,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RefinementAttribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefinementAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5265,149 +4532,106 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int REFINEMENT_ATTRIBUTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute> - refinementAttributes_; + private java.util.List refinementAttributes_; /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute> - getRefinementAttributesList() { + public java.util.List getRefinementAttributesList() { return refinementAttributes_; } /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder> + public java.util.List getRefinementAttributesOrBuilderList() { return refinementAttributes_; } /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ @java.lang.Override public int getRefinementAttributesCount() { return refinementAttributes_.size(); } /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - getRefinementAttributes(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index) { return refinementAttributes_.get(index); } /** - * - * *
      * A list of ranked refinement attributes.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder - getRefinementAttributesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder( + int index) { return refinementAttributes_.get(index); } public static final int FOLLOW_UP_QUESTIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList followUpQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @return A list containing the followUpQuestions. */ - public com.google.protobuf.ProtocolStringList getFollowUpQuestionsList() { + public com.google.protobuf.ProtocolStringList + getFollowUpQuestionsList() { return followUpQuestions_; } /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @return The count of followUpQuestions. */ public int getFollowUpQuestionsCount() { return followUpQuestions_.size(); } /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @param index The index of the element to return. * @return The followUpQuestions at the given index. */ @@ -5415,23 +4639,20 @@ public java.lang.String getFollowUpQuestions(int index) { return followUpQuestions_.get(index); } /** - * - * *
      * Suggested follow-up questions.
      * 
* * repeated string follow_up_questions = 2; - * * @param index The index of the value to return. * @return The bytes of the followUpQuestions at the given index. */ - public com.google.protobuf.ByteString getFollowUpQuestionsBytes(int index) { + public com.google.protobuf.ByteString + getFollowUpQuestionsBytes(int index) { return followUpQuestions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5443,7 +4664,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 < refinementAttributes_.size(); i++) { output.writeMessage(1, refinementAttributes_.get(i)); } @@ -5460,9 +4682,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < refinementAttributes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, refinementAttributes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, refinementAttributes_.get(i)); } { int dataSize = 0; @@ -5480,17 +4701,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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) obj; - if (!getRefinementAttributesList().equals(other.getRefinementAttributesList())) return false; - if (!getFollowUpQuestionsList().equals(other.getFollowUpQuestionsList())) return false; + if (!getRefinementAttributesList() + .equals(other.getRefinementAttributesList())) return false; + if (!getFollowUpQuestionsList() + .equals(other.getFollowUpQuestionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5515,101 +4736,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult 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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult 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 @@ -5619,8 +4829,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Guided search result. The guided search helps user to refine the search
      * results and narrow down to the real needs from a broaded search results.
@@ -5628,35 +4836,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult}
      */
-    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.discoveryengine.v1beta.SearchResponse.GuidedSearchResult)
         com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.class,
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder
-                    .class);
+                com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5668,27 +4874,25 @@ public Builder clear() {
           refinementAttributesBuilder_.clear();
         }
         bitField0_ = (bitField0_ & ~0x00000001);
-        followUpQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        followUpQuestions_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-          getDefaultInstanceForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-            .getDefaultInstance();
+      public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult getDefaultInstanceForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult build() {
-        com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result =
-            buildPartial();
+        com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5696,20 +4900,15 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-          buildPartial() {
-        com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result =
-            new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult(this);
+      public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult buildPartial() {
+        com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result) {
+      private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result) {
         if (refinementAttributesBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             refinementAttributes_ = java.util.Collections.unmodifiableList(refinementAttributes_);
@@ -5721,8 +4920,7 @@ private void buildPartialRepeatedFields(
         }
       }
 
-      private void buildPartial0(
-          com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result) {
+      private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           followUpQuestions_.makeImmutable();
@@ -5734,54 +4932,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) {
-          return mergeFrom(
-              (com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) other);
+        if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) {
+          return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult other) {
-        if (other
-            == com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult other) {
+        if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance()) return this;
         if (refinementAttributesBuilder_ == null) {
           if (!other.refinementAttributes_.isEmpty()) {
             if (refinementAttributes_.isEmpty()) {
@@ -5800,10 +4990,9 @@ public Builder mergeFrom(
               refinementAttributesBuilder_ = null;
               refinementAttributes_ = other.refinementAttributes_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              refinementAttributesBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getRefinementAttributesFieldBuilder()
-                      : null;
+              refinementAttributesBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getRefinementAttributesFieldBuilder() : null;
             } else {
               refinementAttributesBuilder_.addAllMessages(other.refinementAttributes_);
             }
@@ -5845,37 +5034,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                          .RefinementAttribute
-                      m =
-                          input.readMessage(
-                              com.google.cloud.discoveryengine.v1beta.SearchResponse
-                                  .GuidedSearchResult.RefinementAttribute.parser(),
-                              extensionRegistry);
-                  if (refinementAttributesBuilder_ == null) {
-                    ensureRefinementAttributesIsMutable();
-                    refinementAttributes_.add(m);
-                  } else {
-                    refinementAttributesBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 10
-              case 18:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureFollowUpQuestionsIsMutable();
-                  followUpQuestions_.add(s);
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute m =
+                    input.readMessage(
+                        com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.parser(),
+                        extensionRegistry);
+                if (refinementAttributesBuilder_ == null) {
+                  ensureRefinementAttributesIsMutable();
+                  refinementAttributes_.add(m);
+                } else {
+                  refinementAttributesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureFollowUpQuestionsIsMutable();
+                followUpQuestions_.add(s);
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5885,48 +5068,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List<
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                  .RefinementAttribute>
-          refinementAttributes_ = java.util.Collections.emptyList();
-
+      private java.util.List refinementAttributes_ =
+        java.util.Collections.emptyList();
       private void ensureRefinementAttributesIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          refinementAttributes_ =
-              new java.util.ArrayList<
-                  com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                      .RefinementAttribute>(refinementAttributes_);
+          refinementAttributes_ = new java.util.ArrayList(refinementAttributes_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                  .RefinementAttribute,
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                  .RefinementAttribute.Builder,
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult
-                  .RefinementAttributeOrBuilder>
-          refinementAttributesBuilder_;
+          com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> refinementAttributesBuilder_;
 
       /**
-       *
-       *
        * 
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute> - getRefinementAttributesList() { + public java.util.List getRefinementAttributesList() { if (refinementAttributesBuilder_ == null) { return java.util.Collections.unmodifiableList(refinementAttributes_); } else { @@ -5934,15 +5097,11 @@ private void ensureRefinementAttributesIsMutable() { } } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public int getRefinementAttributesCount() { if (refinementAttributesBuilder_ == null) { @@ -5952,19 +5111,13 @@ public int getRefinementAttributesCount() { } } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - getRefinementAttributes(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index) { if (refinementAttributesBuilder_ == null) { return refinementAttributes_.get(index); } else { @@ -5972,21 +5125,14 @@ public int getRefinementAttributesCount() { } } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder setRefinementAttributes( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute value) { if (refinementAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6000,21 +5146,14 @@ public Builder setRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder setRefinementAttributes( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) { if (refinementAttributesBuilder_ == null) { ensureRefinementAttributesIsMutable(); refinementAttributes_.set(index, builderForValue.build()); @@ -6025,20 +5164,13 @@ public Builder setRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public Builder addRefinementAttributes( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - value) { + public Builder addRefinementAttributes(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute value) { if (refinementAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6052,21 +5184,14 @@ public Builder addRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder addRefinementAttributes( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute value) { if (refinementAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6080,20 +5205,14 @@ public Builder addRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder addRefinementAttributes( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) { if (refinementAttributesBuilder_ == null) { ensureRefinementAttributesIsMutable(); refinementAttributes_.add(builderForValue.build()); @@ -6104,21 +5223,14 @@ public Builder addRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder addRefinementAttributes( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) { if (refinementAttributesBuilder_ == null) { ensureRefinementAttributesIsMutable(); refinementAttributes_.add(index, builderForValue.build()); @@ -6129,25 +5241,18 @@ public Builder addRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder addAllRefinementAttributes( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute> - values) { + java.lang.Iterable values) { if (refinementAttributesBuilder_ == null) { ensureRefinementAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refinementAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refinementAttributes_); onChanged(); } else { refinementAttributesBuilder_.addAllMessages(values); @@ -6155,15 +5260,11 @@ public Builder addAllRefinementAttributes( return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder clearRefinementAttributes() { if (refinementAttributesBuilder_ == null) { @@ -6176,15 +5277,11 @@ public Builder clearRefinementAttributes() { return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ public Builder removeRefinementAttributes(int index) { if (refinementAttributesBuilder_ == null) { @@ -6197,57 +5294,39 @@ public Builder removeRefinementAttributes(int index) { return this; } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder - getRefinementAttributesBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder getRefinementAttributesBuilder( + int index) { return getRefinementAttributesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder - getRefinementAttributesOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder( + int index) { if (refinementAttributesBuilder_ == null) { - return refinementAttributes_.get(index); - } else { + return refinementAttributes_.get(index); } else { return refinementAttributesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder> - getRefinementAttributesOrBuilderList() { + public java.util.List + getRefinementAttributesOrBuilderList() { if (refinementAttributesBuilder_ != null) { return refinementAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -6255,79 +5334,45 @@ public Builder removeRefinementAttributes(int index) { } } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder - addRefinementAttributesBuilder() { - return getRefinementAttributesFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder addRefinementAttributesBuilder() { + return getRefinementAttributesFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance()); } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder - addRefinementAttributesBuilder(int index) { - return getRefinementAttributesFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder addRefinementAttributesBuilder( + int index) { + return getRefinementAttributesFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.getDefaultInstance()); } /** - * - * *
        * A list of ranked refinement attributes.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder> - getRefinementAttributesBuilderList() { + public java.util.List + getRefinementAttributesBuilderList() { return getRefinementAttributesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> getRefinementAttributesFieldBuilder() { if (refinementAttributesBuilder_ == null) { - refinementAttributesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttribute.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .RefinementAttributeOrBuilder>( + refinementAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder>( refinementAttributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -6339,7 +5384,6 @@ public Builder removeRefinementAttributes(int index) { private com.google.protobuf.LazyStringArrayList followUpQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureFollowUpQuestionsIsMutable() { if (!followUpQuestions_.isModifiable()) { followUpQuestions_ = new com.google.protobuf.LazyStringArrayList(followUpQuestions_); @@ -6347,43 +5391,35 @@ private void ensureFollowUpQuestionsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @return A list containing the followUpQuestions. */ - public com.google.protobuf.ProtocolStringList getFollowUpQuestionsList() { + public com.google.protobuf.ProtocolStringList + getFollowUpQuestionsList() { followUpQuestions_.makeImmutable(); return followUpQuestions_; } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @return The count of followUpQuestions. */ public int getFollowUpQuestionsCount() { return followUpQuestions_.size(); } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @param index The index of the element to return. * @return The followUpQuestions at the given index. */ @@ -6391,37 +5427,31 @@ public java.lang.String getFollowUpQuestions(int index) { return followUpQuestions_.get(index); } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @param index The index of the value to return. * @return The bytes of the followUpQuestions at the given index. */ - public com.google.protobuf.ByteString getFollowUpQuestionsBytes(int index) { + public com.google.protobuf.ByteString + getFollowUpQuestionsBytes(int index) { return followUpQuestions_.getByteString(index); } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @param index The index to set the value at. * @param value The followUpQuestions to set. * @return This builder for chaining. */ - public Builder setFollowUpQuestions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFollowUpQuestions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFollowUpQuestionsIsMutable(); followUpQuestions_.set(index, value); bitField0_ |= 0x00000002; @@ -6429,21 +5459,17 @@ public Builder setFollowUpQuestions(int index, java.lang.String value) { return this; } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @param value The followUpQuestions to add. * @return This builder for chaining. */ - public Builder addFollowUpQuestions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFollowUpQuestions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFollowUpQuestionsIsMutable(); followUpQuestions_.add(value); bitField0_ |= 0x00000002; @@ -6451,58 +5477,50 @@ public Builder addFollowUpQuestions(java.lang.String value) { return this; } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @param values The followUpQuestions to add. * @return This builder for chaining. */ - public Builder addAllFollowUpQuestions(java.lang.Iterable values) { + public Builder addAllFollowUpQuestions( + java.lang.Iterable values) { ensureFollowUpQuestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, followUpQuestions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, followUpQuestions_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @return This builder for chaining. */ public Builder clearFollowUpQuestions() { - followUpQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + followUpQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * Suggested follow-up questions.
        * 
* * repeated string follow_up_questions = 2; - * * @param value The bytes of the followUpQuestions to add. * @return This builder for chaining. */ - public Builder addFollowUpQuestionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFollowUpQuestionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFollowUpQuestionsIsMutable(); followUpQuestions_.add(value); @@ -6510,7 +5528,6 @@ public Builder addFollowUpQuestionsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6523,45 +5540,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuidedSearchResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuidedSearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6573,188 +5586,136 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SummaryOrBuilder - extends + public interface SummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Summary) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The summaryText. */ java.lang.String getSummaryText(); /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The bytes for summaryText. */ - com.google.protobuf.ByteString getSummaryTextBytes(); + com.google.protobuf.ByteString + getSummaryTextBytes(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the summarySkippedReasons. */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason> - getSummarySkippedReasonsList(); + java.util.List getSummarySkippedReasonsList(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return The count of summarySkippedReasons. */ int getSummarySkippedReasonsCount(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the element to return. * @return The summarySkippedReasons at the given index. */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - getSummarySkippedReasons(int index); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the enum numeric values on the wire for summarySkippedReasons. */ - java.util.List getSummarySkippedReasonsValueList(); + java.util.List + getSummarySkippedReasonsValueList(); /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of summarySkippedReasons at the given index. */ int getSummarySkippedReasonsValue(int index); /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return Whether the safetyAttributes field is set. */ boolean hasSafetyAttributes(); /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return The safetyAttributes. */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - getSafetyAttributes(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes getSafetyAttributes(); /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder - getSafetyAttributesOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder(); } /** - * - * *
    * Summary of the top N search result specified by the summary spec.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Summary} */ - public static final class Summary extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Summary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary) SummaryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Summary.newBuilder() to construct. private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Summary() { summaryText_ = ""; summarySkippedReasons_ = java.util.Collections.emptyList(); @@ -6762,39 +5723,34 @@ private Summary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Summary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder.class); } /** - * - * *
      * An Enum for summary-skipped reasons.
      * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason} + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason} */ - public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageEnum { + public enum SummarySkippedReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Default value. The summary skipped reason is not specified.
        * 
@@ -6803,8 +5759,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE */ SUMMARY_SKIPPED_REASON_UNSPECIFIED(0), /** - * - * *
        * The adversarial query ignored case.
        *
@@ -6817,8 +5771,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       ADVERSARIAL_QUERY_IGNORED(1),
       /**
-       *
-       *
        * 
        * The non-summary seeking query ignored case.
        *
@@ -6831,8 +5783,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       NON_SUMMARY_SEEKING_QUERY_IGNORED(2),
       /**
-       *
-       *
        * 
        * The out-of-domain query ignored case.
        *
@@ -6845,8 +5795,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       OUT_OF_DOMAIN_QUERY_IGNORED(3),
       /**
-       *
-       *
        * 
        * The potential policy violation case.
        *
@@ -6858,8 +5806,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       POTENTIAL_POLICY_VIOLATION(4),
       /**
-       *
-       *
        * 
        * The LLM addon not enabled case.
        *
@@ -6873,8 +5819,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
       ;
 
       /**
-       *
-       *
        * 
        * Default value. The summary skipped reason is not specified.
        * 
@@ -6883,8 +5827,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE */ public static final int SUMMARY_SKIPPED_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The adversarial query ignored case.
        *
@@ -6897,8 +5839,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int ADVERSARIAL_QUERY_IGNORED_VALUE = 1;
       /**
-       *
-       *
        * 
        * The non-summary seeking query ignored case.
        *
@@ -6911,8 +5851,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int NON_SUMMARY_SEEKING_QUERY_IGNORED_VALUE = 2;
       /**
-       *
-       *
        * 
        * The out-of-domain query ignored case.
        *
@@ -6925,8 +5863,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int OUT_OF_DOMAIN_QUERY_IGNORED_VALUE = 3;
       /**
-       *
-       *
        * 
        * The potential policy violation case.
        *
@@ -6938,8 +5874,6 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int POTENTIAL_POLICY_VIOLATION_VALUE = 4;
       /**
-       *
-       *
        * 
        * The LLM addon not enabled case.
        *
@@ -6950,6 +5884,7 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE
        */
       public static final int LLM_ADDON_NOT_ENABLED_VALUE = 5;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -6974,20 +5909,13 @@ public static SummarySkippedReason valueOf(int value) {
        */
       public static SummarySkippedReason forNumber(int value) {
         switch (value) {
-          case 0:
-            return SUMMARY_SKIPPED_REASON_UNSPECIFIED;
-          case 1:
-            return ADVERSARIAL_QUERY_IGNORED;
-          case 2:
-            return NON_SUMMARY_SEEKING_QUERY_IGNORED;
-          case 3:
-            return OUT_OF_DOMAIN_QUERY_IGNORED;
-          case 4:
-            return POTENTIAL_POLICY_VIOLATION;
-          case 5:
-            return LLM_ADDON_NOT_ENABLED;
-          default:
-            return null;
+          case 0: return SUMMARY_SKIPPED_REASON_UNSPECIFIED;
+          case 1: return ADVERSARIAL_QUERY_IGNORED;
+          case 2: return NON_SUMMARY_SEEKING_QUERY_IGNORED;
+          case 3: return OUT_OF_DOMAIN_QUERY_IGNORED;
+          case 4: return POTENTIAL_POLICY_VIOLATION;
+          case 5: return LLM_ADDON_NOT_ENABLED;
+          default: return null;
         }
       }
 
@@ -6995,31 +5923,29 @@ public static SummarySkippedReason forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          SummarySkippedReason> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public SummarySkippedReason findValueByNumber(int number) {
+                return SummarySkippedReason.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public SummarySkippedReason findValueByNumber(int number) {
-                  return SummarySkippedReason.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.discoveryengine.v1beta.SearchResponse.Summary.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final SummarySkippedReason[] VALUES = values();
@@ -7027,7 +5953,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static SummarySkippedReason 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;
@@ -7044,200 +5971,165 @@ private SummarySkippedReason(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason)
     }
 
-    public interface SafetyAttributesOrBuilder
-        extends
+    public interface SafetyAttributesOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return A list containing the categories. */ - java.util.List getCategoriesList(); + java.util.List + getCategoriesList(); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return The count of categories. */ int getCategoriesCount(); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @param index The index of the element to return. * @return The categories at the given index. */ java.lang.String getCategories(int index); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @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); /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return A list containing the scores. */ java.util.List getScoresList(); /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return The count of scores. */ int getScoresCount(); /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @param index The index of the element to return. * @return The scores at the given index. */ float getScores(int index); } /** - * - * *
      * Safety Attribute categories and their associated confidence scores.
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes} */ - public static final class SafetyAttributes extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SafetyAttributes extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) SafetyAttributesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SafetyAttributes.newBuilder() to construct. private SafetyAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SafetyAttributes() { - categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); scores_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SafetyAttributes(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder.class); } public static final int CATEGORIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList getCategoriesList() { + public com.google.protobuf.ProtocolStringList + getCategoriesList() { return categories_; } /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -7245,78 +6137,65 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** - * - * *
        * The display names of Safety Attribute categories associated with the
        * generated content. Order matches the Scores.
        * 
* * repeated string categories = 1; - * * @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); } public static final int SCORES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList scores_; /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return A list containing the scores. */ @java.lang.Override - public java.util.List getScoresList() { + public java.util.List + getScoresList() { return scores_; } /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @return The count of scores. */ public int getScoresCount() { return scores_.size(); } /** - * - * *
        * The confidence scores of the each category, higher
        * value means higher confidence. Order matches the Categories.
        * 
* * repeated float scores = 2; - * * @param index The index of the element to return. * @return The scores at the given index. */ public float getScores(int index) { return scores_.getFloat(index); } - private int scoresMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7328,7 +6207,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(); for (int i = 0; i < categories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categories_.getRaw(i)); @@ -7363,7 +6243,8 @@ public int getSerializedSize() { size += dataSize; if (!getScoresList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } scoresMemoizedSerializedSize = dataSize; } @@ -7375,18 +6256,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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) obj; - if (!getCategoriesList().equals(other.getCategoriesList())) return false; - if (!getScoresList().equals(other.getScoresList())) return false; + if (!getCategoriesList() + .equals(other.getCategoriesList())) return false; + if (!getScoresList() + .equals(other.getScoresList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7411,104 +6291,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - 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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - 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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes 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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes 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 @@ -7518,72 +6384,63 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Safety Attribute categories and their associated confidence scores.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes} */ - 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.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); scores_ = emptyFloatList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - build() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes result = - buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7591,22 +6448,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes result = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes( - this); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes result) { if (((bitField0_ & 0x00000002) != 0)) { scores_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); @@ -7614,9 +6464,7 @@ private void buildPartialRepeatedFields( result.scores_ = scores_; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { categories_.makeImmutable(); @@ -7628,56 +6476,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) - other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance()) return this; if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; @@ -7724,38 +6562,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCategoriesIsMutable(); - categories_.add(s); - break; - } // case 10 - case 21: - { - float v = input.readFloat(); - ensureScoresIsMutable(); - scores_.addFloat(v); - break; - } // case 21 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureScoresIsMutable(); - while (input.getBytesUntilLimit() > 0) { - scores_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCategoriesIsMutable(); + categories_.add(s); + break; + } // case 10 + case 21: { + float v = input.readFloat(); + ensureScoresIsMutable(); + scores_.addFloat(v); + break; + } // case 21 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureScoresIsMutable(); + while (input.getBytesUntilLimit() > 0) { + scores_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7765,12 +6599,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCategoriesIsMutable() { if (!categories_.isModifiable()) { categories_ = new com.google.protobuf.LazyStringArrayList(categories_); @@ -7778,46 +6610,38 @@ private void ensureCategoriesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList getCategoriesList() { + public com.google.protobuf.ProtocolStringList + getCategoriesList() { categories_.makeImmutable(); return categories_; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -7825,39 +6649,33 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @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); } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCategories( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.set(index, value); bitField0_ |= 0x00000001; @@ -7865,22 +6683,18 @@ public Builder setCategories(int index, java.lang.String value) { return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @param value The categories to add. * @return This builder for chaining. */ - public Builder addCategories(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCategories( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.add(value); bitField0_ |= 0x00000001; @@ -7888,61 +6702,53 @@ public Builder addCategories(java.lang.String value) { return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @return This builder for chaining. */ public Builder clearCategories() { - categories_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + categories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
          * The display names of Safety Attribute categories associated with the
          * generated content. Order matches the Scores.
          * 
* * repeated string categories = 1; - * * @param value The bytes of the categories to add. * @return This builder for chaining. */ - public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCategoriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCategoriesIsMutable(); categories_.add(value); @@ -7952,7 +6758,6 @@ public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.FloatList scores_ = emptyFloatList(); - private void ensureScoresIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { scores_ = mutableCopy(scores_); @@ -7960,47 +6765,38 @@ private void ensureScoresIsMutable() { } } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @return A list containing the scores. */ - public java.util.List getScoresList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(scores_) - : scores_; + public java.util.List + getScoresList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(scores_) : scores_; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @return The count of scores. */ public int getScoresCount() { return scores_.size(); } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param index The index of the element to return. * @return The scores at the given index. */ @@ -8008,20 +6804,18 @@ public float getScores(int index) { return scores_.getFloat(index); } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param index The index to set the value at. * @param value The scores to set. * @return This builder for chaining. */ - public Builder setScores(int index, float value) { + public Builder setScores( + int index, float value) { ensureScoresIsMutable(); scores_.setFloat(index, value); @@ -8029,15 +6823,12 @@ public Builder setScores(int index, float value) { return this; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param value The scores to add. * @return This builder for chaining. */ @@ -8049,34 +6840,30 @@ public Builder addScores(float value) { return this; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @param values The scores to add. * @return This builder for chaining. */ - public Builder addAllScores(java.lang.Iterable values) { + public Builder addAllScores( + java.lang.Iterable values) { ensureScoresIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scores_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scores_); onChanged(); return this; } /** - * - * *
          * The confidence scores of the each category, higher
          * value means higher confidence. Order matches the Categories.
          * 
* * repeated float scores = 2; - * * @return This builder for chaining. */ public Builder clearScores() { @@ -8085,7 +6872,6 @@ public Builder clearScores() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8098,46 +6884,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SafetyAttributes - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafetyAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8149,25 +6930,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SUMMARY_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object summaryText_ = ""; /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The summaryText. */ @java.lang.Override @@ -8176,29 +6953,29 @@ public java.lang.String getSummaryText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summaryText_ = s; return s; } } /** - * - * *
      * The summary content.
      * 
* * string summary_text = 1; - * * @return The bytes for summaryText. */ @java.lang.Override - public com.google.protobuf.ByteString getSummaryTextBytes() { + public com.google.protobuf.ByteString + getSummaryTextBytes() { java.lang.Object ref = summaryText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summaryText_ = b; return b; } else { @@ -8207,66 +6984,38 @@ public com.google.protobuf.ByteString getSummaryTextBytes() { } public static final int SUMMARY_SKIPPED_REASONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List summarySkippedReasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason> - summarySkippedReasons_converter_ = + java.lang.Integer, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason> summarySkippedReasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SummarySkippedReason>() { - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SummarySkippedReason - convert(java.lang.Integer from) { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - result = - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SummarySkippedReason.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SummarySkippedReason.UNRECOGNIZED - : result; + java.lang.Integer, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason>() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason convert(java.lang.Integer from) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason result = com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason.forNumber(from); + return result == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason.UNRECOGNIZED : result; } }; /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the summarySkippedReasons. */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason> - getSummarySkippedReasonsList() { + public java.util.List getSummarySkippedReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason>( - summarySkippedReasons_, summarySkippedReasons_converter_); + java.lang.Integer, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason>(summarySkippedReasons_, summarySkippedReasons_converter_); } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return The count of summarySkippedReasons. */ @java.lang.Override @@ -8274,55 +7023,40 @@ public int getSummarySkippedReasonsCount() { return summarySkippedReasons_.size(); } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the element to return. * @return The summarySkippedReasons at the given index. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - getSummarySkippedReasons(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index) { return summarySkippedReasons_converter_.convert(summarySkippedReasons_.get(index)); } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the enum numeric values on the wire for summarySkippedReasons. */ @java.lang.Override - public java.util.List getSummarySkippedReasonsValueList() { + public java.util.List + getSummarySkippedReasonsValueList() { return summarySkippedReasons_; } /** - * - * *
      * Additional summary-skipped reasons. This provides the reason for ignored
      * cases. If nothing is skipped, this field is not set.
      * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of summarySkippedReasons at the given index. */ @@ -8330,24 +7064,17 @@ public java.util.List getSummarySkippedReasonsValueList() { public int getSummarySkippedReasonsValue(int index) { return summarySkippedReasons_.get(index); } - private int summarySkippedReasonsMemoizedSerializedSize; public static final int SAFETY_ATTRIBUTES_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - safetyAttributes_; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safetyAttributes_; /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return Whether the safetyAttributes field is set. */ @java.lang.Override @@ -8355,50 +7082,32 @@ public boolean hasSafetyAttributes() { return safetyAttributes_ != null; } /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return The safetyAttributes. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - getSafetyAttributes() { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes getSafetyAttributes() { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } /** - * - * *
      * A collection of Safety Attribute categories and their associated
      * confidence scores.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder - getSafetyAttributesOrBuilder() { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder() { + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8410,7 +7119,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summaryText_); @@ -8440,19 +7150,18 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < summarySkippedReasons_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - summarySkippedReasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(summarySkippedReasons_.get(i)); } size += dataSize; - if (!getSummarySkippedReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - summarySkippedReasonsMemoizedSerializedSize = dataSize; + if (!getSummarySkippedReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }summarySkippedReasonsMemoizedSerializedSize = dataSize; } if (safetyAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSafetyAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSafetyAttributes()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8462,19 +7171,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.discoveryengine.v1beta.SearchResponse.Summary)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary) obj; - if (!getSummaryText().equals(other.getSummaryText())) return false; + if (!getSummaryText() + .equals(other.getSummaryText())) return false; if (!summarySkippedReasons_.equals(other.summarySkippedReasons_)) return false; if (hasSafetyAttributes() != other.hasSafetyAttributes()) return false; if (hasSafetyAttributes()) { - if (!getSafetyAttributes().equals(other.getSafetyAttributes())) return false; + if (!getSafetyAttributes() + .equals(other.getSafetyAttributes())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -8503,94 +7213,89 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary 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.discoveryengine.v1beta.SearchResponse.Summary prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary 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 @@ -8600,41 +7305,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Summary of the top N search result specified by the summary spec.
      * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.Summary} */ - 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.discoveryengine.v1beta.SearchResponse.Summary) com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -8651,14 +7354,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance(); } @@ -8673,18 +7375,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary result = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary(this); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary result) { + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary result) { if (((bitField0_ & 0x00000002) != 0)) { summarySkippedReasons_ = java.util.Collections.unmodifiableList(summarySkippedReasons_); bitField0_ = (bitField0_ & ~0x00000002); @@ -8692,17 +7390,15 @@ private void buildPartialRepeatedFields( result.summarySkippedReasons_ = summarySkippedReasons_; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.summaryText_ = summaryText_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.safetyAttributes_ = - safetyAttributesBuilder_ == null - ? safetyAttributes_ - : safetyAttributesBuilder_.build(); + result.safetyAttributes_ = safetyAttributesBuilder_ == null + ? safetyAttributes_ + : safetyAttributesBuilder_.build(); } } @@ -8710,52 +7406,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance()) return this; if (!other.getSummaryText().isEmpty()) { summaryText_ = other.summaryText_; bitField0_ |= 0x00000001; @@ -8800,45 +7490,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - summaryText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { + case 10: { + summaryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + ensureSummarySkippedReasonsIsMutable(); + summarySkippedReasons_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureSummarySkippedReasonsIsMutable(); summarySkippedReasons_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureSummarySkippedReasonsIsMutable(); - summarySkippedReasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: - { - input.readMessage( - getSafetyAttributesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + input.readMessage( + getSafetyAttributesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8848,25 +7534,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object summaryText_ = ""; /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @return The summaryText. */ public java.lang.String getSummaryText() { java.lang.Object ref = summaryText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summaryText_ = s; return s; @@ -8875,21 +7558,20 @@ public java.lang.String getSummaryText() { } } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @return The bytes for summaryText. */ - public com.google.protobuf.ByteString getSummaryTextBytes() { + public com.google.protobuf.ByteString + getSummaryTextBytes() { java.lang.Object ref = summaryText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summaryText_ = b; return b; } else { @@ -8897,35 +7579,28 @@ public com.google.protobuf.ByteString getSummaryTextBytes() { } } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @param value The summaryText to set. * @return This builder for chaining. */ - public Builder setSummaryText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSummaryText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } summaryText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @return This builder for chaining. */ public Builder clearSummaryText() { @@ -8935,21 +7610,17 @@ public Builder clearSummaryText() { return this; } /** - * - * *
        * The summary content.
        * 
* * string summary_text = 1; - * * @param value The bytes for summaryText to set. * @return This builder for chaining. */ - public Builder setSummaryTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSummaryTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summaryText_ = value; bitField0_ |= 0x00000001; @@ -8958,93 +7629,64 @@ public Builder setSummaryTextBytes(com.google.protobuf.ByteString value) { } private java.util.List summarySkippedReasons_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSummarySkippedReasonsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - summarySkippedReasons_ = - new java.util.ArrayList(summarySkippedReasons_); + summarySkippedReasons_ = new java.util.ArrayList(summarySkippedReasons_); bitField0_ |= 0x00000002; } } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the summarySkippedReasons. */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason> - getSummarySkippedReasonsList() { + public java.util.List getSummarySkippedReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason>( - summarySkippedReasons_, summarySkippedReasons_converter_); + java.lang.Integer, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason>(summarySkippedReasons_, summarySkippedReasons_converter_); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return The count of summarySkippedReasons. */ public int getSummarySkippedReasonsCount() { return summarySkippedReasons_.size(); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the element to return. * @return The summarySkippedReasons at the given index. */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - getSummarySkippedReasons(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index) { return summarySkippedReasons_converter_.convert(summarySkippedReasons_.get(index)); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index to set the value at. * @param value The summarySkippedReasons to set. * @return This builder for chaining. */ public Builder setSummarySkippedReasons( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - value) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason value) { if (value == null) { throw new NullPointerException(); } @@ -9054,23 +7696,16 @@ public Builder setSummarySkippedReasons( return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param value The summarySkippedReasons to add. * @return This builder for chaining. */ - public Builder addSummarySkippedReasons( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - value) { + public Builder addSummarySkippedReasons(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason value) { if (value == null) { throw new NullPointerException(); } @@ -9080,46 +7715,31 @@ public Builder addSummarySkippedReasons( return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param values The summarySkippedReasons to add. * @return This builder for chaining. */ public Builder addAllSummarySkippedReasons( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SummarySkippedReason> - values) { + java.lang.Iterable values) { ensureSummarySkippedReasonsIsMutable(); - for (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason - value : values) { + for (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason value : values) { summarySkippedReasons_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return This builder for chaining. */ public Builder clearSummarySkippedReasons() { @@ -9129,34 +7749,25 @@ public Builder clearSummarySkippedReasons() { return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @return A list containing the enum numeric values on the wire for summarySkippedReasons. */ - public java.util.List getSummarySkippedReasonsValueList() { + public java.util.List + getSummarySkippedReasonsValueList() { return java.util.Collections.unmodifiableList(summarySkippedReasons_); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of summarySkippedReasons at the given index. */ @@ -9164,39 +7775,30 @@ public int getSummarySkippedReasonsValue(int index) { return summarySkippedReasons_.get(index); } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param index The index to set the value at. * @param value The enum numeric value on the wire for summarySkippedReasons to set. * @return This builder for chaining. */ - public Builder setSummarySkippedReasonsValue(int index, int value) { + public Builder setSummarySkippedReasonsValue( + int index, int value) { ensureSummarySkippedReasonsIsMutable(); summarySkippedReasons_.set(index, value); onChanged(); return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param value The enum numeric value on the wire for summarySkippedReasons to add. * @return This builder for chaining. */ @@ -9207,17 +7809,12 @@ public Builder addSummarySkippedReasonsValue(int value) { return this; } /** - * - * *
        * Additional summary-skipped reasons. This provides the reason for ignored
        * cases. If nothing is skipped, this field is not set.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; * @param values The enum numeric values on the wire for summarySkippedReasons to add. * @return This builder for chaining. */ @@ -9231,71 +7828,46 @@ public Builder addAllSummarySkippedReasonsValue( return this; } - private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - safetyAttributes_; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safetyAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SafetyAttributesOrBuilder> - safetyAttributesBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder> safetyAttributesBuilder_; /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return Whether the safetyAttributes field is set. */ public boolean hasSafetyAttributes() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; * @return The safetyAttributes. */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - getSafetyAttributes() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes getSafetyAttributes() { if (safetyAttributesBuilder_ == null) { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + return safetyAttributes_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } else { return safetyAttributesBuilder_.getMessage(); } } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public Builder setSafetyAttributes( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes value) { + public Builder setSafetyAttributes(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes value) { if (safetyAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9309,20 +7881,15 @@ public Builder setSafetyAttributes( return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ public Builder setSafetyAttributes( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder builderForValue) { if (safetyAttributesBuilder_ == null) { safetyAttributes_ = builderForValue.build(); } else { @@ -9333,25 +7900,18 @@ public Builder setSafetyAttributes( return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public Builder mergeSafetyAttributes( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes value) { + public Builder mergeSafetyAttributes(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes value) { if (safetyAttributesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && safetyAttributes_ != null - && safetyAttributes_ - != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + safetyAttributes_ != null && + safetyAttributes_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance()) { getSafetyAttributesBuilder().mergeFrom(value); } else { safetyAttributes_ = value; @@ -9364,16 +7924,12 @@ public Builder mergeSafetyAttributes( return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ public Builder clearSafetyAttributes() { bitField0_ = (bitField0_ & ~0x00000004); @@ -9386,80 +7942,55 @@ public Builder clearSafetyAttributes() { return this; } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder - getSafetyAttributesBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder getSafetyAttributesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSafetyAttributesFieldBuilder().getBuilder(); } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SafetyAttributesOrBuilder - getSafetyAttributesOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder() { if (safetyAttributesBuilder_ != null) { return safetyAttributesBuilder_.getMessageOrBuilder(); } else { - return safetyAttributes_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .getDefaultInstance() - : safetyAttributes_; + return safetyAttributes_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.getDefaultInstance() : safetyAttributes_; } } /** - * - * *
        * A collection of Safety Attribute categories and their associated
        * confidence scores.
        * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SafetyAttributesOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder> getSafetyAttributesFieldBuilder() { if (safetyAttributesBuilder_ == null) { - safetyAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - .SafetyAttributesOrBuilder>( - getSafetyAttributes(), getParentForChildren(), isClean()); + safetyAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributesOrBuilder>( + getSafetyAttributes(), + getParentForChildren(), + isClean()); safetyAttributes_ = null; } return safetyAttributesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9472,44 +8003,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Summary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Summary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9521,33 +8049,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface QueryExpansionInfoOrBuilder - extends + public interface QueryExpansionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Bool describing whether query expansion has occurred.
      * 
* * bool expanded_query = 1; - * * @return The expandedQuery. */ boolean getExpandedQuery(); /** - * - * *
      * Number of pinned results. This field will only be set when expansion
      * happens and
@@ -9556,14 +8078,11 @@ public interface QueryExpansionInfoOrBuilder
      * 
* * int64 pinned_result_count = 2; - * * @return The pinnedResultCount. */ long getPinnedResultCount(); } /** - * - * *
    * Information describing query expansion including whether expansion has
    * occurred.
@@ -9571,51 +8090,46 @@ public interface QueryExpansionInfoOrBuilder
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo}
    */
-  public static final class QueryExpansionInfo extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class QueryExpansionInfo extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo)
       QueryExpansionInfoOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use QueryExpansionInfo.newBuilder() to construct.
     private QueryExpansionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private QueryExpansionInfo() {}
+    private QueryExpansionInfo() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new QueryExpansionInfo();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.class,
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder
-                  .class);
+              com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder.class);
     }
 
     public static final int EXPANDED_QUERY_FIELD_NUMBER = 1;
     private boolean expandedQuery_ = false;
     /**
-     *
-     *
      * 
      * Bool describing whether query expansion has occurred.
      * 
* * bool expanded_query = 1; - * * @return The expandedQuery. */ @java.lang.Override @@ -9626,8 +8140,6 @@ public boolean getExpandedQuery() { public static final int PINNED_RESULT_COUNT_FIELD_NUMBER = 2; private long pinnedResultCount_ = 0L; /** - * - * *
      * Number of pinned results. This field will only be set when expansion
      * happens and
@@ -9636,7 +8148,6 @@ public boolean getExpandedQuery() {
      * 
* * int64 pinned_result_count = 2; - * * @return The pinnedResultCount. */ @java.lang.Override @@ -9645,7 +8156,6 @@ public long getPinnedResultCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9657,7 +8167,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 (expandedQuery_ != false) { output.writeBool(1, expandedQuery_); } @@ -9674,10 +8185,12 @@ public int getSerializedSize() { size = 0; if (expandedQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, expandedQuery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, expandedQuery_); } if (pinnedResultCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, pinnedResultCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, pinnedResultCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9687,17 +8200,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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo other = (com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) obj; - if (getExpandedQuery() != other.getExpandedQuery()) return false; - if (getPinnedResultCount() != other.getPinnedResultCount()) return false; + if (getExpandedQuery() + != other.getExpandedQuery()) return false; + if (getPinnedResultCount() + != other.getPinnedResultCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9710,109 +8223,100 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXPANDED_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandedQuery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpandedQuery()); hash = (37 * hash) + PINNED_RESULT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPinnedResultCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPinnedResultCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - 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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - 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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo 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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo 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 @@ -9822,8 +8326,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information describing query expansion including whether expansion has
      * occurred.
@@ -9831,35 +8333,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo}
      */
-    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.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo)
         com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.class,
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder
-                    .class);
+                com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9870,22 +8370,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-            .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo
-          getDefaultInstanceForType() {
-        return com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo
-            .getDefaultInstance();
+      public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo getDefaultInstanceForType() {
+        return com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo build() {
-        com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo result =
-            buildPartial();
+        com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -9893,19 +8390,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo
       }
 
       @java.lang.Override
-      public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo
-          buildPartial() {
-        com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo result =
-            new com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo buildPartial() {
+        com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo result = new com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo result) {
+      private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.expandedQuery_ = expandedQuery_;
@@ -9919,54 +8411,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) {
-          return mergeFrom(
-              (com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) other);
+        if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) {
+          return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo other) {
-        if (other
-            == com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo other) {
+        if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance()) return this;
         if (other.getExpandedQuery() != false) {
           setExpandedQuery(other.getExpandedQuery());
         }
@@ -9999,25 +8483,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  expandedQuery_ = input.readBool();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  pinnedResultCount_ = input.readInt64();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                expandedQuery_ = input.readBool();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                pinnedResultCount_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10027,19 +8508,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private boolean expandedQuery_;
+      private boolean expandedQuery_ ;
       /**
-       *
-       *
        * 
        * Bool describing whether query expansion has occurred.
        * 
* * bool expanded_query = 1; - * * @return The expandedQuery. */ @java.lang.Override @@ -10047,14 +8524,11 @@ public boolean getExpandedQuery() { return expandedQuery_; } /** - * - * *
        * Bool describing whether query expansion has occurred.
        * 
* * bool expanded_query = 1; - * * @param value The expandedQuery to set. * @return This builder for chaining. */ @@ -10066,14 +8540,11 @@ public Builder setExpandedQuery(boolean value) { return this; } /** - * - * *
        * Bool describing whether query expansion has occurred.
        * 
* * bool expanded_query = 1; - * * @return This builder for chaining. */ public Builder clearExpandedQuery() { @@ -10083,10 +8554,8 @@ public Builder clearExpandedQuery() { return this; } - private long pinnedResultCount_; + private long pinnedResultCount_ ; /** - * - * *
        * Number of pinned results. This field will only be set when expansion
        * happens and
@@ -10095,7 +8564,6 @@ public Builder clearExpandedQuery() {
        * 
* * int64 pinned_result_count = 2; - * * @return The pinnedResultCount. */ @java.lang.Override @@ -10103,8 +8571,6 @@ public long getPinnedResultCount() { return pinnedResultCount_; } /** - * - * *
        * Number of pinned results. This field will only be set when expansion
        * happens and
@@ -10113,7 +8579,6 @@ public long getPinnedResultCount() {
        * 
* * int64 pinned_result_count = 2; - * * @param value The pinnedResultCount to set. * @return This builder for chaining. */ @@ -10125,8 +8590,6 @@ public Builder setPinnedResultCount(long value) { return this; } /** - * - * *
        * Number of pinned results. This field will only be set when expansion
        * happens and
@@ -10135,7 +8598,6 @@ public Builder setPinnedResultCount(long value) {
        * 
* * int64 pinned_result_count = 2; - * * @return This builder for chaining. */ public Builder clearPinnedResultCount() { @@ -10144,7 +8606,6 @@ public Builder clearPinnedResultCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10157,45 +8618,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo) - private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo(); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryExpansionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExpansionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10207,99 +8664,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RESULTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - results_; + private java.util.List results_; /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getResults(int index) { return results_.get(index); } /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index) { return results_.get(index); } public static final int FACETS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List facets_; /** - * - * *
    * Results of facets requested by user.
    * 
@@ -10307,13 +8742,10 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getRe * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ @java.lang.Override - public java.util.List - getFacetsList() { + public java.util.List getFacetsList() { return facets_; } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -10321,14 +8753,11 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getRe * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder> + public java.util.List getFacetsOrBuilderList() { return facets_; } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -10340,8 +8769,6 @@ public int getFacetsCount() { return facets_.size(); } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -10353,8 +8780,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet getFacets(in return facets_.get(index); } /** - * - * *
    * Results of facets requested by user.
    * 
@@ -10368,19 +8793,13 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder get } public static final int GUIDED_SEARCH_RESULT_FIELD_NUMBER = 8; - private com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - guidedSearchResult_; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guidedSearchResult_; /** - * - * *
    * Guided search result.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; * @return Whether the guidedSearchResult field is set. */ @java.lang.Override @@ -10388,51 +8807,32 @@ public boolean hasGuidedSearchResult() { return guidedSearchResult_ != null; } /** - * - * *
    * Guided search result.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; * @return The guidedSearchResult. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - getGuidedSearchResult() { - return guidedSearchResult_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .getDefaultInstance() - : guidedSearchResult_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult getGuidedSearchResult() { + return guidedSearchResult_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; } /** - * - * *
    * Guided search result.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder - getGuidedSearchResultOrBuilder() { - return guidedSearchResult_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .getDefaultInstance() - : guidedSearchResult_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder() { + return guidedSearchResult_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; } public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** - * - * *
    * The estimated total count of matched items irrespective of pagination. The
    * count of
@@ -10443,7 +8843,6 @@ public boolean hasGuidedSearchResult() {
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -10452,12 +8851,9 @@ public int getTotalSize() { } public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object attributionToken_ = ""; /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -10466,7 +8862,6 @@ public int getTotalSize() {
    * 
* * string attribution_token = 4; - * * @return The attributionToken. */ @java.lang.Override @@ -10475,15 +8870,14 @@ public java.lang.String getAttributionToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; } } /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -10492,15 +8886,16 @@ public java.lang.String getAttributionToken() {
    * 
* * string attribution_token = 4; - * * @return The bytes for attributionToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -10509,12 +8904,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } public static final int REDIRECT_URI_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object redirectUri_ = ""; /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -10525,7 +8917,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * string redirect_uri = 12; - * * @return The redirectUri. */ @java.lang.Override @@ -10534,15 +8925,14 @@ public java.lang.String getRedirectUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; } } /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -10553,15 +8943,16 @@ public java.lang.String getRedirectUri() {
    * 
* * string redirect_uri = 12; - * * @return The bytes for redirectUri. */ @java.lang.Override - public com.google.protobuf.ByteString getRedirectUriBytes() { + public com.google.protobuf.ByteString + getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -10570,12 +8961,9 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -10584,7 +8972,6 @@ public com.google.protobuf.ByteString getRedirectUriBytes() {
    * 
* * string next_page_token = 5; - * * @return The nextPageToken. */ @java.lang.Override @@ -10593,15 +8980,14 @@ 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; } } /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -10610,15 +8996,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 5; - * * @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 { @@ -10627,12 +9014,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int CORRECTED_QUERY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object correctedQuery_ = ""; /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -10640,7 +9024,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    * 
* * string corrected_query = 7; - * * @return The correctedQuery. */ @java.lang.Override @@ -10649,15 +9032,14 @@ public java.lang.String getCorrectedQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); correctedQuery_ = s; return s; } } /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -10665,15 +9047,16 @@ public java.lang.String getCorrectedQuery() {
    * 
* * string corrected_query = 7; - * * @return The bytes for correctedQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getCorrectedQueryBytes() { + public com.google.protobuf.ByteString + getCorrectedQueryBytes() { java.lang.Object ref = correctedQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); correctedQuery_ = b; return b; } else { @@ -10684,8 +9067,6 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() { public static final int SUMMARY_FIELD_NUMBER = 9; private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary_; /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -10694,7 +9075,6 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() {
    * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; - * * @return Whether the summary field is set. */ @java.lang.Override @@ -10702,8 +9082,6 @@ public boolean hasSummary() { return summary_ != null; } /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -10712,18 +9090,13 @@ public boolean hasSummary() {
    * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; - * * @return The summary. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary() { - return summary_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_; } /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -10734,55 +9107,43 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary
    * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
    */
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder
-      getSummaryOrBuilder() {
-    return summary_ == null
-        ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance()
-        : summary_;
+  public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() {
+    return summary_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_;
   }
 
   public static final int APPLIED_CONTROLS_FIELD_NUMBER = 10;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList appliedControls_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @return A list containing the appliedControls. */ - public com.google.protobuf.ProtocolStringList getAppliedControlsList() { + public com.google.protobuf.ProtocolStringList + getAppliedControlsList() { return appliedControls_; } /** - * - * *
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @return The count of appliedControls. */ public int getAppliedControlsCount() { return appliedControls_.size(); } /** - * - * *
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @param index The index of the element to return. * @return The appliedControls at the given index. */ @@ -10790,35 +9151,27 @@ public java.lang.String getAppliedControls(int index) { return appliedControls_.get(index); } /** - * - * *
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @param index The index of the value to return. * @return The bytes of the appliedControls at the given index. */ - public com.google.protobuf.ByteString getAppliedControlsBytes(int index) { + public com.google.protobuf.ByteString + getAppliedControlsBytes(int index) { return appliedControls_.getByteString(index); } public static final int QUERY_EXPANSION_INFO_FIELD_NUMBER = 14; - private com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - queryExpansionInfo_; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo queryExpansionInfo_; /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return Whether the queryExpansionInfo field is set. */ @java.lang.Override @@ -10826,48 +9179,30 @@ public boolean hasQueryExpansionInfo() { return queryExpansionInfo_ != null; } /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return The queryExpansionInfo. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - getQueryExpansionInfo() { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - .getDefaultInstance() - : queryExpansionInfo_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo getQueryExpansionInfo() { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder - getQueryExpansionInfoOrBuilder() { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - .getDefaultInstance() - : queryExpansionInfo_; + public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder() { + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10879,7 +9214,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)); } @@ -10923,13 +9259,16 @@ 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)); } for (int i = 0; i < facets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, facets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, facets_.get(i)); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attributionToken_); @@ -10941,10 +9280,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, correctedQuery_); } if (guidedSearchResult_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGuidedSearchResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getGuidedSearchResult()); } if (summary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSummary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSummary()); } { int dataSize = 0; @@ -10958,7 +9299,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, redirectUri_); } if (queryExpansionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getQueryExpansionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getQueryExpansionInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10968,33 +9310,43 @@ 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.discoveryengine.v1beta.SearchResponse)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchResponse other = - (com.google.cloud.discoveryengine.v1beta.SearchResponse) obj; + com.google.cloud.discoveryengine.v1beta.SearchResponse other = (com.google.cloud.discoveryengine.v1beta.SearchResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getFacetsList().equals(other.getFacetsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getFacetsList() + .equals(other.getFacetsList())) return false; if (hasGuidedSearchResult() != other.hasGuidedSearchResult()) return false; if (hasGuidedSearchResult()) { - if (!getGuidedSearchResult().equals(other.getGuidedSearchResult())) return false; - } - if (getTotalSize() != other.getTotalSize()) return false; - if (!getAttributionToken().equals(other.getAttributionToken())) return false; - if (!getRedirectUri().equals(other.getRedirectUri())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getCorrectedQuery().equals(other.getCorrectedQuery())) return false; + if (!getGuidedSearchResult() + .equals(other.getGuidedSearchResult())) return false; + } + if (getTotalSize() + != other.getTotalSize()) return false; + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getRedirectUri() + .equals(other.getRedirectUri())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getCorrectedQuery() + .equals(other.getCorrectedQuery())) return false; if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { - if (!getSummary().equals(other.getSummary())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; } - if (!getAppliedControlsList().equals(other.getAppliedControlsList())) return false; + if (!getAppliedControlsList() + .equals(other.getAppliedControlsList())) return false; if (hasQueryExpansionInfo() != other.hasQueryExpansionInfo()) return false; if (hasQueryExpansionInfo()) { - if (!getQueryExpansionInfo().equals(other.getQueryExpansionInfo())) return false; + if (!getQueryExpansionInfo() + .equals(other.getQueryExpansionInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -11047,104 +9399,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.SearchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse 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.discoveryengine.v1beta.SearchResponse prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SearchResponse 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
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
@@ -11153,32 +9499,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchResponse}
    */
-  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.discoveryengine.v1beta.SearchResponse)
       com.google.cloud.discoveryengine.v1beta.SearchResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.class,
-              com.google.cloud.discoveryengine.v1beta.SearchResponse.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.SearchResponse.class, com.google.cloud.discoveryengine.v1beta.SearchResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.SearchResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -11212,7 +9559,8 @@ public Builder clear() {
         summaryBuilder_.dispose();
         summaryBuilder_ = null;
       }
-      appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      appliedControls_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       queryExpansionInfo_ = null;
       if (queryExpansionInfoBuilder_ != null) {
         queryExpansionInfoBuilder_.dispose();
@@ -11222,9 +9570,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor;
     }
 
     @java.lang.Override
@@ -11243,18 +9591,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.SearchResponse buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.SearchResponse result =
-          new com.google.cloud.discoveryengine.v1beta.SearchResponse(this);
+      com.google.cloud.discoveryengine.v1beta.SearchResponse result = new com.google.cloud.discoveryengine.v1beta.SearchResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.SearchResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.SearchResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -11278,10 +9622,9 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.guidedSearchResult_ =
-            guidedSearchResultBuilder_ == null
-                ? guidedSearchResult_
-                : guidedSearchResultBuilder_.build();
+        result.guidedSearchResult_ = guidedSearchResultBuilder_ == null
+            ? guidedSearchResult_
+            : guidedSearchResultBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.totalSize_ = totalSize_;
@@ -11299,17 +9642,18 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRespons
         result.correctedQuery_ = correctedQuery_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build();
+        result.summary_ = summaryBuilder_ == null
+            ? summary_
+            : summaryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         appliedControls_.makeImmutable();
         result.appliedControls_ = appliedControls_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.queryExpansionInfo_ =
-            queryExpansionInfoBuilder_ == null
-                ? queryExpansionInfo_
-                : queryExpansionInfoBuilder_.build();
+        result.queryExpansionInfo_ = queryExpansionInfoBuilder_ == null
+            ? queryExpansionInfo_
+            : queryExpansionInfoBuilder_.build();
       }
     }
 
@@ -11317,39 +9661,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRespons
     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.discoveryengine.v1beta.SearchResponse) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -11357,8 +9700,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.SearchResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -11377,10 +9719,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse
             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_);
           }
@@ -11404,10 +9745,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse
             facetsBuilder_ = null;
             facets_ = other.facets_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            facetsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFacetsFieldBuilder()
-                    : null;
+            facetsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFacetsFieldBuilder() : null;
           } else {
             facetsBuilder_.addAllMessages(other.facets_);
           }
@@ -11481,99 +9821,90 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult
-                            .parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.parser(),
-                        extensionRegistry);
-                if (facetsBuilder_ == null) {
-                  ensureFacetsIsMutable();
-                  facets_.add(m);
-                } else {
-                  facetsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 24:
-              {
-                totalSize_ = input.readInt32();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 24
-            case 34:
-              {
-                attributionToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 34
-            case 42:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 42
-            case 58:
-              {
-                correctedQuery_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getGuidedSearchResultFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getSummaryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAppliedControlsIsMutable();
-                appliedControls_.add(s);
-                break;
-              } // case 82
-            case 98:
-              {
-                redirectUri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 98
-            case 114:
-              {
-                input.readMessage(
-                    getQueryExpansionInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 114
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.parser(),
+                      extensionRegistry);
+              if (facetsBuilder_ == null) {
+                ensureFacetsIsMutable();
+                facets_.add(m);
+              } else {
+                facetsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 24: {
+              totalSize_ = input.readInt32();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 24
+            case 34: {
+              attributionToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 34
+            case 42: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 42
+            case 58: {
+              correctedQuery_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getGuidedSearchResultFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getSummaryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureAppliedControlsIsMutable();
+              appliedControls_.add(s);
+              break;
+            } // case 82
+            case 98: {
+              redirectUri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 98
+            case 114: {
+              input.readMessage(
+                  getQueryExpansionInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 114
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11583,39 +9914,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        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.discoveryengine.v1beta.SearchResponse.SearchResult>(results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult,
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder,
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -11623,14 +9943,11 @@ private void ensureResultsIsMutable() { } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -11640,17 +9957,13 @@ public int getResultsCount() { } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getResults( - int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { @@ -11658,14 +9971,11 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getRe } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder setResults( int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { @@ -11682,19 +9992,14 @@ public Builder setResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder setResults( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -11705,17 +10010,13 @@ public Builder setResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public Builder addResults( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { + public Builder addResults(com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11729,14 +10030,11 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder addResults( int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult value) { @@ -11753,18 +10051,14 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder addResults( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); @@ -11775,19 +10069,14 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder addResults( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -11798,22 +10087,18 @@ public Builder addResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder addAllResults( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult> - 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); @@ -11821,14 +10106,11 @@ public Builder addAllResults( return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -11841,14 +10123,11 @@ public Builder clearResults() { return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -11861,153 +10140,114 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - getResultsBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder getResultsBuilder( + int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } - /** - * - * + /** *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder - addResultsBuilder(int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult - .getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.getDefaultInstance()); } /** - * - * *
      * A list of matched documents. The order represents the ranking.
      * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder> - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; } private java.util.List facets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFacetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - facets_ = - new java.util.ArrayList( - facets_); + facets_ = new java.util.ArrayList(facets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder> - facetsBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder> facetsBuilder_; /** - * - * *
      * Results of facets requested by user.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ - public java.util.List - getFacetsList() { + public java.util.List getFacetsList() { if (facetsBuilder_ == null) { return java.util.Collections.unmodifiableList(facets_); } else { @@ -12015,8 +10255,6 @@ private void ensureFacetsIsMutable() { } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12031,8 +10269,6 @@ public int getFacetsCount() { } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12047,8 +10283,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet getFacets(in } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12070,8 +10304,6 @@ public Builder setFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12079,8 +10311,7 @@ public Builder setFacets( * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ public Builder setFacets( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.set(index, builderForValue.build()); @@ -12091,8 +10322,6 @@ public Builder setFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12113,8 +10342,6 @@ public Builder addFacets(com.google.cloud.discoveryengine.v1beta.SearchResponse. return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12136,8 +10363,6 @@ public Builder addFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12156,8 +10381,6 @@ public Builder addFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12165,8 +10388,7 @@ public Builder addFacets( * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ public Builder addFacets( - int index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder builderForValue) { + int index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder builderForValue) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); facets_.add(index, builderForValue.build()); @@ -12177,8 +10399,6 @@ public Builder addFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12186,11 +10406,11 @@ public Builder addFacets( * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ public Builder addAllFacets( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (facetsBuilder_ == null) { ensureFacetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, facets_); onChanged(); } else { facetsBuilder_.addAllMessages(values); @@ -12198,8 +10418,6 @@ public Builder addAllFacets( return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12217,8 +10435,6 @@ public Builder clearFacets() { return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12236,8 +10452,6 @@ public Builder removeFacets(int index) { return this; } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12249,8 +10463,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder getF return getFacetsFieldBuilder().getBuilder(index); } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12260,23 +10472,19 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder getF public com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsOrBuilder( int index) { if (facetsBuilder_ == null) { - return facets_.get(index); - } else { + return facets_.get(index); } else { return facetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Results of facets requested by user.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder> - getFacetsOrBuilderList() { + public java.util.List + getFacetsOrBuilderList() { if (facetsBuilder_ != null) { return facetsBuilder_.getMessageOrBuilderList(); } else { @@ -12284,8 +10492,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder get } } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12293,13 +10499,10 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder get * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder addFacetsBuilder() { - return getFacetsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance()); + return getFacetsFieldBuilder().addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance()); } /** - * - * *
      * Results of facets requested by user.
      * 
@@ -12308,102 +10511,72 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder addF */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder addFacetsBuilder( int index) { - return getFacetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance()); + return getFacetsFieldBuilder().addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.getDefaultInstance()); } /** - * - * *
      * Results of facets requested by user.
      * 
* * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ - public java.util.List - getFacetsBuilderList() { + public java.util.List + getFacetsBuilderList() { return getFacetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder> getFacetsFieldBuilder() { if (facetsBuilder_ == null) { - facetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder>( - facets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet, com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder>( + facets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); facets_ = null; } return facetsBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - guidedSearchResult_; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guidedSearchResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder> - guidedSearchResultBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder> guidedSearchResultBuilder_; /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; * @return Whether the guidedSearchResult field is set. */ public boolean hasGuidedSearchResult() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; * @return The guidedSearchResult. */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - getGuidedSearchResult() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult getGuidedSearchResult() { if (guidedSearchResultBuilder_ == null) { - return guidedSearchResult_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .getDefaultInstance() - : guidedSearchResult_; + return guidedSearchResult_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; } else { return guidedSearchResultBuilder_.getMessage(); } } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ - public Builder setGuidedSearchResult( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult value) { + public Builder setGuidedSearchResult(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult value) { if (guidedSearchResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12417,19 +10590,14 @@ public Builder setGuidedSearchResult( return this; } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ public Builder setGuidedSearchResult( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder builderForValue) { if (guidedSearchResultBuilder_ == null) { guidedSearchResult_ = builderForValue.build(); } else { @@ -12440,24 +10608,17 @@ public Builder setGuidedSearchResult( return this; } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ - public Builder mergeGuidedSearchResult( - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult value) { + public Builder mergeGuidedSearchResult(com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult value) { if (guidedSearchResultBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && guidedSearchResult_ != null - && guidedSearchResult_ - != com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + guidedSearchResult_ != null && + guidedSearchResult_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance()) { getGuidedSearchResultBuilder().mergeFrom(value); } else { guidedSearchResult_ = value; @@ -12470,15 +10631,11 @@ public Builder mergeGuidedSearchResult( return this; } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ public Builder clearGuidedSearchResult() { bitField0_ = (bitField0_ & ~0x00000004); @@ -12491,76 +10648,55 @@ public Builder clearGuidedSearchResult() { return this; } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder - getGuidedSearchResultBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder getGuidedSearchResultBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGuidedSearchResultFieldBuilder().getBuilder(); } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder - getGuidedSearchResultOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder() { if (guidedSearchResultBuilder_ != null) { return guidedSearchResultBuilder_.getMessageOrBuilder(); } else { - return guidedSearchResult_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult - .getDefaultInstance() - : guidedSearchResult_; + return guidedSearchResult_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.getDefaultInstance() : guidedSearchResult_; } } /** - * - * *
      * Guided search result.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder> getGuidedSearchResultFieldBuilder() { if (guidedSearchResultBuilder_ == null) { - guidedSearchResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder>( - getGuidedSearchResult(), getParentForChildren(), isClean()); + guidedSearchResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder>( + getGuidedSearchResult(), + getParentForChildren(), + isClean()); guidedSearchResult_ = null; } return guidedSearchResultBuilder_; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The estimated total count of matched items irrespective of pagination. The
      * count of
@@ -12571,7 +10707,6 @@ public Builder clearGuidedSearchResult() {
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -12579,8 +10714,6 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The estimated total count of matched items irrespective of pagination. The
      * count of
@@ -12591,7 +10724,6 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ @@ -12603,8 +10735,6 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * The estimated total count of matched items irrespective of pagination. The
      * count of
@@ -12615,7 +10745,6 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -12627,8 +10756,6 @@ public Builder clearTotalSize() { private java.lang.Object attributionToken_ = ""; /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -12637,13 +10764,13 @@ public Builder clearTotalSize() {
      * 
* * string attribution_token = 4; - * * @return The attributionToken. */ public java.lang.String getAttributionToken() { java.lang.Object ref = attributionToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; @@ -12652,8 +10779,6 @@ public java.lang.String getAttributionToken() { } } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -12662,14 +10787,15 @@ public java.lang.String getAttributionToken() {
      * 
* * string attribution_token = 4; - * * @return The bytes for attributionToken. */ - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -12677,8 +10803,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -12687,22 +10811,18 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
      * 
* * string attribution_token = 4; - * * @param value The attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributionToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -12711,7 +10831,6 @@ public Builder setAttributionToken(java.lang.String value) {
      * 
* * string attribution_token = 4; - * * @return This builder for chaining. */ public Builder clearAttributionToken() { @@ -12721,8 +10840,6 @@ public Builder clearAttributionToken() { return this; } /** - * - * *
      * A unique search token. This should be included in the
      * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -12731,14 +10848,12 @@ public Builder clearAttributionToken() {
      * 
* * string attribution_token = 4; - * * @param value The bytes for attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributionToken_ = value; bitField0_ |= 0x00000010; @@ -12748,8 +10863,6 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object redirectUri_ = ""; /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -12760,13 +10873,13 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string redirect_uri = 12; - * * @return The redirectUri. */ public java.lang.String getRedirectUri() { java.lang.Object ref = redirectUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; @@ -12775,8 +10888,6 @@ public java.lang.String getRedirectUri() { } } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -12787,14 +10898,15 @@ public java.lang.String getRedirectUri() {
      * 
* * string redirect_uri = 12; - * * @return The bytes for redirectUri. */ - public com.google.protobuf.ByteString getRedirectUriBytes() { + public com.google.protobuf.ByteString + getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -12802,8 +10914,6 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { } } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -12814,22 +10924,18 @@ public com.google.protobuf.ByteString getRedirectUriBytes() {
      * 
* * string redirect_uri = 12; - * * @param value The redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRedirectUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } redirectUri_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -12840,7 +10946,6 @@ public Builder setRedirectUri(java.lang.String value) {
      * 
* * string redirect_uri = 12; - * * @return This builder for chaining. */ public Builder clearRedirectUri() { @@ -12850,8 +10955,6 @@ public Builder clearRedirectUri() { return this; } /** - * - * *
      * The URI of a customer-defined redirect page. If redirect action is
      * triggered, no search is performed, and only
@@ -12862,14 +10965,12 @@ public Builder clearRedirectUri() {
      * 
* * string redirect_uri = 12; - * * @param value The bytes for redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRedirectUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); redirectUri_ = value; bitField0_ |= 0x00000020; @@ -12879,8 +10980,6 @@ public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -12889,13 +10988,13 @@ public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string next_page_token = 5; - * * @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; @@ -12904,8 +11003,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -12914,14 +11011,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 5; - * * @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 { @@ -12929,8 +11027,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -12939,22 +11035,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 5; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -12963,7 +11055,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 5; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -12973,8 +11064,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as
      * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -12983,14 +11072,12 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 5; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000040; @@ -13000,8 +11087,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object correctedQuery_ = ""; /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -13009,13 +11094,13 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string corrected_query = 7; - * * @return The correctedQuery. */ public java.lang.String getCorrectedQuery() { java.lang.Object ref = correctedQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); correctedQuery_ = s; return s; @@ -13024,8 +11109,6 @@ public java.lang.String getCorrectedQuery() { } } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -13033,14 +11116,15 @@ public java.lang.String getCorrectedQuery() {
      * 
* * string corrected_query = 7; - * * @return The bytes for correctedQuery. */ - public com.google.protobuf.ByteString getCorrectedQueryBytes() { + public com.google.protobuf.ByteString + getCorrectedQueryBytes() { java.lang.Object ref = correctedQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); correctedQuery_ = b; return b; } else { @@ -13048,8 +11132,6 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() { } } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -13057,22 +11139,18 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() {
      * 
* * string corrected_query = 7; - * * @param value The correctedQuery to set. * @return This builder for chaining. */ - public Builder setCorrectedQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCorrectedQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } correctedQuery_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -13080,7 +11158,6 @@ public Builder setCorrectedQuery(java.lang.String value) {
      * 
* * string corrected_query = 7; - * * @return This builder for chaining. */ public Builder clearCorrectedQuery() { @@ -13090,8 +11167,6 @@ public Builder clearCorrectedQuery() { return this; } /** - * - * *
      * Contains the spell corrected query, if found. If the spell correction type
      * is AUTOMATIC, then the search results are based on corrected_query.
@@ -13099,14 +11174,12 @@ public Builder clearCorrectedQuery() {
      * 
* * string corrected_query = 7; - * * @param value The bytes for correctedQuery to set. * @return This builder for chaining. */ - public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCorrectedQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); correctedQuery_ = value; bitField0_ |= 0x00000080; @@ -13116,13 +11189,8 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> - summaryBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> summaryBuilder_; /** - * - * *
      * A summary as part of the search results.
      * This field is only returned if
@@ -13131,15 +11199,12 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; - * * @return Whether the summary field is set. */ public boolean hasSummary() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * A summary as part of the search results.
      * This field is only returned if
@@ -13148,21 +11213,16 @@ public boolean hasSummary() {
      * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; - * * @return The summary. */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary() { if (summaryBuilder_ == null) { - return summary_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() - : summary_; + return summary_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_; } else { return summaryBuilder_.getMessage(); } } /** - * - * *
      * A summary as part of the search results.
      * This field is only returned if
@@ -13172,8 +11232,7 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary
      *
      * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
      */
-    public Builder setSummary(
-        com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) {
+    public Builder setSummary(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) {
       if (summaryBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -13187,8 +11246,6 @@ public Builder setSummary(
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -13210,8 +11267,6 @@ public Builder setSummary(
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -13221,14 +11276,11 @@ public Builder setSummary(
      *
      * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
      */
-    public Builder mergeSummary(
-        com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) {
+    public Builder mergeSummary(com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) {
       if (summaryBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && summary_ != null
-            && summary_
-                != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          summary_ != null &&
+          summary_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance()) {
           getSummaryBuilder().mergeFrom(value);
         } else {
           summary_ = value;
@@ -13241,8 +11293,6 @@ public Builder mergeSummary(
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -13263,8 +11313,6 @@ public Builder clearSummary() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -13274,15 +11322,12 @@ public Builder clearSummary() {
      *
      * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
      */
-    public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder
-        getSummaryBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder getSummaryBuilder() {
       bitField0_ |= 0x00000100;
       onChanged();
       return getSummaryFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -13292,19 +11337,15 @@ public Builder clearSummary() {
      *
      * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
      */
-    public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder
-        getSummaryOrBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder() {
       if (summaryBuilder_ != null) {
         return summaryBuilder_.getMessageOrBuilder();
       } else {
-        return summary_ == null
-            ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance()
-            : summary_;
+        return summary_ == null ?
+            com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.getDefaultInstance() : summary_;
       }
     }
     /**
-     *
-     *
      * 
      * A summary as part of the search results.
      * This field is only returned if
@@ -13315,17 +11356,14 @@ public Builder clearSummary() {
      * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary,
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder,
-            com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder> 
         getSummaryFieldBuilder() {
       if (summaryBuilder_ == null) {
-        summaryBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary,
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder,
-                com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder>(
-                getSummary(), getParentForChildren(), isClean());
+        summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder>(
+                getSummary(),
+                getParentForChildren(),
+                isClean());
         summary_ = null;
       }
       return summaryBuilder_;
@@ -13333,7 +11371,6 @@ public Builder clearSummary() {
 
     private com.google.protobuf.LazyStringArrayList appliedControls_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureAppliedControlsIsMutable() {
       if (!appliedControls_.isModifiable()) {
         appliedControls_ = new com.google.protobuf.LazyStringArrayList(appliedControls_);
@@ -13341,43 +11378,35 @@ private void ensureAppliedControlsIsMutable() {
       bitField0_ |= 0x00000200;
     }
     /**
-     *
-     *
      * 
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @return A list containing the appliedControls. */ - public com.google.protobuf.ProtocolStringList getAppliedControlsList() { + public com.google.protobuf.ProtocolStringList + getAppliedControlsList() { appliedControls_.makeImmutable(); return appliedControls_; } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @return The count of appliedControls. */ public int getAppliedControlsCount() { return appliedControls_.size(); } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @param index The index of the element to return. * @return The appliedControls at the given index. */ @@ -13385,37 +11414,31 @@ public java.lang.String getAppliedControls(int index) { return appliedControls_.get(index); } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @param index The index of the value to return. * @return The bytes of the appliedControls at the given index. */ - public com.google.protobuf.ByteString getAppliedControlsBytes(int index) { + public com.google.protobuf.ByteString + getAppliedControlsBytes(int index) { return appliedControls_.getByteString(index); } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @param index The index to set the value at. * @param value The appliedControls to set. * @return This builder for chaining. */ - public Builder setAppliedControls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAppliedControls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAppliedControlsIsMutable(); appliedControls_.set(index, value); bitField0_ |= 0x00000200; @@ -13423,21 +11446,17 @@ public Builder setAppliedControls(int index, java.lang.String value) { return this; } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @param value The appliedControls to add. * @return This builder for chaining. */ - public Builder addAppliedControls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAppliedControls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAppliedControlsIsMutable(); appliedControls_.add(value); bitField0_ |= 0x00000200; @@ -13445,58 +11464,50 @@ public Builder addAppliedControls(java.lang.String value) { return this; } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @param values The appliedControls to add. * @return This builder for chaining. */ - public Builder addAllAppliedControls(java.lang.Iterable values) { + public Builder addAllAppliedControls( + java.lang.Iterable values) { ensureAppliedControlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, appliedControls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appliedControls_); bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @return This builder for chaining. */ public Builder clearAppliedControls() { - appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - ; + appliedControls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** - * - * *
      * Controls applied as part of the Control service.
      * 
* * repeated string applied_controls = 10; - * * @param value The bytes of the appliedControls to add. * @return This builder for chaining. */ - public Builder addAppliedControlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAppliedControlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAppliedControlsIsMutable(); appliedControls_.add(value); @@ -13505,66 +11516,43 @@ public Builder addAppliedControlsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - queryExpansionInfo_; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo queryExpansionInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo, - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder> - queryExpansionInfoBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder> queryExpansionInfoBuilder_; /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return Whether the queryExpansionInfo field is set. */ public boolean hasQueryExpansionInfo() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return The queryExpansionInfo. */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - getQueryExpansionInfo() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo getQueryExpansionInfo() { if (queryExpansionInfoBuilder_ == null) { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - .getDefaultInstance() - : queryExpansionInfo_; + return queryExpansionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } else { return queryExpansionInfoBuilder_.getMessage(); } } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public Builder setQueryExpansionInfo( - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo value) { + public Builder setQueryExpansionInfo(com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo value) { if (queryExpansionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13578,19 +11566,14 @@ public Builder setQueryExpansionInfo( return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ public Builder setQueryExpansionInfo( - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder - builderForValue) { + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder builderForValue) { if (queryExpansionInfoBuilder_ == null) { queryExpansionInfo_ = builderForValue.build(); } else { @@ -13601,24 +11584,17 @@ public Builder setQueryExpansionInfo( return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public Builder mergeQueryExpansionInfo( - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo value) { + public Builder mergeQueryExpansionInfo(com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo value) { if (queryExpansionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && queryExpansionInfo_ != null - && queryExpansionInfo_ - != com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - .getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + queryExpansionInfo_ != null && + queryExpansionInfo_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance()) { getQueryExpansionInfoBuilder().mergeFrom(value); } else { queryExpansionInfo_ = value; @@ -13631,15 +11607,11 @@ public Builder mergeQueryExpansionInfo( return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ public Builder clearQueryExpansionInfo() { bitField0_ = (bitField0_ & ~0x00000400); @@ -13652,74 +11624,55 @@ public Builder clearQueryExpansionInfo() { return this; } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder - getQueryExpansionInfoBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder getQueryExpansionInfoBuilder() { bitField0_ |= 0x00000400; onChanged(); return getQueryExpansionInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder - getQueryExpansionInfoOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder() { if (queryExpansionInfoBuilder_ != null) { return queryExpansionInfoBuilder_.getMessageOrBuilder(); } else { - return queryExpansionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo - .getDefaultInstance() - : queryExpansionInfo_; + return queryExpansionInfo_ == null ? + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.getDefaultInstance() : queryExpansionInfo_; } } /** - * - * *
      * Query expansion information for the returned results.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo, - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder> + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder> getQueryExpansionInfoFieldBuilder() { if (queryExpansionInfoBuilder_ == null) { - queryExpansionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo, - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder, - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder>( - getQueryExpansionInfo(), getParentForChildren(), isClean()); + queryExpansionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder>( + getQueryExpansionInfo(), + getParentForChildren(), + isClean()); queryExpansionInfo_ = null; } return queryExpansionInfoBuilder_; } - @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); } @@ -13729,12 +11682,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse) private static final com.google.cloud.discoveryengine.v1beta.SearchResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchResponse(); } @@ -13743,27 +11696,27 @@ public static com.google.cloud.discoveryengine.v1beta.SearchResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13778,4 +11731,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.SearchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java similarity index 78% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java index b71dafbc16b6..0a96cfdbb211 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/search_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface SearchResponseOrBuilder - extends +public interface SearchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - java.util.List + java.util.List getResultsList(); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult getResults(int index); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ int getResultsCount(); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ - java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> + java.util.List getResultsOrBuilderList(); /** - * - * *
    * A list of matched documents. The order represents the ranking.
    * 
* - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; - * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1; */ com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder getResultsOrBuilder( int index); /** - * - * *
    * Results of facets requested by user.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ - java.util.List getFacetsList(); + java.util.List + getFacetsList(); /** - * - * *
    * Results of facets requested by user.
    * 
@@ -104,8 +69,6 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder get */ com.google.cloud.discoveryengine.v1beta.SearchResponse.Facet getFacets(int index); /** - * - * *
    * Results of facets requested by user.
    * 
@@ -114,19 +77,15 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder get */ int getFacetsCount(); /** - * - * *
    * Results of facets requested by user.
    * 
* * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2; */ - java.util.List + java.util.List getFacetsOrBuilderList(); /** - * - * *
    * Results of facets requested by user.
    * 
@@ -137,50 +96,33 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO int index); /** - * - * *
    * Guided search result.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; * @return Whether the guidedSearchResult field is set. */ boolean hasGuidedSearchResult(); /** - * - * *
    * Guided search result.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; * @return The guidedSearchResult. */ com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult getGuidedSearchResult(); /** - * - * *
    * Guided search result.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder - getGuidedSearchResultOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder(); /** - * - * *
    * The estimated total count of matched items irrespective of pagination. The
    * count of
@@ -191,14 +133,11 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -207,13 +146,10 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string attribution_token = 4; - * * @return The attributionToken. */ java.lang.String getAttributionToken(); /** - * - * *
    * A unique search token. This should be included in the
    * [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting
@@ -222,14 +158,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string attribution_token = 4; - * * @return The bytes for attributionToken. */ - com.google.protobuf.ByteString getAttributionTokenBytes(); + com.google.protobuf.ByteString + getAttributionTokenBytes(); /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -240,13 +174,10 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string redirect_uri = 12; - * * @return The redirectUri. */ java.lang.String getRedirectUri(); /** - * - * *
    * The URI of a customer-defined redirect page. If redirect action is
    * triggered, no search is performed, and only
@@ -257,14 +188,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string redirect_uri = 12; - * * @return The bytes for redirectUri. */ - com.google.protobuf.ByteString getRedirectUriBytes(); + com.google.protobuf.ByteString + getRedirectUriBytes(); /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -273,13 +202,10 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string next_page_token = 5; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as
    * [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
@@ -288,14 +214,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string next_page_token = 5; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -303,13 +227,10 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string corrected_query = 7; - * * @return The correctedQuery. */ java.lang.String getCorrectedQuery(); /** - * - * *
    * Contains the spell corrected query, if found. If the spell correction type
    * is AUTOMATIC, then the search results are based on corrected_query.
@@ -317,14 +238,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * string corrected_query = 7; - * * @return The bytes for correctedQuery. */ - com.google.protobuf.ByteString getCorrectedQueryBytes(); + com.google.protobuf.ByteString + getCorrectedQueryBytes(); /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -333,13 +252,10 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; - * * @return Whether the summary field is set. */ boolean hasSummary(); /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -348,13 +264,10 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
    * 
* * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; - * * @return The summary. */ com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary getSummary(); /** - * - * *
    * A summary as part of the search results.
    * This field is only returned if
@@ -367,95 +280,70 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
   com.google.cloud.discoveryengine.v1beta.SearchResponse.SummaryOrBuilder getSummaryOrBuilder();
 
   /**
-   *
-   *
    * 
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @return A list containing the appliedControls. */ - java.util.List getAppliedControlsList(); + java.util.List + getAppliedControlsList(); /** - * - * *
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @return The count of appliedControls. */ int getAppliedControlsCount(); /** - * - * *
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @param index The index of the element to return. * @return The appliedControls at the given index. */ java.lang.String getAppliedControls(int index); /** - * - * *
    * Controls applied as part of the Control service.
    * 
* * repeated string applied_controls = 10; - * * @param index The index of the value to return. * @return The bytes of the appliedControls at the given index. */ - com.google.protobuf.ByteString getAppliedControlsBytes(int index); + com.google.protobuf.ByteString + getAppliedControlsBytes(int index); /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return Whether the queryExpansionInfo field is set. */ boolean hasQueryExpansionInfo(); /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; * @return The queryExpansionInfo. */ com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo getQueryExpansionInfo(); /** - * - * *
    * Query expansion information for the returned results.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * + * .google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14; */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder - getQueryExpansionInfoOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder(); } diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java new file mode 100644 index 000000000000..df18a8359a16 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java @@ -0,0 +1,504 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/search_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class SearchServiceProto { + private SearchServiceProto() {} + 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_discoveryengine_v1beta_SearchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1beta/se" + + "arch_service.proto\022#google.cloud.discove" + + "ryengine.v1beta\032\034google/api/annotations." + + "proto\032\027google/api/client.proto\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\0320google/cloud/discoveryengine" + + "/v1beta/common.proto\0322google/cloud/disco" + + "veryengine/v1beta/document.proto\032\034google" + + "/protobuf/struct.proto\"\231\032\n\rSearchRequest" + + "\022M\n\016serving_config\030\001 \001(\tB5\342A\001\002\372A.\n,disco" + + "veryengine.googleapis.com/ServingConfig\022" + + ":\n\006branch\030\002 \001(\tB*\372A\'\n%discoveryengine.go" + + "ogleapis.com/Branch\022\r\n\005query\030\003 \001(\t\022R\n\013im" + + "age_query\030\023 \001(\0132=.google.cloud.discovery" + + "engine.v1beta.SearchRequest.ImageQuery\022\021" + + "\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\022\016\n" + + "\006offset\030\006 \001(\005\022\016\n\006filter\030\007 \001(\t\022\020\n\010order_b" + + "y\030\010 \001(\t\022@\n\tuser_info\030\025 \001(\0132-.google.clou" + + "d.discoveryengine.v1beta.UserInfo\022Q\n\013fac" + + "et_specs\030\t \003(\0132<.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.FacetSpec\022P\n\n" + + "boost_spec\030\n \001(\0132<.google.cloud.discover" + + "yengine.v1beta.SearchRequest.BoostSpec\022N" + + "\n\006params\030\013 \003(\0132>.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.ParamsEntry\022c" + + "\n\024query_expansion_spec\030\r \001(\0132E.google.cl" + + "oud.discoveryengine.v1beta.SearchRequest" + + ".QueryExpansionSpec\022e\n\025spell_correction_" + + "spec\030\016 \001(\0132F.google.cloud.discoveryengin" + + "e.v1beta.SearchRequest.SpellCorrectionSp" + + "ec\022\026\n\016user_pseudo_id\030\017 \001(\t\022a\n\023content_se" + + "arch_spec\030\030 \001(\0132D.google.cloud.discovery" + + "engine.v1beta.SearchRequest.ContentSearc" + + "hSpec\022X\n\016embedding_spec\030\027 \001(\0132@.google.c" + + "loud.discoveryengine.v1beta.SearchReques" + + "t.EmbeddingSpec\022\032\n\022ranking_expression\030\032 " + + "\001(\t\022\023\n\013safe_search\030\024 \001(\010\022W\n\013user_labels\030" + + "\026 \003(\0132B.google.cloud.discoveryengine.v1b" + + "eta.SearchRequest.UserLabelsEntry\032,\n\nIma" + + "geQuery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032" + + "\206\003\n\tFacetSpec\022^\n\tfacet_key\030\001 \001(\0132E.googl" + + "e.cloud.discoveryengine.v1beta.SearchReq" + + "uest.FacetSpec.FacetKeyB\004\342A\001\002\022\r\n\005limit\030\002" + + " \001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n\027en" + + "able_dynamic_position\030\004 \001(\010\032\312\001\n\010FacetKey" + + "\022\021\n\003key\030\001 \001(\tB\004\342A\001\002\022@\n\tintervals\030\002 \003(\0132-" + + ".google.cloud.discoveryengine.v1beta.Int" + + "erval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010pref" + + "ixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030\n\020case_ins" + + "ensitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001(\t\032\263\001\n\tBoo" + + "stSpec\022n\n\025condition_boost_specs\030\001 \003(\0132O." + + "google.cloud.discoveryengine.v1beta.Sear" + + "chRequest.BoostSpec.ConditionBoostSpec\0326" + + "\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 \001(\t\022" + + "\r\n\005boost\030\002 \001(\002\032\330\001\n\022QueryExpansionSpec\022b\n" + + "\tcondition\030\001 \001(\0162O.google.cloud.discover" + + "yengine.v1beta.SearchRequest.QueryExpans" + + "ionSpec.Condition\022\036\n\026pin_unexpanded_resu" + + "lts\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION_UNSP" + + "ECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\255\001\n\023Sp" + + "ellCorrectionSpec\022Y\n\004mode\030\001 \001(\0162K.google" + + ".cloud.discoveryengine.v1beta.SearchRequ" + + "est.SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n\020" + + "MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001\022" + + "\010\n\004AUTO\020\002\032\266\006\n\021ContentSearchSpec\022f\n\014snipp" + + "et_spec\030\001 \001(\0132P.google.cloud.discoveryen" + + "gine.v1beta.SearchRequest.ContentSearchS" + + "pec.SnippetSpec\022f\n\014summary_spec\030\002 \001(\0132P." + + "google.cloud.discoveryengine.v1beta.Sear" + + "chRequest.ContentSearchSpec.SummarySpec\022" + + "{\n\027extractive_content_spec\030\003 \001(\0132Z.googl" + + "e.cloud.discoveryengine.v1beta.SearchReq" + + "uest.ContentSearchSpec.ExtractiveContent" + + "Spec\032`\n\013SnippetSpec\022\035\n\021max_snippet_count" + + "\030\001 \001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001\022\026" + + "\n\016return_snippet\030\003 \001(\010\032\251\001\n\013SummarySpec\022\034" + + "\n\024summary_result_count\030\001 \001(\005\022\031\n\021include_" + + "citations\030\002 \001(\010\022 \n\030ignore_adversarial_qu" + + "ery\030\003 \001(\010\022(\n ignore_non_summary_seeking_" + + "query\030\004 \001(\010\022\025\n\rlanguage_code\030\006 \001(\t\032\305\001\n\025E" + + "xtractiveContentSpec\022#\n\033max_extractive_a" + + "nswer_count\030\001 \001(\005\022$\n\034max_extractive_segm" + + "ent_count\030\002 \001(\005\022\'\n\037return_extractive_seg" + + "ment_score\030\003 \001(\010\022\035\n\025num_previous_segment" + + "s\030\004 \001(\005\022\031\n\021num_next_segments\030\005 \001(\005\032\263\001\n\rE" + + "mbeddingSpec\022k\n\021embedding_vectors\030\001 \003(\0132" + + "P.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.EmbeddingSpec.EmbeddingVecto" + + "r\0325\n\017EmbeddingVector\022\022\n\nfield_path\030\001 \001(\t" + + "\022\016\n\006vector\030\002 \003(\002\032E\n\013ParamsEntry\022\013\n\003key\030\001" + + " \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Va" + + "lue:\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"\343\017\n\016SearchResponse\022Q\n" + + "\007results\030\001 \003(\0132@.google.cloud.discoverye" + + "ngine.v1beta.SearchResponse.SearchResult" + + "\022I\n\006facets\030\002 \003(\01329.google.cloud.discover" + + "yengine.v1beta.SearchResponse.Facet\022d\n\024g" + + "uided_search_result\030\010 \001(\0132F.google.cloud" + + ".discoveryengine.v1beta.SearchResponse.G" + + "uidedSearchResult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n" + + "\021attribution_token\030\004 \001(\t\022\024\n\014redirect_uri" + + "\030\014 \001(\t\022\027\n\017next_page_token\030\005 \001(\t\022\027\n\017corre" + + "cted_query\030\007 \001(\t\022L\n\007summary\030\t \001(\0132;.goog" + + "le.cloud.discoveryengine.v1beta.SearchRe" + + "sponse.Summary\022\030\n\020applied_controls\030\n \003(\t" + + "\022d\n\024query_expansion_info\030\016 \001(\0132F.google." + + "cloud.discoveryengine.v1beta.SearchRespo" + + "nse.QueryExpansionInfo\032\251\002\n\014SearchResult\022" + + "\n\n\002id\030\001 \001(\t\022?\n\010document\030\002 \001(\0132-.google.c" + + "loud.discoveryengine.v1beta.Document\022g\n\014" + + "model_scores\030\004 \003(\0132Q.google.cloud.discov" + + "eryengine.v1beta.SearchResponse.SearchRe" + + "sult.ModelScoresEntry\032c\n\020ModelScoresEntr" + + "y\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.c" + + "loud.discoveryengine.v1beta.DoubleList:\002" + + "8\001\032\201\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006values\030\002 \003(" + + "\0132D.google.cloud.discoveryengine.v1beta." + + "SearchResponse.Facet.FacetValue\022\025\n\rdynam" + + "ic_facet\030\003 \001(\010\032~\n\nFacetValue\022\017\n\005value\030\001 " + + "\001(\tH\000\022A\n\010interval\030\002 \001(\0132-.google.cloud.d" + + "iscoveryengine.v1beta.IntervalH\000\022\r\n\005coun" + + "t\030\003 \001(\003B\r\n\013facet_value\032\363\001\n\022GuidedSearchR" + + "esult\022y\n\025refinement_attributes\030\001 \003(\0132Z.g" + + "oogle.cloud.discoveryengine.v1beta.Searc" + + "hResponse.GuidedSearchResult.RefinementA" + + "ttribute\022\033\n\023follow_up_questions\030\002 \003(\t\032E\n" + + "\023RefinementAttribute\022\025\n\rattribute_key\030\001 " + + "\001(\t\022\027\n\017attribute_value\030\002 \001(\t\032\226\004\n\007Summary" + + "\022\024\n\014summary_text\030\001 \001(\t\022q\n\027summary_skippe" + + "d_reasons\030\002 \003(\0162P.google.cloud.discovery" + + "engine.v1beta.SearchResponse.Summary.Sum" + + "marySkippedReason\022g\n\021safety_attributes\030\003" + + " \001(\0132L.google.cloud.discoveryengine.v1be" + + "ta.SearchResponse.Summary.SafetyAttribut" + + "es\0326\n\020SafetyAttributes\022\022\n\ncategories\030\001 \003" + + "(\t\022\016\n\006scores\030\002 \003(\002\"\340\001\n\024SummarySkippedRea" + + "son\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIFIE" + + "D\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!NO" + + "N_SUMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033OUT" + + "_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_" + + "POLICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_ENAB" + + "LED\020\005\032I\n\022QueryExpansionInfo\022\026\n\016expanded_" + + "query\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001(\003" + + "2\243\003\n\rSearchService\022\275\002\n\006Search\0222.google.c" + + "loud.discoveryengine.v1beta.SearchReques" + + "t\0323.google.cloud.discoveryengine.v1beta." + + "SearchResponse\"\311\001\202\323\344\223\002\302\001\"T/v1beta/{servi" + + "ng_config=projects/*/locations/*/dataSto" + + "res/*/servingConfigs/*}:search:\001*Zg\"b/v1" + + "beta/{serving_config=projects/*/location" + + "s/*/collections/*/dataStores/*/servingCo" + + "nfigs/*}:search:\001*\032R\312A\036discoveryengine.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\231\002\n\'com.google.cl" + + "oud.discoveryengine.v1betaB\022SearchServic" + + "eProtoP\001ZQcloud.google.com/go/discoverye" + + "ngine/apiv1beta/discoveryenginepb;discov" + + "eryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.C" + + "loud.DiscoveryEngine.V1Beta\312\002#Google\\Clo" + + "ud\\DiscoveryEngine\\V1beta\352\002&Google::Clou" + + "d::DiscoveryEngine::V1betab\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.discoveryengine.v1beta.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor, + new java.lang.String[] { "ServingConfig", "Branch", "Query", "ImageQuery", "PageSize", "PageToken", "Offset", "Filter", "OrderBy", "UserInfo", "FacetSpecs", "BoostSpec", "Params", "QueryExpansionSpec", "SpellCorrectionSpec", "UserPseudoId", "ContentSearchSpec", "EmbeddingSpec", "RankingExpression", "SafeSearch", "UserLabels", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor, + new java.lang.String[] { "ImageBytes", "Image", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor, + new java.lang.String[] { "FacetKey", "Limit", "ExcludedFilterKeys", "EnableDynamicPosition", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_FacetKey_descriptor, + new java.lang.String[] { "Key", "Intervals", "RestrictedValues", "Prefixes", "Contains", "CaseInsensitive", "OrderBy", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor, + new java.lang.String[] { "ConditionBoostSpecs", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_ConditionBoostSpec_descriptor, + new java.lang.String[] { "Condition", "Boost", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor, + new java.lang.String[] { "Condition", "PinUnexpandedResults", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor, + new java.lang.String[] { "Mode", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor, + new java.lang.String[] { "SnippetSpec", "SummarySpec", "ExtractiveContentSpec", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor, + new java.lang.String[] { "MaxSnippetCount", "ReferenceOnly", "ReturnSnippet", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor, + new java.lang.String[] { "SummaryResultCount", "IncludeCitations", "IgnoreAdversarialQuery", "IgnoreNonSummarySeekingQuery", "LanguageCode", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor, + new java.lang.String[] { "MaxExtractiveAnswerCount", "MaxExtractiveSegmentCount", "ReturnExtractiveSegmentScore", "NumPreviousSegments", "NumNextSegments", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor, + new java.lang.String[] { "EmbeddingVectors", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor, + new java.lang.String[] { "FieldPath", "Vector", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor, + new java.lang.String[] { "Results", "Facets", "GuidedSearchResult", "TotalSize", "AttributionToken", "RedirectUri", "NextPageToken", "CorrectedQuery", "Summary", "AppliedControls", "QueryExpansionInfo", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor, + new java.lang.String[] { "Id", "Document", "ModelScores", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor, + new java.lang.String[] { "Key", "Values", "DynamicFacet", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_FacetValue_descriptor, + new java.lang.String[] { "Value", "Interval", "Count", "FacetValue", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor, + new java.lang.String[] { "RefinementAttributes", "FollowUpQuestions", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GuidedSearchResult_RefinementAttribute_descriptor, + new java.lang.String[] { "AttributeKey", "AttributeValue", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor, + new java.lang.String[] { "SummaryText", "SummarySkippedReasons", "SafetyAttributes", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SafetyAttributes_descriptor, + new java.lang.String[] { "Categories", "Scores", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_QueryExpansionInfo_descriptor, + new java.lang.String[] { "ExpandedQuery", "PinnedResultCount", }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.DocumentProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java similarity index 67% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java index abf1e889ef8b..48da8d540794 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInput.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Defines text input.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.TextInput} */ -public final class TextInput extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextInput extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.TextInput) TextInputOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextInput.newBuilder() to construct. private TextInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextInput() { input_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextInput(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.TextInput.class, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder.class); + com.google.cloud.discoveryengine.v1beta.TextInput.class, com.google.cloud.discoveryengine.v1beta.TextInput.Builder.class); } public static final int INPUT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object input_ = ""; /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The input. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getInput() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); input_ = s; return s; } } /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The bytes for input. */ @java.lang.Override - public com.google.protobuf.ByteString getInputBytes() { + public com.google.protobuf.ByteString + getInputBytes() { java.lang.Object ref = input_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); input_ = b; return b; } else { @@ -116,14 +93,11 @@ public com.google.protobuf.ByteString getInputBytes() { public static final int CONTEXT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.ConversationContext context_; /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; - * * @return Whether the context field is set. */ @java.lang.Override @@ -131,25 +105,18 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; - * * @return The context. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ConversationContext getContext() { - return context_ == null - ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() : context_; } /** - * - * *
    * Conversation context of the input.
    * 
@@ -157,15 +124,11 @@ public com.google.cloud.discoveryengine.v1beta.ConversationContext getContext() * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder - getContextOrBuilder() { - return context_ == null - ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() - : context_; + public com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder getContextOrBuilder() { + return context_ == null ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() : context_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(input_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, input_); } @@ -197,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, input_); } if (context_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getContext()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,18 +172,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.discoveryengine.v1beta.TextInput)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.TextInput other = - (com.google.cloud.discoveryengine.v1beta.TextInput) obj; + com.google.cloud.discoveryengine.v1beta.TextInput other = (com.google.cloud.discoveryengine.v1beta.TextInput) obj; - if (!getInput().equals(other.getInput())) return false; + if (!getInput() + .equals(other.getInput())) return false; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext().equals(other.getContext())) return false; + if (!getContext() + .equals(other.getContext())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -243,135 +209,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.TextInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.TextInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.TextInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.TextInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput 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.discoveryengine.v1beta.TextInput 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; } /** - * - * *
    * Defines text input.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.TextInput} */ - 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.discoveryengine.v1beta.TextInput) com.google.cloud.discoveryengine.v1beta.TextInputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_TextInput_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.TextInput.class, - com.google.cloud.discoveryengine.v1beta.TextInput.Builder.class); + com.google.cloud.discoveryengine.v1beta.TextInput.class, com.google.cloud.discoveryengine.v1beta.TextInput.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.TextInput.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationProto - .internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationProto.internal_static_google_cloud_discoveryengine_v1beta_TextInput_descriptor; } @java.lang.Override @@ -407,11 +369,8 @@ public com.google.cloud.discoveryengine.v1beta.TextInput build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TextInput buildPartial() { - com.google.cloud.discoveryengine.v1beta.TextInput result = - new com.google.cloud.discoveryengine.v1beta.TextInput(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.TextInput result = new com.google.cloud.discoveryengine.v1beta.TextInput(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -422,7 +381,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.TextInput res result.input_ = input_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); } } @@ -430,39 +391,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.TextInput res 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.discoveryengine.v1beta.TextInput) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.TextInput) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.TextInput)other); } else { super.mergeFrom(other); return this; @@ -470,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.TextInput other) { - if (other == com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.TextInput.getDefaultInstance()) return this; if (!other.getInput().isEmpty()) { input_ = other.input_; bitField0_ |= 0x00000001; @@ -506,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,25 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object input_ = ""; /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @return The input. */ public java.lang.String getInput() { java.lang.Object ref = input_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); input_ = s; return s; @@ -561,21 +516,20 @@ public java.lang.String getInput() { } } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @return The bytes for input. */ - public com.google.protobuf.ByteString getInputBytes() { + public com.google.protobuf.ByteString + getInputBytes() { java.lang.Object ref = input_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); input_ = b; return b; } else { @@ -583,35 +537,28 @@ public com.google.protobuf.ByteString getInputBytes() { } } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @param value The input to set. * @return This builder for chaining. */ - public Builder setInput(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInput( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } input_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @return This builder for chaining. */ public Builder clearInput() { @@ -621,21 +568,17 @@ public Builder clearInput() { return this; } /** - * - * *
      * Text input.
      * 
* * string input = 1; - * * @param value The bytes for input to set. * @return This builder for chaining. */ - public Builder setInputBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInputBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); input_ = value; bitField0_ |= 0x00000001; @@ -645,47 +588,34 @@ public Builder setInputBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.ConversationContext context_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ConversationContext, - com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder> - contextBuilder_; + com.google.cloud.discoveryengine.v1beta.ConversationContext, com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder, com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder> contextBuilder_; /** - * - * *
      * Conversation context of the input.
      * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; - * * @return Whether the context field is set. */ public boolean hasContext() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Conversation context of the input.
      * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; - * * @return The context. */ public com.google.cloud.discoveryengine.v1beta.ConversationContext getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * Conversation context of the input.
      * 
@@ -706,8 +636,6 @@ public Builder setContext(com.google.cloud.discoveryengine.v1beta.ConversationCo return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -726,8 +654,6 @@ public Builder setContext( return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -736,11 +662,9 @@ public Builder setContext( */ public Builder mergeContext(com.google.cloud.discoveryengine.v1beta.ConversationContext value) { if (contextBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && context_ != null - && context_ - != com.google.cloud.discoveryengine.v1beta.ConversationContext - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + context_ != null && + context_ != com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance()) { getContextBuilder().mergeFrom(value); } else { context_ = value; @@ -753,8 +677,6 @@ public Builder mergeContext(com.google.cloud.discoveryengine.v1beta.Conversation return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -772,8 +694,6 @@ public Builder clearContext() { return this; } /** - * - * *
      * Conversation context of the input.
      * 
@@ -786,27 +706,21 @@ public com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder getCo return getContextFieldBuilder().getBuilder(); } /** - * - * *
      * Conversation context of the input.
      * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; */ - public com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder - getContextOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { - return context_ == null - ? com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() - : context_; + return context_ == null ? + com.google.cloud.discoveryengine.v1beta.ConversationContext.getDefaultInstance() : context_; } } /** - * - * *
      * Conversation context of the input.
      * 
@@ -814,24 +728,21 @@ public com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder getCo * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ConversationContext, - com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder> + com.google.cloud.discoveryengine.v1beta.ConversationContext, com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder, com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { - contextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.ConversationContext, - com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder>( - getContext(), getParentForChildren(), isClean()); + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ConversationContext, com.google.cloud.discoveryengine.v1beta.ConversationContext.Builder, com.google.cloud.discoveryengine.v1beta.ConversationContextOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); context_ = null; } return contextBuilder_; } - @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); } @@ -841,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.TextInput) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.TextInput) private static final com.google.cloud.discoveryengine.v1beta.TextInput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.TextInput(); } @@ -855,27 +766,27 @@ public static com.google.cloud.discoveryengine.v1beta.TextInput getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -890,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.TextInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java index ee75bd6b7684..d3077663b887 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TextInputOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversation.proto package com.google.cloud.discoveryengine.v1beta; -public interface TextInputOrBuilder - extends +public interface TextInputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.TextInput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The input. */ java.lang.String getInput(); /** - * - * *
    * Text input.
    * 
* * string input = 1; - * * @return The bytes for input. */ - com.google.protobuf.ByteString getInputBytes(); + com.google.protobuf.ByteString + getInputBytes(); /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; - * * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * Conversation context of the input.
    * 
* * .google.cloud.discoveryengine.v1beta.ConversationContext context = 2; - * * @return The context. */ com.google.cloud.discoveryengine.v1beta.ConversationContext getContext(); /** - * - * *
    * Conversation context of the input.
    * 
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java similarity index 78% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java index ee56e770c1e0..1d252b8ac6ff 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * A transaction represents the entire purchase transaction.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.TransactionInfo} */ -public final class TransactionInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.TransactionInfo) TransactionInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionInfo.newBuilder() to construct. private TransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransactionInfo() { currency_ = ""; transactionId_ = ""; @@ -44,31 +26,28 @@ private TransactionInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.TransactionInfo.class, - com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.TransactionInfo.class, com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private float value_ = 0F; /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -76,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the value field is set. */ @java.lang.Override @@ -84,8 +62,6 @@ public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -93,7 +69,6 @@ public boolean hasValue() {
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -102,18 +77,14 @@ public float getValue() { } public static final int CURRENCY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object currency_ = ""; /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currency. */ @java.lang.Override @@ -122,29 +93,29 @@ public java.lang.String getCurrency() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } } /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currency. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyBytes() { + public com.google.protobuf.ByteString + getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currency_ = b; return b; } else { @@ -153,18 +124,14 @@ public com.google.protobuf.ByteString getCurrencyBytes() { } public static final int TRANSACTION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The transactionId. */ @java.lang.Override @@ -173,29 +140,29 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -206,14 +173,11 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { public static final int TAX_FIELD_NUMBER = 4; private float tax_ = 0F; /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return Whether the tax field is set. */ @java.lang.Override @@ -221,14 +185,11 @@ public boolean hasTax() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return The tax. */ @java.lang.Override @@ -239,8 +200,6 @@ public float getTax() { public static final int COST_FIELD_NUMBER = 5; private float cost_ = 0F; /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -253,7 +212,6 @@ public float getTax() {
    * 
* * optional float cost = 5; - * * @return Whether the cost field is set. */ @java.lang.Override @@ -261,8 +219,6 @@ public boolean hasCost() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -275,7 +231,6 @@ public boolean hasCost() {
    * 
* * optional float cost = 5; - * * @return The cost. */ @java.lang.Override @@ -286,8 +241,6 @@ public float getCost() { public static final int DISCOUNT_VALUE_FIELD_NUMBER = 6; private float discountValue_ = 0F; /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -313,7 +266,6 @@ public float getCost() {
    * 
* * optional float discount_value = 6; - * * @return Whether the discountValue field is set. */ @java.lang.Override @@ -321,8 +273,6 @@ public boolean hasDiscountValue() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -348,7 +298,6 @@ public boolean hasDiscountValue() {
    * 
* * optional float discount_value = 6; - * * @return The discountValue. */ @java.lang.Override @@ -357,7 +306,6 @@ public float getDiscountValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,7 +317,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 (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, value_); } @@ -398,7 +347,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, value_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currency_); @@ -407,13 +357,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, tax_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, tax_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, cost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, cost_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, discountValue_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, discountValue_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -423,35 +376,40 @@ 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.discoveryengine.v1beta.TransactionInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.TransactionInfo other = - (com.google.cloud.discoveryengine.v1beta.TransactionInfo) obj; + com.google.cloud.discoveryengine.v1beta.TransactionInfo other = (com.google.cloud.discoveryengine.v1beta.TransactionInfo) obj; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (java.lang.Float.floatToIntBits(getValue()) - != java.lang.Float.floatToIntBits(other.getValue())) return false; + != java.lang.Float.floatToIntBits( + other.getValue())) return false; } - if (!getCurrency().equals(other.getCurrency())) return false; - if (!getTransactionId().equals(other.getTransactionId())) return false; + if (!getCurrency() + .equals(other.getCurrency())) return false; + if (!getTransactionId() + .equals(other.getTransactionId())) return false; if (hasTax() != other.hasTax()) return false; if (hasTax()) { if (java.lang.Float.floatToIntBits(getTax()) - != java.lang.Float.floatToIntBits(other.getTax())) return false; + != java.lang.Float.floatToIntBits( + other.getTax())) return false; } if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (java.lang.Float.floatToIntBits(getCost()) - != java.lang.Float.floatToIntBits(other.getCost())) return false; + != java.lang.Float.floatToIntBits( + other.getCost())) return false; } if (hasDiscountValue() != other.hasDiscountValue()) return false; if (hasDiscountValue()) { if (java.lang.Float.floatToIntBits(getDiscountValue()) - != java.lang.Float.floatToIntBits(other.getDiscountValue())) return false; + != java.lang.Float.floatToIntBits( + other.getDiscountValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -466,7 +424,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getValue()); } hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); @@ -474,15 +433,18 @@ public int hashCode() { hash = (53 * hash) + getTransactionId().hashCode(); if (hasTax()) { hash = (37 * hash) + TAX_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTax()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTax()); } if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getCost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getCost()); } if (hasDiscountValue()) { hash = (37 * hash) + DISCOUNT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDiscountValue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDiscountValue()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -490,136 +452,131 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.TransactionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.TransactionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.TransactionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.TransactionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.TransactionInfo 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.discoveryengine.v1beta.TransactionInfo} */ - 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.discoveryengine.v1beta.TransactionInfo) com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.TransactionInfo.class, - com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.TransactionInfo.class, com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.TransactionInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +591,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; } @java.lang.Override @@ -655,11 +612,8 @@ public com.google.cloud.discoveryengine.v1beta.TransactionInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TransactionInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.TransactionInfo result = - new com.google.cloud.discoveryengine.v1beta.TransactionInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.TransactionInfo result = new com.google.cloud.discoveryengine.v1beta.TransactionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -696,39 +650,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.TransactionIn 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.discoveryengine.v1beta.TransactionInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.TransactionInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.TransactionInfo)other); } else { super.mergeFrom(other); return this; @@ -736,8 +689,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.TransactionInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } @@ -786,49 +738,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - value_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: - { - currency_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - tax_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 45: - { - cost_ = input.readFloat(); - bitField0_ |= 0x00000010; - break; - } // case 45 - case 53: - { - discountValue_ = input.readFloat(); - bitField0_ |= 0x00000020; - break; - } // case 53 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + value_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + currency_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + tax_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 45: { + cost_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 45 + case 53: { + discountValue_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 53 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -838,13 +783,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float value_; + private float value_ ; /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -852,7 +794,6 @@ public Builder mergeFrom(
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the value field is set. */ @java.lang.Override @@ -860,8 +801,6 @@ public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -869,7 +808,6 @@ public boolean hasValue() {
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -877,8 +815,6 @@ public float getValue() { return value_; } /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -886,7 +822,6 @@ public float getValue() {
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ @@ -898,8 +833,6 @@ public Builder setValue(float value) { return this; } /** - * - * *
      * Required. Total non-zero value associated with the transaction. This value
      * may include shipping, tax, or other adjustments to the total value that you
@@ -907,7 +840,6 @@ public Builder setValue(float value) {
      * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -919,20 +851,18 @@ public Builder clearValue() { private java.lang.Object currency_ = ""; /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; @@ -941,21 +871,20 @@ public java.lang.String getCurrency() { } } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currency. */ - public com.google.protobuf.ByteString getCurrencyBytes() { + public com.google.protobuf.ByteString + getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currency_ = b; return b; } else { @@ -963,35 +892,28 @@ public com.google.protobuf.ByteString getCurrencyBytes() { } } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The currency to set. * @return This builder for chaining. */ - public Builder setCurrency(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrency( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } currency_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCurrency() { @@ -1001,21 +923,17 @@ public Builder clearCurrency() { return this; } /** - * - * *
      * Required. Currency code. Use three-character ISO-4217 code.
      * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for currency to set. * @return This builder for chaining. */ - public Builder setCurrencyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; bitField0_ |= 0x00000002; @@ -1025,20 +943,18 @@ public Builder setCurrencyBytes(com.google.protobuf.ByteString value) { private java.lang.Object transactionId_ = ""; /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -1047,21 +963,20 @@ public java.lang.String getTransactionId() { } } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -1069,35 +984,28 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -1107,21 +1015,17 @@ public Builder clearTransactionId() { return this; } /** - * - * *
      * The transaction ID with a length limit of 128 characters.
      * 
* * string transaction_id = 3; - * * @param value The bytes for transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000004; @@ -1129,16 +1033,13 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { return this; } - private float tax_; + private float tax_ ; /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @return Whether the tax field is set. */ @java.lang.Override @@ -1146,14 +1047,11 @@ public boolean hasTax() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @return The tax. */ @java.lang.Override @@ -1161,14 +1059,11 @@ public float getTax() { return tax_; } /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @param value The tax to set. * @return This builder for chaining. */ @@ -1180,14 +1075,11 @@ public Builder setTax(float value) { return this; } /** - * - * *
      * All the taxes associated with the transaction.
      * 
* * optional float tax = 4; - * * @return This builder for chaining. */ public Builder clearTax() { @@ -1197,10 +1089,8 @@ public Builder clearTax() { return this; } - private float cost_; + private float cost_ ; /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1213,7 +1103,6 @@ public Builder clearTax() {
      * 
* * optional float cost = 5; - * * @return Whether the cost field is set. */ @java.lang.Override @@ -1221,8 +1110,6 @@ public boolean hasCost() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1235,7 +1122,6 @@ public boolean hasCost() {
      * 
* * optional float cost = 5; - * * @return The cost. */ @java.lang.Override @@ -1243,8 +1129,6 @@ public float getCost() { return cost_; } /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1257,7 +1141,6 @@ public float getCost() {
      * 
* * optional float cost = 5; - * * @param value The cost to set. * @return This builder for chaining. */ @@ -1269,8 +1152,6 @@ public Builder setCost(float value) { return this; } /** - * - * *
      * All the costs associated with the products. These can be manufacturing
      * costs, shipping expenses not borne by the end user, or any other costs,
@@ -1283,7 +1164,6 @@ public Builder setCost(float value) {
      * 
* * optional float cost = 5; - * * @return This builder for chaining. */ public Builder clearCost() { @@ -1293,10 +1173,8 @@ public Builder clearCost() { return this; } - private float discountValue_; + private float discountValue_ ; /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1322,7 +1200,6 @@ public Builder clearCost() {
      * 
* * optional float discount_value = 6; - * * @return Whether the discountValue field is set. */ @java.lang.Override @@ -1330,8 +1207,6 @@ public boolean hasDiscountValue() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1357,7 +1232,6 @@ public boolean hasDiscountValue() {
      * 
* * optional float discount_value = 6; - * * @return The discountValue. */ @java.lang.Override @@ -1365,8 +1239,6 @@ public float getDiscountValue() { return discountValue_; } /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1392,7 +1264,6 @@ public float getDiscountValue() {
      * 
* * optional float discount_value = 6; - * * @param value The discountValue to set. * @return This builder for chaining. */ @@ -1404,8 +1275,6 @@ public Builder setDiscountValue(float value) { return this; } /** - * - * *
      * The total discount(s) value applied to this transaction.
      * This figure should be excluded from
@@ -1431,7 +1300,6 @@ public Builder setDiscountValue(float value) {
      * 
* * optional float discount_value = 6; - * * @return This builder for chaining. */ public Builder clearDiscountValue() { @@ -1440,9 +1308,9 @@ public Builder clearDiscountValue() { 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); } @@ -1452,12 +1320,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.TransactionInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.TransactionInfo) private static final com.google.cloud.discoveryengine.v1beta.TransactionInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.TransactionInfo(); } @@ -1466,27 +1334,27 @@ public static com.google.cloud.discoveryengine.v1beta.TransactionInfo getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1501,4 +1369,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.TransactionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java similarity index 86% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java index df31c3f59735..0a18454d2606 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TransactionInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface TransactionInfoOrBuilder - extends +public interface TransactionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.TransactionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -33,13 +15,10 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * *
    * Required. Total non-zero value associated with the transaction. This value
    * may include shipping, tax, or other adjustments to the total value that you
@@ -47,89 +26,70 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ float getValue(); /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currency. */ java.lang.String getCurrency(); /** - * - * *
    * Required. Currency code. Use three-character ISO-4217 code.
    * 
* * string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currency. */ - com.google.protobuf.ByteString getCurrencyBytes(); + com.google.protobuf.ByteString + getCurrencyBytes(); /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The transactionId. */ java.lang.String getTransactionId(); /** - * - * *
    * The transaction ID with a length limit of 128 characters.
    * 
* * string transaction_id = 3; - * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString getTransactionIdBytes(); + com.google.protobuf.ByteString + getTransactionIdBytes(); /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return Whether the tax field is set. */ boolean hasTax(); /** - * - * *
    * All the taxes associated with the transaction.
    * 
* * optional float tax = 4; - * * @return The tax. */ float getTax(); /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -142,13 +102,10 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float cost = 5; - * * @return Whether the cost field is set. */ boolean hasCost(); /** - * - * *
    * All the costs associated with the products. These can be manufacturing
    * costs, shipping expenses not borne by the end user, or any other costs,
@@ -161,14 +118,11 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float cost = 5; - * * @return The cost. */ float getCost(); /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -194,13 +148,10 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float discount_value = 6; - * * @return Whether the discountValue field is set. */ boolean hasDiscountValue(); /** - * - * *
    * The total discount(s) value applied to this transaction.
    * This figure should be excluded from
@@ -226,7 +177,6 @@ public interface TransactionInfoOrBuilder
    * 
* * optional float discount_value = 6; - * * @return The discountValue. */ float getDiscountValue(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java similarity index 64% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java index 8d1d687c5901..57972e0058eb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequest.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request for UpdateConversation method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateConversationRequest} */ -public final class UpdateConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateConversationRequest) UpdateConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateConversationRequest.newBuilder() to construct. private UpdateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateConversationRequest() {} + private UpdateConversationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConversationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.class, com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.Builder.class); } public static final int CONVERSATION_FIELD_NUMBER = 1; private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ @java.lang.Override @@ -80,47 +57,32 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -132,7 +94,6 @@ public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversa
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -140,8 +101,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -153,7 +112,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -161,8 +119,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -181,7 +137,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -193,7 +148,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 (conversation_ != null) {
       output.writeMessage(1, getConversation());
     }
@@ -210,10 +166,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (conversation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getConversation());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -223,21 +181,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.discoveryengine.v1beta.UpdateConversationRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest other =
-        (com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest) obj;
+    com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest other = (com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest) obj;
 
     if (hasConversation() != other.hasConversation()) return false;
     if (hasConversation()) {
-      if (!getConversation().equals(other.getConversation())) return false;
+      if (!getConversation()
+          .equals(other.getConversation())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -264,138 +223,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest 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.discoveryengine.v1beta.UpdateConversationRequest 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.discoveryengine.v1beta.UpdateConversationRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest 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.discoveryengine.v1beta.UpdateConversationRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest 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.discoveryengine.v1beta.UpdateConversationRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
-  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest 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.discoveryengine.v1beta.UpdateConversationRequest 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.discoveryengine.v1beta.UpdateConversationRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest 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 for UpdateConversation method.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateConversationRequest} */ - 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.discoveryengine.v1beta.UpdateConversationRequest) com.google.cloud.discoveryengine.v1beta.UpdateConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.class, - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.class, com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +366,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateConversationRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.getDefaultInstance(); } @@ -436,24 +387,23 @@ public com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest build() @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest result = - new com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest result = new com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.conversation_ = - conversationBuilder_ == null ? conversation_ : conversationBuilder_.build(); + result.conversation_ = conversationBuilder_ == null + ? conversation_ + : conversationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -461,50 +411,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest.getDefaultInstance()) return this; if (other.hasConversation()) { mergeConversation(other.getConversation()); } @@ -537,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConversationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,63 +512,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.discoveryengine.v1beta.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ public boolean hasConversation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ public com.google.cloud.discoveryengine.v1beta.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation(com.google.cloud.discoveryengine.v1beta.Conversation value) { if (conversationBuilder_ == null) { @@ -637,15 +564,11 @@ public Builder setConversation(com.google.cloud.discoveryengine.v1beta.Conversat return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation( com.google.cloud.discoveryengine.v1beta.Conversation.Builder builderForValue) { @@ -659,22 +582,17 @@ public Builder setConversation( return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Conversation value) { if (conversationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && conversation_ != null - && conversation_ - != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + conversation_ != null && + conversation_ != com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance()) { getConversationBuilder().mergeFrom(value); } else { conversation_ = value; @@ -687,15 +605,11 @@ public Builder mergeConversation(com.google.cloud.discoveryengine.v1beta.Convers return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConversation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -708,15 +622,11 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversationBuilder() { bitField0_ |= 0x00000001; @@ -724,49 +634,36 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder - getConversationOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.discoveryengine.v1beta.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Required. The Conversation to update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Conversation, - com.google.cloud.discoveryengine.v1beta.Conversation.Builder, - com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Conversation, com.google.cloud.discoveryengine.v1beta.Conversation.Builder, com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; @@ -774,13 +671,8 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat 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_; /** - * - * *
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -792,15 +684,12 @@ public com.google.cloud.discoveryengine.v1beta.Conversation.Builder getConversat
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -812,21 +701,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -853,8 +737,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -867,7 +749,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -878,8 +761,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -894,9 +775,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -909,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -934,8 +813,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -954,8 +831,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -972,14 +847,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_;
       }
     }
     /**
-     *
-     *
      * 
      * Indicates which fields in the provided
      * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -993,24 +865,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1020,43 +889,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateConversationRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateConversationRequest)
-  private static final com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest();
   }
 
-  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest
-      getDefaultInstance() {
+  public static com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateConversationRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateConversationRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1068,8 +935,9 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java
similarity index 65%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java
index aa679a8ce01f..b84bd07c8686 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateConversationRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface UpdateConversationRequestOrBuilder
-    extends
+public interface UpdateConversationRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateConversationRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ com.google.cloud.discoveryengine.v1beta.Conversation getConversation(); /** - * - * *
    * Required. The Conversation to update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.ConversationOrBuilder getConversationOrBuilder(); /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -78,13 +46,10 @@ public interface UpdateConversationRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
@@ -96,13 +61,10 @@ public interface UpdateConversationRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Indicates which fields in the provided
    * [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update.
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java
similarity index 68%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java
index 1b28b3528b18..12c442b86f30 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/document_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Request message for
  * [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1beta.DocumentService.UpdateDocument]
@@ -29,44 +12,41 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateDocumentRequest}
  */
-public final class UpdateDocumentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateDocumentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateDocumentRequest)
     UpdateDocumentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateDocumentRequest.newBuilder() to construct.
   private UpdateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateDocumentRequest() {}
+  private UpdateDocumentRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateDocumentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.class,
-            com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.Builder.class);
   }
 
   public static final int DOCUMENT_FIELD_NUMBER = 1;
   private com.google.cloud.discoveryengine.v1beta.Document document_;
   /**
-   *
-   *
    * 
    * Required. The document to update/create.
    *
@@ -80,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -91,8 +68,6 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The document to update/create.
    *
@@ -106,21 +81,14 @@ public boolean hasDocument() {
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Document getDocument() { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The document to update/create.
    *
@@ -134,22 +102,16 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocument() {
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 2; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the
    * [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a
@@ -158,7 +120,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
    * 
* * bool allow_missing = 2; - * * @return The allowMissing. */ @java.lang.Override @@ -167,7 +128,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +139,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 (document_ != null) { output.writeMessage(1, getDocument()); } @@ -196,10 +157,12 @@ public int getSerializedSize() { size = 0; if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocument()); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -209,19 +172,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.discoveryengine.v1beta.UpdateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest other = - (com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) obj; + com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest other = (com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,111 +202,106 @@ public int hashCode() { hash = (53 * hash) + getDocument().hashCode(); } hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest 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.discoveryengine.v1beta.UpdateDocumentRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest 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
    * [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1beta.DocumentService.UpdateDocument]
@@ -351,32 +310,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateDocumentRequest}
    */
-  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.discoveryengine.v1beta.UpdateDocumentRequest)
       com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.class,
-              com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.class, com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -391,14 +351,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.DocumentServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateDocumentRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest getDefaultInstanceForType() {
       return com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.getDefaultInstance();
     }
 
@@ -413,20 +372,18 @@ public com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest result =
-          new com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest result = new com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest result) {
+    private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build();
+        result.document_ = documentBuilder_ == null
+            ? document_
+            : documentBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.allowMissing_ = allowMissing_;
@@ -437,39 +394,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -477,9 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest other) {
-      if (other
-          == com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.getDefaultInstance()) return this;
       if (other.hasDocument()) {
         mergeDocument(other.getDocument());
       }
@@ -512,25 +466,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getDocumentFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getDocumentFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -540,18 +493,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.discoveryengine.v1beta.Document document_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Document,
-            com.google.cloud.discoveryengine.v1beta.Document.Builder,
-            com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>
-        documentBuilder_;
+        com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> documentBuilder_;
     /**
-     *
-     *
      * 
      * Required. The document to update/create.
      *
@@ -565,18 +512,13 @@ public Builder mergeFrom(
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ public boolean hasDocument() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The document to update/create.
      *
@@ -590,24 +532,17 @@ public boolean hasDocument() {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.discoveryengine.v1beta.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The document to update/create.
      *
@@ -621,9 +556,7 @@ public com.google.cloud.discoveryengine.v1beta.Document getDocument() {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document value) { if (documentBuilder_ == null) { @@ -639,8 +572,6 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document valu return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -654,9 +585,7 @@ public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document valu
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument( com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { @@ -670,8 +599,6 @@ public Builder setDocument( return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -685,15 +612,13 @@ public Builder setDocument(
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document value) { if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && document_ != null - && document_ != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + document_ != null && + document_ != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) { getDocumentBuilder().mergeFrom(value); } else { document_ = value; @@ -706,8 +631,6 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document va return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -721,9 +644,7 @@ public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document va
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { bitField0_ = (bitField0_ & ~0x00000001); @@ -736,8 +657,6 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The document to update/create.
      *
@@ -751,9 +670,7 @@ public Builder clearDocument() {
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuilder() { bitField0_ |= 0x00000001; @@ -761,8 +678,6 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuild return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document to update/create.
      *
@@ -776,22 +691,17 @@ public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuild
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The document to update/create.
      *
@@ -805,31 +715,24 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
      * is not set, a `NOT_FOUND` error is returned.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Document, com.google.cloud.discoveryengine.v1beta.Document.Builder, com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the
      * [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a
@@ -838,7 +741,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu
      * 
* * bool allow_missing = 2; - * * @return The allowMissing. */ @java.lang.Override @@ -846,8 +748,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the
      * [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a
@@ -856,7 +756,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 2; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -868,8 +767,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * If set to true, and the
      * [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a
@@ -878,7 +775,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 2; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -887,9 +783,9 @@ public Builder clearAllowMissing() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,13 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) - private static final com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest(); } @@ -914,27 +809,27 @@ public static com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +844,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java similarity index 69% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java index 9fd8306664ee..823c28659578 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateDocumentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/document_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface UpdateDocumentRequestOrBuilder - extends +public interface UpdateDocumentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateDocumentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The document to update/create.
    *
@@ -39,16 +21,11 @@ public interface UpdateDocumentRequestOrBuilder
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
    * Required. The document to update/create.
    *
@@ -62,16 +39,11 @@ public interface UpdateDocumentRequestOrBuilder
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ com.google.cloud.discoveryengine.v1beta.Document getDocument(); /** - * - * *
    * Required. The document to update/create.
    *
@@ -85,15 +57,11 @@ public interface UpdateDocumentRequestOrBuilder
    * is not set, a `NOT_FOUND` error is returned.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder(); /** - * - * *
    * If set to true, and the
    * [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a
@@ -102,7 +70,6 @@ public interface UpdateDocumentRequestOrBuilder
    * 
* * bool allow_missing = 2; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java similarity index 68% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java index 760da77f0bcb..90951bdf2284 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadata.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Metadata for UpdateSchema LRO.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata} */ -public final class UpdateSchemaMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSchemaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata) UpdateSchemaMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSchemaMetadata.newBuilder() to construct. private UpdateSchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSchemaMetadata() {} + private UpdateSchemaMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSchemaMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.class, com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -78,14 +57,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Operation create time.
    * 
@@ -109,15 +83,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; 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 = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -125,15 +96,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 = 2; - * * @return The updateTime. */ @java.lang.Override @@ -141,8 +109,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.
@@ -156,7 +122,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -168,7 +133,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (createTime_ != null) {
       output.writeMessage(1, getCreateTime());
     }
@@ -185,10 +151,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -198,21 +166,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.discoveryengine.v1beta.UpdateSchemaMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata other =
-        (com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata) obj;
+    com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata other = (com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata) obj;
 
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -239,136 +208,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata 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.discoveryengine.v1beta.UpdateSchemaMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata for UpdateSchema LRO.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata} */ - 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.discoveryengine.v1beta.UpdateSchemaMetadata) com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.class, - com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.Builder.class); + com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.class, com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,14 +351,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaMetadata_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.getDefaultInstance(); } @@ -409,23 +372,23 @@ public com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata buildPartial() { - com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata result = - new com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata result = new com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -433,39 +396,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata)other); } else { super.mergeFrom(other); return this; @@ -473,9 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata other) { - if (other - == com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -508,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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.
      * 
@@ -602,15 +549,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -621,8 +567,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Operation create time.
      * 
@@ -631,9 +575,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -646,8 +590,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -665,8 +607,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Operation create time.
      * 
@@ -679,8 +619,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Operation create time.
      * 
@@ -691,14 +629,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.
      * 
@@ -706,17 +641,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -724,49 +656,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Operation last update time. If the operation is done, this is also the
      * finish time.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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.
@@ -788,8 +707,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.
@@ -797,7 +714,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 2;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
       } else {
@@ -808,8 +726,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.
@@ -819,9 +735,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateTime_ != null
-            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateTime_ != null &&
+          updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdateTimeBuilder().mergeFrom(value);
         } else {
           updateTime_ = value;
@@ -834,8 +750,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.
@@ -854,8 +768,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -869,8 +781,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Operation last update time. If the operation is done, this is also the
      * finish time.
@@ -882,14 +792,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.
@@ -898,24 +805,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_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> 
         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);
     }
 
@@ -925,13 +829,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata)
-  private static final com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata();
   }
@@ -940,27 +843,27 @@ public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateSchemaMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateSchemaMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -975,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java
similarity index 70%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java
index 1214d43bf1ca..2b5fe6230d50 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaMetadataOrBuilder.java
@@ -1,55 +1,31 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
-public interface UpdateSchemaMetadataOrBuilder
-    extends
+public interface UpdateSchemaMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Operation create time.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Operation create time.
    * 
@@ -59,34 +35,26 @@ public interface UpdateSchemaMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Operation last update time. If the operation is done, this is also the
    * finish time.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @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 = 2; - * * @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/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java
similarity index 64%
rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java
rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java
index a1fe7c08361b..85d1c47ad225 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java
+++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/discoveryengine/v1beta/schema_service.proto
 
 package com.google.cloud.discoveryengine.v1beta;
 
 /**
- *
- *
  * 
  * Request message for
  * [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1beta.SchemaService.UpdateSchema]
@@ -29,53 +12,47 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSchemaRequest}
  */
-public final class UpdateSchemaRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateSchemaRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateSchemaRequest)
     UpdateSchemaRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateSchemaRequest.newBuilder() to construct.
   private UpdateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateSchemaRequest() {}
+  private UpdateSchemaRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateSchemaRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-        .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.class,
-            com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.Builder.class);
   }
 
   public static final int SCHEMA_FIELD_NUMBER = 1;
   private com.google.cloud.discoveryengine.v1beta.Schema schema_;
   /**
-   *
-   *
    * 
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ @java.lang.Override @@ -83,49 +60,34 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.Schema getSchema() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilder() { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the
    * [Schema][google.cloud.discoveryengine.v1beta.Schema] is not found, a new
@@ -134,7 +96,6 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilde
    * 
* * bool allow_missing = 3; - * * @return The allowMissing. */ @java.lang.Override @@ -143,7 +104,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +115,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 (schema_ != null) { output.writeMessage(1, getSchema()); } @@ -172,10 +133,12 @@ public int getSerializedSize() { size = 0; if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchema()); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,19 +148,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.discoveryengine.v1beta.UpdateSchemaRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest other = - (com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) obj; + com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest other = (com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) obj; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; } - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,111 +178,106 @@ public int hashCode() { hash = (53 * hash) + getSchema().hashCode(); } hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest 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.discoveryengine.v1beta.UpdateSchemaRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest 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
    * [SchemaService.UpdateSchema][google.cloud.discoveryengine.v1beta.SchemaService.UpdateSchema]
@@ -327,32 +286,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateSchemaRequest}
    */
-  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.discoveryengine.v1beta.UpdateSchemaRequest)
       com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.class,
-              com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.class, com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -367,9 +327,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.SchemaServiceProto.internal_static_google_cloud_discoveryengine_v1beta_UpdateSchemaRequest_descriptor;
     }
 
     @java.lang.Override
@@ -388,11 +348,8 @@ public com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest result =
-          new com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest result = new com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -400,7 +357,9 @@ public com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest buildPartial(
     private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build();
+        result.schema_ = schemaBuilder_ == null
+            ? schema_
+            : schemaBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.allowMissing_ = allowMissing_;
@@ -411,39 +370,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UpdateSchemaR
     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.discoveryengine.v1beta.UpdateSchemaRequest) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest.getDefaultInstance()) return this;
       if (other.hasSchema()) {
         mergeSchema(other.getSchema());
       }
@@ -485,25 +442,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -513,66 +469,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.discoveryengine.v1beta.Schema schema_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.Schema,
-            com.google.cloud.discoveryengine.v1beta.Schema.Builder,
-            com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>
-        schemaBuilder_;
+        com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> schemaBuilder_;
     /**
-     *
-     *
      * 
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ public com.google.cloud.discoveryengine.v1beta.Schema getSchema() { if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { if (schemaBuilder_ == null) { @@ -588,16 +524,12 @@ public Builder setSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSchema( com.google.cloud.discoveryengine.v1beta.Schema.Builder builderForValue) { @@ -611,22 +543,18 @@ public Builder setSchema( return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && schema_ != null - && schema_ != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + schema_ != null && + schema_ != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; @@ -639,16 +567,12 @@ public Builder mergeSchema(com.google.cloud.discoveryengine.v1beta.Schema value) return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000001); @@ -661,16 +585,12 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000001; @@ -678,59 +598,45 @@ public com.google.cloud.discoveryengine.v1beta.Schema.Builder getSchemaBuilder() return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : schema_; + return schema_ == null ? + com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() : schema_; } } /** - * - * *
      * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
      * update.
      * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Schema, com.google.cloud.discoveryengine.v1beta.Schema.Builder, com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); schema_ = null; } return schemaBuilder_; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema] is not found, a new
@@ -739,7 +645,6 @@ public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilde
      * 
* * bool allow_missing = 3; - * * @return The allowMissing. */ @java.lang.Override @@ -747,8 +652,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema] is not found, a new
@@ -757,7 +660,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 3; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -769,8 +671,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * If set to true, and the
      * [Schema][google.cloud.discoveryengine.v1beta.Schema] is not found, a new
@@ -779,7 +679,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 3; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -788,9 +687,9 @@ public Builder clearAllowMissing() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -800,12 +699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) private static final com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest(); } @@ -814,27 +713,27 @@ public static com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -849,4 +748,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java similarity index 54% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java index 17319534fc90..a6e02ae56e94 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateSchemaRequestOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/schema_service.proto package com.google.cloud.discoveryengine.v1beta; -public interface UpdateSchemaRequestOrBuilder - extends +public interface UpdateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The schema. */ com.google.cloud.discoveryengine.v1beta.Schema getSchema(); /** - * - * *
    * Required. The [Schema][google.cloud.discoveryengine.v1beta.Schema] to
    * update.
    * 
* - * - * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.discoveryengine.v1beta.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getSchemaOrBuilder(); /** - * - * *
    * If set to true, and the
    * [Schema][google.cloud.discoveryengine.v1beta.Schema] is not found, a new
@@ -78,7 +46,6 @@ public interface UpdateSchemaRequestOrBuilder
    * 
* * bool allow_missing = 3; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java similarity index 80% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java index 7fca3c3b5e58..0737e09dea16 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * UserEvent captures all metadata information Discovery Engine API needs to
  * know about how end users interact with customers' website.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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_ = "";
     userPseudoId_ = "";
@@ -45,49 +27,48 @@ private UserEvent() {
     attributionToken_ = "";
     filter_ = "";
     documents_ = java.util.Collections.emptyList();
-    tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    tagIds_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    promotionIds_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UserEvent();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.discoveryengine.v1beta.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_UserEvent_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 17:
         return internalGetAttributes();
       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.discoveryengine.v1beta.UserEventProto
-        .internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable
+    return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.discoveryengine.v1beta.UserEvent.class,
-            com.google.cloud.discoveryengine.v1beta.UserEvent.Builder.class);
+            com.google.cloud.discoveryengine.v1beta.UserEvent.class, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder.class);
   }
 
   public static final int EVENT_TYPE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object eventType_ = "";
   /**
-   *
-   *
    * 
    * Required. User event type. Allowed values are:
    *
@@ -111,7 +92,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ @java.lang.Override @@ -120,15 +100,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:
    *
@@ -152,15 +131,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 { @@ -169,12 +149,9 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } public static final int USER_PSEUDO_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object userPseudoId_ = ""; /** - * - * *
    * Required. A unique identifier for tracking visitors.
    *
@@ -196,7 +173,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userPseudoId. */ @java.lang.Override @@ -205,15 +181,14 @@ public java.lang.String getUserPseudoId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; } } /** - * - * *
    * Required. A unique identifier for tracking visitors.
    *
@@ -235,15 +210,16 @@ public java.lang.String getUserPseudoId() {
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userPseudoId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -254,8 +230,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { public static final int EVENT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -263,7 +237,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -271,8 +244,6 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -280,7 +251,6 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return The eventTime. */ @java.lang.Override @@ -288,8 +258,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -306,14 +274,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int USER_INFO_FIELD_NUMBER = 4;
   private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_;
   /**
-   *
-   *
    * 
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; - * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -321,25 +286,18 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; - * * @return The userInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
    * Information about the end user.
    * 
@@ -348,16 +306,12 @@ public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_; } public static final int DIRECT_USER_REQUEST_FIELD_NUMBER = 5; private boolean directUserRequest_ = false; /** - * - * *
    * Should set to true if the request is made directly from the end user, in
    * which case the
@@ -373,7 +327,6 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
    * 
* * bool direct_user_request = 5; - * * @return The directUserRequest. */ @java.lang.Override @@ -382,12 +335,9 @@ public boolean getDirectUserRequest() { } public static final int SESSION_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object sessionId_ = ""; /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -402,7 +352,6 @@ public boolean getDirectUserRequest() {
    * 
* * string session_id = 6; - * * @return The sessionId. */ @java.lang.Override @@ -411,15 +360,14 @@ public java.lang.String getSessionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } } /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -434,15 +382,16 @@ public java.lang.String getSessionId() {
    * 
* * string session_id = 6; - * * @return The bytes for sessionId. */ @java.lang.Override - public com.google.protobuf.ByteString getSessionIdBytes() { + public com.google.protobuf.ByteString + getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sessionId_ = b; return b; } else { @@ -453,15 +402,12 @@ public com.google.protobuf.ByteString getSessionIdBytes() { public static final int PAGE_INFO_FIELD_NUMBER = 7; private com.google.cloud.discoveryengine.v1beta.PageInfo pageInfo_; /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; - * * @return Whether the pageInfo field is set. */ @java.lang.Override @@ -469,26 +415,19 @@ public boolean hasPageInfo() { return pageInfo_ != null; } /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; - * * @return The pageInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.PageInfo getPageInfo() { - return pageInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance() - : pageInfo_; + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance() : pageInfo_; } /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
@@ -498,18 +437,13 @@ public com.google.cloud.discoveryengine.v1beta.PageInfo getPageInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBuilder() {
-    return pageInfo_ == null
-        ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()
-        : pageInfo_;
+    return pageInfo_ == null ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance() : pageInfo_;
   }
 
   public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER = 8;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object attributionToken_ = "";
   /**
-   *
-   *
    * 
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -537,7 +471,6 @@ public com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBu
    * 
* * string attribution_token = 8; - * * @return The attributionToken. */ @java.lang.Override @@ -546,15 +479,14 @@ public java.lang.String getAttributionToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; } } /** - * - * *
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -582,15 +514,16 @@ public java.lang.String getAttributionToken() {
    * 
* * string attribution_token = 8; - * * @return The bytes for attributionToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -599,12 +532,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -625,7 +555,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * string filter = 9; - * * @return The filter. */ @java.lang.Override @@ -634,15 +563,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; } } /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -663,15 +591,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 9; - * * @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 { @@ -680,12 +609,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int DOCUMENTS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List documents_; /** - * - * *
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -714,8 +640,6 @@ public java.util.List getD
     return documents_;
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -740,13 +664,11 @@ public java.util.List getD
    * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDocumentsOrBuilderList() {
     return documents_;
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -775,8 +697,6 @@ public int getDocumentsCount() {
     return documents_.size();
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -805,8 +725,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo getDocuments(int ind
     return documents_.get(index);
   }
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -839,14 +757,11 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocument
   public static final int PANEL_FIELD_NUMBER = 11;
   private com.google.cloud.discoveryengine.v1beta.PanelInfo panel_;
   /**
-   *
-   *
    * 
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; - * * @return Whether the panel field is set. */ @java.lang.Override @@ -854,25 +769,18 @@ public boolean hasPanel() { return panel_ != null; } /** - * - * *
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; - * * @return The panel. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.PanelInfo getPanel() { - return panel_ == null - ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() : panel_; } /** - * - * *
    * Panel metadata associated with this user event.
    * 
@@ -881,16 +789,12 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfo getPanel() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuilder() { - return panel_ == null - ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() : panel_; } public static final int SEARCH_INFO_FIELD_NUMBER = 12; private com.google.cloud.discoveryengine.v1beta.SearchInfo searchInfo_; /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
    * details related to the event.
@@ -899,7 +803,6 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuil
    * 
* * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; - * * @return Whether the searchInfo field is set. */ @java.lang.Override @@ -907,8 +810,6 @@ public boolean hasSearchInfo() { return searchInfo_ != null; } /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
    * details related to the event.
@@ -917,18 +818,13 @@ public boolean hasSearchInfo() {
    * 
* * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; - * * @return The searchInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchInfo getSearchInfo() { - return searchInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance() - : searchInfo_; + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance() : searchInfo_; } /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
    * details related to the event.
@@ -940,16 +836,12 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfo getSearchInfo() {
    */
   @java.lang.Override
   public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfoOrBuilder() {
-    return searchInfo_ == null
-        ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()
-        : searchInfo_;
+    return searchInfo_ == null ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance() : searchInfo_;
   }
 
   public static final int COMPLETION_INFO_FIELD_NUMBER = 13;
   private com.google.cloud.discoveryengine.v1beta.CompletionInfo completionInfo_;
   /**
-   *
-   *
    * 
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
    * details related to the event.
@@ -959,7 +851,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfo
    * 
* * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; - * * @return Whether the completionInfo field is set. */ @java.lang.Override @@ -967,8 +858,6 @@ public boolean hasCompletionInfo() { return completionInfo_ != null; } /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
    * details related to the event.
@@ -978,18 +867,13 @@ public boolean hasCompletionInfo() {
    * 
* * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; - * * @return The completionInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CompletionInfo getCompletionInfo() { - return completionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance() - : completionInfo_; + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance() : completionInfo_; } /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
    * details related to the event.
@@ -1001,24 +885,18 @@ public com.google.cloud.discoveryengine.v1beta.CompletionInfo getCompletionInfo(
    * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13;
    */
   @java.lang.Override
-  public com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder
-      getCompletionInfoOrBuilder() {
-    return completionInfo_ == null
-        ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance()
-        : completionInfo_;
+  public com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder getCompletionInfoOrBuilder() {
+    return completionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance() : completionInfo_;
   }
 
   public static final int TRANSACTION_INFO_FIELD_NUMBER = 14;
   private com.google.cloud.discoveryengine.v1beta.TransactionInfo transactionInfo_;
   /**
-   *
-   *
    * 
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; - * * @return Whether the transactionInfo field is set. */ @java.lang.Override @@ -1026,25 +904,18 @@ public boolean hasTransactionInfo() { return transactionInfo_ != null; } /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; - * * @return The transactionInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.TransactionInfo getTransactionInfo() { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() - : transactionInfo_; + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() : transactionInfo_; } /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
@@ -1052,21 +923,15 @@ public com.google.cloud.discoveryengine.v1beta.TransactionInfo getTransactionInf * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder - getTransactionInfoOrBuilder() { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() - : transactionInfo_; + public com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder getTransactionInfoOrBuilder() { + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() : transactionInfo_; } public static final int TAG_IDS_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1074,15 +939,13 @@ public com.google.cloud.discoveryengine.v1beta.TransactionInfo getTransactionInf
    * 
* * repeated string tag_ids = 15; - * * @return A list containing the tagIds. */ - public com.google.protobuf.ProtocolStringList getTagIdsList() { + public com.google.protobuf.ProtocolStringList + getTagIdsList() { return tagIds_; } /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1090,15 +953,12 @@ public com.google.protobuf.ProtocolStringList getTagIdsList() {
    * 
* * repeated string tag_ids = 15; - * * @return The count of tagIds. */ public int getTagIdsCount() { return tagIds_.size(); } /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1106,7 +966,6 @@ public int getTagIdsCount() {
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the element to return. * @return The tagIds at the given index. */ @@ -1114,8 +973,6 @@ public java.lang.String getTagIds(int index) { return tagIds_.get(index); } /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -1123,59 +980,50 @@ public java.lang.String getTagIds(int index) {
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the value to return. * @return The bytes of the tagIds at the given index. */ - public com.google.protobuf.ByteString getTagIdsBytes(int index) { + public com.google.protobuf.ByteString + getTagIdsBytes(int index) { return tagIds_.getByteString(index); } public static final int PROMOTION_IDS_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { return promotionIds_; } /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -1183,60 +1031,47 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } public static final int ATTRIBUTES_FIELD_NUMBER = 17; - private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> - defaultEntry = + java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.discoveryengine.v1beta.UserEventProto - .internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.discoveryengine.v1beta.CustomAttribute - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1beta.CustomAttribute.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> - internalGetAttributes() { + java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1266,26 +1101,23 @@ public int getAttributesCount() {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } - /** Use {@link #getAttributesMap()} instead. */ + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAttributes() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1315,17 +1147,13 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1355,25 +1183,20 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1beta.CustomAttribute - getAttributesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1beta.CustomAttribute defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1beta.CustomAttribute defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1403,15 +1226,12 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -1423,14 +1243,11 @@ public com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrTh public static final int MEDIA_INFO_FIELD_NUMBER = 18; private com.google.cloud.discoveryengine.v1beta.MediaInfo mediaInfo_; /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; - * * @return Whether the mediaInfo field is set. */ @java.lang.Override @@ -1438,25 +1255,18 @@ public boolean hasMediaInfo() { return mediaInfo_ != null; } /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; - * * @return The mediaInfo. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.MediaInfo getMediaInfo() { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() : mediaInfo_; } /** - * - * *
    * Media-specific info.
    * 
@@ -1465,13 +1275,10 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfo getMediaInfo() { */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder getMediaInfoOrBuilder() { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() : mediaInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1483,7 +1290,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_); } @@ -1532,8 +1340,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < promotionIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, promotionIds_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 17); if (mediaInfo_ != null) { output.writeMessage(18, getMediaInfo()); } @@ -1553,19 +1365,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userPseudoId_); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEventTime()); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUserInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUserInfo()); } if (directUserRequest_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, directUserRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, directUserRequest_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sessionId_); } if (pageInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPageInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPageInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributionToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, attributionToken_); @@ -1574,19 +1390,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, filter_); } for (int i = 0; i < documents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, documents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, documents_.get(i)); } if (panel_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPanel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getPanel()); } if (searchInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSearchInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSearchInfo()); } if (completionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCompletionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCompletionInfo()); } if (transactionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getTransactionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getTransactionInfo()); } { int dataSize = 0; @@ -1604,21 +1425,19 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPromotionIdsList().size(); } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> - entry : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> - attributes__ = - AttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, attributes__); + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, attributes__); } if (mediaInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getMediaInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getMediaInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1628,55 +1447,72 @@ 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.discoveryengine.v1beta.UserEvent)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.UserEvent other = - (com.google.cloud.discoveryengine.v1beta.UserEvent) obj; + com.google.cloud.discoveryengine.v1beta.UserEvent other = (com.google.cloud.discoveryengine.v1beta.UserEvent) obj; - if (!getEventType().equals(other.getEventType())) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getUserPseudoId() + .equals(other.getUserPseudoId())) 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 (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo().equals(other.getUserInfo())) return false; + if (!getUserInfo() + .equals(other.getUserInfo())) return false; } - if (getDirectUserRequest() != other.getDirectUserRequest()) return false; - if (!getSessionId().equals(other.getSessionId())) return false; + if (getDirectUserRequest() + != other.getDirectUserRequest()) return false; + if (!getSessionId() + .equals(other.getSessionId())) return false; if (hasPageInfo() != other.hasPageInfo()) return false; if (hasPageInfo()) { - if (!getPageInfo().equals(other.getPageInfo())) return false; - } - if (!getAttributionToken().equals(other.getAttributionToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getPageInfo() + .equals(other.getPageInfo())) return false; + } + if (!getAttributionToken() + .equals(other.getAttributionToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; if (hasPanel() != other.hasPanel()) return false; if (hasPanel()) { - if (!getPanel().equals(other.getPanel())) return false; + if (!getPanel() + .equals(other.getPanel())) return false; } if (hasSearchInfo() != other.hasSearchInfo()) return false; if (hasSearchInfo()) { - if (!getSearchInfo().equals(other.getSearchInfo())) return false; + if (!getSearchInfo() + .equals(other.getSearchInfo())) return false; } if (hasCompletionInfo() != other.hasCompletionInfo()) return false; if (hasCompletionInfo()) { - if (!getCompletionInfo().equals(other.getCompletionInfo())) return false; + if (!getCompletionInfo() + .equals(other.getCompletionInfo())) return false; } if (hasTransactionInfo() != other.hasTransactionInfo()) return false; if (hasTransactionInfo()) { - if (!getTransactionInfo().equals(other.getTransactionInfo())) return false; - } - if (!getTagIdsList().equals(other.getTagIdsList())) return false; - if (!getPromotionIdsList().equals(other.getPromotionIdsList())) return false; - if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getTransactionInfo() + .equals(other.getTransactionInfo())) return false; + } + if (!getTagIdsList() + .equals(other.getTagIdsList())) return false; + if (!getPromotionIdsList() + .equals(other.getPromotionIdsList())) return false; + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; if (hasMediaInfo() != other.hasMediaInfo()) return false; if (hasMediaInfo()) { - if (!getMediaInfo().equals(other.getMediaInfo())) return false; + if (!getMediaInfo() + .equals(other.getMediaInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1702,7 +1538,8 @@ public int hashCode() { hash = (53 * hash) + getUserInfo().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 = (37 * hash) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); if (hasPageInfo()) { @@ -1755,103 +1592,98 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.UserEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UserEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UserEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.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 Discovery Engine API needs to
    * know about how end users interact with customers' website.
@@ -1859,52 +1691,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserEvent)
       com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.discoveryengine.v1beta.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 17:
           return internalGetAttributes();
         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 17:
           return internalGetMutableAttributes();
         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.discoveryengine.v1beta.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable
+      return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.discoveryengine.v1beta.UserEvent.class,
-              com.google.cloud.discoveryengine.v1beta.UserEvent.Builder.class);
+              com.google.cloud.discoveryengine.v1beta.UserEvent.class, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.discoveryengine.v1beta.UserEvent.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1957,8 +1792,10 @@ public Builder clear() {
         transactionInfoBuilder_.dispose();
         transactionInfoBuilder_ = null;
       }
-      tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      tagIds_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      promotionIds_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       internalGetMutableAttributes().clear();
       mediaInfo_ = null;
       if (mediaInfoBuilder_ != null) {
@@ -1969,9 +1806,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.discoveryengine.v1beta.UserEventProto
-          .internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.discoveryengine.v1beta.UserEventProto.internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor;
     }
 
     @java.lang.Override
@@ -1990,18 +1827,14 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent build() {
 
     @java.lang.Override
     public com.google.cloud.discoveryengine.v1beta.UserEvent buildPartial() {
-      com.google.cloud.discoveryengine.v1beta.UserEvent result =
-          new com.google.cloud.discoveryengine.v1beta.UserEvent(this);
+      com.google.cloud.discoveryengine.v1beta.UserEvent result = new com.google.cloud.discoveryengine.v1beta.UserEvent(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.discoveryengine.v1beta.UserEvent result) {
+    private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.UserEvent result) {
       if (documentsBuilder_ == null) {
         if (((bitField0_ & 0x00000200) != 0)) {
           documents_ = java.util.Collections.unmodifiableList(documents_);
@@ -2022,10 +1855,14 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserEvent res
         result.userPseudoId_ = userPseudoId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build();
+        result.eventTime_ = eventTimeBuilder_ == null
+            ? eventTime_
+            : eventTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build();
+        result.userInfo_ = userInfoBuilder_ == null
+            ? userInfo_
+            : userInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.directUserRequest_ = directUserRequest_;
@@ -2034,7 +1871,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserEvent res
         result.sessionId_ = sessionId_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build();
+        result.pageInfo_ = pageInfoBuilder_ == null
+            ? pageInfo_
+            : pageInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
         result.attributionToken_ = attributionToken_;
@@ -2043,18 +1882,24 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserEvent res
         result.filter_ = filter_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.panel_ = panelBuilder_ == null ? panel_ : panelBuilder_.build();
+        result.panel_ = panelBuilder_ == null
+            ? panel_
+            : panelBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.searchInfo_ = searchInfoBuilder_ == null ? searchInfo_ : searchInfoBuilder_.build();
+        result.searchInfo_ = searchInfoBuilder_ == null
+            ? searchInfo_
+            : searchInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.completionInfo_ =
-            completionInfoBuilder_ == null ? completionInfo_ : completionInfoBuilder_.build();
+        result.completionInfo_ = completionInfoBuilder_ == null
+            ? completionInfo_
+            : completionInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.transactionInfo_ =
-            transactionInfoBuilder_ == null ? transactionInfo_ : transactionInfoBuilder_.build();
+        result.transactionInfo_ = transactionInfoBuilder_ == null
+            ? transactionInfo_
+            : transactionInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         tagIds_.makeImmutable();
@@ -2069,7 +1914,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserEvent res
         result.attributes_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
-        result.mediaInfo_ = mediaInfoBuilder_ == null ? mediaInfo_ : mediaInfoBuilder_.build();
+        result.mediaInfo_ = mediaInfoBuilder_ == null
+            ? mediaInfo_
+            : mediaInfoBuilder_.build();
       }
     }
 
@@ -2077,39 +1924,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserEvent res
     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.discoveryengine.v1beta.UserEvent) {
-        return mergeFrom((com.google.cloud.discoveryengine.v1beta.UserEvent) other);
+        return mergeFrom((com.google.cloud.discoveryengine.v1beta.UserEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2117,8 +1963,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other) {
-      if (other == com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()) return this;
       if (!other.getEventType().isEmpty()) {
         eventType_ = other.eventType_;
         bitField0_ |= 0x00000001;
@@ -2174,10 +2019,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other
             documentsBuilder_ = null;
             documents_ = other.documents_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            documentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDocumentsFieldBuilder()
-                    : null;
+            documentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDocumentsFieldBuilder() : null;
           } else {
             documentsBuilder_.addAllMessages(other.documents_);
           }
@@ -2215,7 +2059,8 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other
         }
         onChanged();
       }
-      internalGetMutableAttributes().mergeFrom(other.internalGetAttributes());
+      internalGetMutableAttributes().mergeFrom(
+          other.internalGetAttributes());
       bitField0_ |= 0x00010000;
       if (other.hasMediaInfo()) {
         mergeMediaInfo(other.getMediaInfo());
@@ -2246,139 +2091,132 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                eventType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                userPseudoId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                directUserRequest_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                sessionId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                attributionToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.cloud.discoveryengine.v1beta.DocumentInfo m =
-                    input.readMessage(
-                        com.google.cloud.discoveryengine.v1beta.DocumentInfo.parser(),
-                        extensionRegistry);
-                if (documentsBuilder_ == null) {
-                  ensureDocumentsIsMutable();
-                  documents_.add(m);
-                } else {
-                  documentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getPanelFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getSearchInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getCompletionInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getTransactionInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 114
-            case 122:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTagIdsIsMutable();
-                tagIds_.add(s);
-                break;
-              } // case 122
-            case 130:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePromotionIdsIsMutable();
-                promotionIds_.add(s);
-                break;
-              } // case 130
-            case 138:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute>
-                    attributes__ =
-                        input.readMessage(
-                            AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableAttributes()
-                    .getMutableMap()
-                    .put(attributes__.getKey(), attributes__.getValue());
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(getMediaInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 146
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              eventType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              userPseudoId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getUserInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              directUserRequest_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              sessionId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getPageInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              attributionToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              com.google.cloud.discoveryengine.v1beta.DocumentInfo m =
+                  input.readMessage(
+                      com.google.cloud.discoveryengine.v1beta.DocumentInfo.parser(),
+                      extensionRegistry);
+              if (documentsBuilder_ == null) {
+                ensureDocumentsIsMutable();
+                documents_.add(m);
+              } else {
+                documentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getPanelFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getSearchInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getCompletionInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getTransactionInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 114
+            case 122: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTagIdsIsMutable();
+              tagIds_.add(s);
+              break;
+            } // case 122
+            case 130: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePromotionIdsIsMutable();
+              promotionIds_.add(s);
+              break;
+            } // case 130
+            case 138: {
+              com.google.protobuf.MapEntry
+              attributes__ = input.readMessage(
+                  AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAttributes().getMutableMap().put(
+                  attributes__.getKey(), attributes__.getValue());
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getMediaInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 146
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2388,13 +2226,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object eventType_ = "";
     /**
-     *
-     *
      * 
      * Required. User event type. Allowed values are:
      *
@@ -2418,13 +2253,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; @@ -2433,8 +2268,6 @@ public java.lang.String getEventType() { } } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2458,14 +2291,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 { @@ -2473,8 +2307,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2498,22 +2330,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEventType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } eventType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2537,7 +2365,6 @@ public Builder setEventType(java.lang.String value) {
      * 
* * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEventType() { @@ -2547,8 +2374,6 @@ public Builder clearEventType() { return this; } /** - * - * *
      * Required. User event type. Allowed values are:
      *
@@ -2572,14 +2397,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); eventType_ = value; bitField0_ |= 0x00000001; @@ -2589,8 +2412,6 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object userPseudoId_ = ""; /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2612,13 +2433,13 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userPseudoId_ = s; return s; @@ -2627,8 +2448,6 @@ public java.lang.String getUserPseudoId() { } } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2650,14 +2469,15 @@ public java.lang.String getUserPseudoId() {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userPseudoId. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { + public com.google.protobuf.ByteString + getUserPseudoIdBytes() { java.lang.Object ref = userPseudoId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userPseudoId_ = b; return b; } else { @@ -2665,8 +2485,6 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { } } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2688,22 +2506,18 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userPseudoId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2725,7 +2539,6 @@ public Builder setUserPseudoId(java.lang.String value) {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUserPseudoId() { @@ -2735,8 +2548,6 @@ public Builder clearUserPseudoId() { return this; } /** - * - * *
      * Required. A unique identifier for tracking visitors.
      *
@@ -2758,14 +2569,12 @@ public Builder clearUserPseudoId() {
      * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserPseudoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userPseudoId_ = value; bitField0_ |= 0x00000002; @@ -2775,13 +2584,8 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2789,15 +2593,12 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2805,7 +2606,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2816,8 +2616,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2840,8 +2638,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2850,7 +2646,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 3;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
       } else {
@@ -2861,8 +2658,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2873,9 +2668,9 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && eventTime_ != null
-            && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          eventTime_ != null &&
+          eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEventTimeBuilder().mergeFrom(value);
         } else {
           eventTime_ = value;
@@ -2888,8 +2683,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2909,8 +2702,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2925,8 +2716,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2939,12 +2728,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * Only required for
      * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -2954,17 +2742,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         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_;
@@ -2972,47 +2757,34 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.UserInfo,
-            com.google.cloud.discoveryengine.v1beta.UserInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>
-        userInfoBuilder_;
+        com.google.cloud.discoveryengine.v1beta.UserInfo, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> userInfoBuilder_;
     /**
-     *
-     *
      * 
      * Information about the end user.
      * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; - * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Information about the end user.
      * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; - * * @return The userInfo. */ public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
      * Information about the end user.
      * 
@@ -3033,8 +2805,6 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo valu return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3053,8 +2823,6 @@ public Builder setUserInfo( return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3063,9 +2831,9 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && userInfo_ != null - && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + userInfo_ != null && + userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); } else { userInfo_ = value; @@ -3078,8 +2846,6 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3097,8 +2863,6 @@ public Builder clearUserInfo() { return this; } /** - * - * *
      * Information about the end user.
      * 
@@ -3111,8 +2875,6 @@ public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuild return getUserInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the end user.
      * 
@@ -3123,14 +2885,11 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? + com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() : userInfo_; } } /** - * - * *
      * Information about the end user.
      * 
@@ -3138,26 +2897,21 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + com.google.cloud.discoveryengine.v1beta.UserInfo, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.UserInfo, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); userInfo_ = null; } return userInfoBuilder_; } - private boolean directUserRequest_; + private boolean directUserRequest_ ; /** - * - * *
      * Should set to true if the request is made directly from the end user, in
      * which case the
@@ -3173,7 +2927,6 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu
      * 
* * bool direct_user_request = 5; - * * @return The directUserRequest. */ @java.lang.Override @@ -3181,8 +2934,6 @@ public boolean getDirectUserRequest() { return directUserRequest_; } /** - * - * *
      * Should set to true if the request is made directly from the end user, in
      * which case the
@@ -3198,7 +2949,6 @@ public boolean getDirectUserRequest() {
      * 
* * bool direct_user_request = 5; - * * @param value The directUserRequest to set. * @return This builder for chaining. */ @@ -3210,8 +2960,6 @@ public Builder setDirectUserRequest(boolean value) { return this; } /** - * - * *
      * Should set to true if the request is made directly from the end user, in
      * which case the
@@ -3227,7 +2975,6 @@ public Builder setDirectUserRequest(boolean value) {
      * 
* * bool direct_user_request = 5; - * * @return This builder for chaining. */ public Builder clearDirectUserRequest() { @@ -3239,8 +2986,6 @@ public Builder clearDirectUserRequest() { private java.lang.Object sessionId_ = ""; /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3255,13 +3000,13 @@ public Builder clearDirectUserRequest() {
      * 
* * string session_id = 6; - * * @return The sessionId. */ public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; @@ -3270,8 +3015,6 @@ public java.lang.String getSessionId() { } } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3286,14 +3029,15 @@ public java.lang.String getSessionId() {
      * 
* * string session_id = 6; - * * @return The bytes for sessionId. */ - public com.google.protobuf.ByteString getSessionIdBytes() { + public com.google.protobuf.ByteString + getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sessionId_ = b; return b; } else { @@ -3301,8 +3045,6 @@ public com.google.protobuf.ByteString getSessionIdBytes() { } } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3317,22 +3059,18 @@ public com.google.protobuf.ByteString getSessionIdBytes() {
      * 
* * string session_id = 6; - * * @param value The sessionId to set. * @return This builder for chaining. */ - public Builder setSessionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSessionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sessionId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3347,7 +3085,6 @@ public Builder setSessionId(java.lang.String value) {
      * 
* * string session_id = 6; - * * @return This builder for chaining. */ public Builder clearSessionId() { @@ -3357,8 +3094,6 @@ public Builder clearSessionId() { return this; } /** - * - * *
      * A unique identifier for tracking a visitor session with a length limit of
      * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -3373,14 +3108,12 @@ public Builder clearSessionId() {
      * 
* * string session_id = 6; - * * @param value The bytes for sessionId to set. * @return This builder for chaining. */ - public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSessionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionId_ = value; bitField0_ |= 0x00000020; @@ -3390,49 +3123,36 @@ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.PageInfo pageInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.PageInfo, - com.google.cloud.discoveryengine.v1beta.PageInfo.Builder, - com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder> - pageInfoBuilder_; + com.google.cloud.discoveryengine.v1beta.PageInfo, com.google.cloud.discoveryengine.v1beta.PageInfo.Builder, com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder> pageInfoBuilder_; /** - * - * *
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
      * 
* * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; - * * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
      * 
* * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; - * * @return The pageInfo. */ public com.google.cloud.discoveryengine.v1beta.PageInfo getPageInfo() { if (pageInfoBuilder_ == null) { - return pageInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance() - : pageInfo_; + return pageInfo_ == null ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance() : pageInfo_; } else { return pageInfoBuilder_.getMessage(); } } /** - * - * *
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3454,8 +3174,6 @@ public Builder setPageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3475,8 +3193,6 @@ public Builder setPageInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3486,9 +3202,9 @@ public Builder setPageInfo(
      */
     public Builder mergePageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo value) {
       if (pageInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && pageInfo_ != null
-            && pageInfo_ != com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          pageInfo_ != null &&
+          pageInfo_ != com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()) {
           getPageInfoBuilder().mergeFrom(value);
         } else {
           pageInfo_ = value;
@@ -3501,8 +3217,6 @@ public Builder mergePageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo va
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3521,8 +3235,6 @@ public Builder clearPageInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3536,8 +3248,6 @@ public com.google.cloud.discoveryengine.v1beta.PageInfo.Builder getPageInfoBuild
       return getPageInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3549,14 +3259,11 @@ public com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBu
       if (pageInfoBuilder_ != null) {
         return pageInfoBuilder_.getMessageOrBuilder();
       } else {
-        return pageInfo_ == null
-            ? com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()
-            : pageInfo_;
+        return pageInfo_ == null ?
+            com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance() : pageInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * Page metadata such as categories and other critical information for certain
      * event types such as `view-category-page`.
@@ -3565,17 +3272,14 @@ public com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBu
      * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.PageInfo,
-            com.google.cloud.discoveryengine.v1beta.PageInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.PageInfo, com.google.cloud.discoveryengine.v1beta.PageInfo.Builder, com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder> 
         getPageInfoFieldBuilder() {
       if (pageInfoBuilder_ == null) {
-        pageInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.PageInfo,
-                com.google.cloud.discoveryengine.v1beta.PageInfo.Builder,
-                com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder>(
-                getPageInfo(), getParentForChildren(), isClean());
+        pageInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.PageInfo, com.google.cloud.discoveryengine.v1beta.PageInfo.Builder, com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder>(
+                getPageInfo(),
+                getParentForChildren(),
+                isClean());
         pageInfo_ = null;
       }
       return pageInfoBuilder_;
@@ -3583,8 +3287,6 @@ public com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBu
 
     private java.lang.Object attributionToken_ = "";
     /**
-     *
-     *
      * 
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3612,13 +3314,13 @@ public com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBu
      * 
* * string attribution_token = 8; - * * @return The attributionToken. */ public java.lang.String getAttributionToken() { java.lang.Object ref = attributionToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributionToken_ = s; return s; @@ -3627,8 +3329,6 @@ public java.lang.String getAttributionToken() { } } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3656,14 +3356,15 @@ public java.lang.String getAttributionToken() {
      * 
* * string attribution_token = 8; - * * @return The bytes for attributionToken. */ - public com.google.protobuf.ByteString getAttributionTokenBytes() { + public com.google.protobuf.ByteString + getAttributionTokenBytes() { java.lang.Object ref = attributionToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attributionToken_ = b; return b; } else { @@ -3671,8 +3372,6 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { } } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3700,22 +3399,18 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
      * 
* * string attribution_token = 8; - * * @param value The attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attributionToken_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3743,7 +3438,6 @@ public Builder setAttributionToken(java.lang.String value) {
      * 
* * string attribution_token = 8; - * * @return This builder for chaining. */ public Builder clearAttributionToken() { @@ -3753,8 +3447,6 @@ public Builder clearAttributionToken() { return this; } /** - * - * *
      * Token to attribute an API response to user action(s) to trigger the event.
      *
@@ -3782,14 +3474,12 @@ public Builder clearAttributionToken() {
      * 
* * string attribution_token = 8; - * * @param value The bytes for attributionToken to set. * @return This builder for chaining. */ - public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAttributionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributionToken_ = value; bitField0_ |= 0x00000080; @@ -3799,8 +3489,6 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3821,13 +3509,13 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 9; - * * @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; @@ -3836,8 +3524,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3858,14 +3544,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 9; - * * @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 { @@ -3873,8 +3560,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3895,22 +3580,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 9; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3931,7 +3612,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 9; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -3941,8 +3621,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the documents being filtered.
@@ -3963,14 +3641,12 @@ public Builder clearFilter() {
      * 
* * string filter = 9; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000100; @@ -3979,26 +3655,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } private java.util.List documents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - documents_ = - new java.util.ArrayList( - documents_); + documents_ = new java.util.ArrayList(documents_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.DocumentInfo, - com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder> - documentsBuilder_; + com.google.cloud.discoveryengine.v1beta.DocumentInfo, com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder> documentsBuilder_; /** - * - * *
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4030,8 +3698,6 @@ public java.util.List getD
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4063,8 +3729,6 @@ public int getDocumentsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4096,8 +3760,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo getDocuments(int ind
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4136,8 +3798,6 @@ public Builder setDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4173,8 +3833,6 @@ public Builder setDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4212,8 +3870,6 @@ public Builder addDocuments(com.google.cloud.discoveryengine.v1beta.DocumentInfo
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4252,8 +3908,6 @@ public Builder addDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4289,8 +3943,6 @@ public Builder addDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4326,8 +3978,6 @@ public Builder addDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4355,7 +4005,8 @@ public Builder addAllDocuments(
         java.lang.Iterable values) {
       if (documentsBuilder_ == null) {
         ensureDocumentsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, documents_);
         onChanged();
       } else {
         documentsBuilder_.addAllMessages(values);
@@ -4363,8 +4014,6 @@ public Builder addAllDocuments(
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4399,8 +4048,6 @@ public Builder clearDocuments() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4435,8 +4082,6 @@ public Builder removeDocuments(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4465,8 +4110,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder getDocuments
       return getDocumentsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4493,14 +4136,11 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder getDocuments
     public com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocumentsOrBuilder(
         int index) {
       if (documentsBuilder_ == null) {
-        return documents_.get(index);
-      } else {
+        return documents_.get(index);  } else {
         return documentsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4524,8 +4164,8 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocument
      *
      * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
      */
-    public java.util.List
-        getDocumentsOrBuilderList() {
+    public java.util.List 
+         getDocumentsOrBuilderList() {
       if (documentsBuilder_ != null) {
         return documentsBuilder_.getMessageOrBuilderList();
       } else {
@@ -4533,8 +4173,6 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocument
       }
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4559,12 +4197,10 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocument
      * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
      */
     public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocumentsBuilder() {
-      return getDocumentsFieldBuilder()
-          .addBuilder(com.google.cloud.discoveryengine.v1beta.DocumentInfo.getDefaultInstance());
+      return getDocumentsFieldBuilder().addBuilder(
+          com.google.cloud.discoveryengine.v1beta.DocumentInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4590,13 +4226,10 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocuments
      */
     public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocumentsBuilder(
         int index) {
-      return getDocumentsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.discoveryengine.v1beta.DocumentInfo.getDefaultInstance());
+      return getDocumentsFieldBuilder().addBuilder(
+          index, com.google.cloud.discoveryengine.v1beta.DocumentInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
      * associated with this user event.
@@ -4620,23 +4253,20 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocuments
      *
      * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
      */
-    public java.util.List
-        getDocumentsBuilderList() {
+    public java.util.List 
+         getDocumentsBuilderList() {
       return getDocumentsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.DocumentInfo,
-            com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.DocumentInfo, com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder> 
         getDocumentsFieldBuilder() {
       if (documentsBuilder_ == null) {
-        documentsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.DocumentInfo,
-                com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder,
-                com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder>(
-                documents_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean());
+        documentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.DocumentInfo, com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder>(
+                documents_,
+                ((bitField0_ & 0x00000200) != 0),
+                getParentForChildren(),
+                isClean());
         documents_ = null;
       }
       return documentsBuilder_;
@@ -4644,47 +4274,34 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocuments
 
     private com.google.cloud.discoveryengine.v1beta.PanelInfo panel_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.PanelInfo,
-            com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder>
-        panelBuilder_;
+        com.google.cloud.discoveryengine.v1beta.PanelInfo, com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder, com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder> panelBuilder_;
     /**
-     *
-     *
      * 
      * Panel metadata associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; - * * @return Whether the panel field is set. */ public boolean hasPanel() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Panel metadata associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; - * * @return The panel. */ public com.google.cloud.discoveryengine.v1beta.PanelInfo getPanel() { if (panelBuilder_ == null) { - return panel_ == null - ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() : panel_; } else { return panelBuilder_.getMessage(); } } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4705,8 +4322,6 @@ public Builder setPanel(com.google.cloud.discoveryengine.v1beta.PanelInfo value) return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4725,8 +4340,6 @@ public Builder setPanel( return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4735,9 +4348,9 @@ public Builder setPanel( */ public Builder mergePanel(com.google.cloud.discoveryengine.v1beta.PanelInfo value) { if (panelBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && panel_ != null - && panel_ != com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + panel_ != null && + panel_ != com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance()) { getPanelBuilder().mergeFrom(value); } else { panel_ = value; @@ -4750,8 +4363,6 @@ public Builder mergePanel(com.google.cloud.discoveryengine.v1beta.PanelInfo valu return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4769,8 +4380,6 @@ public Builder clearPanel() { return this; } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4783,8 +4392,6 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder getPanelBuilder return getPanelFieldBuilder().getBuilder(); } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4795,14 +4402,11 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuil if (panelBuilder_ != null) { return panelBuilder_.getMessageOrBuilder(); } else { - return panel_ == null - ? com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() - : panel_; + return panel_ == null ? + com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance() : panel_; } } /** - * - * *
      * Panel metadata associated with this user event.
      * 
@@ -4810,17 +4414,14 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuil * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.PanelInfo, - com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder, - com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder> + com.google.cloud.discoveryengine.v1beta.PanelInfo, com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder, com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder> getPanelFieldBuilder() { if (panelBuilder_ == null) { - panelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.PanelInfo, - com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder, - com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder>( - getPanel(), getParentForChildren(), isClean()); + panelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.PanelInfo, com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder, com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder>( + getPanel(), + getParentForChildren(), + isClean()); panel_ = null; } return panelBuilder_; @@ -4828,13 +4429,8 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuil private com.google.cloud.discoveryengine.v1beta.SearchInfo searchInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchInfo, - com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder, - com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder> - searchInfoBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchInfo, com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder> searchInfoBuilder_; /** - * - * *
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4843,15 +4439,12 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuil
      * 
* * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; - * * @return Whether the searchInfo field is set. */ public boolean hasSearchInfo() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4860,21 +4453,16 @@ public boolean hasSearchInfo() {
      * 
* * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; - * * @return The searchInfo. */ public com.google.cloud.discoveryengine.v1beta.SearchInfo getSearchInfo() { if (searchInfoBuilder_ == null) { - return searchInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance() - : searchInfo_; + return searchInfo_ == null ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance() : searchInfo_; } else { return searchInfoBuilder_.getMessage(); } } /** - * - * *
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4898,8 +4486,6 @@ public Builder setSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInfo
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4921,8 +4507,6 @@ public Builder setSearchInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4934,10 +4518,9 @@ public Builder setSearchInfo(
      */
     public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInfo value) {
       if (searchInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0)
-            && searchInfo_ != null
-            && searchInfo_
-                != com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0) &&
+          searchInfo_ != null &&
+          searchInfo_ != com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()) {
           getSearchInfoBuilder().mergeFrom(value);
         } else {
           searchInfo_ = value;
@@ -4950,8 +4533,6 @@ public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInf
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4972,8 +4553,6 @@ public Builder clearSearchInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -4989,8 +4568,6 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder getSearchInfoB
       return getSearchInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -5004,14 +4581,11 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfo
       if (searchInfoBuilder_ != null) {
         return searchInfoBuilder_.getMessageOrBuilder();
       } else {
-        return searchInfo_ == null
-            ? com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()
-            : searchInfo_;
+        return searchInfo_ == null ?
+            com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance() : searchInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
      * details related to the event.
@@ -5022,17 +4596,14 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfo
      * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.SearchInfo,
-            com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.SearchInfo, com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder> 
         getSearchInfoFieldBuilder() {
       if (searchInfoBuilder_ == null) {
-        searchInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.SearchInfo,
-                com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder,
-                com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder>(
-                getSearchInfo(), getParentForChildren(), isClean());
+        searchInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.SearchInfo, com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder>(
+                getSearchInfo(),
+                getParentForChildren(),
+                isClean());
         searchInfo_ = null;
       }
       return searchInfoBuilder_;
@@ -5040,13 +4611,8 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfo
 
     private com.google.cloud.discoveryengine.v1beta.CompletionInfo completionInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.CompletionInfo,
-            com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder>
-        completionInfoBuilder_;
+        com.google.cloud.discoveryengine.v1beta.CompletionInfo, com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder> completionInfoBuilder_;
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5056,15 +4622,12 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfo
      * 
* * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; - * * @return Whether the completionInfo field is set. */ public boolean hasCompletionInfo() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5074,21 +4637,16 @@ public boolean hasCompletionInfo() {
      * 
* * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; - * * @return The completionInfo. */ public com.google.cloud.discoveryengine.v1beta.CompletionInfo getCompletionInfo() { if (completionInfoBuilder_ == null) { - return completionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance() - : completionInfo_; + return completionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance() : completionInfo_; } else { return completionInfoBuilder_.getMessage(); } } /** - * - * *
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5113,8 +4671,6 @@ public Builder setCompletionInfo(com.google.cloud.discoveryengine.v1beta.Complet
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5137,8 +4693,6 @@ public Builder setCompletionInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5149,13 +4703,11 @@ public Builder setCompletionInfo(
      *
      * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13;
      */
-    public Builder mergeCompletionInfo(
-        com.google.cloud.discoveryengine.v1beta.CompletionInfo value) {
+    public Builder mergeCompletionInfo(com.google.cloud.discoveryengine.v1beta.CompletionInfo value) {
       if (completionInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00001000) != 0)
-            && completionInfo_ != null
-            && completionInfo_
-                != com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00001000) != 0) &&
+          completionInfo_ != null &&
+          completionInfo_ != com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance()) {
           getCompletionInfoBuilder().mergeFrom(value);
         } else {
           completionInfo_ = value;
@@ -5168,8 +4720,6 @@ public Builder mergeCompletionInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5191,8 +4741,6 @@ public Builder clearCompletionInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5203,15 +4751,12 @@ public Builder clearCompletionInfo() {
      *
      * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13;
      */
-    public com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder
-        getCompletionInfoBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder getCompletionInfoBuilder() {
       bitField0_ |= 0x00001000;
       onChanged();
       return getCompletionInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5222,19 +4767,15 @@ public Builder clearCompletionInfo() {
      *
      * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13;
      */
-    public com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder
-        getCompletionInfoOrBuilder() {
+    public com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder getCompletionInfoOrBuilder() {
       if (completionInfoBuilder_ != null) {
         return completionInfoBuilder_.getMessageOrBuilder();
       } else {
-        return completionInfo_ == null
-            ? com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance()
-            : completionInfo_;
+        return completionInfo_ == null ?
+            com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance() : completionInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
      * details related to the event.
@@ -5246,17 +4787,14 @@ public Builder clearCompletionInfo() {
      * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.CompletionInfo,
-            com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder>
+        com.google.cloud.discoveryengine.v1beta.CompletionInfo, com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder> 
         getCompletionInfoFieldBuilder() {
       if (completionInfoBuilder_ == null) {
-        completionInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.discoveryengine.v1beta.CompletionInfo,
-                com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder,
-                com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder>(
-                getCompletionInfo(), getParentForChildren(), isClean());
+        completionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.discoveryengine.v1beta.CompletionInfo, com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder, com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder>(
+                getCompletionInfo(),
+                getParentForChildren(),
+                isClean());
         completionInfo_ = null;
       }
       return completionInfoBuilder_;
@@ -5264,55 +4802,41 @@ public Builder clearCompletionInfo() {
 
     private com.google.cloud.discoveryengine.v1beta.TransactionInfo transactionInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.discoveryengine.v1beta.TransactionInfo,
-            com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder,
-            com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder>
-        transactionInfoBuilder_;
+        com.google.cloud.discoveryengine.v1beta.TransactionInfo, com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder> transactionInfoBuilder_;
     /**
-     *
-     *
      * 
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; - * * @return Whether the transactionInfo field is set. */ public boolean hasTransactionInfo() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; - * * @return The transactionInfo. */ public com.google.cloud.discoveryengine.v1beta.TransactionInfo getTransactionInfo() { if (transactionInfoBuilder_ == null) { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() - : transactionInfo_; + return transactionInfo_ == null ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() : transactionInfo_; } else { return transactionInfoBuilder_.getMessage(); } } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ - public Builder setTransactionInfo( - com.google.cloud.discoveryengine.v1beta.TransactionInfo value) { + public Builder setTransactionInfo(com.google.cloud.discoveryengine.v1beta.TransactionInfo value) { if (transactionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5326,8 +4850,6 @@ public Builder setTransactionInfo( return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5346,21 +4868,17 @@ public Builder setTransactionInfo( return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ - public Builder mergeTransactionInfo( - com.google.cloud.discoveryengine.v1beta.TransactionInfo value) { + public Builder mergeTransactionInfo(com.google.cloud.discoveryengine.v1beta.TransactionInfo value) { if (transactionInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && transactionInfo_ != null - && transactionInfo_ - != com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + transactionInfo_ != null && + transactionInfo_ != com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance()) { getTransactionInfoBuilder().mergeFrom(value); } else { transactionInfo_ = value; @@ -5373,8 +4891,6 @@ public Builder mergeTransactionInfo( return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5392,42 +4908,33 @@ public Builder clearTransactionInfo() { return this; } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ - public com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder - getTransactionInfoBuilder() { + public com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder getTransactionInfoBuilder() { bitField0_ |= 0x00002000; onChanged(); return getTransactionInfoFieldBuilder().getBuilder(); } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ - public com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder - getTransactionInfoOrBuilder() { + public com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder getTransactionInfoOrBuilder() { if (transactionInfoBuilder_ != null) { return transactionInfoBuilder_.getMessageOrBuilder(); } else { - return transactionInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() - : transactionInfo_; + return transactionInfo_ == null ? + com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance() : transactionInfo_; } } /** - * - * *
      * The transaction metadata (if any) associated with this user event.
      * 
@@ -5435,17 +4942,14 @@ public Builder clearTransactionInfo() { * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TransactionInfo, - com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder, - com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder> + com.google.cloud.discoveryengine.v1beta.TransactionInfo, com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder> getTransactionInfoFieldBuilder() { if (transactionInfoBuilder_ == null) { - transactionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.TransactionInfo, - com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder, - com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder>( - getTransactionInfo(), getParentForChildren(), isClean()); + transactionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.TransactionInfo, com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder, com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder>( + getTransactionInfo(), + getParentForChildren(), + isClean()); transactionInfo_ = null; } return transactionInfoBuilder_; @@ -5453,7 +4957,6 @@ public Builder clearTransactionInfo() { private com.google.protobuf.LazyStringArrayList tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTagIdsIsMutable() { if (!tagIds_.isModifiable()) { tagIds_ = new com.google.protobuf.LazyStringArrayList(tagIds_); @@ -5461,8 +4964,6 @@ private void ensureTagIdsIsMutable() { bitField0_ |= 0x00004000; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5470,16 +4971,14 @@ private void ensureTagIdsIsMutable() {
      * 
* * repeated string tag_ids = 15; - * * @return A list containing the tagIds. */ - public com.google.protobuf.ProtocolStringList getTagIdsList() { + public com.google.protobuf.ProtocolStringList + getTagIdsList() { tagIds_.makeImmutable(); return tagIds_; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5487,15 +4986,12 @@ public com.google.protobuf.ProtocolStringList getTagIdsList() {
      * 
* * repeated string tag_ids = 15; - * * @return The count of tagIds. */ public int getTagIdsCount() { return tagIds_.size(); } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5503,7 +4999,6 @@ public int getTagIdsCount() {
      * 
* * repeated string tag_ids = 15; - * * @param index The index of the element to return. * @return The tagIds at the given index. */ @@ -5511,8 +5006,6 @@ public java.lang.String getTagIds(int index) { return tagIds_.get(index); } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5520,16 +5013,14 @@ public java.lang.String getTagIds(int index) {
      * 
* * repeated string tag_ids = 15; - * * @param index The index of the value to return. * @return The bytes of the tagIds at the given index. */ - public com.google.protobuf.ByteString getTagIdsBytes(int index) { + public com.google.protobuf.ByteString + getTagIdsBytes(int index) { return tagIds_.getByteString(index); } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5537,15 +5028,13 @@ public com.google.protobuf.ByteString getTagIdsBytes(int index) {
      * 
* * repeated string tag_ids = 15; - * * @param index The index to set the value at. * @param value The tagIds to set. * @return This builder for chaining. */ - public Builder setTagIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTagIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagIdsIsMutable(); tagIds_.set(index, value); bitField0_ |= 0x00004000; @@ -5553,8 +5042,6 @@ public Builder setTagIds(int index, java.lang.String value) { return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5562,14 +5049,12 @@ public Builder setTagIds(int index, java.lang.String value) {
      * 
* * repeated string tag_ids = 15; - * * @param value The tagIds to add. * @return This builder for chaining. */ - public Builder addTagIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagIdsIsMutable(); tagIds_.add(value); bitField0_ |= 0x00004000; @@ -5577,8 +5062,6 @@ public Builder addTagIds(java.lang.String value) { return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5586,20 +5069,19 @@ public Builder addTagIds(java.lang.String value) {
      * 
* * repeated string tag_ids = 15; - * * @param values The tagIds to add. * @return This builder for chaining. */ - public Builder addAllTagIds(java.lang.Iterable values) { + public Builder addAllTagIds( + java.lang.Iterable values) { ensureTagIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagIds_); bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5607,19 +5089,16 @@ public Builder addAllTagIds(java.lang.Iterable values) {
      * 
* * repeated string tag_ids = 15; - * * @return This builder for chaining. */ public Builder clearTagIds() { - tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - ; + tagIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000);; onChanged(); return this; } /** - * - * *
      * A list of identifiers for the independent experiment groups this user event
      * belongs to. This is used to distinguish between user events associated with
@@ -5627,14 +5106,12 @@ public Builder clearTagIds() {
      * 
* * repeated string tag_ids = 15; - * * @param value The bytes of the tagIds to add. * @return This builder for chaining. */ - public Builder addTagIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagIdsIsMutable(); tagIds_.add(value); @@ -5645,7 +5122,6 @@ public Builder addTagIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); @@ -5653,46 +5129,38 @@ private void ensurePromotionIdsIsMutable() { bitField0_ |= 0x00008000; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @return A list containing the promotionIds. */ - public com.google.protobuf.ProtocolStringList getPromotionIdsList() { + public com.google.protobuf.ProtocolStringList + getPromotionIdsList() { promotionIds_.makeImmutable(); return promotionIds_; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @return The count of promotionIds. */ public int getPromotionIdsCount() { return promotionIds_.size(); } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ @@ -5700,39 +5168,33 @@ public java.lang.String getPromotionIds(int index) { return promotionIds_.get(index); } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { + public com.google.protobuf.ByteString + getPromotionIdsBytes(int index) { return promotionIds_.getByteString(index); } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param index The index to set the value at. * @param value The promotionIds to set. * @return This builder for chaining. */ - public Builder setPromotionIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPromotionIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); bitField0_ |= 0x00008000; @@ -5740,22 +5202,18 @@ public Builder setPromotionIds(int index, java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param value The promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePromotionIdsIsMutable(); promotionIds_.add(value); bitField0_ |= 0x00008000; @@ -5763,61 +5221,53 @@ public Builder addPromotionIds(java.lang.String value) { return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param values The promotionIds to add. * @return This builder for chaining. */ - public Builder addAllPromotionIds(java.lang.Iterable values) { + public Builder addAllPromotionIds( + java.lang.Iterable values) { ensurePromotionIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, promotionIds_); bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @return This builder for chaining. */ public Builder clearPromotionIds() { - promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - ; + promotionIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000);; onChanged(); return this; } /** - * - * *
      * The promotion IDs if this is an event associated with promotions.
      * Currently, this field is restricted to at most one ID.
      * 
* * repeated string promotion_ids = 16; - * * @param value The bytes of the promotionIds to add. * @return This builder for chaining. */ - public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPromotionIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); @@ -5827,11 +5277,8 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> + java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> attributes_; + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -5839,13 +5286,11 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { } return attributes_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.CustomAttribute> + private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { - attributes_ = - com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -5854,13 +5299,10 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { onChanged(); return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5890,27 +5332,23 @@ public int getAttributesCount() {
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } - /** Use {@link #getAttributesMap()} instead. */ + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAttributes() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5940,18 +5378,13 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -5981,26 +5414,20 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1beta.CustomAttribute - getAttributesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1beta.CustomAttribute defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.discoveryengine.v1beta.CustomAttribute defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6030,16 +5457,12 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -6047,15 +5470,13 @@ public com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrTh } return map.get(key); } - public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00010000); - internalGetMutableAttributes().getMutableMap().clear(); + internalGetMutableAttributes().getMutableMap() + .clear(); return this; } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6085,18 +5506,18 @@ public Builder clearAttributes() {
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ - public Builder removeAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAttributes().getMutableMap().remove(key); + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAttributes().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { @@ -6104,8 +5525,6 @@ public Builder removeAttributes(java.lang.String key) { return internalGetMutableAttributes().getMutableMap(); } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6135,25 +5554,19 @@ public Builder removeAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ public Builder putAttributes( - java.lang.String key, com.google.cloud.discoveryengine.v1beta.CustomAttribute value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAttributes().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.discoveryengine.v1beta.CustomAttribute value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); bitField0_ |= 0x00010000; return this; } /** - * - * *
      * Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
@@ -6183,61 +5596,46 @@ public Builder putAttributes(
      * search, or in other ways.
      * 
* - * - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ public Builder putAllAttributes( - java.util.Map - values) { - internalGetMutableAttributes().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); bitField0_ |= 0x00010000; return this; } private com.google.cloud.discoveryengine.v1beta.MediaInfo mediaInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.MediaInfo, - com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder, - com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder> - mediaInfoBuilder_; + com.google.cloud.discoveryengine.v1beta.MediaInfo, com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder, com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder> mediaInfoBuilder_; /** - * - * *
      * Media-specific info.
      * 
* * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; - * * @return Whether the mediaInfo field is set. */ public boolean hasMediaInfo() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
      * Media-specific info.
      * 
* * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; - * * @return The mediaInfo. */ public com.google.cloud.discoveryengine.v1beta.MediaInfo getMediaInfo() { if (mediaInfoBuilder_ == null) { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() : mediaInfo_; } else { return mediaInfoBuilder_.getMessage(); } } /** - * - * *
      * Media-specific info.
      * 
@@ -6258,8 +5656,6 @@ public Builder setMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo va return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6278,8 +5674,6 @@ public Builder setMediaInfo( return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6288,10 +5682,9 @@ public Builder setMediaInfo( */ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo value) { if (mediaInfoBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && mediaInfo_ != null - && mediaInfo_ - != com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) && + mediaInfo_ != null && + mediaInfo_ != com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance()) { getMediaInfoBuilder().mergeFrom(value); } else { mediaInfo_ = value; @@ -6304,8 +5697,6 @@ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6323,8 +5714,6 @@ public Builder clearMediaInfo() { return this; } /** - * - * *
      * Media-specific info.
      * 
@@ -6337,8 +5726,6 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder getMediaInfoBui return getMediaInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Media-specific info.
      * 
@@ -6349,14 +5736,11 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder getMediaInfoOr if (mediaInfoBuilder_ != null) { return mediaInfoBuilder_.getMessageOrBuilder(); } else { - return mediaInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() - : mediaInfo_; + return mediaInfo_ == null ? + com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance() : mediaInfo_; } } /** - * - * *
      * Media-specific info.
      * 
@@ -6364,24 +5748,21 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder getMediaInfoOr * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.MediaInfo, - com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder, - com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder> + com.google.cloud.discoveryengine.v1beta.MediaInfo, com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder, com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder> getMediaInfoFieldBuilder() { if (mediaInfoBuilder_ == null) { - mediaInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.MediaInfo, - com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder, - com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder>( - getMediaInfo(), getParentForChildren(), isClean()); + mediaInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.MediaInfo, com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder, com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder>( + getMediaInfo(), + getParentForChildren(), + isClean()); mediaInfo_ = null; } return mediaInfoBuilder_; } - @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); } @@ -6391,12 +5772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserEvent) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UserEvent) private static final com.google.cloud.discoveryengine.v1beta.UserEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UserEvent(); } @@ -6405,27 +5786,27 @@ public static com.google.cloud.discoveryengine.v1beta.UserEvent getDefaultInstan 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6440,4 +5821,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.UserEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java similarity index 93% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java index 44794079797d..63c42e020477 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event.proto package com.google.cloud.discoveryengine.v1beta; -public interface UserEventOrBuilder - extends +public interface UserEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UserEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. User event type. Allowed values are:
    *
@@ -49,13 +31,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:
    *
@@ -79,14 +58,12 @@ 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. A unique identifier for tracking visitors.
    *
@@ -108,13 +85,10 @@ public interface UserEventOrBuilder
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userPseudoId. */ java.lang.String getUserPseudoId(); /** - * - * *
    * Required. A unique identifier for tracking visitors.
    *
@@ -136,14 +110,12 @@ public interface UserEventOrBuilder
    * 
* * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userPseudoId. */ - com.google.protobuf.ByteString getUserPseudoIdBytes(); + com.google.protobuf.ByteString + getUserPseudoIdBytes(); /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -151,13 +123,10 @@ public interface UserEventOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -165,13 +134,10 @@ public interface UserEventOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 3; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * Only required for
    * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
@@ -183,32 +149,24 @@ public interface UserEventOrBuilder
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; - * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
    * Information about the end user.
    * 
* * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; - * * @return The userInfo. */ com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo(); /** - * - * *
    * Information about the end user.
    * 
@@ -218,8 +176,6 @@ public interface UserEventOrBuilder com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder(); /** - * - * *
    * Should set to true if the request is made directly from the end user, in
    * which case the
@@ -235,14 +191,11 @@ public interface UserEventOrBuilder
    * 
* * bool direct_user_request = 5; - * * @return The directUserRequest. */ boolean getDirectUserRequest(); /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -257,13 +210,10 @@ public interface UserEventOrBuilder
    * 
* * string session_id = 6; - * * @return The sessionId. */ java.lang.String getSessionId(); /** - * - * *
    * A unique identifier for tracking a visitor session with a length limit of
    * 128 bytes. A session is an aggregation of an end user behavior in a time
@@ -278,40 +228,32 @@ public interface UserEventOrBuilder
    * 
* * string session_id = 6; - * * @return The bytes for sessionId. */ - com.google.protobuf.ByteString getSessionIdBytes(); + com.google.protobuf.ByteString + getSessionIdBytes(); /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; - * * @return Whether the pageInfo field is set. */ boolean hasPageInfo(); /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
    * 
* * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; - * * @return The pageInfo. */ com.google.cloud.discoveryengine.v1beta.PageInfo getPageInfo(); /** - * - * *
    * Page metadata such as categories and other critical information for certain
    * event types such as `view-category-page`.
@@ -322,8 +264,6 @@ public interface UserEventOrBuilder
   com.google.cloud.discoveryengine.v1beta.PageInfoOrBuilder getPageInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -351,13 +291,10 @@ public interface UserEventOrBuilder
    * 
* * string attribution_token = 8; - * * @return The attributionToken. */ java.lang.String getAttributionToken(); /** - * - * *
    * Token to attribute an API response to user action(s) to trigger the event.
    *
@@ -385,14 +322,12 @@ public interface UserEventOrBuilder
    * 
* * string attribution_token = 8; - * * @return The bytes for attributionToken. */ - com.google.protobuf.ByteString getAttributionTokenBytes(); + com.google.protobuf.ByteString + getAttributionTokenBytes(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -413,13 +348,10 @@ public interface UserEventOrBuilder
    * 
* * string filter = 9; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the documents being filtered.
@@ -440,14 +372,12 @@ public interface UserEventOrBuilder
    * 
* * string filter = 9; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -471,10 +401,9 @@ public interface UserEventOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
    */
-  java.util.List getDocumentsList();
+  java.util.List 
+      getDocumentsList();
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -500,8 +429,6 @@ public interface UserEventOrBuilder
    */
   com.google.cloud.discoveryengine.v1beta.DocumentInfo getDocuments(int index);
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -527,8 +454,6 @@ public interface UserEventOrBuilder
    */
   int getDocumentsCount();
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -552,11 +477,9 @@ public interface UserEventOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
    */
-  java.util.List
+  java.util.List 
       getDocumentsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of [Document][google.cloud.discoveryengine.v1beta.Document]s
    * associated with this user event.
@@ -580,35 +503,28 @@ public interface UserEventOrBuilder
    *
    * repeated .google.cloud.discoveryengine.v1beta.DocumentInfo documents = 10;
    */
-  com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocumentsOrBuilder(int index);
+  com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder getDocumentsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; - * * @return Whether the panel field is set. */ boolean hasPanel(); /** - * - * *
    * Panel metadata associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; - * * @return The panel. */ com.google.cloud.discoveryengine.v1beta.PanelInfo getPanel(); /** - * - * *
    * Panel metadata associated with this user event.
    * 
@@ -618,8 +534,6 @@ public interface UserEventOrBuilder com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuilder(); /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
    * details related to the event.
@@ -628,13 +542,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; - * * @return Whether the searchInfo field is set. */ boolean hasSearchInfo(); /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
    * details related to the event.
@@ -643,13 +554,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; - * * @return The searchInfo. */ com.google.cloud.discoveryengine.v1beta.SearchInfo getSearchInfo(); /** - * - * *
    * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
    * details related to the event.
@@ -662,8 +570,6 @@ public interface UserEventOrBuilder
   com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
    * details related to the event.
@@ -673,13 +579,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; - * * @return Whether the completionInfo field is set. */ boolean hasCompletionInfo(); /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
    * details related to the event.
@@ -689,13 +592,10 @@ public interface UserEventOrBuilder
    * 
* * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; - * * @return The completionInfo. */ com.google.cloud.discoveryengine.v1beta.CompletionInfo getCompletionInfo(); /** - * - * *
    * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery]
    * details related to the event.
@@ -709,32 +609,24 @@ public interface UserEventOrBuilder
   com.google.cloud.discoveryengine.v1beta.CompletionInfoOrBuilder getCompletionInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; - * * @return Whether the transactionInfo field is set. */ boolean hasTransactionInfo(); /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
* * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; - * * @return The transactionInfo. */ com.google.cloud.discoveryengine.v1beta.TransactionInfo getTransactionInfo(); /** - * - * *
    * The transaction metadata (if any) associated with this user event.
    * 
@@ -744,8 +636,6 @@ public interface UserEventOrBuilder com.google.cloud.discoveryengine.v1beta.TransactionInfoOrBuilder getTransactionInfoOrBuilder(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -753,13 +643,11 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @return A list containing the tagIds. */ - java.util.List getTagIdsList(); + java.util.List + getTagIdsList(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -767,13 +655,10 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @return The count of tagIds. */ int getTagIdsCount(); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -781,14 +666,11 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the element to return. * @return The tagIds at the given index. */ java.lang.String getTagIds(int index); /** - * - * *
    * A list of identifiers for the independent experiment groups this user event
    * belongs to. This is used to distinguish between user events associated with
@@ -796,70 +678,58 @@ public interface UserEventOrBuilder
    * 
* * repeated string tag_ids = 15; - * * @param index The index of the value to return. * @return The bytes of the tagIds at the given index. */ - com.google.protobuf.ByteString getTagIdsBytes(int index); + com.google.protobuf.ByteString + getTagIdsBytes(int index); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return A list containing the promotionIds. */ - java.util.List getPromotionIdsList(); + java.util.List + getPromotionIdsList(); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @return The count of promotionIds. */ int getPromotionIdsCount(); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the element to return. * @return The promotionIds at the given index. */ java.lang.String getPromotionIds(int index); /** - * - * *
    * The promotion IDs if this is an event associated with promotions.
    * Currently, this field is restricted to at most one ID.
    * 
* * repeated string promotion_ids = 16; - * * @param index The index of the value to return. * @return The bytes of the promotionIds at the given index. */ - com.google.protobuf.ByteString getPromotionIdsBytes(int index); + com.google.protobuf.ByteString + getPromotionIdsBytes(int index); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -889,13 +759,10 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ int getAttributesCount(); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -925,17 +792,17 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. */ - boolean containsAttributes(java.lang.String key); - /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map - getAttributes(); + getAttributes(); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -965,14 +832,11 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ java.util.Map - getAttributesMap(); + getAttributesMap(); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1002,17 +866,14 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ /* nullable */ - com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrDefault( +com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.discoveryengine.v1beta.CustomAttribute defaultValue); +com.google.cloud.discoveryengine.v1beta.CustomAttribute defaultValue); /** - * - * *
    * Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
@@ -1042,39 +903,30 @@ com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrDefault(
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; - * + * map<string, .google.cloud.discoveryengine.v1beta.CustomAttribute> attributes = 17; */ com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrThrow( java.lang.String key); /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; - * * @return Whether the mediaInfo field is set. */ boolean hasMediaInfo(); /** - * - * *
    * Media-specific info.
    * 
* * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; - * * @return The mediaInfo. */ com.google.cloud.discoveryengine.v1beta.MediaInfo getMediaInfo(); /** - * - * *
    * Media-specific info.
    * 
diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java new file mode 100644 index 000000000000..319debebdd4e --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java @@ -0,0 +1,212 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/user_event.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class UserEventProto { + private UserEventProto() {} + 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_discoveryengine_v1beta_UserEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/discoveryengine/v1beta/us" + + "er_event.proto\022#google.cloud.discoveryen" + + "gine.v1beta\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0320google/" + + "cloud/discoveryengine/v1beta/common.prot" + + "o\032\036google/protobuf/duration.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\345\007\n\tUserEvent" + + "\022\030\n\nevent_type\030\001 \001(\tB\004\342A\001\002\022\034\n\016user_pseud" + + "o_id\030\002 \001(\tB\004\342A\001\002\022.\n\nevent_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022@\n\tuser_info\030\004 " + + "\001(\0132-.google.cloud.discoveryengine.v1bet" + + "a.UserInfo\022\033\n\023direct_user_request\030\005 \001(\010\022" + + "\022\n\nsession_id\030\006 \001(\t\022@\n\tpage_info\030\007 \001(\0132-" + + ".google.cloud.discoveryengine.v1beta.Pag" + + "eInfo\022\031\n\021attribution_token\030\010 \001(\t\022\016\n\006filt" + + "er\030\t \001(\t\022D\n\tdocuments\030\n \003(\01321.google.clo" + + "ud.discoveryengine.v1beta.DocumentInfo\022=" + + "\n\005panel\030\013 \001(\0132..google.cloud.discoveryen" + + "gine.v1beta.PanelInfo\022D\n\013search_info\030\014 \001" + + "(\0132/.google.cloud.discoveryengine.v1beta" + + ".SearchInfo\022L\n\017completion_info\030\r \001(\01323.g" + + "oogle.cloud.discoveryengine.v1beta.Compl" + + "etionInfo\022N\n\020transaction_info\030\016 \001(\01324.go" + + "ogle.cloud.discoveryengine.v1beta.Transa" + + "ctionInfo\022\017\n\007tag_ids\030\017 \003(\t\022\025\n\rpromotion_" + + "ids\030\020 \003(\t\022R\n\nattributes\030\021 \003(\0132>.google.c" + + "loud.discoveryengine.v1beta.UserEvent.At" + + "tributesEntry\022B\n\nmedia_info\030\022 \001(\0132..goog" + + "le.cloud.discoveryengine.v1beta.MediaInf" + + "o\032g\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022C\n\005val" + + "ue\030\002 \001(\01324.google.cloud.discoveryengine." + + "v1beta.CustomAttribute:\0028\001\"Y\n\010PageInfo\022\023" + + "\n\013pageview_id\030\001 \001(\t\022\025\n\rpage_category\030\002 \001" + + "(\t\022\013\n\003uri\030\003 \001(\t\022\024\n\014referrer_uri\030\004 \001(\t\"T\n" + + "\nSearchInfo\022\024\n\014search_query\030\001 \001(\t\022\020\n\010ord" + + "er_by\030\002 \001(\t\022\023\n\006offset\030\003 \001(\005H\000\210\001\001B\t\n\007_off" + + "set\"H\n\016CompletionInfo\022\033\n\023selected_sugges" + + "tion\030\001 \001(\t\022\031\n\021selected_position\030\002 \001(\005\"\313\001" + + "\n\017TransactionInfo\022\030\n\005value\030\001 \001(\002B\004\342A\001\002H\000" + + "\210\001\001\022\026\n\010currency\030\002 \001(\tB\004\342A\001\002\022\026\n\016transacti" + + "on_id\030\003 \001(\t\022\020\n\003tax\030\004 \001(\002H\001\210\001\001\022\021\n\004cost\030\005 " + + "\001(\002H\002\210\001\001\022\033\n\016discount_value\030\006 \001(\002H\003\210\001\001B\010\n" + + "\006_valueB\006\n\004_taxB\007\n\005_costB\021\n\017_discount_va" + + "lue\"\273\001\n\014DocumentInfo\022\014\n\002id\030\001 \001(\tH\000\022<\n\004na" + + "me\030\002 \001(\tB,\372A)\n\'discoveryengine.googleapi" + + "s.com/DocumentH\000\022\r\n\003uri\030\006 \001(\tH\000\022\025\n\010quant" + + "ity\030\003 \001(\005H\001\210\001\001\022\025\n\rpromotion_ids\030\004 \003(\tB\025\n" + + "\023document_descriptorB\013\n\t_quantity\"\225\001\n\tPa" + + "nelInfo\022\026\n\010panel_id\030\002 \001(\tB\004\342A\001\002\022\024\n\014displ" + + "ay_name\030\003 \001(\t\022\033\n\016panel_position\030\004 \001(\005H\000\210" + + "\001\001\022\031\n\014total_panels\030\005 \001(\005H\001\210\001\001B\021\n\017_panel_" + + "positionB\017\n\r_total_panels\"\215\001\n\tMediaInfo\022" + + ":\n\027media_progress_duration\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\022&\n\031media_progress_pe" + + "rcentage\030\002 \001(\002H\000\210\001\001B\034\n\032_media_progress_p" + + "ercentageB\225\002\n\'com.google.cloud.discovery" + + "engine.v1betaB\016UserEventProtoP\001ZQcloud.g" + + "oogle.com/go/discoveryengine/apiv1beta/d" + + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" + + "COVERYENGINE\252\002#Google.Cloud.DiscoveryEng" + + "ine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngin" + + "e\\V1beta\352\002&Google::Cloud::DiscoveryEngin" + + "e::V1betab\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.discoveryengine.v1beta.CommonProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor, + new java.lang.String[] { "EventType", "UserPseudoId", "EventTime", "UserInfo", "DirectUserRequest", "SessionId", "PageInfo", "AttributionToken", "Filter", "Documents", "Panel", "SearchInfo", "CompletionInfo", "TransactionInfo", "TagIds", "PromotionIds", "Attributes", "MediaInfo", }); + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1beta_PageInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PageInfo_descriptor, + new java.lang.String[] { "PageviewId", "PageCategory", "Uri", "ReferrerUri", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchInfo_descriptor, + new java.lang.String[] { "SearchQuery", "OrderBy", "Offset", "Offset", }); + internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CompletionInfo_descriptor, + new java.lang.String[] { "SelectedSuggestion", "SelectedPosition", }); + internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_TransactionInfo_descriptor, + new java.lang.String[] { "Value", "Currency", "TransactionId", "Tax", "Cost", "DiscountValue", "Value", "Tax", "Cost", "DiscountValue", }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor, + new java.lang.String[] { "Id", "Name", "Uri", "Quantity", "PromotionIds", "DocumentDescriptor", "Quantity", }); + internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor, + new java.lang.String[] { "PanelId", "DisplayName", "PanelPosition", "TotalPanels", "PanelPosition", "TotalPanels", }); + internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_MediaInfo_descriptor, + new java.lang.String[] { "MediaProgressDuration", "MediaProgressPercentage", "MediaProgressPercentage", }); + 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.discoveryengine.v1beta.CommonProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java new file mode 100644 index 000000000000..66f3ff88156c --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/user_event_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public final class UserEventServiceProto { + private UserEventServiceProto() {} + 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_discoveryengine_v1beta_WriteUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CollectUserEventRequest_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 * Information of an end user. *
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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() { userId_ = ""; userAgent_ = ""; @@ -44,32 +26,28 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.UserInfo.class, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.UserInfo.class, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder.class); } public static final int USER_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object userId_ = ""; /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -85,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string user_id = 1; - * * @return The userId. */ @java.lang.Override @@ -94,15 +71,14 @@ 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; } } /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -118,15 +94,16 @@ public java.lang.String getUserId() {
    * 
* * string user_id = 1; - * * @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 { @@ -135,12 +112,9 @@ public com.google.protobuf.ByteString getUserIdBytes() { } public static final int USER_AGENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -156,7 +130,6 @@ public com.google.protobuf.ByteString getUserIdBytes() {
    * 
* * string user_agent = 2; - * * @return The userAgent. */ @java.lang.Override @@ -165,15 +138,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; } } /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -189,15 +161,16 @@ public java.lang.String getUserAgent() {
    * 
* * string user_agent = 2; - * * @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 { @@ -206,7 +179,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +190,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(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_); } @@ -248,16 +221,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.discoveryengine.v1beta.UserInfo)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.UserInfo other = - (com.google.cloud.discoveryengine.v1beta.UserInfo) obj; + com.google.cloud.discoveryengine.v1beta.UserInfo other = (com.google.cloud.discoveryengine.v1beta.UserInfo) obj; - if (!getUserId().equals(other.getUserId())) return false; - if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getUserAgent() + .equals(other.getUserAgent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,136 +252,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.UserInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.discoveryengine.v1beta.UserInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.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 an end user.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.UserInfo) com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.UserInfo.class, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder.class); + com.google.cloud.discoveryengine.v1beta.UserInfo.class, com.google.cloud.discoveryengine.v1beta.UserInfo.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.UserInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.CommonProto - .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; } @java.lang.Override @@ -439,11 +409,8 @@ public com.google.cloud.discoveryengine.v1beta.UserInfo build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.UserInfo result = - new com.google.cloud.discoveryengine.v1beta.UserInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.UserInfo result = new com.google.cloud.discoveryengine.v1beta.UserInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -462,39 +429,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserInfo resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.UserInfo) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.UserInfo) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UserInfo)other); } else { super.mergeFrom(other); return this; @@ -502,8 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserInfo other) { - if (other == com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) return this; if (!other.getUserId().isEmpty()) { userId_ = other.userId_; bitField0_ |= 0x00000001; @@ -540,25 +505,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - userId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - userAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -568,13 +530,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object userId_ = ""; /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -590,13 +549,13 @@ public Builder mergeFrom(
      * 
* * string user_id = 1; - * * @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; @@ -605,8 +564,6 @@ public java.lang.String getUserId() { } } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -622,14 +579,15 @@ public java.lang.String getUserId() {
      * 
* * string user_id = 1; - * * @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 { @@ -637,8 +595,6 @@ public com.google.protobuf.ByteString getUserIdBytes() { } } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -654,22 +610,18 @@ public com.google.protobuf.ByteString getUserIdBytes() {
      * 
* * string user_id = 1; - * * @param value The userId to set. * @return This builder for chaining. */ - public Builder setUserId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -685,7 +637,6 @@ public Builder setUserId(java.lang.String value) {
      * 
* * string user_id = 1; - * * @return This builder for chaining. */ public Builder clearUserId() { @@ -695,8 +646,6 @@ public Builder clearUserId() { return this; } /** - * - * *
      * Highly recommended for logged-in users. Unique identifier for logged-in
      * user, such as a user name. Don't set for anonymous users.
@@ -712,14 +661,12 @@ public Builder clearUserId() {
      * 
* * string user_id = 1; - * * @param value The bytes for userId to set. * @return This builder for chaining. */ - public Builder setUserIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; bitField0_ |= 0x00000001; @@ -729,8 +676,6 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object userAgent_ = ""; /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -746,13 +691,13 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string user_agent = 2; - * * @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; @@ -761,8 +706,6 @@ public java.lang.String getUserAgent() { } } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -778,14 +721,15 @@ public java.lang.String getUserAgent() {
      * 
* * string user_agent = 2; - * * @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 { @@ -793,8 +737,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -810,22 +752,18 @@ public com.google.protobuf.ByteString getUserAgentBytes() {
      * 
* * string user_agent = 2; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserAgent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userAgent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -841,7 +779,6 @@ public Builder setUserAgent(java.lang.String value) {
      * 
* * string user_agent = 2; - * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -851,8 +788,6 @@ public Builder clearUserAgent() { return this; } /** - * - * *
      * User agent as included in the HTTP header.
      *
@@ -868,23 +803,21 @@ public Builder clearUserAgent() {
      * 
* * string user_agent = 2; - * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserAgentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000002; 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); } @@ -894,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UserInfo) private static final com.google.cloud.discoveryengine.v1beta.UserInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UserInfo(); } @@ -908,27 +841,27 @@ public static com.google.cloud.discoveryengine.v1beta.UserInfo getDefaultInstanc 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java similarity index 78% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java index ef12653b8259..b0b663942d87 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/common.proto package com.google.cloud.discoveryengine.v1beta; -public interface UserInfoOrBuilder - extends +public interface UserInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UserInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -41,13 +23,10 @@ public interface UserInfoOrBuilder
    * 
* * string user_id = 1; - * * @return The userId. */ java.lang.String getUserId(); /** - * - * *
    * Highly recommended for logged-in users. Unique identifier for logged-in
    * user, such as a user name. Don't set for anonymous users.
@@ -63,14 +42,12 @@ public interface UserInfoOrBuilder
    * 
* * string user_id = 1; - * * @return The bytes for userId. */ - com.google.protobuf.ByteString getUserIdBytes(); + com.google.protobuf.ByteString + getUserIdBytes(); /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -86,13 +63,10 @@ public interface UserInfoOrBuilder
    * 
* * string user_agent = 2; - * * @return The userAgent. */ java.lang.String getUserAgent(); /** - * - * *
    * User agent as included in the HTTP header.
    *
@@ -108,8 +82,8 @@ public interface UserInfoOrBuilder
    * 
* * string user_agent = 2; - * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString getUserAgentBytes(); + com.google.protobuf.ByteString + getUserAgentBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java similarity index 61% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java index f47827aa8ac1..9cc1f52a8ebb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/discoveryengine/v1beta/user_event_service.proto package com.google.cloud.discoveryengine.v1beta; /** - * - * *
  * Request message for WriteUserEvent method.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.class, - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.class, com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 @@ -87,32 +62,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 DataStore resource name, such as
    * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -123,16 +96,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1beta.UserEvent userEvent_; /** - * - * *
    * Required. User event to write.
    * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ @java.lang.Override @@ -140,44 +108,30 @@ public boolean hasUserEvent() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. User event to write.
    * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent() { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } /** - * - * *
    * Required. User event to write.
    * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder() { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +143,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_); } @@ -209,7 +164,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUserEvent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,18 +175,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.discoveryengine.v1beta.WriteUserEventRequest)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest other = - (com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest) obj; + com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest other = (com.google.cloud.discoveryengine.v1beta.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,127 +212,119 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.WriteUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.WriteUserEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.WriteUserEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.WriteUserEventRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest 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.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.WriteUserEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.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.discoveryengine.v1beta.WriteUserEventRequest) com.google.cloud.discoveryengine.v1beta.WriteUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.class, - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.class, com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.Builder.class); } // Construct using com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.newBuilder() @@ -383,17 +332,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) { getUserEventFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +357,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserEventServiceProto.internal_static_google_cloud_discoveryengine_v1beta_WriteUserEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest - getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.getDefaultInstance(); } @@ -430,24 +378,22 @@ public com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest build() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest result = - new com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest result = new com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.userEvent_ = userEventBuilder_ == null ? userEvent_ : userEventBuilder_.build(); + result.userEvent_ = userEventBuilder_ == null + ? userEvent_ + : userEventBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -457,39 +403,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest) other); + return mergeFrom((com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest)other); } else { super.mergeFrom(other); return this; @@ -497,9 +442,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -534,25 +477,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUserEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUserEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,28 +504,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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; @@ -592,24 +529,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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 { @@ -617,41 +551,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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() { @@ -661,24 +584,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent DataStore resource name, such as
      * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -688,58 +605,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.discoveryengine.v1beta.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> - userEventBuilder_; + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> userEventBuilder_; /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ public com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } else { return userEventBuilder_.getMessage(); } } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent value) { if (userEventBuilder_ == null) { @@ -755,15 +653,11 @@ public Builder setUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent va return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent( com.google.cloud.discoveryengine.v1beta.UserEvent.Builder builderForValue) { @@ -777,22 +671,17 @@ public Builder setUserEvent( return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent value) { if (userEventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && userEvent_ != null - && userEvent_ - != com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + userEvent_ != null && + userEvent_ != com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance()) { getUserEventBuilder().mergeFrom(value); } else { userEvent_ = value; @@ -805,15 +694,11 @@ public Builder mergeUserEvent(com.google.cloud.discoveryengine.v1beta.UserEvent return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvent() { bitField0_ = (bitField0_ & ~0x00000002); @@ -826,15 +711,11 @@ public Builder clearUserEvent() { return this; } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder getUserEventBuilder() { bitField0_ |= 0x00000002; @@ -842,55 +723,43 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent.Builder getUserEventBui return getUserEventFieldBuilder().getBuilder(); } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null - ? com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? + com.google.cloud.discoveryengine.v1beta.UserEvent.getDefaultInstance() : userEvent_; } } /** - * - * *
      * Required. User event to write.
      * 
* - * - * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.UserEvent, - com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, - com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder>( - getUserEvent(), getParentForChildren(), isClean()); + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.UserEvent, com.google.cloud.discoveryengine.v1beta.UserEvent.Builder, com.google.cloud.discoveryengine.v1beta.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); } @@ -900,13 +769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.WriteUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.WriteUserEventRequest) - private static final com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest(); } @@ -915,27 +783,27 @@ public static com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest getD 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +818,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java new file mode 100644 index 000000000000..6e4c7fcefc59 --- /dev/null +++ b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/discoveryengine/v1beta/user_event_service.proto + +package com.google.cloud.discoveryengine.v1beta; + +public interface WriteUserEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.WriteUserEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent DataStore resource name, such as
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_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.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + boolean hasUserEvent(); + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + com.google.cloud.discoveryengine.v1beta.UserEvent getUserEvent(); + /** + *
+   * Required. User event to write.
+   * 
+ * + * optional .google.cloud.discoveryengine.v1beta.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.discoveryengine.v1beta.UserEventOrBuilder getUserEventOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto b/owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto similarity index 100% rename from java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto rename to owl-bot-staging/java-discoveryengine/v1beta/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/AsyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/AsyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/AsyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/AsyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/SyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/SyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/completequery/SyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservicesettings/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservicesettings/completequery/SyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservicesettings/completequery/SyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservicesettings/completequery/SyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationConversationnameTextinput.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversationStringTextinput.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/AsyncCreateConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/AsyncCreateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/AsyncCreateConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/AsyncCreateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationDatastorenameConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createconversation/SyncCreateConversationStringConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/AsyncDeleteConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationConversationname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/deleteconversation/SyncDeleteConversationString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/AsyncGetConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/AsyncGetConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/AsyncGetConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/AsyncGetConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationConversationname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/getconversation/SyncGetConversationString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversations.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversations.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversations.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversations.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/AsyncListConversationsPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversations.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversations.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversations.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversations.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsDatastorename.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/listconversations/SyncListConversationsString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/AsyncUpdateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/updateconversation/SyncUpdateConversationConversationFieldmask.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservicesettings/converseconversation/SyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/AsyncCreateDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/AsyncCreateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/AsyncCreateDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/AsyncCreateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentBranchnameDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/createdocument/SyncCreateDocumentStringDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/AsyncDeleteDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/AsyncDeleteDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/AsyncDeleteDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/AsyncDeleteDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentDocumentname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/deletedocument/SyncDeleteDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/AsyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/AsyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/AsyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/AsyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentDocumentname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentDocumentname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentDocumentname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentDocumentname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/getdocument/SyncGetDocumentString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocuments.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocuments.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocumentsPaged.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocumentsPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocumentsPaged.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/AsyncListDocumentsPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocuments.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocuments.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsBranchname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsBranchname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsBranchname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsBranchname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/listdocuments/SyncListDocumentsString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocuments.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocuments.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/SyncPurgeDocuments.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/SyncPurgeDocuments.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/SyncPurgeDocuments.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/purgedocuments/SyncPurgeDocuments.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/AsyncUpdateDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/AsyncUpdateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/AsyncUpdateDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/AsyncUpdateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/SyncUpdateDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/SyncUpdateDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/SyncUpdateDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/updatedocument/SyncUpdateDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservicesettings/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservicesettings/getdocument/SyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservicesettings/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservicesettings/getdocument/SyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/AsyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/AsyncRecommend.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/AsyncRecommend.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/AsyncRecommend.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/SyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/SyncRecommend.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/SyncRecommend.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservice/recommend/SyncRecommend.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservicesettings/recommend/SyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservicesettings/recommend/SyncRecommend.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservicesettings/recommend/SyncRecommend.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/recommendationservicesettings/recommend/SyncRecommend.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchemaLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchemaLRO.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/AsyncCreateSchemaLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaDatastorenameSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/AsyncDeleteSchemaLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/deleteschema/SyncDeleteSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/AsyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/AsyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/AsyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/AsyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaSchemaname.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaSchemaname.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaSchemaname.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaSchemaname.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/getschema/SyncGetSchemaString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemas.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemas.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemas.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemas.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemasPaged.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemasPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemasPaged.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/AsyncListSchemasPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemas.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemas.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemas.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemas.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasDatastorename.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasDatastorename.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasDatastorename.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasDatastorename.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasString.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasString.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasString.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/listschemas/SyncListSchemasString.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchemaLRO.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchemaLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchemaLRO.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/AsyncUpdateSchemaLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/SyncUpdateSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/SyncUpdateSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/SyncUpdateSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservice/updateschema/SyncUpdateSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservicesettings/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservicesettings/getschema/SyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservicesettings/getschema/SyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/schemaservicesettings/getschema/SyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservicesettings/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservicesettings/search/SyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservicesettings/search/SyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservicesettings/search/SyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/completionservicestubsettings/completequery/SyncCompleteQuery.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/conversationalsearchservicestubsettings/converseconversation/SyncConverseConversation.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/documentservicestubsettings/getdocument/SyncGetDocument.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/documentservicestubsettings/getdocument/SyncGetDocument.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/documentservicestubsettings/getdocument/SyncGetDocument.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/documentservicestubsettings/getdocument/SyncGetDocument.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/recommendationservicestubsettings/recommend/SyncRecommend.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/recommendationservicestubsettings/recommend/SyncRecommend.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/recommendationservicestubsettings/recommend/SyncRecommend.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/recommendationservicestubsettings/recommend/SyncRecommend.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/schemaservicestubsettings/getschema/SyncGetSchema.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/schemaservicestubsettings/getschema/SyncGetSchema.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/schemaservicestubsettings/getschema/SyncGetSchema.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/schemaservicestubsettings/getschema/SyncGetSchema.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchservicestubsettings/search/SyncSearch.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchservicestubsettings/search/SyncSearch.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchservicestubsettings/search/SyncSearch.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchservicestubsettings/search/SyncSearch.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/AsyncCollectUserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/AsyncCollectUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/AsyncCollectUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/AsyncCollectUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/SyncCollectUserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/SyncCollectUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/SyncCollectUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/collectuserevent/SyncCollectUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/create/SyncCreateSetEndpoint.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEvents.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEvents.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEvents.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEvents.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEventsLRO.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEventsLRO.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEventsLRO.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/AsyncImportUserEventsLRO.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/SyncImportUserEvents.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/SyncImportUserEvents.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/SyncImportUserEvents.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/importuserevents/SyncImportUserEvents.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/AsyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/AsyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/AsyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/AsyncWriteUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/SyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservice/writeuserevent/SyncWriteUserEvent.java diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java rename to owl-bot-staging/java-discoveryengine/v1beta/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java